/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#event-toolbox {
  -moz-appearance: none;
  border-top: none;
  background-color: -moz-Dialog;
  border-bottom: 1px solid ThreeDShadow;
}

@media (-moz-windows-default-theme) and (-moz-os-version: windows-vista),
       (-moz-windows-default-theme) and (-moz-os-version: windows-win7) {
  /* < Win8 */
  #event-toolbox {
    background-color: hsl(210, 75%, 92%);
    background-image: linear-gradient(rgba(255, 255, 255, .5),
                      rgba(255, 255, 255, 0));
  }
}

@media (-moz-windows-glass) {
  #event-toolbox {
    border-bottom-color: #AABCCF;
  }
}

#event-menubar,
#event-toolbar {
  -moz-appearance: none;
  border-style: none;
  background-color: transparent
}

#event-toolbar {
  -moz-margin-start: 0;
  padding: 1px 0 2px;
}

.cal-event-toolbarbutton {
  list-style-image: url(chrome://calendar/skin/calendar-event-dialog-toolbar-aero.png);
}

#button-save {
  -moz-image-region: rect(1px 107px 17px 91px);
}

#button-attendees {
  -moz-image-region: rect(1px 35px 17px 19px);
}

#button-privacy {
  -moz-image-region: rect(1px 89px 17px 73px);
}

#button-url {
  -moz-image-region: rect(1px 71px 17px 55px);
}

#button-delete.cal-event-toolbarbutton,
#button-delete.cal-event-toolbarbutton:hover,
#button-delete.cal-event-toolbarbutton:hover:active,
toolbar[iconsize="small"] #button-delete.cal-event-toolbarbutton,
toolbar[iconsize="small"] #button-delete.cal-event-toolbarbutton:hover,
toolbar[iconsize="small"] #button-delete.cal-event-toolbarbutton:hover:active {
  list-style-image: url(chrome://calendar/skin/calendar-event-dialog-toolbar-aero.png);
  -moz-image-region: rect(1px 305px 17px 289px);
}

#button-priority {
  -moz-image-region: rect(1px 431px 17px 415px);
}

#button-status {
  -moz-image-region: rect(1px 449px 17px 433px);
}

#button-freebusy {
  -moz-image-region: rect(1px 467px 17px 451px);
}

#button-timezones {
  -moz-image-region: rect(1px 485px 17px 469px);
}

toolbar[brighttext] .cal-event-toolbarbutton,
toolbar[brighttext] #button-delete.cal-event-toolbarbutton,
toolbar[brighttext] #button-delete.cal-event-toolbarbutton:hover,
toolbar[brighttext] #button-delete.cal-event-toolbarbutton:hover:active,
toolbar[brighttext][iconsize="small"] #button-delete.cal-event-toolbarbutton,
toolbar[brighttext][iconsize="small"] #button-delete.cal-event-toolbarbutton:hover,
toolbar[brighttext][iconsize="small"] #button-delete.cal-event-toolbarbutton:hover:active {
  list-style-image: url(chrome://calendar/skin/calendar-event-dialog-toolbar-inverted.png);
}
