nw-style-guide 17.0.1 → 17.0.2

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 (47) hide show
  1. package/package.json +1 -1
  2. package/sass/src/_badges.scss +10 -9
  3. package/sass/src/_button-groups.scss +12 -10
  4. package/sass/src/_buttons.scss +57 -54
  5. package/sass/src/_close.scss +1 -0
  6. package/sass/src/_code.scss +18 -16
  7. package/sass/src/_dropdowns.scss +25 -22
  8. package/sass/src/_feature-alerts.scss +4 -2
  9. package/sass/src/_fonts.scss +8 -6
  10. package/sass/src/_forms.scss +109 -105
  11. package/sass/src/_grid.scss +20 -17
  12. package/sass/src/_labels.scss +21 -18
  13. package/sass/src/_list-group.scss +30 -27
  14. package/sass/src/_modals.scss +20 -16
  15. package/sass/src/_navs.scss +42 -36
  16. package/sass/src/_pagination.scss +24 -21
  17. package/sass/src/_pills.scss +26 -24
  18. package/sass/src/_popovers.scss +55 -54
  19. package/sass/src/_relative-weight.scss +16 -14
  20. package/sass/src/_responsive-utilities.scss +37 -35
  21. package/sass/src/_scaffolding.scss +7 -6
  22. package/sass/src/_tables.scss +16 -15
  23. package/sass/src/_toasts.scss +6 -4
  24. package/sass/src/_tooltip.scss +30 -28
  25. package/sass/src/_type.scss +37 -34
  26. package/sass/src/_variables.scss +58 -0
  27. package/sass/src/{_carousel.scss → components/carousel.component.scss} +4 -2
  28. package/sass/src/{_email-input.scss → components/email-input.component.scss} +7 -4
  29. package/sass/src/{_loader.scss → components/loader.component.scss} +4 -2
  30. package/sass/src/{_picker.scss → components/picker.component.scss} +19 -14
  31. package/sass/src/{_word-cloud.scss → components/word-cloud.component.scss} +3 -16
  32. package/sass/src/components/word.component.scss +13 -0
  33. package/sass/src/mixins/_dropdowns.scss +10 -8
  34. package/sass/src/mixins/_forms.scss +3 -2
  35. package/sass/src/mixins/_grid-framework.scss +13 -12
  36. package/sass/src/mixins/_grid.scss +23 -20
  37. package/sass/src/mixins/_mixins.scss +15 -15
  38. package/sass/src/mixins/_nav-divider.scss +2 -1
  39. package/sass/src/mixins/_pagination.scss +4 -2
  40. package/sass/src/mixins/_scrollbars.scss +3 -1
  41. package/sass/src/mixins/_text-emphasis.scss +3 -1
  42. package/sass/styles.scss +39 -51
  43. package/styles.css +1 -1
  44. package/sass/src/_input-groups.scss +0 -129
  45. package/sass/src/_shadows.scss +0 -3
  46. package/sass/src/functions/_colors.scss +0 -59
  47. package/sass/src/functions/_functions.scss +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-style-guide",
3
- "version": "17.0.1",
3
+ "version": "17.0.2",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "email": "garethdn@gmail.com",
@@ -1,3 +1,4 @@
1
+ @use './variables';
1
2
  //
2
3
  // Badges
3
4
  // --------------------------------------------------
@@ -8,15 +9,15 @@
8
9
  display: inline-block;
9
10
  min-width: 10px;
10
11
  padding: 3px 7px;
11
- font-size: $font-size-small;
12
- font-weight: $badge-font-weight;
13
- line-height: $badge-line-height;
14
- color: $badge-color;
12
+ font-size: variables.$font-size-small;
13
+ font-weight: variables.$badge-font-weight;
14
+ line-height: variables.$badge-line-height;
15
+ color: variables.$badge-color;
15
16
  text-align: center;
16
17
  white-space: nowrap;
17
18
  vertical-align: middle;
18
- background-color: $badge-bg;
19
- border-radius: $badge-border-radius;
19
+ background-color: variables.$badge-bg;
20
+ border-radius: variables.$badge-border-radius;
20
21
 
