@rio-cloud/rio-uikit 0.16.3-beta.8 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.DS_Store +0 -0
  2. package/Activity.d.ts +7 -1
  3. package/Init.d.ts +3 -0
  4. package/Init.js +2 -0
  5. package/README.md +6 -6
  6. package/components/dataTabs/DataTab.js +2 -1
  7. package/components/dataTabs/DataTabs.js +6 -6
  8. package/components/map/components/features/settings/MapSettingsPanel.js +20 -3
  9. package/components/map/components/features/settings/MapSettingsTile.js +19 -6
  10. package/components/releaseNotes/ReleaseNotes.js +8 -10
  11. package/components/selects/Select.js +3 -3
  12. package/components/tooltip/SimpleTooltip.js +11 -2
  13. package/lib/es/Activity.d.ts +7 -1
  14. package/lib/es/Init.d.ts +3 -0
  15. package/lib/es/Init.js +12 -0
  16. package/lib/es/components/applicationLayout/ApplicationLayout.js +1 -1
  17. package/lib/es/components/assetTree/Tree.js +1 -1
  18. package/lib/es/components/carousel/CarouselCaption.js +1 -1
  19. package/lib/es/components/carousel/CarouselItem.js +1 -1
  20. package/lib/es/components/contentLoader/ContentLoader.js +1 -0
  21. package/lib/es/components/dataTabs/DataTab.js +2 -1
  22. package/lib/es/components/dataTabs/DataTabs.js +6 -6
  23. package/lib/es/components/datepicker/DatePicker.js +2 -1
  24. package/lib/es/components/datepicker/DateRangePicker.js +3 -1
  25. package/lib/es/components/listMenu/ListMenu.js +0 -1
  26. package/lib/es/components/map/components/features/Route.js +1 -1
  27. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +1 -1
  28. package/lib/es/components/map/components/features/basics/Polyline.js +1 -1
  29. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +1 -1
  30. package/lib/es/components/map/components/features/settings/MapSettingsPanel.js +20 -3
  31. package/lib/es/components/map/components/features/settings/MapSettingsTile.js +18 -5
  32. package/lib/es/components/releaseNotes/ReleaseNotes.js +8 -10
  33. package/lib/es/components/selects/Select.js +3 -3
  34. package/lib/es/components/sidebars/Sidebar.js +1 -1
  35. package/lib/es/components/states/CustomState.js +1 -0
  36. package/lib/es/components/tooltip/SimpleTooltip.js +11 -2
  37. package/lib/es/hooks/useDebugInfo.js +1 -1
  38. package/lib/es/hooks/useFullscreen.js +0 -1
  39. package/lib/es/styles/components/ApplicationHeader.less +4 -5
  40. package/lib/es/styles/components/ApplicationLayout.less +5 -7
  41. package/lib/es/styles/components/AssetTree.less +3 -3
  42. package/lib/es/styles/components/Carousel.less +1 -2
  43. package/lib/es/styles/components/Checkbox.less +2 -2
  44. package/lib/es/styles/components/ClearableInput.less +1 -2
  45. package/lib/es/styles/components/DatePicker.less +0 -1
  46. package/lib/es/styles/components/Dialog.less +1 -1
  47. package/lib/es/styles/components/Dropdown.less +6 -10
  48. package/lib/es/styles/components/ListMenu.less +3 -5
  49. package/lib/es/styles/components/MapHere.less +1 -1
  50. package/lib/es/styles/components/MapMarker.less +5 -9
  51. package/lib/es/styles/components/MapSettings.less +12 -35
  52. package/lib/es/styles/components/RadioButton.less +1 -1
  53. package/lib/es/styles/components/Select.less +17 -9
  54. package/lib/es/styles/components/Sidebar.less +1 -1
  55. package/lib/es/styles/components/Slider.less +1 -1
  56. package/lib/es/styles/components/SteppedProgressBar.less +4 -4
  57. package/lib/es/styles/components/SupportMarker.less +2 -2
  58. package/lib/es/styles/components/Switch.less +1 -1
  59. package/lib/es/styles/components/TableSortArrows.less +2 -1
  60. package/lib/es/styles/components/Tag.less +5 -5
  61. package/lib/es/styles/components/Timeline.less +10 -8
  62. package/lib/es/styles/design/button-groups.less +1 -4
  63. package/lib/es/styles/design/buttons.less +23 -42
  64. package/lib/es/styles/design/form-input-groups.less +1 -3
  65. package/lib/es/styles/design/form-inputs.less +4 -6
  66. package/lib/es/styles/design/iframe.less +2 -2
  67. package/lib/es/styles/design/list-group.less +10 -18
  68. package/lib/es/styles/design/navs.less +11 -21
  69. package/lib/es/styles/design/normalize.less +111 -390
  70. package/lib/es/styles/design/pagination.less +6 -9
  71. package/lib/es/styles/design/panels.less +1 -1
  72. package/lib/es/styles/design/resets.less +0 -22
  73. package/lib/es/styles/design/responsive/sizing.less +3 -0
  74. package/lib/es/styles/design/sanityCheck.less +11 -0
  75. package/lib/es/styles/design/tables.less +34 -65
  76. package/lib/es/styles/design/theme.less +3 -5
  77. package/lib/es/styles/design/thumbnails.less +1 -3
  78. package/lib/es/styles/mapping/positions-map.less +8 -0
  79. package/lib/es/styles/mixins/buttons.less +6 -3
  80. package/lib/es/styles/variables/_index.less +1 -1
  81. package/lib/es/styles/variables/colors.json +5 -4
  82. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +3 -0
  83. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  84. package/lib/es/themes/RIO/styles/rio-uikit.less +3 -0
  85. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  86. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +3 -0
  87. package/lib/es/themes/Website/styles/rio-website.less +5 -6
  88. package/lib/es/types.ts +3 -1
  89. package/lib/es/utils/buttonEffect.js +2 -1
  90. package/lib/es/version.json +1 -1
  91. package/package.json +32 -29
  92. package/styles/components/ApplicationHeader.less +4 -5
  93. package/styles/components/ApplicationLayout.less +5 -7
  94. package/styles/components/AssetTree.less +3 -3
  95. package/styles/components/Carousel.less +1 -2
  96. package/styles/components/Checkbox.less +2 -2
  97. package/styles/components/ClearableInput.less +1 -2
  98. package/styles/components/DatePicker.less +0 -1
  99. package/styles/components/Dialog.less +1 -1
  100. package/styles/components/Dropdown.less +6 -10
  101. package/styles/components/ListMenu.less +3 -5
  102. package/styles/components/MapHere.less +1 -1
  103. package/styles/components/MapMarker.less +5 -9
  104. package/styles/components/MapSettings.less +12 -35
  105. package/styles/components/RadioButton.less +1 -1
  106. package/styles/components/Select.less +17 -9
  107. package/styles/components/Sidebar.less +1 -1
  108. package/styles/components/Slider.less +1 -1
  109. package/styles/components/SteppedProgressBar.less +4 -4
  110. package/styles/components/SupportMarker.less +2 -2
  111. package/styles/components/Switch.less +1 -1
  112. package/styles/components/TableSortArrows.less +2 -1
  113. package/styles/components/Tag.less +5 -5
  114. package/styles/components/Timeline.less +10 -8
  115. package/styles/design/button-groups.less +1 -4
  116. package/styles/design/buttons.less +23 -42
  117. package/styles/design/form-input-groups.less +1 -3
  118. package/styles/design/form-inputs.less +4 -6
  119. package/styles/design/iframe.less +2 -2
  120. package/styles/design/list-group.less +10 -18
  121. package/styles/design/navs.less +11 -21
  122. package/styles/design/normalize.less +111 -390
  123. package/styles/design/pagination.less +6 -9
  124. package/styles/design/panels.less +1 -1
  125. package/styles/design/resets.less +0 -22
  126. package/styles/design/responsive/sizing.less +3 -0
  127. package/styles/design/sanityCheck.less +11 -0
  128. package/styles/design/tables.less +34 -65
  129. package/styles/design/theme.less +3 -5
  130. package/styles/design/thumbnails.less +1 -3
  131. package/styles/mapping/positions-map.less +8 -0
  132. package/styles/mixins/buttons.less +6 -3
  133. package/styles/variables/_index.less +1 -1
  134. package/styles/variables/colors.json +5 -4
  135. package/themes/BuyButton/styles/rio-buyButton.less +3 -0
  136. package/themes/MAN/styles/man-uikit.less +3 -0
  137. package/themes/RIO/styles/rio-uikit.less +3 -0
  138. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  139. package/themes/Volkswagen/styles/vw-uikit.less +3 -0
  140. package/themes/Website/styles/rio-website.less +5 -6
  141. package/types.ts +3 -1
  142. package/utils/buttonEffect.js +2 -1
  143. package/version.json +1 -1
  144. package/lib/.DS_Store +0 -0
