/* 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/. */

@import url(chrome://calendar-common/skin/calendar-task-view.css);

#calendar-task-details-container {
    padding-top: 2px;
    overflow: hidden;
}

#other-actions-box {
    -moz-margin-end: 3px;
}

#task-addition-box {
    background: linear-gradient(#eaeaea, #d1d1d1);
}

.task-details-name {
    color: #888a85; /* lower contrast */
}

#calendar-task-details-grid > rows > .item-date-row > .headline {
    color: #888a85; /* lower contrast */
}

.task-details-value {
    color: black;
}

#task-text-filter-field {
    margin: 4px 5px;
}

#task-actions-toolbar {
    min-width: 50px !important;
    min-height: 14px !important;
}

@media not all and (-moz-mac-yosemite-theme) {
  #task-actions-category {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#category);
  }

  #task-actions-markcompleted {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#complete);
  }

  #task-actions-priority {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#priority);
  }

  #calendar-delete-task-button {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#delete);
  }

  #calendar-add-task-button {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#newtask);
      -moz-image-region: rect(0 18px 18px 0);
  }
}

@media (-moz-mac-yosemite-theme) {
  #task-actions-category {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#category-flat);
  }

  #task-actions-markcompleted {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#complete-flat);
  }

  #task-actions-priority {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#priority-flat);
  }

  #calendar-delete-task-button {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#delete);
  }

  #calendar-add-task-button {
    list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#newtask-flat);
      -moz-image-region: rect(0 18px 18px 0);
  }
}

#task-actions-toolbar[brighttext] > #task-actions-category {
  list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#category-inverted);
}

#task-actions-toolbar[brighttext] > #task-actions-markcompleted {
  list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#complete-inverted);
}

#task-actions-toolbar[brighttext] > #task-actions-priority {
  list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#priority-inverted);
}


#task-actions-toolbar[brighttext] > #calendar-delete-task-button {
  list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#delete-inverted);
}

#calendar-add-task-button > .toolbarbutton-icon {
  width: 18px;
  height: 18px;
  margin: -1px;
}

#calendar-add-task-button[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

#calendar-add-task-button > .toolbarbutton-text {
  -moz-margin-start: 0px;
}