21
22
  // Empty badges collapse automatically (not available in IE8)
22
23
  &:empty {
@@ -40,8 +41,8 @@
40
41
  // Account for badges in navs
41
42
  .list-group-item.active > &,
42
43
  .nav-pills > .active > a > & {
43
- color: $badge-active-color;
44
- background-color: $badge-active-bg;
44
+ color: variables.$badge-active-color;
45
+ background-color: variables.$badge-active-bg;
45
46
  }
46
47
 
47
48
  .list-group-item > & {
@@ -61,7 +62,7 @@
61
62
  a.badge {
62
63
  &:hover,
63
64
  &:focus {
64
- color: $badge-link-hover-color;
65
+ color: variables.$badge-link-hover-color;
65
66
  text-decoration: none;
66
67
  cursor: pointer;
67
68
  }
@@ -1,3 +1,5 @@
1
+ @use './mixins/border-radius' as br;
2
+ @use './variables';
1
3
  //
2
4
  // Button groups
3
5
  // --------------------------------------------------
@@ -38,13 +40,13 @@
38
40
  .btn-group > .btn:first-child {
39
41
  margin-left: 0;
40
42
  &:not(:last-child):not(.dropdown-toggle) {
41
- @include border-right-radius(0);
43
+ @include br.border-right-radius(0);
42
44
  }
43
45
  }
44
46
  // Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it
45
47
  .btn-group > .btn:last-child:not(:first-child),
46
48
  .btn-group > .dropdown-toggle:not(:first-child) {
47
- @include border-left-radius(0);
49
+ @include br.border-left-radius(0);
48
50
  }
49
51
 
50
52
  // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
@@ -57,11 +59,11 @@
57
59
  .btn-group > .btn-group:first-child:not(:last-child) {
58
60
  > .btn:last-child,
59
61
  > .dropdown-toggle {
60
- @include border-right-radius(0);
62
+ @include br.border-right-radius(0);
61
63
  }
62
64
  }
63
65
  .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
64
- @include border-left-radius(0);
66
+ @include br.border-left-radius(0);
65
67
  }
66
68
 
67
69
  // On active and open, don't show outline
@@ -101,12 +103,12 @@
101
103
  }
102
104
  // Carets in other button sizes
103
105
  .btn-lg .caret {
104
- border-width: $caret-width-large $caret-width-large 0;
106
+ border-width: variables.$caret-width-large variables.$caret-width-large 0;
105
107
  border-bottom-width: 0;
106
108
  }
107
109
  // Upside down carets for .dropup
108
110
  .dropup .btn-lg .caret {
109
- border-width: 0 $caret-width-large $caret-width-large;
111
+ border-width: 0 variables.$caret-width-large variables.$caret-width-large;
110
112
  }
111
113
 
112
114
  .btn-group-responsive {
@@ -124,15 +126,15 @@
124
126
  }
125
127
  }
126
128
  .btn-group-responsive-xl {
127
- height: ceil($font-size-xl * $line-height-xl) + ($padding-xl-vertical * 2) + 2;
129
+ height: ceil(variables.$font-size-xl * variables.$line-height-xl) + (variables.$padding-xl-vertical * 2) + 2;
128
130
  }
129
131
  .btn-group-responsive-lg {
130
- height: ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2;
132
+ height: ceil(variables.$font-size-large * variables.$line-height-large) + (variables.$padding-large-vertical * 2) + 2;
131
133
  }
132
134
  .btn-group-responsive-md {
133
- height: ceil(14px * $line-height-base) + ($padding-base-vertical * 2) + 2;
135
+ height: ceil(14px * variables.$line-height-base) + (variables.$padding-base-vertical * 2) + 2;
134
136
  }