@@ -159,7 +159,7 @@
159
159
  }
160
160
 
161
161
  // Define style for 'diabled' state
162
- &:disabled + .checkbox-text {
162
+ &[disabled] + .checkbox-text {
163
163
  //color: var(--gray-light);
164
164
  opacity: 0.5;
165
165
  cursor: not-allowed;
@@ -184,7 +184,7 @@
184
184
  &.error + .checkbox-text,
185
185
  &:required:focus:not(:checked) + .checkbox-text {
186
186
  &:before {
187
- border-color: @brand-danger;
187
+ border-color: var(--brand-danger);
188
188
  }
189
189
  }
190
190
 
@@ -17,8 +17,7 @@
17
17
  }
18
18
 
19
19
  > .form-control {
20
- &.disabled,
21
- &[disabled] {
20
+ &:is(.disabled, [disabled]) {
22
21
  + .clearButton {
23
22
  display: none
24
23
  }
@@ -69,7 +69,6 @@
69
69
  height: 50px;
70
70
  width: 25%;
71
71
 
72
- &:hover,
73
72
  &:hover {
74
73
  background: var(--color-highlight-lightest);
75
74
  }
@@ -29,7 +29,7 @@ body {
29
29
  }
30
30
 
31
31
  .modal {
32
- -webkit-overflow-scrolling: touch;
32
+ // -webkit-overflow-scrolling: touch; // TODO remove when cleanup
33
33
  bottom: 0;
34
34
  cursor: default;
35
35
  display: none;
@@ -55,12 +55,11 @@
55
55
  position: relative;
56
56
  user-select: none;
57
57
 
58
- &:active:focus {
58
+ &:is(:active:focus, .active:focus) {
59
59
  outline: 0;
60
60
  }
61
61
 
62
- &:hover,
63
- &:focus {
62
+ &:is(:hover, :focus) {
64
63
  background-color: var(--brand-primary);
65
64
  color: var(--color-white);
66
65
  text-decoration: none;
@@ -81,8 +80,7 @@
81
80
  background-color: inherit;
82
81
 
83
82
  &,
84
- &:hover,
85
- &:focus {
83
+ &:is(:hover, :focus) {
86
84
  background-color: var(--brand-primary);
87
85
  color: var(--color-white);
88
86
  outline: 0;
@@ -90,17 +88,15 @@
90
88
  }
91
89
  }
92
90
 
93
- > .disabled > a {
91
+ > :is(.disabled, [disabled]) > a {
94
92
  &,
95
- &:hover,
96
- &:focus {
93
+ &:is(:hover, :focus) {
97
94
  color: var(--gray-light);
98
95
  }
99
96
 
100
97
  // OLD BS STUFF
101
98
  // Nuke hover/focus effects
102
- &:hover,
103
- &:focus {
99
+ &:is(:hover, :focus) {
104
100
  .reset-filter();
105
101
  background-color: transparent;
106
102
  background-image: none;
@@ -25,8 +25,7 @@
25
25
  a {
26
26
  color: var(--color-black);
27
27
 
28
- &:hover,
29
- &.active {
28
+ &:is(:hover, :active, .active, :focus) {
30
29
  text-decoration: none;
31
30
  color: var(--brand-primary);
32
31
  }
@@ -49,7 +48,7 @@
49
48
  text-decoration: none;
50
49
  }
51
50
 
52
- &.disabled {
51
+ &:is(.disabled, [disabled]) {
53
52
  > span,
54
53
  a {
55
54
  color: var(--gray-light);
@@ -63,8 +62,7 @@
63
62
  color: var(--gray-darker);
64
63
  cursor: pointer;
65
64
 
66
- &:hover,
67
- &.active {
65
+ &:is(:hover, :active, .active, :focus) {
68
66
  border-left-color: var(--brand-primary);
69
67
  border-width: 3px;
70
68
  color: var(--brand-primary);
@@ -42,7 +42,7 @@
42
42
  padding: 7px 10px;
43
43
  color: var(--gray-darkest);
44
44
 
45
- &.disabled {
45
+ &:is(.disabled, [disabled]) {
46
46
  opacity: 0.5;
47
47
  cursor: not-allowed !important;
48
48
  }
@@ -26,11 +26,11 @@
26
26
  text-align: center;
27
27
 
28
28
  &.exception {
29
- background-color: @brand-danger;
29
+ background-color: var(--brand-danger);
30
30
  }
31
31
 
32
32
  &.warning {
33
- background-color: @brand-warning;
33
+ background-color: var(--brand-warning);
34
34
  }
35
35
 
36
36
  .rio-map-single & {
@@ -256,8 +256,7 @@
256
256
  }
257
257
  }
258
258
 
259
- &:hover,
260
- &.hover {
259
+ &:is(:hover, .hover) {
261
260
  z-index: @zindex-map-marker-hover !important;
262
261
  }
263
262
 
@@ -265,9 +264,7 @@
265
264
  z-index: @zindex-map-marker-active !important;
266
265
  }
267
266
 
268
- &:hover,
269
- &.hover,
270
- &.active {
267
+ &:is(:hover, :active, .active, :focus) {
271
268
  .rio-map-single:not(.fixed) {
272
269
  margin-bottom: @iconSize * 0.65;
273
270
 
@@ -533,8 +530,7 @@
533
530
  &.clickable {
534
531
  cursor: pointer;
535
532
 
536
- &:hover,
537
- &.hover {
533
+ &:is(.hover, :hover) {
538
534
  background-color: .hslb(@color-map-marker-asset-hsl, '-', '5%')[@result];
539
535
  }
540
536
  }
@@ -1,3 +1,5 @@
1
+ @nightMapTileBackground: #444a4c;
2
+
1
3
  .ZoomButtons {
2
4
  bottom: 15px;
3
5
  padding: 0;
@@ -7,12 +9,13 @@
7
9
 
8
10
  .MapSettingsTile {
9
11
  &:extend(.shadow-smooth);
12
+ border-radius: @border-radius-sm - 1;
10
13
  background: var(--color-white);
11
14
  cursor: pointer;
12
15
  padding: 3px;
13
16
 
14
17
  .map-type-night & {
15
- background: #444a4c;
18
+ background: @nightMapTileBackground;
16
19
  }
17
20
  }
18
21
 
@@ -48,9 +51,9 @@
48
51
  display: flex;
49
52
  flex-flow: row-reverse;
50
53
  align-items: flex-end;
54
+ user-select: none;
51
55
 
52
56
  .MapSettingsTile {
53
- &:extend(.shadow-smooth);
54
57
  display: flex;
55
58
  flex-flow: column-reverse;
56
59
  padding: 0;
@@ -61,17 +64,20 @@
61
64
  }
62
65
 
63
66
  .MapSettingsButton {
67
+ &:extend(.shadow-smooth);
68
+ border-radius: @border-radius-sm;
64
69
  background: var(--color-white);
65
70
  cursor: pointer;
66
71
  padding: 5px;
67
72
 
68
73
  .map-type-night & {
69
- background: #444a4c;
74
+ background: @nightMapTileBackground;
70
75
  }
71
76
  }
72
77
 
73
78
  .MapSettingsPanel {
74
79
  &:extend(.shadow-smooth);
80
+ border-radius: @border-radius-sm;
75
81
  background: var(--color-white);
76
82
  display: flex;
77
83
  flex-direction: column;
@@ -79,7 +85,7 @@
79
85
  padding: 5px;
80
86
 
81
87
  .map-type-night & {
82
- background: #444a4c;
88
+ background: @nightMapTileBackground;
83
89
  }
84
90
 
85
91
  .MapSettingsItem {
@@ -87,7 +93,7 @@
87
93
  cursor: pointer;
88
94
 
89
95
  .map-type-night & {
90
- background: #444a4c;
96
+ background: @nightMapTileBackground;
91
97
  }
92
98
  }
93
99
  }
@@ -124,33 +130,4 @@
124
130
  }
125
131
  }
126
132
  }
127
- }
128
-
129
- // // OLD
130
- // .MapSettings {
131
- // align-items: flex-end;
132
- // bottom: 15px;
133
- // display: flex;
134
- // flex-flow: column-reverse;
135
- // padding: 0;
136
- // position: absolute;
137
- // right: 47px;
138
- // z-index: 1;
139
-
140
- // @media (max-width: @screen-ls) {
141
- // right: 15px;
142
- // }
143
-
144
- // .MapSettingsPanel {
145
- // &:extend(.shadow-smooth);
146
- // background: var(--color-white);
147
- // display: flex;
148
- // margin-bottom: 10px;
149
-
150
- // .MapSettingsTile,
151
- // .MapSettingsButton {
152
- // cursor: pointer;
153
- // padding: 5px;
154
- // }
155
- // }
156
- // }
133
+ }
@@ -146,7 +146,7 @@
146
146
  }
147
147
 
148
148
  // Define style for 'diabled' state
149
- &:disabled + .radio-text {
149
+ &[disabled] + .radio-text {
150
150
  //color: var(--gray-light);
151
151
  opacity: 0.5;
152
152
  cursor: not-allowed;
@@ -16,7 +16,7 @@
16
16
  justify-content: space-between;
17
17
  width: 100%;
18
18
 
19
- &.disabled {
19
+ &:is(.disabled, [disabled]) {
20
20
  pointer-events: none;
21
21
  background: @input-bg-disabled;
22
22
 
@@ -50,12 +50,18 @@
50
50
  }
51
51
  }
52
52
 
53
- > span:first-child:not(.selected-option-list) {
53
+ .selected-option-text {
54
54
  display: block;
55
55
  margin-right: 5px;
56
56
  overflow: hidden;
57
57
  text-overflow: ellipsis;
58
58
  white-space: nowrap;
59
+ width: calc(~"100% - 24px");
60
+
61
+ .selected-option-text-label {
62
+ color: var(--gray-dark);
63
+ margin-right: 5px;
64
+ }
59
65
  }
60
66
 
61
67
  > .selected-option-list {
@@ -78,10 +84,10 @@
78
84
  }
79
85
 
80
86
  > .selected-label {
81
- background-color: @brand-primary;
87
+ background-color: var(--brand-primary);
82
88
  border-bottom-left-radius: @border-radius-sm;
83
89
  border-top-left-radius: @border-radius-sm;
84
- border: 1px solid @brand-primary;
90
+ border: 1px solid var(--brand-primary);
85
91
  padding: 0 4px;
86
92
  }
87
93
 
@@ -95,7 +101,7 @@
95
101
  transition: color 0.2ms ease-in-out;
96
102
 
97
103
  &:hover {
98
- background-color: @brand-primary;
104
+ background-color: var(--brand-primary);
99
105
  }
100
106
 
101
107
  > .rioglyph {
@@ -117,7 +123,11 @@
117
123
  padding: 0 12px;
118
124
  position: absolute;
119
125
  top: 1px;
120
- width: calc(~"100% - 30px");
126
+ width: calc(~"100% - 24px");
127
+
128
+ + .selected-option-text {
129
+ max-width: calc(~"100% - 24px");
130
+ }
121
131
 
122
132
  &-active {
123
133
  background-color: var(--color-white);
@@ -167,7 +177,7 @@
167
177
  > a.focus {
168
178
  text-decoration: none;
169
179
  color: var(--color-white);
170
- background-color: @brand-primary;
180
+ background-color: var(--brand-primary);
171
181
  }
172
182
 
173
183
  &.active {
@@ -228,8 +238,6 @@ select {
228
238
 
229
239
  // disable default appearance
230
240
  outline: none;
231
- -moz-appearance: none;
232
- -webkit-appearance: none;
233
241
  appearance: none;
234
242
 
235
243
  &::-ms-expand { display: none };
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  &Body {
58
- -webkit-overflow-scrolling: touch;
58
+ // -webkit-overflow-scrolling: touch; // TODO remove when cleanup
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  flex: 1 1 auto;
@@ -195,7 +195,7 @@
195
195
  top: 7px;
196
196
  }
197
197
 
198
- &.disabled {
198
+ &:is(.disabled, [disabled]) {
199
199
  cursor: not-allowed;
200
200
 
201
201
  input[type="range"] {
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  &.active,
39
- &.disabled {
39
+ &:is(.disabled, [disabled]) {
40
40
  pointer-events: none;
41
41
  pointer-events: none;
42
42
  }
@@ -134,7 +134,7 @@
134
134
  }
135
135
  }
136
136
 
137
- &.disabled {
137
+ &:is(.disabled, [disabled]) {
138
138
  border-color: var(--gray);
139
139
  background-color: var(--color-white);
140
140
 
@@ -183,7 +183,7 @@
183
183
  border-color: var(--brand-primary);
184
184
  }
185
185
 
186
- &.disabled {
186
+ &:is(.disabled, [disabled]) {
187
187
  background-color: var(--gray-lightest);
188
188
  color: var(--gray);
189
189
  }
@@ -231,7 +231,7 @@
231
231
  font-weight: @font-medium;
232
232
  }
233
233
 
234
- &.disabled {
234
+ &:is(.disabled, [disabled]) {
235
235
  border-color: var(--gray);
236
236
  background-color: var(--color-white);
237
237
  color: var(--gray);
@@ -1,10 +1,10 @@
1
1
  .support-marker {
2
2
  html.show-support-marker & {
3
- box-shadow: 0px 0px 0px 2px @brand-info;
3
+ box-shadow: 0px 0px 0px 2px var(--brand-info);
4
4
  position: relative;
5
5
 
6
6
  &:before {
7
- background-color: @brand-info;
7
+ background-color: var(--brand-info);
8
8
  color: var(--color-white);
9
9
  content: attr(data-support);
10
10
  display: block;
@@ -62,7 +62,7 @@
62
62
  }
63
63
  }
64
64
 
65
- &:disabled {
65
+ &[disabled] {
66
66
  pointer-events: none;
67
67
 
68
68
  + .switch-content {
@@ -12,6 +12,7 @@ table > thead > tr > th {
12
12
  white-space: nowrap;
13
13
  }
14
14
 
15
+ @sortArrowColor: escape('@{gray-dark}');
15
16
  .sort-arrows {
16
17
  display: inline-block;
17
18
  height: 14px;
@@ -22,7 +23,7 @@ table > thead > tr > th {
22
23
 
23
24
  &:before,
24
25
  &:after {
25
- background-image: url(~"data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.362%22%20height%3D%22292.362%22%3E%3Cpath%20d%3D%22M286.935%2069.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952%200-9.233%201.807-12.85%205.424C1.807%2072.998%200%2077.279%200%2082.228c0%204.948%201.807%209.229%205.424%2012.847l127.907%20127.907c3.621%203.617%207.902%205.428%2012.85%205.428s9.233-1.811%2012.847-5.428L286.935%2095.074c3.613-3.617%205.427-7.898%205.427-12.847%200-4.948-1.814-9.229-5.427-12.85z%22%2F%3E%3C%2Fsvg%3E%0A%0A%0A%0A");
26
+ background-image: url(~"data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.362%22%20height%3D%22292.362%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E.arrow%7Bfill%3A@{sortArrowColor}%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22arrow%22%20d%3D%22M286.935%2069.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952%200-9.233%201.807-12.85%205.424C1.807%2072.998%200%2077.279%200%2082.228c0%204.948%201.807%209.229%205.424%2012.847l127.907%20127.907c3.621%203.617%207.902%205.428%2012.85%205.428s9.233-1.811%2012.847-5.428L286.935%2095.074c3.613-3.617%205.427-7.898%205.427-12.847%200-4.948-1.814-9.229-5.427-12.85z%22%2F%3E%3C%2Fsvg%3E%0A%0A%0A%0A");
26
27
  background-size: 100%;
27
28
  content: "";
28
29
  display: block;
@@ -50,7 +50,7 @@
50
50
  }
51
51
  }
52
52
 
53
- &.disabled {
53
+ &:is(.disabled, [disabled]) {
54
54
  border-color: var(--gray);
55
55
  background-color: var(--gray-light);
56
56
  opacity: .5;
@@ -81,8 +81,8 @@
81
81
 
82
82
  &.active {
83
83
  background-color: .hsla(@brand-primary-hsl, 0.2)[@result];
84
- border-color: @brand-primary;
85
- color: @brand-primary;
84
+ border-color: var(--brand-primary);
85
+ color: var(--brand-primary);
86
86
 
87
87
  &:hover {
88
88
  background-color: .hsla(@brand-primary-hsl, 0.3)[@result];
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  &:hover:before {
104
- color: @brand-danger;
104
+ color: var(--brand-danger);
105
105
  }
106
106
  }
107
107
 
@@ -113,7 +113,7 @@
113
113
 
114
114
  &.deletable {
115
115
  &:hover:before {
116
- color: @brand-danger;
116
+ color: var(--brand-danger);
117
117
  content: @rioglyph-trash;
118
118
  }
119
119
  }
@@ -2,6 +2,14 @@
2
2
  .timeline-date {
3
3
  position: relative;
4
4
  color: var(--gray-dark);
5
+ isolation: isolate;
6
+
7
+ &:after {
8
+ background: var(--gray-light);
9
+ content: "";
10
+ position: absolute;
11
+ z-index: -1;
12
+ }
5
13
  }
6
14
 
7
15
  .timeline-content {
@@ -22,12 +30,9 @@
22
30
  margin-right: 15px;
23
31
  white-space: nowrap;
24
32
 
25
- &:before {
26
- background: var(--gray-light);
33
+ &:after {
27
34
  bottom: 5px;
28
- content: "";
29
35
  left: 50%;
30
- position: absolute;
31
36
  top: 25px;
32
37
  width: 2px;
33
38
  }
@@ -50,12 +55,9 @@
50
55
  .timeline-date {
51
56
  padding-top: 60px;
52
57
 
53
- &:before {
54
- background: var(--gray-light);
58
+ &:after {
55
59
  top: 20px;
56
- content: "";
57
60
  left: 50%;
58
- position: absolute;
59
61
  height: 30px;
60
62
  width: 2px;
61
63
  }
@@ -5,10 +5,7 @@
5
5
  position: relative;
6
6
 
7
7
  // Bring the "active" button to the front
8
- &:hover,
9
- &:focus,
10
- &:active,
11
- &.active {
8
+ &:is(:hover, :active, .active, :focus) {
12
9
  z-index: 2;
13
10
  }
14
11
  }