summaryrefslogtreecommitdiffstats
path: root/comm/calendar/base/themes/windows/calendar-task-tree.css
blob: dd23a40fb53b1fae823202d180cafaa9f1ebd2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* 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/skin/shared/calendar-task-tree.css);

.calendar-task-tree-col-priority > .treecol-icon {
  padding-inline-end: 1px;
}

/* Use on Win7 and up default theme a dark text color when selected focus */
@media (-moz-windows-default-theme) {
  .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) {
    border-color: green !important;
  }

  :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) {
    border-color: #00bd00 !important;
  }

  .calendar-task-tree > treechildren::-moz-tree-cell-text(inprogress, selected, focus),
  :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-cell-text(inprogress, selected, focus) {
    color: white !important;
  }

  .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) {
    border-color: red !important;
  }

  :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) {
    border-color: #ff7a7a !important;
  }

  .calendar-task-tree > treechildren::-moz-tree-image(overdue, selected, focus),
  .calendar-task-tree > treechildren::-moz-tree-cell-text(overdue, selected, focus),
  :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-cell-text(overdue, selected, focus) {
    color: white !important;
  }

  @media (-moz-platform: windows-win7) {
    .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) {
      background: linear-gradient(rgba(0, 128, 0, .28), rgba(0, 128, 0, .5));
    }

    .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) {
      background: linear-gradient(rgba(255, 0, 0, .28), rgba(255, 0, 0, .5));
    }
  }

  @media (-moz-platform: windows-win8),
         (-moz-platform: windows-win10) {
    .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) {
      background: linear-gradient(rgba(0, 128, 0, .5), rgba(0, 128, 0, .5));
    }

    .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) {
      background: linear-gradient(rgba(255, 0, 0, .5), rgba(255, 0, 0, .5));
    }
  }
}