summaryrefslogtreecommitdiffstats
path: root/app/common/styles/elements/tags.scss
blob: cb483d6a6c710a4c15e132866755a710ad24d204 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Tags

.tag {
  font-size: .9em;
  padding: .4em .8em .2em;
  position: relative;
  display: inline-block;
  font-weight: 700;
  padding-right: 60px;
  border-radius: 3px;
  line-height: 1.5;
  overflow: hidden;
  margin: .4em .3em;
  min-width: 185px;
  text-align: left;
  &:hover {
    cursor: pointer;
  }
  &:before { // close icon
    content: '+';
    font-size: 2em;
    font-weight: 400;
    transform: rotate(45deg);
    display: inline-block;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -18px;
    color: $darkgrey;
    height: 20px;
    width: 20px;
  }
  &:after { // white separator
    content: '';
    height: 100%;
    position: absolute;
    top: 0;
    right: 40px;
    border-left: 1px solid $white;
  }
}

//Custom tag
.tag.custom {
  background: lighten($darkbg__primary, 65%);
}

//Event log tags
.event__resolved {
  background: lighten($purple, 40%);
}
.event__unresolved {
  background: lighten($purple, 40%);
}
.event__high {
  background: lighten($error-color, 30%);
}
.event__medium{
  background: lighten($alert__warning, 30%);
}
.event__low {
  background: lighten($lightbg__primary, 30%);
}

// Priority tags
.priority-tag {
  color: $white;
  font-size: .8em;
  text-transform: uppercase;
  padding: 2px 2em;
  font-weight: 700;
  line-height: inherit;
  min-width: 103px;
  text-align: center;

  &.high-priority {
    background: $error-color;

  }
  &.med-priority {
    background: $alert__warning;

  }
  &.low-priority {
    background: $lightbg__primary;
  }
  &.event-resolved {
    background: $purple;
    padding: 2px 1em;
  }
}

.priority-tag-circ {
  //padding: 0;
  //line-height: inherit;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba( $normal, .4);
  position: relative;
  border-width: 2px;
  border-style: solid;
  border-color: $normal;
  &.high-priority {
    color: $critical-lightbg;
    background-color: rgba( $critical-lightbg, .4 );
    background-image: url(/assets/images/crit-x.svg);
    border-color: $critical-lightbg;
    &:before {
      content: '';
      position: absolute;
      top: -11px;
      left: -3px;
      font-weight: 600;
      font-size: 1.5em;
      -webkit-font-smoothing: antialiased;
      text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
    }
  }
  &.medium-priority {
    background: rgba($medium-lightbg, .5);
    border-color: rgba($medium-lightbg, 1);
  }
  &.warn-priority {
    background: rgba($warning-lightbg, .5);
    border-color: $warning-lightbg;
  }
  &.normal-priority {
    background: rgba( $normal, .4);
  }
  &.event-resolved {
    background: $purple;
    padding: 2px 1em;
  }
}
OpenPOWER on IntegriCloud