135
137
  .btn-group-responsive-sm {
136
- height: ceil($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2;
138
+ height: ceil(variables.$font-size-small * variables.$line-height-small) + (variables.$padding-small-vertical * 2) + 2;
137
139
  }
138
140
 
@@ -1,14 +1,17 @@
1
+ @use './variables';
2
+ @use './mixins/buttons' as buttons;
3
+
1
4
  .btn {
2
5
  display: inline-block;
3
6
  margin-bottom: 0; // For input.btn
4
- font-weight: $btn-font-weight;
7
+ font-weight: variables.$btn-font-weight;
5
8
  text-align: center;
6
9
  vertical-align: middle;
7
10
  touch-action: manipulation;
8
11
  cursor: pointer;
9
12
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
10
13
  white-space: nowrap;
11
- @include button-size($padding-base-vertical, $padding-base-horizontal, 14px, $line-height-base, $btn-border-radius-base);
14
+ @include buttons.button-size(variables.$padding-base-vertical, variables.$padding-base-horizontal, 14px, variables.$line-height-base, variables.$btn-border-radius-base);
12
15
  user-select: none;
13
16
  border-style: solid;
14
17
  border-width: 1px;
@@ -34,7 +37,7 @@
34
37
  &.disabled,
35
38
  &[disabled],
36
39
  fieldset[disabled] & {
37
- cursor: $cursor-disabled;
40
+ cursor: variables.$cursor-disabled;
38
41
  opacity: .50;
39
42
  box-shadow: none;
40
43
  }
@@ -55,69 +58,69 @@ a.btn {
55
58
  // Alternate buttons
56
59
  // --------------------------------------------------
57
60
  .btn-primary {
58
- @include button-variant(
61
+ @include buttons.button-variant(
59
62
  #ffffff,
60
63
  #ffffff,
61
- get-color('primary'),
62
- get-color('primary', light));
64
+ variables.get-color('primary'),
65
+ variables.get-color('primary', light));
63
66
  }
64
67
  .btn-secondary {
65
- @include button-variant(
66
- $text-color,
67
- $text-color,
68
- rgba($text-color, 0.15),
69
- rgba($text-color, 0.20));
68
+ @include buttons.button-variant(
69
+ variables.$text-color,
70
+ variables.$text-color,
71
+ rgba(variables.$text-color, 0.15),
72
+ rgba(variables.$text-color, 0.20));
70
73
  }
71
74
  .btn-secondary-inverse {
72
- @include button-variant(
73
- get-color("gray", base),
74
- get-color("gray", base),
75
- get-color("gray", 6x-light),
76
- get-color("gray", 5x-light));
75
+ @include buttons.button-variant(
76
+ variables.get-color("gray", base),
77
+ variables.get-color("gray", base),
78
+ variables.get-color("gray", 6x-light),
79
+ variables.get-color("gray", 5x-light));
77
80
  }
78
81
  .btn-danger {
79
- @include button-variant(
82
+ @include buttons.button-variant(
80
83
  #ffffff,
81
84
  #ffffff,
82
- get-color('tertiary'),
83
- get-color('tertiary', light));
85
+ variables.get-color('tertiary'),
86
+ variables.get-color('tertiary', light));
84
87
  }
85
88
  .btn-alt {
86
- @include button-variant(
87
- $text-color,
88
- get-color('primary', 2x-light),
89
+ @include buttons.button-variant(
90
+ variables.$text-color,
91
+ variables.get-color('primary', 2x-light),
89
92
  transparent,
90
93
  transparent,
91
- $text-color,
92
- get-color('primary', 2x-light));
94
+ variables.$text-color,
95
+ variables.get-color('primary', 2x-light));
93
96
  }
94
97
  .btn-ghost {
95
- @include button-variant(
96
- $text-color-secondary,
97
- $text-color,
98
+ @include buttons.button-variant(
99
+ variables.$text-color-secondary,
100
+ variables.$text-color,
98
101
  transparent,
99
- rgba($text-color, 0.1));
102
+ rgba(variables.$text-color, 0.1));
100
103
  }
101
104
  .btn-ghost-alt {
102
- @include button-variant(
103
- $text-color-secondary,
104
- get-color('primary', 2x-light),
105
+ @include buttons.button-variant(
106
+ variables.$text-color-secondary,
107
+ variables.get-color('primary', 2x-light),
105
108
  transparent,
106
109
  transparent);
107
110
  }
108
111
  .btn-activate {
109
- @include button-variant(
110
- $text-color,
111
- $text-color,
112
- get-color("secondary", base),
113
- get-color("secondary", light));
112
+ @include buttons.button-variant(
113
+ variables.$text-color,
114
+ variables.$text-color,
115
+ variables.get-color("secondary", base),
116
+ variables.get-color("secondary", light));
114
117
  }
115
118
  // applying sizes to this element will not do anything
116
119
  // as currently this button has a fixed size
117
120
  .btn-carousel {
118
- @include button-variant(
119
- $text-color-secondary,
120
- get-color('primary', light),
121
+ @include buttons.button-variant(
122
+ variables.$text-color-secondary,
123
+ variables.get-color('primary', light),
121
124
  transparent,
122
125
  transparent);
123
126
 
@@ -152,58 +155,58 @@ a.btn {
152
155
  // --------------------------------------------------
153
156
 
154
157
  .btn-xl {
155
- @include button-size($padding-xl-vertical, $padding-xl-horizontal, $font-size-xl, $line-height-xl, $btn-border-radius-xl);
158
+ @include buttons.button-size(variables.$padding-xl-vertical, variables.$padding-xl-horizontal, variables.$font-size-xl, variables.$line-height-xl, variables.$btn-border-radius-xl);
156
159
 
157
160
  &.btn-round {
158
- @include button-round($font-size-xl, $line-height-xl, $padding-xl-vertical);
161
+ @include buttons.button-round(variables.$font-size-xl, variables.$line-height-xl, variables.$padding-xl-vertical);
159
162
  }
160
163
 
161
164
  &.btn-close {
162
- @include button-close($font-size-xl, $line-height-xl, $padding-xl-vertical)
165
+ @include buttons.button-close(variables.$font-size-xl, variables.$line-height-xl, variables.$padding-xl-vertical)
163
166
  }
164
167
  }
165
168
  .btn-lg {
166
- @include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large);
169
+ @include buttons.button-size(variables.$padding-large-vertical, variables.$padding-large-horizontal, variables.$font-size-large, variables.$line-height-large, variables.$btn-border-radius-large);
167
170
 
168
171
  &.btn-round {
169
- @include button-round($font-size-large, $line-height-large, $padding-large-vertical);
172
+ @include buttons.button-round(variables.$font-size-large, variables.$line-height-large, variables.$padding-large-vertical);
170
173
  }
171
174
 
172
175
  &.btn-close {
173
- @include button-close($font-size-large, $line-height-large, $padding-large-vertical)
176
+ @include buttons.button-close(variables.$font-size-large, variables.$line-height-large, variables.$padding-large-vertical)
174
177
  }
175
178
  }
176
179
  .btn-md {
177
- @include button-size($padding-base-vertical, $padding-base-horizontal, 14px, $line-height-base, $btn-border-radius-base);
180
+ @include buttons.button-size(variables.$padding-base-vertical, variables.$padding-base-horizontal, 14px, variables.$line-height-base, variables.$btn-border-radius-base);
178
181
 
179
182
  &.btn-round {
180
- @include button-round(14px, $line-height-base, $padding-base-vertical);
183
+ @include buttons.button-round(14px, variables.$line-height-base, variables.$padding-base-vertical);
181
184
  }
182
185
 
183
186
  &.btn-close {
184
- @include button-close(14px, $line-height-base, $padding-base-vertical)
187
+ @include buttons.button-close(14px, variables.$line-height-base, variables.$padding-base-vertical)
185
188
  }
186
189
  }
187
190
  .btn-sm {
188
- @include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);
191
+ @include buttons.button-size(variables.$padding-small-vertical, variables.$padding-small-horizontal, variables.$font-size-small, variables.$line-height-small, variables.$btn-border-radius-small);
189
192
 
190
193
  &.btn-round {
191
- @include button-round($font-size-small, $line-height-small, $padding-small-vertical);
194
+ @include buttons.button-round(variables.$font-size-small, variables.$line-height-small, variables.$padding-small-vertical);
192
195
  }
193
196
 
194
197
  &.btn-close {
195
- @include button-close($font-size-small, $line-height-small, $padding-small-vertical)
198
+ @include buttons.button-close(variables.$font-size-small, variables.$line-height-small, variables.$padding-small-vertical)
196
199
  }
197
200
  }
198
201
  .btn-xs {
199
- @include button-size(0, 7px, 12px, 1.333333333333, 9px);
202
+ @include buttons.button-size(0, 7px, 12px, 1.333333333333, 9px);
200
203
 
201
204
  &.btn-round {
202
- @include button-round(12px, 1.333333333333, 0);
205
+ @include buttons.button-round(12px, 1.333333333333, 0);
203
206
  }
204
207
 
205
208
  &.btn-close {
206
- @include button-close(12px, 1.333333333333, 0)
209
+ @include buttons.button-close(12px, 1.333333333333, 0)
207
210
  }
208
211
  }
209
212
  .btn-slim {
@@ -1,3 +1,4 @@
1
+ @use './buttons';
1
2
  // todo: This is to be removed in the future
2
3
 
3
4
  // Additional properties for button version
@@ -1,4 +1,6 @@
1
1
  @use "sass:math";
2
+ @use "variables";
3
+
2
4
  //
3
5
  // Code (inline and block)
4
6
  // --------------------------------------------------
@@ -9,25 +11,25 @@ code,
9
11
  kbd,
10
12
  pre,
11
13
  samp {
12
- font-family: $font-family-monospace;
14
+ font-family: variables.$font-family-monospace;
13
15
  }
14
16
 
15
17
  // Inline code
16
18
  code {
17
19
  padding: 2px 4px;
18
20
  font-size: 90%;
19
- color: $code-color;
20
- background-color: $code-bg;
21
- border-radius: $border-radius-base;
21
+ color: variables.$code-color;
22
+ background-color: variables.$code-bg;
23
+ border-radius: variables.$border-radius-base;
22
24
  }
23
25
 
24
26
  // User input typically entered via keyboard
25
27
  kbd {
26
28
  padding: 2px 4px;
27
29
  font-size: 90%;
28
- color: $kbd-color;
29
- background-color: $kbd-bg;
30
- border-radius: $border-radius-small;
30
+ color: variables.$kbd-color;
31
+ background-color: variables.$kbd-bg;
32
+ border-radius: variables.$border-radius-small;
31
33
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
32
34
 
33
35
  kbd {
@@ -41,16 +43,16 @@ kbd {
41
43
  // Blocks of code
42
44
  pre {
43
45
  display: block;
44
- padding: math.div(($line-height-computed - 1), 2);
45
- margin: 0 0 math.div($line-height-computed, 2);
46
- font-size: ($font-size-base - 1); // 14px to 13px
47
- line-height: $line-height-base;
48
- color: $pre-color;
46
+ padding: math.div((variables.$line-height-computed - 1), 2);
47
+ margin: 0 0 math.div(variables.$line-height-computed, 2);
48
+ font-size: (variables.$font-size-base - 1); // 14px to 13px
49
+ line-height: variables.$line-height-base;
50
+ color: variables.$pre-color;
49
51
  word-break: break-all;
50
52
  word-wrap: break-word;
51
- background-color: $pre-bg;
52
- border: 1px solid $pre-border-color;
53
- border-radius: $border-radius-base;
53
+ background-color: variables.$pre-bg;
54
+ border: 1px solid variables.$pre-border-color;
55
+ border-radius: variables.$border-radius-base;
54
56
 
55
57
  // Account for some code outputs that place code tags in pre tags
56
58
  code {
@@ -65,6 +67,6 @@ pre {
65
67
 
66
68
  // Enable scrollable blocks of code
67
69
  .pre-scrollable {
68
- max-height: $pre-scrollable-max-height;
70
+ max-height: variables.$pre-scrollable-max-height;
69
71
  overflow-y: scroll;
70
72
  }
@@ -1,3 +1,6 @@
1
+ @use "./variables";
2
+ @use "./mixins/nav-divider";
3
+ @use "./mixins/dropdowns";
1
4
  //
2
5
  // Dropdown menus
3
6
  // --------------------------------------------------
@@ -10,9 +13,9 @@
10
13
  margin-top: -1px;
11
14
  margin-left: 2px;
12
15
  vertical-align: middle;
13
- border-top: $caret-width-base dashed;
14
- border-right: $caret-width-base solid transparent;
15
- border-left: $caret-width-base solid transparent;
16
+ border-top: variables.$caret-width-base dashed;
17
+ border-right: variables.$caret-width-base solid transparent;
18
+ border-left: variables.$caret-width-base solid transparent;
16
19
  }
17
20
 
18
21
  // The dropdown wrapper (div)
@@ -31,7 +34,7 @@
31
34
  position: absolute;
32
35
  top: 100%;
33
36
  left: 0;
34
- z-index: $zindex-dropdown;
37
+ z-index: variables.$zindex-dropdown;
35
38
  display: none; // none by default, but block on "open" of the menu
36
39
  float: left;
37
40
  min-width: 160px;
@@ -40,15 +43,15 @@
40
43
  list-style: none;
41
44
  font-size: 14px;
42
45
  text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
43
- background-color: $dropdown-bg;
44
- border: 1px solid $dropdown-border;
45
- border-radius: $border-radius-base;
46
+ background-color: variables.$dropdown-bg;
47
+ border: 1px solid variables.$dropdown-border;
48
+ border-radius: variables.$border-radius-base;
46
49
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.4);
47
50
  background-clip: padding-box;
48
51
 
49
52
  // // Dividers (basically an hr) within the dropdown
50
53
  .divider {
51
- @include nav-divider($dropdown-divider-bg);
54
+ @include nav-divider.nav-divider(variables.$dropdown-divider-bg);
52
55
  }
53
56
 
54
57
  &.dropdown-menu-arrow {
@@ -64,12 +67,12 @@
64
67
  pointer-events: none;
65
68
  }
66
69
  &:after {
67
- border-bottom-color: $dropdown-bg;
70
+ border-bottom-color: variables.$dropdown-bg;
68
71
  border-width: 7px;
69
72
  margin-left: -7px;
70
73
  }
71
74
  &:before {
72
- border-bottom-color: $dropdown-border;
75
+ border-bottom-color: variables.$dropdown-border;
73
76
  border-width: 8px;
74
77
  margin-left: -8px;
75
78
  }
@@ -133,7 +136,7 @@
133
136
  .dropdown-submenu {
134
137
  > li > a {
135
138
  // Links within the dropdown menu
136
- @include dropdown-menu-link;
139
+ @include dropdowns.dropdown-menu-link;
137
140
  }
138
141
  }
139
142
 
@@ -141,7 +144,7 @@
141
144
  .dropdown-menu,
142
145
  .dropdown-submenu {
143
146
  > .active > a {
144
- @include dropdown-menu-link-active;
147
+ @include dropdowns.dropdown-menu-link-active;
145
148
  }
146
149
  }
147
150
 
@@ -153,7 +156,7 @@
153
156
  &,
154
157
  &:hover,
155
158
  &:focus {
156
- @include dropdown-menu-link-disabled;
159
+ @include dropdowns.dropdown-menu-link-disabled;
157
160
  }
158
161
  }
159
162
 
@@ -200,9 +203,9 @@
200
203
  display: block;
201
204
  padding: 3px 16px;
202
205
  padding-top: 8px;
203
- font-size: $font-size-base;
204
- line-height: $line-height-base;
205
- color: $dropdown-header-color;
206
+ font-size: variables.$font-size-base;
207
+ line-height: variables.$line-height-base;
208
+ color: variables.$dropdown-header-color;
206
209
  white-space: nowrap; // as with > li > a
207
210
  text-transform: uppercase;
208
211
  }
@@ -214,7 +217,7 @@
214
217
  right: 0;
215
218
  bottom: 0;
216
219
  top: 0;
217
- z-index: ($zindex-dropdown - 10);
220
+ z-index: (variables.$zindex-dropdown - 10);
218
221
  display: none;
219
222
  }
220
223
 
@@ -222,7 +225,7 @@
222
225
  // Reverse the caret
223
226
  .caret {
224
227
  border-top: 0;
225
- border-bottom: $caret-width-base dashed;
228
+ border-bottom: variables.$caret-width-base dashed;
226
229
  content: "";
227
230
  }
228
231
  // Different positioning for bottom up menu
@@ -246,12 +249,12 @@
246
249
  }
247
250
 
248
251
  .dropdown-menu-inverse {
249
- $dropdown-inverse-link-color: $level1;
250
- $dropdown-inverese-link-active-bg: get-color("primary", 3x-light);
252
+ $dropdown-inverse-link-color: variables.$level1;
253
+ $dropdown-inverese-link-active-bg: variables.get-color("primary", 3x-light);
251
254
 
252
255
  background-color: #ffffff;
253
256
  .dropdown-header {
254
- color: get-color("gray", x-light);
257
+ color: variables.get-color("gray", x-light);
255
258
  }
256
259
  > li > a {
257
260
  color: $dropdown-inverse-link-color;
@@ -280,7 +283,7 @@
280
283
  }
281
284
  }
282
285
  .divider {
283
- background: rgba($level0, 0.4);
286
+ background: rgba(variables.$level0, 0.4);
284
287
  }
285
288
  }
286
289
  // Custom popover styling for dropdowns appended to body
@@ -1,3 +1,5 @@
1
+ @use './variables';
2
+
1
3
  .feature-alert .btn-primary{
2
4
  margin-top: 16px;
3
5
  width: 127px;
@@ -9,7 +11,7 @@
9
11
  width: $hotspot-size;
10
12
  height: $hotspot-size;
11
13
  padding: 6px;
12
- border: 2px solid get-color("tertiary", base);
14
+ border: 2px solid variables.get-color("tertiary", base);
13
15
  border-radius: 50%;
14
16
 
15
17
  animation-duration: 1s;
@@ -24,7 +26,7 @@
24
26
  height: 100%;
25
27
  display: block;
26
28
  border-radius: 50%;
27
- background: get-color("tertiary", base);
29
+ background: variables.get-color("tertiary", base);
28
30
  }
29
31
 
30
32
  &,
@@ -1,24 +1,26 @@
1
+ @use "./variables";
2
+
1
3
  // Regular / default
2
4
  @font-face {
3
5
  font-family: 'ProximaNova';
4
- src: url('#{$nw-font-path}/proxima-nova-regular-webfont.woff2') format('woff2'),
5
- url('#{$nw-font-path}/proxima-nova-regular-webfont.woff') format('woff');
6
+ src: url('#{variables.$nw-font-path}/proxima-nova-regular-webfont.woff2') format('woff2'),
7
+ url('#{variables.$nw-font-path}/proxima-nova-regular-webfont.woff') format('woff');
6
8
  font-weight: normal;
7
9
  font-style: normal;
8
10
  }
9
11
  // Bold
10
12
  @font-face {
11
13
  font-family: 'ProximaNova';
12
- src: url('#{$nw-font-path}/proxima-nova-bold-webfont.woff2') format('woff2'),
13
- url('#{$nw-font-path}/proxima-nova-bold-webfont.woff') format('woff');
14
+ src: url('#{variables.$nw-font-path}/proxima-nova-bold-webfont.woff2') format('woff2'),
15
+ url('#{variables.$nw-font-path}/proxima-nova-bold-webfont.woff') format('woff');
14
16
  font-weight: bold;
15
17
  font-style: normal;
16
18
  }
17
19
  // Semibold
18
20
  @font-face {
19
21
  font-family: 'ProximaNova';
20
- src: url('#{$nw-font-path}/proxima-nova-semibold-webfont.woff2') format('woff2'),
21
- url('#{$nw-font-path}/proxima-nova-semibold-webfont.woff') format('woff');
22
+ src: url('#{variables.$nw-font-path}/proxima-nova-semibold-webfont.woff2') format('woff2'),
23
+ url('#{variables.$nw-font-path}/proxima-nova-semibold-webfont.woff') format('woff');
22
24
  font-weight: 600;
23
25
  font-style: normal;
24
26
  }