viniBaxter-spa_directory 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/.DS_Store +0 -0
  3. data/app/assets/images/{spa_landing → spa_directory}/.DS_Store +0 -0
  4. data/app/assets/images/{spa_landing → spa_directory}/avatar-group-hover-last.svg +0 -0
  5. data/app/assets/images/{spa_landing → spa_directory}/avatar-group-hover.svg +0 -0
  6. data/app/assets/images/{spa_landing → spa_directory}/avatar-group.svg +0 -0
  7. data/app/assets/images/{spa_landing → spa_directory}/avatar-status.svg +0 -0
  8. data/lib/viniBaxter/sass/spa_directory.scss +1 -3
  9. data/lib/viniBaxter/sass/spa_directory/temp_directory/_core.scss +0 -12
  10. data/lib/viniBaxter/sass/spa_directory/temp_directory/theme/_theme.scss +1 -3
  11. data/lib/viniBaxter/sass/spa_directory/temp_directory/theme/_variables-3rd-party.scss +0 -29
  12. data/lib/viniBaxter/sass/spa_directory/temp_directory/theme/_variables.scss +0 -284
  13. data/lib/viniBaxter/sass/spa_directory/temp_directory/user/_user-variables.scss +0 -12
  14. data/lib/viniBaxter/spa_directory/version.rb +1 -1
  15. metadata +8 -96
  16. data/lib/viniBaxter/sass/spa_directory/scss/_alert.scss +0 -51
  17. data/lib/viniBaxter/sass/spa_directory/scss/_badge.scss +0 -54
  18. data/lib/viniBaxter/sass/spa_directory/scss/_breadcrumb.scss +0 -42
  19. data/lib/viniBaxter/sass/spa_directory/scss/_button-group.scss +0 -163
  20. data/lib/viniBaxter/sass/spa_directory/scss/_buttons.scss +0 -139
  21. data/lib/viniBaxter/sass/spa_directory/scss/_card.scss +0 -278
  22. data/lib/viniBaxter/sass/spa_directory/scss/_carousel.scss +0 -197
  23. data/lib/viniBaxter/sass/spa_directory/scss/_close.scss +0 -41
  24. data/lib/viniBaxter/sass/spa_directory/scss/_code.scss +0 -48
  25. data/lib/viniBaxter/sass/spa_directory/scss/_custom-forms.scss +0 -521
  26. data/lib/viniBaxter/sass/spa_directory/scss/_dropdown.scss +0 -191
  27. data/lib/viniBaxter/sass/spa_directory/scss/_forms.scss +0 -338
  28. data/lib/viniBaxter/sass/spa_directory/scss/_functions.scss +0 -134
  29. data/lib/viniBaxter/sass/spa_directory/scss/_grid.scss +0 -69
  30. data/lib/viniBaxter/sass/spa_directory/scss/_images.scss +0 -42
  31. data/lib/viniBaxter/sass/spa_directory/scss/_input-group.scss +0 -191
  32. data/lib/viniBaxter/sass/spa_directory/scss/_jumbotron.scss +0 -17
  33. data/lib/viniBaxter/sass/spa_directory/scss/_list-group.scss +0 -158
  34. data/lib/viniBaxter/sass/spa_directory/scss/_media.scss +0 -8
  35. data/lib/viniBaxter/sass/spa_directory/scss/_mixins.scss +0 -47
  36. data/lib/viniBaxter/sass/spa_directory/scss/_modal.scss +0 -239
  37. data/lib/viniBaxter/sass/spa_directory/scss/_nav.scss +0 -120
  38. data/lib/viniBaxter/sass/spa_directory/scss/_navbar.scss +0 -324
  39. data/lib/viniBaxter/sass/spa_directory/scss/_pagination.scss +0 -73
  40. data/lib/viniBaxter/sass/spa_directory/scss/_popover.scss +0 -170
  41. data/lib/viniBaxter/sass/spa_directory/scss/_print.scss +0 -141
  42. data/lib/viniBaxter/sass/spa_directory/scss/_progress.scss +0 -46
  43. data/lib/viniBaxter/sass/spa_directory/scss/_reboot.scss +0 -482
  44. data/lib/viniBaxter/sass/spa_directory/scss/_root.scss +0 -20
  45. data/lib/viniBaxter/sass/spa_directory/scss/_spinners.scss +0 -55
  46. data/lib/viniBaxter/sass/spa_directory/scss/_tables.scss +0 -185
  47. data/lib/viniBaxter/sass/spa_directory/scss/_toasts.scss +0 -44
  48. data/lib/viniBaxter/sass/spa_directory/scss/_tooltip.scss +0 -115
  49. data/lib/viniBaxter/sass/spa_directory/scss/_transitions.scss +0 -20
  50. data/lib/viniBaxter/sass/spa_directory/scss/_type.scss +0 -125
  51. data/lib/viniBaxter/sass/spa_directory/scss/_utilities.scss +0 -17
  52. data/lib/viniBaxter/sass/spa_directory/scss/_variables.scss +0 -1143
  53. data/lib/viniBaxter/sass/spa_directory/scss/bootstrap-grid.scss +0 -29
  54. data/lib/viniBaxter/sass/spa_directory/scss/bootstrap-reboot.scss +0 -12
  55. data/lib/viniBaxter/sass/spa_directory/scss/bootstrap.scss +0 -44
  56. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_alert.scss +0 -13
  57. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_background-variant.scss +0 -22
  58. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_badge.scss +0 -17
  59. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_border-radius.scss +0 -63
  60. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_box-shadow.scss +0 -20
  61. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_breakpoints.scss +0 -123
  62. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_buttons.scss +0 -110
  63. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_caret.scss +0 -62
  64. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_clearfix.scss +0 -7
  65. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_deprecate.scss +0 -10
  66. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_float.scss +0 -14
  67. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_forms.scss +0 -177
  68. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_gradients.scss +0 -45
  69. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_grid-framework.scss +0 -71
  70. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_grid.scss +0 -69
  71. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_hover.scss +0 -37
  72. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_image.scss +0 -36
  73. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_list-group.scss +0 -21
  74. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_lists.scss +0 -7
  75. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_nav-divider.scss +0 -11
  76. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_pagination.scss +0 -22
  77. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_reset-text.scss +0 -17
  78. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_resize.scss +0 -6
  79. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_screen-reader.scss +0 -34
  80. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_size.scss +0 -7
  81. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_table-row.scss +0 -39
  82. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_text-emphasis.scss +0 -17
  83. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_text-hide.scss +0 -11
  84. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_text-truncate.scss +0 -8
  85. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_transition.scss +0 -16
  86. data/lib/viniBaxter/sass/spa_directory/scss/mixins/_visibility.scss +0 -8
  87. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_align.scss +0 -8
  88. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_background.scss +0 -19
  89. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_borders.scss +0 -75
  90. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_clearfix.scss +0 -3
  91. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_display.scss +0 -26
  92. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_embed.scss +0 -39
  93. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_flex.scss +0 -51
  94. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_float.scss +0 -11
  95. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_overflow.scss +0 -5
  96. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_position.scss +0 -32
  97. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_screenreaders.scss +0 -11
  98. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_shadows.scss +0 -6
  99. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_sizing.scss +0 -20
  100. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_spacing.scss +0 -73
  101. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_stretched-link.scss +0 -19
  102. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_text.scss +0 -72
  103. data/lib/viniBaxter/sass/spa_directory/scss/utilities/_visibility.scss +0 -13
  104. data/lib/viniBaxter/sass/spa_directory/scss/vendor/_rfs.scss +0 -204
