summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDate.styl
blob: 3e736f43f948abf8d3296053e0242bc883b48ccb (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
.card-date
  display: block
  border-radius: 4px
  padding: 1px 3px
  
  background-color: #dbdbdb
  &:hover, &.is-active
    background-color: #b3b3b3
  
  &.current, &.almost-due, &.due, &.long-overdue
    color: #fff

  &.current
    background-color: #5ba639
    &:hover, &.is-active
      background-color: darken(#5ba639, 10)
  
  &.almost-due
    background-color: #edc909
    &:hover, &.is-active
      background-color: darken(#edc909, 10)
  
  &.due
    background-color: #fa3f00
    &:hover, &.is-active
      background-color: darken(#fa3f00, 10)
  
  &.long-overdue
    background-color: #fd5d47
    &:hover, &.is-active
      background-color: darken(#fd5d47, 7)

  &.end-date
    time
      &::before
        content: "\f253"  // symbol: fa-hourglass-end

  &.due-date
    time
      &::before
        content: "\f090"  // symbol: fa-sign-in

  &.start-date
    time
      &::before
        content: "\f251"  // symbol: fa-hourglass-start

  &.received-date
    time
      &::before
        content: "\f08b"  // symbol: fa-ign-out

  time
    &::before
      font: normal normal normal 14px/1 FontAwesome
      font-size: inherit
      -webkit-font-smoothing: antialiased
      margin-right: 0.3em