@rio-cloud/rio-uikit 0.16.1 → 0.16.2-beta.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 (241) hide show
  1. package/ColorScheme.d.ts +4 -0
  2. package/ColorScheme.js +2 -0
  3. package/Colors.js +1 -1
  4. package/TruckLayer.js +1 -1
  5. package/components/assetTree/Tree.js +1 -1
  6. package/components/charts/chartHelper.js +1 -1
  7. package/components/map/components/Map.js +147 -130
  8. package/components/map/components/constants.js +4 -1
  9. package/components/map/components/features/layers/RoadRestrictionLayer.js +26 -0
  10. package/components/map/components/features/layers/TrafficLayer.js +19 -6
  11. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +20 -0
  12. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +14 -0
  13. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -17
  14. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -17
  15. package/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -17
  16. package/components/map/components/features/layers/baselayers/useBaseLayer.js +41 -0
  17. package/components/map/components/mapUtils.js +4 -1
  18. package/components/mapMarker/ClusterMapMarker.js +2 -2
  19. package/components/mapMarker/SingleMapMarker.js +2 -2
  20. package/components/sidebars/Sidebar.js +2 -2
  21. package/hooks/useHereMap.ts +23 -0
  22. package/hooks/useScripts.ts +52 -0
  23. package/hooks/useScrollPosition.js +72 -0
  24. package/index.js +4 -1
  25. package/lib/es/ColorScheme.d.ts +4 -0
  26. package/lib/es/ColorScheme.js +18 -0
  27. package/lib/es/Colors.js +1 -1
  28. package/lib/es/TruckLayer.js +2 -2
  29. package/lib/es/components/assetTree/Tree.js +1 -1
  30. package/lib/es/components/charts/chartHelper.js +1 -1
  31. package/lib/es/components/map/components/Map.js +145 -125
  32. package/lib/es/components/map/components/constants.js +3 -0
  33. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +34 -0
  34. package/lib/es/components/map/components/features/layers/TrafficLayer.js +18 -6
  35. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +26 -0
  36. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +21 -0
  37. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -18
  38. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -18
  39. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -18
  40. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +49 -0
  41. package/lib/es/components/map/components/mapUtils.js +6 -3
  42. package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
  43. package/lib/es/components/mapMarker/SingleMapMarker.js +2 -2
  44. package/lib/es/components/sidebars/Sidebar.js +2 -2
  45. package/lib/es/hooks/useHereMap.ts +23 -0
  46. package/lib/es/hooks/useScripts.ts +52 -0
  47. package/lib/es/hooks/useScrollPosition.js +80 -0
  48. package/lib/es/index.js +24 -1
  49. package/lib/es/mapIndex.js +2 -2
  50. package/lib/es/styles/components/Activity.less +9 -10
  51. package/lib/es/styles/components/ApplicationHeader.less +24 -29
  52. package/lib/es/styles/components/ApplicationLayout.less +7 -7
  53. package/lib/es/styles/components/AssetTree.less +30 -28
  54. package/lib/es/styles/components/AutoSuggest.less +2 -2
  55. package/lib/es/styles/components/BottomSheet.less +1 -2
  56. package/lib/es/styles/components/Carousel.less +13 -9
  57. package/lib/es/styles/components/Checkbox.less +15 -16
  58. package/lib/es/styles/components/ClearableInput.less +3 -3
  59. package/lib/es/styles/components/Counter.less +12 -12
  60. package/lib/es/styles/components/DataTabs.less +2 -2
  61. package/lib/es/styles/components/DatePicker.less +27 -27
  62. package/lib/es/styles/components/Dialog.less +15 -11
  63. package/lib/es/styles/components/Dropdown.less +11 -11
  64. package/lib/es/styles/components/Expander.less +7 -7
  65. package/lib/es/styles/components/ListMenu.less +8 -8
  66. package/lib/es/styles/components/MapHere.less +3 -2
  67. package/lib/es/styles/components/MapMarker.less +16 -17
  68. package/lib/es/styles/components/MapSettings.less +5 -5
  69. package/lib/es/styles/components/NoData.less +1 -1
  70. package/lib/es/styles/components/Notification.less +12 -12
  71. package/lib/es/styles/components/RadioButton.less +11 -12
  72. package/lib/es/styles/components/Resizer.less +1 -1
  73. package/lib/es/styles/components/Select.less +16 -26
  74. package/lib/es/styles/components/Sidebar.less +29 -21
  75. package/lib/es/styles/components/Slider.less +18 -18
  76. package/lib/es/styles/components/Spinner.less +6 -6
  77. package/lib/es/styles/components/StatsWidget.less +5 -5
  78. package/lib/es/styles/components/SteppedProgressBar.less +32 -29
  79. package/lib/es/styles/components/SupportMarker.less +1 -1
  80. package/lib/es/styles/components/Switch.less +8 -8
  81. package/lib/es/styles/components/TableSettingsDialog.less +7 -7
  82. package/lib/es/styles/components/TableToolbar.less +1 -1
  83. package/lib/es/styles/components/Tag.less +10 -10
  84. package/lib/es/styles/components/Timeline.less +3 -3
  85. package/lib/es/styles/components/Tooltip.less +10 -10
  86. package/lib/es/styles/design/badges.less +10 -10
  87. package/lib/es/styles/design/border.less +1 -1
  88. package/lib/es/styles/design/breadcrumbs.less +2 -2
  89. package/lib/es/styles/design/button-groups.less +25 -1
  90. package/lib/es/styles/design/buttons.less +53 -109
  91. package/lib/es/styles/design/callouts.less +3 -3
  92. package/lib/es/styles/design/code.less +4 -6
  93. package/lib/es/styles/design/colors.less +20 -20
  94. package/lib/es/styles/design/form-input-groups.less +4 -4
  95. package/lib/es/styles/design/form-inputs.less +33 -31
  96. package/lib/es/styles/design/images.less +2 -2
  97. package/lib/es/styles/design/labels.less +11 -11
  98. package/lib/es/styles/design/list-group.less +14 -12
  99. package/lib/es/styles/design/navs.less +27 -27
  100. package/lib/es/styles/design/normalize.less +0 -9
  101. package/lib/es/styles/design/pagination.less +10 -10
  102. package/lib/es/styles/design/panels.less +10 -10
  103. package/lib/es/styles/design/popovers.less +8 -8
  104. package/lib/es/styles/design/progress-bars.less +8 -8
  105. package/lib/es/styles/design/shadows.less +14 -7
  106. package/lib/es/styles/design/tables.less +68 -106
  107. package/lib/es/styles/design/text.less +5 -19
  108. package/lib/es/styles/design/theme.less +10 -10
  109. package/lib/es/styles/design/thumbnails.less +2 -2
  110. package/lib/es/styles/design/type.less +4 -4
  111. package/lib/es/styles/design/wells.less +1 -1
  112. package/lib/es/styles/mapping/color-map.less +65 -64
  113. package/lib/es/styles/mixins/_imports.less +14 -0
  114. package/lib/es/styles/mixins/buttons.less +24 -56
  115. package/lib/es/styles/mixins/forms.less +19 -55
  116. package/lib/es/styles/mixins/hsl.less +19 -0
  117. package/lib/es/styles/mixins/panels.less +2 -2
  118. package/lib/es/styles/print/print.less +7 -7
  119. package/lib/es/styles/rio-uikit-core.less +2 -2
  120. package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
  121. package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
  122. package/lib/es/styles/variables/_index.less +196 -0
  123. package/lib/es/styles/variables/colors.json +67 -0
  124. package/lib/es/styles/variables/concated_css_variables.less +66 -0
  125. package/lib/es/styles/variables/dark_colors.less +88 -0
  126. package/lib/es/styles/variables/dark_css_variables.less +28 -0
  127. package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
  128. package/lib/es/styles/variables/light_colors.less +92 -0
  129. package/lib/es/styles/variables/light_css_variables.less +17 -0
  130. package/lib/es/styles/variables/light_css_variables_map.less +100 -0
  131. package/lib/es/styles/variables/screens.less +7 -0
  132. package/lib/es/styles/variables/text.less +23 -0
  133. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
  134. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  135. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  136. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
  137. package/lib/es/themes/Website/styles/rio-website.less +145 -120
  138. package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
  139. package/lib/es/types.ts +6 -1
  140. package/lib/es/useScrollPosition.d.ts +4 -0
  141. package/lib/es/useScrollPosition.js +13 -0
  142. package/lib/es/utils/colorScheme.js +59 -0
  143. package/lib/es/utils/init.js +2 -0
  144. package/lib/es/version.json +1 -1
  145. package/mapIndex.js +1 -1
  146. package/package.json +4 -3
  147. package/styles/components/Activity.less +9 -10
  148. package/styles/components/ApplicationHeader.less +24 -29
  149. package/styles/components/ApplicationLayout.less +7 -7
  150. package/styles/components/AssetTree.less +30 -28
  151. package/styles/components/AutoSuggest.less +2 -2
  152. package/styles/components/BottomSheet.less +1 -2
  153. package/styles/components/Carousel.less +13 -9
  154. package/styles/components/Checkbox.less +15 -16
  155. package/styles/components/ClearableInput.less +3 -3
  156. package/styles/components/Counter.less +12 -12
  157. package/styles/components/DataTabs.less +2 -2
  158. package/styles/components/DatePicker.less +27 -27
  159. package/styles/components/Dialog.less +15 -11
  160. package/styles/components/Dropdown.less +11 -11
  161. package/styles/components/Expander.less +7 -7
  162. package/styles/components/ListMenu.less +8 -8
  163. package/styles/components/MapHere.less +3 -2
  164. package/styles/components/MapMarker.less +16 -17
  165. package/styles/components/MapSettings.less +5 -5
  166. package/styles/components/NoData.less +1 -1
  167. package/styles/components/Notification.less +12 -12
  168. package/styles/components/RadioButton.less +11 -12
  169. package/styles/components/Resizer.less +1 -1
  170. package/styles/components/Select.less +16 -26
  171. package/styles/components/Sidebar.less +29 -21
  172. package/styles/components/Slider.less +18 -18
  173. package/styles/components/Spinner.less +6 -6
  174. package/styles/components/StatsWidget.less +5 -5
  175. package/styles/components/SteppedProgressBar.less +32 -29
  176. package/styles/components/SupportMarker.less +1 -1
  177. package/styles/components/Switch.less +8 -8
  178. package/styles/components/TableSettingsDialog.less +7 -7
  179. package/styles/components/TableToolbar.less +1 -1
  180. package/styles/components/Tag.less +10 -10
  181. package/styles/components/Timeline.less +3 -3
  182. package/styles/components/Tooltip.less +10 -10
  183. package/styles/design/badges.less +10 -10
  184. package/styles/design/border.less +1 -1
  185. package/styles/design/breadcrumbs.less +2 -2
  186. package/styles/design/button-groups.less +25 -1
  187. package/styles/design/buttons.less +53 -109
  188. package/styles/design/callouts.less +3 -3
  189. package/styles/design/code.less +4 -6
  190. package/styles/design/colors.less +20 -20
  191. package/styles/design/form-input-groups.less +4 -4
  192. package/styles/design/form-inputs.less +33 -31
  193. package/styles/design/images.less +2 -2
  194. package/styles/design/labels.less +11 -11
  195. package/styles/design/list-group.less +14 -12
  196. package/styles/design/navs.less +27 -27
  197. package/styles/design/normalize.less +0 -9
  198. package/styles/design/pagination.less +10 -10
  199. package/styles/design/panels.less +10 -10
  200. package/styles/design/popovers.less +8 -8
  201. package/styles/design/progress-bars.less +8 -8
  202. package/styles/design/shadows.less +14 -7
  203. package/styles/design/tables.less +68 -106
  204. package/styles/design/text.less +5 -19
  205. package/styles/design/theme.less +10 -10
  206. package/styles/design/thumbnails.less +2 -2
  207. package/styles/design/type.less +4 -4
  208. package/styles/design/wells.less +1 -1
  209. package/styles/mapping/color-map.less +65 -64
  210. package/styles/mixins/_imports.less +14 -0
  211. package/styles/mixins/buttons.less +24 -56
  212. package/styles/mixins/forms.less +19 -55
  213. package/styles/mixins/hsl.less +19 -0
  214. package/styles/mixins/panels.less +2 -2
  215. package/styles/print/print.less +7 -7
  216. package/styles/rio-uikit-core.less +2 -2
  217. package/styles/rio-uikit-print-utilities.less +2 -2
  218. package/styles/rio-uikit-responsive-utilities.less +2 -2
  219. package/styles/variables/_index.less +196 -0
  220. package/styles/variables/colors.json +67 -0
  221. package/styles/variables/concated_css_variables.less +66 -0
  222. package/styles/variables/dark_colors.less +88 -0
  223. package/styles/variables/dark_css_variables.less +28 -0
  224. package/styles/variables/dark_css_variables_map.less +96 -0
  225. package/styles/variables/light_colors.less +92 -0
  226. package/styles/variables/light_css_variables.less +17 -0
  227. package/styles/variables/light_css_variables_map.less +100 -0
  228. package/styles/variables/screens.less +7 -0
  229. package/styles/variables/text.less +23 -0
  230. package/themes/BuyButton/styles/rio-buyButton.less +13 -8
  231. package/themes/MAN/styles/man-uikit.less +3 -0
  232. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  233. package/themes/Volkswagen/styles/vw-uikit.less +21 -30
  234. package/themes/Website/styles/rio-website.less +145 -120
  235. package/themes/Xmas/styles/rio-xmas.less +59 -29
  236. package/types.ts +6 -1
  237. package/useScrollPosition.d.ts +4 -0
  238. package/useScrollPosition.js +2 -0
  239. package/utils/colorScheme.js +50 -0
  240. package/utils/init.js +2 -0
  241. package/version.json +1 -1