@@ -1,41 +0,0 @@
1
- .close {
2
- float: right;
3
- @include font-size($close-font-size);
4
- font-weight: $close-font-weight;
5
- line-height: 1;
6
- color: $close-color;
7
- text-shadow: $close-text-shadow;
8
- opacity: .5;
9
-
10
- // Override <a>'s hover style
11
- @include hover() {
12
- color: $close-color;
13
- text-decoration: none;
14
- }
15
-
16
- &:not(:disabled):not(.disabled) {
17
- @include hover-focus() {
18
- opacity: .75;
19
- }
20
- }
21
- }
22
-
23
- // Additional properties for button version
24
- // iOS requires the button element instead of an anchor tag.
25
- // If you want the anchor version, it requires `href="#"`.
26
- // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
27
-
28
- // stylelint-disable-next-line selector-no-qualifying-type
29
- button.close {
30
- padding: 0;
31
- background-color: transparent;
32
- border: 0;
33
- appearance: none;
34
- }
35
-
36
- // Future-proof disabling of clicks on `<a>` elements
37
-
38
- // stylelint-disable-next-line selector-no-qualifying-type
39
- a.close.disabled {
40
- pointer-events: none;
41
- }
@@ -1,48 +0,0 @@
1
- // Inline code
2
- code {
3
- @include font-size($code-font-size);
4
- color: $code-color;
5
- word-wrap: break-word;
6
-
7
- // Streamline the style when inside anchors to avoid broken underline and more
8
- a > & {
9
- color: inherit;
10
- }
11
- }
12
-
13
- // User input typically entered via keyboard
14
- kbd {
15
- padding: $kbd-padding-y $kbd-padding-x;
16
- @include font-size($kbd-font-size);
17
- color: $kbd-color;
18
- background-color: $kbd-bg;
19
- @include border-radius($border-radius-sm);
20
- @include box-shadow($kbd-box-shadow);
21
-
22
- kbd {
23
- padding: 0;
24
- @include font-size(100%);
25
- font-weight: $nested-kbd-font-weight;
26
- @include box-shadow(none);
27
- }
28
- }
29
-
30
- // Blocks of code
31
- pre {
32
- display: block;
33
- @include font-size($code-font-size);
34
- color: $pre-color;
35
-
36
- // Account for some code outputs that place code tags in pre tags
37
- code {
38
- @include font-size(inherit);
39
- color: inherit;
40
- word-break: normal;
41
- }
42
- }
43
-
44
- // Enable scrollable blocks of code
45
- .pre-scrollable {
46
- max-height: $pre-scrollable-max-height;
47
- overflow-y: scroll;
48
- }
@@ -1,521 +0,0 @@
1
- // Embedded icons from Open Iconic.
2
- // Released under MIT and copyright 2014 Waybury.
3
- // https://useiconic.com/open
4
-
5
-
6
- // Checkboxes and radios
7
- //
8
- // Base class takes care of all the key behavioral aspects.
9
-
10
- .custom-control {
11
- position: relative;
12
- display: block;
13
- min-height: $font-size-base * $line-height-base;
14
- padding-left: $custom-control-gutter + $custom-control-indicator-size;
15
- }
16
-
17
- .custom-control-inline {
18
- display: inline-flex;
19
- margin-right: $custom-control-spacer-x;
20
- }
21
-
22
- .custom-control-input {
23
- position: absolute;
24
- left: 0;
25
- z-index: -1; // Put the input behind the label so it doesn't overlay text
26
- width: $custom-control-indicator-size;
27
- height: ($font-size-base * $line-height-base + $custom-control-indicator-size) / 2;
28
- opacity: 0;
29
-
30
- &:checked ~ .custom-control-label::before {
31
- color: $custom-control-indicator-checked-color;
32
- border-color: $custom-control-indicator-checked-border-color;
33
- @include gradient-bg($custom-control-indicator-checked-bg);
34
- @include box-shadow($custom-control-indicator-checked-box-shadow);
35
- }
36
-
37
- &:focus ~ .custom-control-label::before {
38
- // the mixin is not used here to make sure there is feedback
39
- @if $enable-shadows {
40
- box-shadow: $input-box-shadow, $input-focus-box-shadow;
41
- } @else {
42
- box-shadow: $custom-control-indicator-focus-box-shadow;
43
- }
44
- }
45
-
46
- &:focus:not(:checked) ~ .custom-control-label::before {
47
- border-color: $custom-control-indicator-focus-border-color;
48
- }
49
-
50
- &:not(:disabled):active ~ .custom-control-label::before {
51
- color: $custom-control-indicator-active-color;
52
- background-color: $custom-control-indicator-active-bg;
53
- border-color: $custom-control-indicator-active-border-color;
54
- @include box-shadow($custom-control-indicator-active-box-shadow);
55
- }
56
-
57
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
58
- &[disabled],
59
- &:disabled {
60
- ~ .custom-control-label {
61
- color: $custom-control-label-disabled-color;
62
-
63
- &::before {
64
- background-color: $custom-control-indicator-disabled-bg;
65
- }
66
- }
67
- }
68
- }
69
-
70
- // Custom control indicators
71
- //
72
- // Build the custom controls out of pseudo-elements.
73
-
74
- .custom-control-label {
75
- position: relative;
76
- margin-bottom: 0;
77
- color: $custom-control-label-color;
78
- vertical-align: top;
79
- cursor: $custom-control-cursor;
80
-
81
- // Background-color and (when enabled) gradient
82
- &::before {
83
- position: absolute;
84
- top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
85
- left: -($custom-control-gutter + $custom-control-indicator-size);
86
- display: block;
87
- width: $custom-control-indicator-size;
88
- height: $custom-control-indicator-size;
89
- pointer-events: none;
90
- content: "";
91
- background-color: $custom-control-indicator-bg;
92
- border: $custom-control-indicator-border-color solid $custom-control-indicator-border-width;
93
- @include box-shadow($custom-control-indicator-box-shadow);
94
- }
95
-
96
- // Foreground (icon)
97
- &::after {
98
- position: absolute;
99
- top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
100
- left: -($custom-control-gutter + $custom-control-indicator-size);
101
- display: block;
102
- width: $custom-control-indicator-size;
103
- height: $custom-control-indicator-size;
104
- content: "";
105
- background: no-repeat 50% / #{$custom-control-indicator-bg-size};
106
- }
107
- }
108
-
109
-
110
- // Checkboxes
111
- //
112
- // Tweak just a few things for checkboxes.
113
-
114
- .custom-checkbox {
115
- .custom-control-label::before {
116
- @include border-radius($custom-checkbox-indicator-border-radius);
117
- }
118
-
119
- .custom-control-input:checked ~ .custom-control-label {
120
- &::after {
121
- background-image: escape-svg($custom-checkbox-indicator-icon-checked);
122
- }
123
- }
124
-
125
- .custom-control-input:indeterminate ~ .custom-control-label {
126
- &::before {
127
- border-color: $custom-checkbox-indicator-indeterminate-border-color;
128
- @include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
129
- @include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
130
- }
131
- &::after {
132
- background-image: escape-svg($custom-checkbox-indicator-icon-indeterminate);
133
- }
134
- }
135
-
136
- .custom-control-input:disabled {
137
- &:checked ~ .custom-control-label::before {
138
- background-color: $custom-control-indicator-checked-disabled-bg;
139
- }
140
- &:indeterminate ~ .custom-control-label::before {
141
- background-color: $custom-control-indicator-checked-disabled-bg;
142
- }
143
- }
144
- }
145
-
146
- // Radios
147
- //
148
- // Tweak just a few things for radios.
149
-
150
- .custom-radio {
151
- .custom-control-label::before {
152
- // stylelint-disable-next-line property-blacklist
153
- border-radius: $custom-radio-indicator-border-radius;
154
- }
155
-
156
- .custom-control-input:checked ~ .custom-control-label {
157
- &::after {
158
- background-image: escape-svg($custom-radio-indicator-icon-checked);
159
- }
160
- }
161
-
162
- .custom-control-input:disabled {
163
- &:checked ~ .custom-control-label::before {
164
- background-color: $custom-control-indicator-checked-disabled-bg;
165
- }
166
- }
167
- }
168
-
169
-
170
- // switches
171
- //
172
- // Tweak a few things for switches
173
-
174
- .custom-switch {
175
- padding-left: $custom-switch-width + $custom-control-gutter;
176
-
177
- .custom-control-label {
178
- &::before {
179
- left: -($custom-switch-width + $custom-control-gutter);
180
- width: $custom-switch-width;
181
- pointer-events: all;
182
- // stylelint-disable-next-line property-blacklist
183
- border-radius: $custom-switch-indicator-border-radius;
184
- }
185
-
186
- &::after {
187
- top: add(($font-size-base * $line-height-base - $custom-control-indicator-size) / 2, $custom-control-indicator-border-width * 2);
188
- left: add(-($custom-switch-width + $custom-control-gutter), $custom-control-indicator-border-width * 2);
189
- width: $custom-switch-indicator-size;
190
- height: $custom-switch-indicator-size;
191
- background-color: $custom-control-indicator-border-color;
192
- // stylelint-disable-next-line property-blacklist
193
- border-radius: $custom-switch-indicator-border-radius;
194
- @include transition(transform .15s ease-in-out, $custom-forms-transition);
195
- }
196
- }
197
-
198
- .custom-control-input:checked ~ .custom-control-label {
199
- &::after {
200
- background-color: $custom-control-indicator-bg;
201
- transform: translateX($custom-switch-width - $custom-control-indicator-size);
202
- }
203
- }
204
-
205
- .custom-control-input:disabled {
206
- &:checked ~ .custom-control-label::before {
207
- background-color: $custom-control-indicator-checked-disabled-bg;
208
- }
209
- }
210
- }
211
-
212
-
213
- // Select
214
- //
215
- // Replaces the browser default select with a custom one, mostly pulled from
216
- // https://primer.github.io/.
217
- //
218
-
219
- .custom-select {
220
- display: inline-block;
221
- width: 100%;
222
- height: $custom-select-height;
223
- padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
224
- font-family: $custom-select-font-family;
225
- @include font-size($custom-select-font-size);
226
- font-weight: $custom-select-font-weight;
227
- line-height: $custom-select-line-height;
228
- color: $custom-select-color;
229
- vertical-align: middle;
230
- background: $custom-select-bg $custom-select-background;
231
- border: $custom-select-border-width solid $custom-select-border-color;
232
- @include border-radius($custom-select-border-radius, 0);
233
- @include box-shadow($custom-select-box-shadow);
234
- appearance: none;
235
-
236
- &:focus {
237
- border-color: $custom-select-focus-border-color;
238
- outline: 0;
239
- @if $enable-shadows {
240
- box-shadow: $custom-select-box-shadow, $custom-select-focus-box-shadow;
241
- } @else {
242
- box-shadow: $custom-select-focus-box-shadow;
243
- }
244
-
245
- &::-ms-value {
246
- // For visual consistency with other platforms/browsers,
247
- // suppress the default white text on blue background highlight given to
248
- // the selected option text when the (still closed) <select> receives focus
249
- // in IE and (under certain conditions) Edge.
250
- // See https://github.com/twbs/bootstrap/issues/19398.
251
- color: $input-color;
252
- background-color: $input-bg;
253
- }
254
- }
255
-
256
- &[multiple],
257
- &[size]:not([size="1"]) {
258
- height: auto;
259
- padding-right: $custom-select-padding-x;
260
- background-image: none;
261
- }
262
-
263
- &:disabled {
264
- color: $custom-select-disabled-color;
265
- background-color: $custom-select-disabled-bg;
266
- }
267
-
268
- // Hides the default caret in IE11
269
- &::-ms-expand {
270
- display: none;
271
- }
272
-
273
- // Remove outline from select box in FF
274
- &:-moz-focusring {
275
- color: transparent;
276
- text-shadow: 0 0 0 $custom-select-color;
277
- }
278
- }
279
-
280
- .custom-select-sm {
281
- height: $custom-select-height-sm;
282
- padding-top: $custom-select-padding-y-sm;
283
- padding-bottom: $custom-select-padding-y-sm;
284
- padding-left: $custom-select-padding-x-sm;
285
- @include font-size($custom-select-font-size-sm);
286
- }
287
-
288
- .custom-select-lg {
289
- height: $custom-select-height-lg;
290
- padding-top: $custom-select-padding-y-lg;
291
- padding-bottom: $custom-select-padding-y-lg;
292
- padding-left: $custom-select-padding-x-lg;
293
- @include font-size($custom-select-font-size-lg);
294
- }
295
-
296
-
297
- // File
298
- //
299
- // Custom file input.
300
-
301
- .custom-file {
302
- position: relative;
303
- display: inline-block;
304
- width: 100%;
305
- height: $custom-file-height;
306
- margin-bottom: 0;
307
- }
308
-
309
- .custom-file-input {
310
- position: relative;
311
- z-index: 2;
312
- width: 100%;
313
- height: $custom-file-height;
314
- margin: 0;
315
- opacity: 0;
316
-
317
- &:focus ~ .custom-file-label {
318
- border-color: $custom-file-focus-border-color;
319
- box-shadow: $custom-file-focus-box-shadow;
320
- }
321
-
322
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
323
- &[disabled] ~ .custom-file-label,
324
- &:disabled ~ .custom-file-label {
325
- background-color: $custom-file-disabled-bg;
326
- }
327
-
328
- @each $lang, $value in $custom-file-text {
329
- &:lang(#{$lang}) ~ .custom-file-label::after {
330
- content: $value;
331
- }
332
- }
333
-
334
- ~ .custom-file-label[data-browse]::after {
335
- content: attr(data-browse);
336
- }
337
- }
338
-
339
- .custom-file-label {
340
- position: absolute;
341
- top: 0;
342
- right: 0;
343
- left: 0;
344
- z-index: 1;
345
- height: $custom-file-height;
346
- padding: $custom-file-padding-y $custom-file-padding-x;
347
- font-family: $custom-file-font-family;
348
- font-weight: $custom-file-font-weight;
349
- line-height: $custom-file-line-height;
350
- color: $custom-file-color;
351
- background-color: $custom-file-bg;
352
- border: $custom-file-border-width solid $custom-file-border-color;
353
- @include border-radius($custom-file-border-radius);
354
- @include box-shadow($custom-file-box-shadow);
355
-
356
- &::after {
357
- position: absolute;
358
- top: 0;
359
- right: 0;
360
- bottom: 0;
361
- z-index: 3;
362
- display: block;
363
- height: $custom-file-height-inner;
364
- padding: $custom-file-padding-y $custom-file-padding-x;
365
- line-height: $custom-file-line-height;
366
- color: $custom-file-button-color;
367
- content: "Browse";
368
- @include gradient-bg($custom-file-button-bg);
369
- border-left: inherit;
370
- @include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
371
- }
372
- }
373
-
374
- // Range
375
- //
376
- // Style range inputs the same across browsers. Vendor-specific rules for pseudo
377
- // elements cannot be mixed. As such, there are no shared styles for focus or
378
- // active states on prefixed selectors.
379
-
380
- .custom-range {
381
- width: 100%;
382
- height: add($custom-range-thumb-height, $custom-range-thumb-focus-box-shadow-width * 2);
383
- padding: 0; // Need to reset padding
384
- background-color: transparent;
385
- appearance: none;
386
-
387
- &:focus {
388
- outline: none;
389
-
390
- // Pseudo-elements must be split across multiple rulesets to have an effect.
391
- // No box-shadow() mixin for focus accessibility.
392
- &::-webkit-slider-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
393
- &::-moz-range-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
394
- &::-ms-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
395
- }
396
-
397
- &::-moz-focus-outer {
398
- border: 0;
399
- }
400
-
401
- &::-webkit-slider-thumb {
402
- width: $custom-range-thumb-width;
403
- height: $custom-range-thumb-height;
404
- margin-top: ($custom-range-track-height - $custom-range-thumb-height) / 2; // Webkit specific
405
- @include gradient-bg($custom-range-thumb-bg);
406
- border: $custom-range-thumb-border;
407
- @include border-radius($custom-range-thumb-border-radius);
408
- @include box-shadow($custom-range-thumb-box-shadow);
409
- @include transition($custom-forms-transition);
410
- appearance: none;
411
-
412
- &:active {
413
- @include gradient-bg($custom-range-thumb-active-bg);
414
- }
415
- }
416
-
417
- &::-webkit-slider-runnable-track {
418
- width: $custom-range-track-width;
419
- height: $custom-range-track-height;
420
- color: transparent; // Why?
421
- cursor: $custom-range-track-cursor;
422
- background-color: $custom-range-track-bg;
423
- border-color: transparent;
424
- @include border-radius($custom-range-track-border-radius);
425
- @include box-shadow($custom-range-track-box-shadow);
426
- }
427
-
428
- &::-moz-range-thumb {
429
- width: $custom-range-thumb-width;
430
- height: $custom-range-thumb-height;
431
- @include gradient-bg($custom-range-thumb-bg);
432
- border: $custom-range-thumb-border;
433
- @include border-radius($custom-range-thumb-border-radius);
434
- @include box-shadow($custom-range-thumb-box-shadow);
435
- @include transition($custom-forms-transition);
436
- appearance: none;
437
-
438
- &:active {
439
- @include gradient-bg($custom-range-thumb-active-bg);
440
- }
441
- }
442
-
443
- &::-moz-range-track {
444
- width: $custom-range-track-width;
445
- height: $custom-range-track-height;
446
- color: transparent;
447
- cursor: $custom-range-track-cursor;
448
- background-color: $custom-range-track-bg;
449
- border-color: transparent; // Firefox specific?
450
- @include border-radius($custom-range-track-border-radius);
451
- @include box-shadow($custom-range-track-box-shadow);
452
- }
453
-
454
- &::-ms-thumb {
455
- width: $custom-range-thumb-width;
456
- height: $custom-range-thumb-height;
457
- margin-top: 0; // Edge specific
458
- margin-right: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
459
- margin-left: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
460
- @include gradient-bg($custom-range-thumb-bg);
461
- border: $custom-range-thumb-border;
462
- @include border-radius($custom-range-thumb-border-radius);
463
- @include box-shadow($custom-range-thumb-box-shadow);
464
- @include transition($custom-forms-transition);
465
- appearance: none;
466
-
467
- &:active {
468
- @include gradient-bg($custom-range-thumb-active-bg);
469
- }
470
- }
471
-
472
- &::-ms-track {
473
- width: $custom-range-track-width;
474
- height: $custom-range-track-height;
475
- color: transparent;
476
- cursor: $custom-range-track-cursor;
477
- background-color: transparent;
478
- border-color: transparent;
479
- border-width: $custom-range-thumb-height / 2;
480
- @include box-shadow($custom-range-track-box-shadow);
481
- }
482
-
483
- &::-ms-fill-lower {
484
- background-color: $custom-range-track-bg;
485
- @include border-radius($custom-range-track-border-radius);
486
- }
487
-
488
- &::-ms-fill-upper {
489
- margin-right: 15px; // arbitrary?
490
- background-color: $custom-range-track-bg;
491
- @include border-radius($custom-range-track-border-radius);
492
- }
493
-
494
- &:disabled {
495
- &::-webkit-slider-thumb {
496
- background-color: $custom-range-thumb-disabled-bg;
497
- }
498
-
499
- &::-webkit-slider-runnable-track {
500
- cursor: default;
501
- }
502
-
503
- &::-moz-range-thumb {
504
- background-color: $custom-range-thumb-disabled-bg;
505
- }
506
-
507
- &::-moz-range-track {
508
- cursor: default;
509
- }
510
-
511
- &::-ms-thumb {
512
- background-color: $custom-range-thumb-disabled-bg;
513
- }
514
- }
515
- }
516
-
517
- .custom-control-label::before,
518
- .custom-file-label,
519
- .custom-select {
520
- @include transition($custom-forms-transition);
521
- }