@@ -1,21 +1,21 @@
1
- .bg-muted, .hover-bg-muted:hover { background-color: @gray-lighter !important }
2
- .bg-default, .hover-bg-default:hover { background-color: @gray-dark !important }
1
+ .bg-muted, .hover-bg-muted:hover { background-color: var(--gray-lighter) !important }
2
+ .bg-default, .hover-bg-default:hover { background-color: var(--gray-dark) !important }
3
3
 
4
4
  // white
5
5
  // black
6
- .bg-white, .hover-bg-white:hover { background-color: @color-white !important }
7
- .fill-white { fill: @color-white !important }
6
+ .bg-white, .hover-bg-white:hover { background-color: var(--color-white) !important }
7
+ .fill-white { fill: var(--color-white) !important }
8
8
 
9
- .bg-black, .hover-bg-black:hover { background-color: @color-black !important }
10
- .fill-black { fill: @color-black !important }
11
- .bg-black { color: @color-white !important }
9
+ .bg-black, .hover-bg-black:hover { background-color: var(--color-black) !important }
10
+ .fill-black { fill: var(--color-black) !important }
11
+ .bg-black { color: var(--color-white) !important }
12
12
 
13
13
 
14
14
  // primary
15
15
  // secondary
16
16
  each(@colors-brand-map, {
17
17
  .bg-@{key} {
18
- color: @color-white !important;
18
+ color: var(--color-white) !important;
19
19
  background-color: @value !important;
20
20
  }
21
21
  .hover-bg-@{key}:hover {
@@ -32,7 +32,7 @@ each(@colors-brand-map, {
32
32
  // danger
33
33
  each(@colors-status-map, {
34
34
  .bg-@{key} {
35
- color: @color-white !important;
35
+ color: var(--color-white) !important;
36
36
  background-color: @value !important;
37
37
  }
38
38
  .hover-bg-@{key}:hover {
@@ -52,7 +52,7 @@ each(@colors-status-map, {
52
52
  // lightest
53
53
  each(@colors-gray-map, {
54
54
  .bg-@{key} {
55
- color: @gray-darkest !important;
55
+ color: var(--gray-darkest) !important;
56
56
  background-color: @value !important;
57
57
  }
58
58
  .hover-bg-@{key}:hover {
@@ -64,7 +64,7 @@ each(@colors-gray-map, {
64
64
  })
65
65
  .bg-dark,
66
66
  .bg-darker,
67
- .bg-darkest { color: @color-white !important }
67
+ .bg-darkest { color: var(--color-white) !important }
68
68
 
69
69
  // map-marker-asset
70
70
  // map-marker-poi
@@ -72,7 +72,7 @@ each(@colors-gray-map, {
72
72
  // map-marker-route
73
73
  each(@colors-map-marker-map, {
74
74
  .bg-@{key} {
75
- color: @color-white !important;
75
+ color: var(--color-white) !important;
76
76
  background-color: @value !important;
77
77
  }
78
78
  .hover-bg-@{key}:hover {
@@ -90,7 +90,7 @@ each(@colors-map-marker-map, {
90
90
  // rating-5
91
91
  each(@colors-rating-map, {
92
92
  .bg-@{key} {
93
- color: @color-white !important;
93
+ color: var(--color-white) !important;
94
94
  background-color: @value !important;
95
95
  }
96
96
  .hover-bg-@{key}:hover {
@@ -107,7 +107,7 @@ each(@colors-rating-map, {
107
107
  // status-working
108
108
  each(@colors-driving-status-map, {
109
109
  .bg-@{key} {
110
- color: @color-white !important;
110
+ color: var(--color-white) !important;
111
111
  background-color: @value !important;
112
112
  }
113
113
  .hover-bg-@{key}:hover {
@@ -128,7 +128,7 @@ each(@colors-driving-status-map, {
128
128
  // highlight-decent
129
129
  each(@colors-highlight-map, {
130
130
  .bg-@{key} {
131
- color: @gray-darkest !important;
131
+ color: var(--gray-darkest) !important;
132
132
  background-color: @value !important;
133
133
  }
134
134
  .hover-bg-@{key}:hover {
@@ -141,7 +141,7 @@ each(@colors-highlight-map, {
141
141
  .bg-highlight,
142
142
  .bg-highlight-dark,
143
143
  .bg-highlight-darker,
144
- .bg-highlight-darkest { color: @color-white !important }
144
+ .bg-highlight-darkest { color: var(--color-white) !important }
145
145
 
146
146
  // coldplay-wine
147
147
  // coldplay-aubergine
@@ -155,7 +155,7 @@ each(@colors-highlight-map, {
155
155
  & when (@buildColdplayColors = true) {
156
156
  each(@colors-coldplay-map, {
157
157
  .bg-@{key} {
158
- color: @gray-darkest !important;
158
+ color: var(--gray-darkest) !important;
159
159
  background-color: @value !important;
160
160
  }
161
161
  .hover-bg-@{key}:hover {
@@ -168,7 +168,7 @@ each(@colors-highlight-map, {
168
168
  .bg-coldplay-wine,
169
169
  .bg-coldplay-aubergine,
170
170
  .bg-coldplay-kashmir,
171
- .bg-coldplay-fountain { color: @color-white !important }
171
+ .bg-coldplay-fountain { color: var(--color-white) !important }
172
172
  }
173
173
 
174
174
  // warmup-crimson
@@ -183,7 +183,7 @@ each(@colors-highlight-map, {
183
183
  & when (@buildWarmupColors = true) {
184
184
  each(@colors-warmup-map, {
185
185
  .bg-@{key} {
186
- color: @gray-darkest !important;
186
+ color: var(--gray-darkest) !important;
187
187
  background-color: @value !important;
188
188
  }
189
189
  .hover-bg-@{key}:hover {
@@ -198,5 +198,5 @@ each(@colors-highlight-map, {
198
198
  .bg-warmup-cadillac,
199
199
  .bg-warmup-raspberry,
200
200
  .bg-warmup-cerise,
201
- .bg-warmup-charm { color: @color-white !important }
201
+ .bg-warmup-charm { color: var(--color-white) !important }
202
202
  }
@@ -1,4 +1,4 @@
1
- @input-group-addon-bg: @color-white;
1
+ @input-group-addon-bg: var(--color-white);
2
2
  @input-group-addon-border-color: @input-border;
3
3
 
4
4
  .input-group {
@@ -32,7 +32,7 @@
32
32
  align-items: center;
33
33
  background-color: @input-group-addon-bg;
34
34
  border: 1px solid @input-group-addon-border-color;
35
- color: @gray-dark;
35
+ color: var(--gray-dark);
36
36
  display: flex;
37
37
  justify-content: center;
38
38
  width: auto;
@@ -47,7 +47,7 @@
47
47
 
48
48
  &.input-group-addon-label {
49
49
  text-transform: uppercase;
50
- background-color: @gray-lightest;
50
+ background-color: var(--gray-lightest);
51
51
  }
52
52
 
53
53
  &:first-child {
@@ -107,7 +107,7 @@
107
107
  }
108
108
 
109
109
  > .rioglyph {
110
- color: lighten(@gray-dark, 5%);
110
+ color: .hslb(@gray-dark-hsl, '+', '5%')[@result];
111
111
  font-size: 18px;
112
112
  }
113
113
  }
@@ -1,14 +1,14 @@
1
- @input-bg: @color-white;
2
- @input-bg-disabled: rgba(229, 235, 240, 0.4); //40% @gray-lighter;
3
- @input-color: @gray-darker;
4
- @input-border: @gray;
5
- @input-border-focus: @brand-primary;
6
- @input-color-placeholder: @gray;
1
+ @input-bg: var(--color-white);
2
+ @input-bg-disabled: var(--gray-lightest);
3
+ @input-color: var(--gray-darker);
4
+ @input-border: var(--gray);
5
+ @input-border-focus: var(--brand-primary);
6
+ @input-color-placeholder: var(--gray);
7
7
  @input-height-base: (@grid-gutter-height + (@padding-default-vertical * 2) + 2);
8
8
  @input-height-lg: (floor(@font-size-lg * @line-height-lg) + (@padding-lg-vertical * 2) + 2);
9
9
  @input-height-sm: (floor(@font-size-sm * @line-height-sm) + (@padding-sm-vertical * 2) + 2);
10
- @legend-color: @gray-dark;
11
- @legend-border-color: #e5e5e5;
10
+ @legend-color: var(--gray-dark);
11
+ @legend-border-color: var(--gray-light);
12
12
 
13
13
  fieldset {
14
14
  padding: 0;
@@ -18,15 +18,15 @@ fieldset {
18
18
  }
19
19
 
20
20
  legend {
21
+ border-bottom: 1px solid @legend-border-color;
22
+ color: @legend-color;
21
23
  display: block;
22
- width: 100%;
23
- padding: 0;
24
- margin-bottom: @grid-gutter-height;
25
- font-size: (@font-size-default * 1.5);
24
+ font-size: (@font-size-default * 1.2);
25
+ font-weight: 300;
26
26
  line-height: inherit;
27
- color: @legend-color;
28
- border: 0;
29
- border-bottom: 1px solid @legend-border-color;
27
+ margin-bottom: @grid-gutter-height * 2;
28
+ width: 100%;
29
+ padding-bottom: @grid-gutter-height * 0.5;
30
30
  }
31
31
 
32
32
  label {
@@ -116,7 +116,7 @@ select {
116
116
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
117
117
  border: 1px solid @input-border;
118
118
  border-radius: @border-radius-default; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
119
- box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
119
+ box-shadow:inset 0 1px 1px .hsla(@always-color-black-hsl, 0.075)[@result];
120
120
  transition:border-color ease-in-out .15s~","box-shadow ease-in-out .15s;
121
121
 
122
122
  .form-control-focus();
@@ -289,13 +289,13 @@ input[type="checkbox"] {
289
289
  display: block; // account for any element using help-block
290
290
  margin-top: 5px;
291
291
  margin-bottom: 10px;
292
- color: lighten(@text-color, 25%); // lighten the text some for contrast
292
+ color: .hslb(@gray-darkest-hsl, '+', '25%')[@result];
293
293
  }
294
294
 
295
295
  .default-label(@label-font-size) {
296
296
  font-size: @label-font-size;
297
297
  font-weight: normal;
298
- color: @gray-dark;
298
+ color: var(--gray-dark);
299
299
  }
300
300
 
301
301
  // define default styling for labels
@@ -325,7 +325,7 @@ label .checkbox-text {
325
325
  label {
326
326
  .radio-text,
327
327
  .checkbox-text {
328
- color: @gray-darkest;
328
+ color: var(--gray-darkest);
329
329
  font-size: @font-size-14;
330
330
  }
331
331
  }
@@ -339,7 +339,7 @@ label .checkbox-text {
339
339
  label {
340
340
  .radio-text,
341
341
  .checkbox-text {
342
- color: @gray-darkest;
342
+ color: var(--gray-darkest);
343
343
  font-size: @font-size-16;
344
344
  }
345
345
  }
@@ -354,7 +354,7 @@ label .checkbox-text {
354
354
  label {
355
355
  .radio-text,
356
356
  .checkbox-text {
357
- color: @gray-darkest;
357
+ color: var(--gray-darkest);
358
358
  font-size: @font-size-12;
359
359
  }
360
360
  }
@@ -452,13 +452,13 @@ label .checkbox-text {
452
452
  &.has-@{key} {
453
453
  .help-block {
454
454
  background: @value;
455
- color: @color-white;
455
+ color: var(--color-white);
456
456
  }
457
457
 
458
458
  .form-control {
459
459
  &:focus {
460
460
  ~ .help-block {
461
- background: @gray-lightest;
461
+ background: var(--gray-lightest);
462
462
  color: @value;
463
463
  }
464
464
  }
@@ -495,7 +495,7 @@ label .checkbox-text {
495
495
  .has-warning > .control-label,
496
496
  .has-error > .control-label,
497
497
  .has-success > .control-label {
498
- color: @gray-dark;
498
+ color: var(--gray-dark);
499
499
  }
500
500
 
501
501
  .form-control {
@@ -512,7 +512,7 @@ label .checkbox-text {
512
512
 
513
513
  &[disabled] {
514
514
  + .input-group-addon:last-child {
515
- background: #f5f7f9; // because @input-bg-disabled has alpha...
515
+ background: @input-bg-disabled; // because @input-bg-disabled has alpha...
516
516
  cursor: not-allowed;
517
517
  }
518
518
  }
@@ -526,16 +526,18 @@ label .checkbox-text {
526
526
  z-index: 3;
527
527
 
528
528
  .form-group.has-error & {
529
- border-color: darken(@brand-danger, 10%);
530
- box-shadow: 1px 0 0 0 darken(@brand-danger, 10%);
529
+ border-color: .hslb(@brand-danger-hsl, '-', '10%')[@result];
530
+ box-shadow: .hslb(@brand-danger-hsl, '-', '10%')[@result];
531
531
  }
532
+
532
533
  .form-group.has-warning & {
533
- border-color: darken(@brand-warning, 10%);
534
- box-shadow: 1px 0 0 0 darken(@brand-warning, 10%);
534
+ border-color: .hslb(@brand-warning-hsl, '-', '10%')[@result];
535
+ box-shadow: .hslb(@brand-warning-hsl, '-', '10%')[@result];
535
536
  }
537
+
536
538
  .form-group.has-success & {
537
- border-color: darken(@brand-success, 10%);
538
- box-shadow: 1px 0 0 0 darken(@brand-success, 10%);
539
+ border-color: .hslb(@brand-success-hsl, '-', '10%')[@result];
540
+ box-shadow: .hslb(@brand-success-hsl, '-', '10%')[@result];
539
541
  }
540
542
  }
541
543
  }
@@ -29,8 +29,8 @@ img {
29
29
  .img-thumbnail {
30
30
  padding: 0;
31
31
  line-height: @line-height-default;
32
- background-color: @color-white;
33
- border: 1px solid @gray-light;
32
+ background-color: var(--color-white);
33
+ border: 1px solid var(--gray-light);
34
34
  border-radius: @border-radius-default;
35
35
  transition:all .2s ease-in-out;
36
36
 
@@ -3,7 +3,7 @@
3
3
  border-radius: @border-radius-sm;
4
4
  border-style: solid;
5
5
  border-width: 1px;
6
- color: @color-white;
6
+ color: var(--color-white);
7
7
  display: inline-block;
8
8
  font-size: 75%;
9
9
  font-weight: @font-medium;
@@ -32,23 +32,23 @@
32
32
  // danger
33
33
 
34
34
  &-default {
35
- color: @gray-dark;
35
+ color: var(--gray-dark);
36
36
 
37
37
  &.label-filled {
38
- color: @color-white;
39
- border-color: @gray-dark;
40
- background-color: @gray-dark;
38
+ color: var(--color-white);
39
+ border-color: var(--gray-dark);
40
+ background-color: var(--gray-dark);
41
41
  }
42
42
  }
43
43
 
44
44
  &-muted {
45
- color: @gray;
46
- border-color: @gray-light;
45
+ color: var(--gray);
46
+ border-color: var(--gray-light);
47
47
 
48
48
  &.label-filled {
49
- color: @gray-dark;
50
- border-color: @gray-light;
51
- background-color: @gray-lightest;
49
+ color: var(--gray-dark);
50
+ border-color: var(--gray-light);
51
+ background-color: var(--gray-lightest);
52
52
  }
53
53
  }
54
54
 
@@ -57,7 +57,7 @@
57
57
  color: @value;
58
58
 
59
59
  &.label-filled {
60
- color: @color-white;
60
+ color: var(--color-white);
61
61
  border-color: @value;
62
62
  background-color: @value;
63
63
  }
@@ -1,11 +1,13 @@
1
+ @list-group-item-hover-bg: var(--gray-lightest);
2
+
1
3
  .list-group {
2
4
  .reset-list();
3
5
  margin-bottom: 20px;
4
6
  }
5
7
 
6
8
  .list-group-item {
7
- background-color: @color-white;
8
- border: 1px solid @gray-light;
9
+ background-color: var(--color-white);
10
+ border: 1px solid var(--gray-light);
9
11
  display: block;
10
12
  margin-bottom: -1px;
11
13
  padding: 10px 15px;
@@ -31,17 +33,17 @@
31
33
  &.disabled,
32
34
  &.disabled:hover,
33
35
  &.disabled:focus {
34
- background-color: @gray-lighter;
35
- color: @gray-light;
36
+ background-color: var(--gray-lighter);
37
+ color: var(--gray-light);
36
38
  cursor: not-allowed;
37
39
  }
38
40
 
39
41
  &.active,
40
42
  &.active:hover,
41
43
  &.active:focus {
42
- background-color: @brand-primary;
43
- border-color: @brand-primary;
44
- color: @color-white;
44
+ background-color: var(--brand-primary);
45
+ border-color: var(--brand-primary);
46
+ color: var(--color-white);
45
47
  z-index: 2;
46
48
  }
47
49
 
@@ -49,12 +51,12 @@
49
51
  button&,
50
52
  &.list-group-item-link {
51
53
  cursor: pointer;
52
- color: @gray-darkest;
54
+ color: var(--gray-darkest);
53
55
 
54
56
  &:hover,
55
57
  &:focus {
56
- background-color: @gray-lightest;
57
- color: @gray-darkest;
58
+ background-color: @list-group-item-hover-bg;
59
+ color: var(--gray-darkest);
58
60
  text-decoration: none;
59
61
  }
60
62
  }
@@ -67,7 +69,7 @@
67
69
  // warning
68
70
  // danger
69
71
  &-default {
70
- box-shadow: inset 5px 0 0 0 @gray;
72
+ box-shadow: inset 5px 0 0 0 var(--gray);
71
73
  }
72
74
 
73
75
  each(@colors-brand-and-status-map, {
@@ -94,7 +96,7 @@
94
96
  &.active,
95
97
  &.active:hover,
96
98
  &.active:focus {
97
- color: @color-white;
99
+ color: var(--color-white);
98
100
  background-color: @value;
99
101
  border-color: @value;
100
102
  }
@@ -23,7 +23,7 @@
23
23
 
24
24
  &.disabled,
25
25
  &:disabled {
26
- color: @gray-light;
26
+ color: var(--gray-light);
27
27
  pointer-events: none;
28
28
  }
29
29
  }
@@ -33,7 +33,7 @@
33
33
  cursor: not-allowed;
34
34
 
35
35
  > a, > span, > div {
36
- color: @gray-light;
36
+ color: var(--gray-light);
37
37
  pointer-events: none;
38
38
  }
39
39
  }
@@ -71,9 +71,9 @@
71
71
  }
72
72
 
73
73
  // nav tabs
74
- @nav-tabs-border-color: @gray-light;
75
- @nav-tabs-link-hover-border-color: @brand-primary;
76
- @nav-tabs-active-link-hover-border-color: @gray-light;
74
+ @nav-tabs-border-color: var(--gray-light);
75
+ @nav-tabs-link-hover-border-color: var(--brand-primary);
76
+ @nav-tabs-active-link-hover-border-color: var(--gray-light);
77
77
 
78
78
  .nav-tabs {
79
79
  border-bottom: 1px solid @nav-tabs-border-color;
@@ -92,15 +92,15 @@
92
92
  > a, > span, > div {
93
93
  border-radius: @border-radius-default @border-radius-default 0 0;
94
94
  border: 1px solid transparent;
95
- color: @gray-dark;
95
+ color: var(--gray-dark);
96
96
  cursor: pointer;
97
97
  line-height: @line-height-default;
98
98
  transition: all 100ms ease-in-out;
99
99
 
100
100
  &:hover,
101
101
  &:focus {
102
- color: @gray-darkest;
103
- background-color: @gray-lightest;
102
+ color: var(--gray-darkest);
103
+ background-color: var(--gray-lightest);
104
104
  border-color: @nav-tabs-border-color;
105
105
  outline: 0;
106
106
  }
@@ -109,12 +109,12 @@
109
109
  &.active {
110
110
  > a, > span, > div,
111
111
  > a:hover, > span:hover, > div:hover {
112
- background-color: @color-white;
112
+ background-color: var(--color-white);
113
113
  border-bottom: 1px solid transparent;
114
114
  border-left: 1px solid @nav-tabs-active-link-hover-border-color;
115
115
  border-right: 1px solid @nav-tabs-active-link-hover-border-color;
116
116
  border-top: 1px solid @nav-tabs-active-link-hover-border-color;
117
- color: @gray-darkest;
117
+ color: var(--gray-darkest);
118
118
  cursor: default;
119
119
 
120
120
  &:before {
@@ -128,7 +128,7 @@
128
128
  .tab-content {
129
129
  margin: 0;
130
130
  padding: 15px;
131
- background-color: @color-white;
131
+ background-color: var(--color-white);
132
132
  transition: all 200ms ease-in-out;
133
133
  }
134
134
 
@@ -140,8 +140,8 @@
140
140
 
141
141
  // nav pills
142
142
  @nav-pills-border-radius: @border-radius-default;
143
- @nav-pills-active-link-hover-bg: @brand-primary;
144
- @nav-pills-active-link-hover-color: @color-white;
143
+ @nav-pills-active-link-hover-bg: var(--brand-primary);
144
+ @nav-pills-active-link-hover-color: var(--color-white);
145
145
 
146
146
  .nav-pills {
147
147
  &:not(.nav-stacked) {
@@ -151,13 +151,13 @@
151
151
 
152
152
  > li {
153
153
  > a, > span, > div {
154
- color: @gray-dark;
154
+ color: var(--gray-dark);
155
155
  line-height: 22px;
156
156
  transition: all 100ms ease-in-out;
157
157
 
158
158
  &:hover,
159
159
  &:focus {
160
- color: @gray-darkest;
160
+ color: var(--gray-darkest);
161
161
  outline: 0;
162
162
  }
163
163
  }
@@ -165,14 +165,14 @@
165
165
  &.active,
166
166
  &:active {
167
167
  > a, > span, > div {
168
- color: @gray-darkest;
168
+ color: var(--gray-darkest);
169
169
  }
170
170
  }
171
171
 
172
172
  &.disabled,
173
173
  &:disabled {
174
174
  > a, > span, > div {
175
- color: @gray-light;
175
+ color: var(--gray-light);
176
176
 
177
177
  &:hover {
178
178
  box-shadow: none;
@@ -182,19 +182,19 @@
182
182
  }
183
183
 
184
184
  &:not(.nav-stacked):not(.nav-pills-filled) {
185
- box-shadow: 0 -1px inset @gray-dark;
185
+ box-shadow: 0 -1px inset var(--gray-dark);
186
186
  > li {
187
187
  > a, > span, > div {
188
188
  &:hover,
189
189
  &:focus {
190
- box-shadow: inset 0px -4px 0px 0px @gray-dark;
190
+ box-shadow: inset 0px -4px 0px 0px var(--gray-dark);
191
191
  }
192
192
  }
193
193
 
194
194
  &.active,
195
195
  &:active {
196
196
  > a, > span, > div {
197
- box-shadow: inset 0px -3px 0px 0px @gray-dark;
197
+ box-shadow: inset 0px -3px 0px 0px var(--gray-dark);
198
198
  }
199
199
  }
200
200
  }
@@ -219,7 +219,7 @@
219
219
  }
220
220
 
221
221
  &.nav-pills-filled {
222
- background: @gray-lightest;
222
+ background: var(--gray-lightest);
223
223
  border-radius: @nav-pills-border-radius;
224
224
  padding: @nav-pills-border-radius;
225
225
 
@@ -227,7 +227,7 @@
227
227
  &.active,
228
228
  &:hover {
229
229
  &:extend(.shadow-default);
230
- background: @color-white;
230
+ background: var(--color-white);
231
231
  border-radius: @nav-pills-border-radius;
232
232
  }
233
233
  }
@@ -240,7 +240,7 @@
240
240
  }
241
241
 
242
242
  > a, > span, > div {
243
- color: @gray-darkest;
243
+ color: var(--gray-darkest);
244
244
  border-radius: @nav-pills-border-radius;
245
245
  }
246
246
  }
@@ -248,7 +248,7 @@
248
248
  > li:not(.disabled):not(:disabled):not(.active) {
249
249
  &:hover {
250
250
  > a, > span, > div {
251
- background-color: @gray-lightest;
251
+ background-color: var(--gray-lightest);
252
252
  }
253
253
  }
254
254
  }
@@ -256,11 +256,11 @@
256
256
  &:not(.nav-pills-stacked-decent) {
257
257
  > li.active {
258
258
  > a, > span, > div {
259
- color: @color-white;
259
+ color: var(--color-white);
260
260
  background-color: @nav-pills-active-link-hover-bg;
261
261
 
262
262
  &:hover {
263
- color: @color-white;
263
+ color: var(--color-white);
264
264
  }
265
265
  }
266
266
  }
@@ -269,7 +269,7 @@
269
269
  &.nav-pills-stacked-decent {
270
270
  > li.active {
271
271
  > a, > span, > div {
272
- background-color: @color-highlight-lightest;
272
+ background-color: var(--color-highlight-lightest);
273
273
  }
274
274
  }
275
275
  }
@@ -145,15 +145,6 @@ html {
145
145
  margin: 0.67em 0;
146
146
  }
147
147
 
148
- //
149
- // Address styling not present in IE 8/9.
150
- //
151
-
152
- mark {
153
- background: #ff0;
154
- color: #000;
155
- }
156
-
157
148
  //
158
149
  // Address inconsistent and variable font size in all browsers.
159
150
  //