devme-jekyll-theme 0.1.0

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 (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gemspec +9 -0
  3. data/.gitignore +8 -0
  4. data/Gemfile +30 -0
  5. data/Gemfile.lock +255 -0
  6. data/README.md +2 -0
  7. data/_config.yml +57 -0
  8. data/_includes/head.html +7 -0
  9. data/_includes/scripts.html +2 -0
  10. data/_layouts/default.html +12 -0
  11. data/_sass/bootstrap-jekyll-theme.scss +4 -0
  12. data/_sass/bootstrap/scss/_alert.scss +51 -0
  13. data/_sass/bootstrap/scss/_badge.scss +54 -0
  14. data/_sass/bootstrap/scss/_breadcrumb.scss +42 -0
  15. data/_sass/bootstrap/scss/_button-group.scss +163 -0
  16. data/_sass/bootstrap/scss/_buttons.scss +139 -0
  17. data/_sass/bootstrap/scss/_card.scss +278 -0
  18. data/_sass/bootstrap/scss/_carousel.scss +197 -0
  19. data/_sass/bootstrap/scss/_close.scss +41 -0
  20. data/_sass/bootstrap/scss/_code.scss +48 -0
  21. data/_sass/bootstrap/scss/_custom-forms.scss +521 -0
  22. data/_sass/bootstrap/scss/_dropdown.scss +191 -0
  23. data/_sass/bootstrap/scss/_forms.scss +338 -0
  24. data/_sass/bootstrap/scss/_functions.scss +134 -0
  25. data/_sass/bootstrap/scss/_grid.scss +69 -0
  26. data/_sass/bootstrap/scss/_images.scss +42 -0
  27. data/_sass/bootstrap/scss/_input-group.scss +191 -0
  28. data/_sass/bootstrap/scss/_jumbotron.scss +17 -0
  29. data/_sass/bootstrap/scss/_list-group.scss +158 -0
  30. data/_sass/bootstrap/scss/_media.scss +8 -0
  31. data/_sass/bootstrap/scss/_mixins.scss +47 -0
  32. data/_sass/bootstrap/scss/_modal.scss +239 -0
  33. data/_sass/bootstrap/scss/_nav.scss +120 -0
  34. data/_sass/bootstrap/scss/_navbar.scss +324 -0
  35. data/_sass/bootstrap/scss/_pagination.scss +73 -0
  36. data/_sass/bootstrap/scss/_popover.scss +170 -0
  37. data/_sass/bootstrap/scss/_print.scss +141 -0
  38. data/_sass/bootstrap/scss/_progress.scss +46 -0
  39. data/_sass/bootstrap/scss/_reboot.scss +482 -0
  40. data/_sass/bootstrap/scss/_root.scss +20 -0
  41. data/_sass/bootstrap/scss/_spinners.scss +55 -0
  42. data/_sass/bootstrap/scss/_tables.scss +185 -0
  43. data/_sass/bootstrap/scss/_toasts.scss +44 -0
  44. data/_sass/bootstrap/scss/_tooltip.scss +115 -0
  45. data/_sass/bootstrap/scss/_transitions.scss +20 -0
  46. data/_sass/bootstrap/scss/_type.scss +125 -0
  47. data/_sass/bootstrap/scss/_utilities.scss +17 -0
  48. data/_sass/bootstrap/scss/_variables.scss +1143 -0
  49. data/_sass/bootstrap/scss/bootstrap-grid.scss +29 -0
  50. data/_sass/bootstrap/scss/bootstrap-reboot.scss +12 -0
  51. data/_sass/bootstrap/scss/bootstrap.scss +44 -0
  52. data/_sass/bootstrap/scss/mixins/_alert.scss +13 -0
  53. data/_sass/bootstrap/scss/mixins/_background-variant.scss +22 -0
  54. data/_sass/bootstrap/scss/mixins/_badge.scss +17 -0
  55. data/_sass/bootstrap/scss/mixins/_border-radius.scss +63 -0
  56. data/_sass/bootstrap/scss/mixins/_box-shadow.scss +20 -0
  57. data/_sass/bootstrap/scss/mixins/_breakpoints.scss +123 -0
  58. data/_sass/bootstrap/scss/mixins/_buttons.scss +110 -0
  59. data/_sass/bootstrap/scss/mixins/_caret.scss +62 -0
  60. data/_sass/bootstrap/scss/mixins/_clearfix.scss +7 -0
  61. data/_sass/bootstrap/scss/mixins/_deprecate.scss +10 -0
  62. data/_sass/bootstrap/scss/mixins/_float.scss +14 -0
  63. data/_sass/bootstrap/scss/mixins/_forms.scss +177 -0
  64. data/_sass/bootstrap/scss/mixins/_gradients.scss +45 -0
  65. data/_sass/bootstrap/scss/mixins/_grid-framework.scss +71 -0
  66. data/_sass/bootstrap/scss/mixins/_grid.scss +69 -0
  67. data/_sass/bootstrap/scss/mixins/_hover.scss +37 -0
  68. data/_sass/bootstrap/scss/mixins/_image.scss +36 -0
  69. data/_sass/bootstrap/scss/mixins/_list-group.scss +21 -0
  70. data/_sass/bootstrap/scss/mixins/_lists.scss +7 -0
  71. data/_sass/bootstrap/scss/mixins/_nav-divider.scss +11 -0
  72. data/_sass/bootstrap/scss/mixins/_pagination.scss +22 -0
  73. data/_sass/bootstrap/scss/mixins/_reset-text.scss +17 -0
  74. data/_sass/bootstrap/scss/mixins/_resize.scss +6 -0
  75. data/_sass/bootstrap/scss/mixins/_screen-reader.scss +34 -0
  76. data/_sass/bootstrap/scss/mixins/_size.scss +7 -0
  77. data/_sass/bootstrap/scss/mixins/_table-row.scss +39 -0
  78. data/_sass/bootstrap/scss/mixins/_text-emphasis.scss +17 -0
  79. data/_sass/bootstrap/scss/mixins/_text-hide.scss +11 -0
  80. data/_sass/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  81. data/_sass/bootstrap/scss/mixins/_transition.scss +16 -0
  82. data/_sass/bootstrap/scss/mixins/_visibility.scss +8 -0
  83. data/_sass/bootstrap/scss/utilities/_align.scss +8 -0
  84. data/_sass/bootstrap/scss/utilities/_background.scss +19 -0
  85. data/_sass/bootstrap/scss/utilities/_borders.scss +75 -0
  86. data/_sass/bootstrap/scss/utilities/_clearfix.scss +3 -0
  87. data/_sass/bootstrap/scss/utilities/_display.scss +26 -0
  88. data/_sass/bootstrap/scss/utilities/_embed.scss +39 -0
  89. data/_sass/bootstrap/scss/utilities/_flex.scss +51 -0
  90. data/_sass/bootstrap/scss/utilities/_float.scss +11 -0
  91. data/_sass/bootstrap/scss/utilities/_overflow.scss +5 -0
  92. data/_sass/bootstrap/scss/utilities/_position.scss +32 -0
  93. data/_sass/bootstrap/scss/utilities/_screenreaders.scss +11 -0
  94. data/_sass/bootstrap/scss/utilities/_shadows.scss +6 -0
  95. data/_sass/bootstrap/scss/utilities/_sizing.scss +20 -0
  96. data/_sass/bootstrap/scss/utilities/_spacing.scss +73 -0
  97. data/_sass/bootstrap/scss/utilities/_stretched-link.scss +19 -0
  98. data/_sass/bootstrap/scss/utilities/_text.scss +72 -0
  99. data/_sass/bootstrap/scss/utilities/_visibility.scss +13 -0
  100. data/_sass/bootstrap/scss/vendor/_rfs.scss +204 -0
  101. data/assets/css/style.scss +3 -0
  102. data/assets/js/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  103. data/assets/js/jquery/dist/jquery.min.js +2 -0
  104. data/gulpfile.js +46 -0
  105. data/index.html +5 -0
  106. data/package-lock.json +4258 -0
  107. data/package.json +11 -0
  108. metadata +147 -0
@@ -0,0 +1,197 @@
1
+ // Notes on the classes:
2
+ //
3
+ // 1. .carousel.pointer-event should ideally be pan-y (to allow for users to scroll vertically)
4
+ // even when their scroll action started on a carousel, but for compatibility (with Firefox)
5
+ // we're preventing all actions instead
6
+ // 2. The .carousel-item-left and .carousel-item-right is used to indicate where
7
+ // the active slide is heading.
8
+ // 3. .active.carousel-item is the current slide.
9
+ // 4. .active.carousel-item-left and .active.carousel-item-right is the current
10
+ // slide in its in-transition state. Only one of these occurs at a time.
11
+ // 5. .carousel-item-next.carousel-item-left and .carousel-item-prev.carousel-item-right
12
+ // is the upcoming slide in transition.
13
+
14
+ .carousel {
15
+ position: relative;
16
+ }
17
+
18
+ .carousel.pointer-event {
19
+ touch-action: pan-y;
20
+ }
21
+
22
+ .carousel-inner {
23
+ position: relative;
24
+ width: 100%;
25
+ overflow: hidden;
26
+ @include clearfix();
27
+ }
28
+
29
+ .carousel-item {
30
+ position: relative;
31
+ display: none;
32
+ float: left;
33
+ width: 100%;
34
+ margin-right: -100%;
35
+ backface-visibility: hidden;
36
+ @include transition($carousel-transition);
37
+ }
38
+
39
+ .carousel-item.active,
40
+ .carousel-item-next,
41
+ .carousel-item-prev {
42
+ display: block;
43
+ }
44
+
45
+ .carousel-item-next:not(.carousel-item-left),
46
+ .active.carousel-item-right {
47
+ transform: translateX(100%);
48
+ }
49
+
50
+ .carousel-item-prev:not(.carousel-item-right),
51
+ .active.carousel-item-left {
52
+ transform: translateX(-100%);
53
+ }
54
+
55
+
56
+ //
57
+ // Alternate transitions
58
+ //
59
+
60
+ .carousel-fade {
61
+ .carousel-item {
62
+ opacity: 0;
63
+ transition-property: opacity;
64
+ transform: none;
65
+ }
66
+
67
+ .carousel-item.active,
68
+ .carousel-item-next.carousel-item-left,
69
+ .carousel-item-prev.carousel-item-right {
70
+ z-index: 1;
71
+ opacity: 1;
72
+ }
73
+
74
+ .active.carousel-item-left,
75
+ .active.carousel-item-right {
76
+ z-index: 0;
77
+ opacity: 0;
78
+ @include transition(opacity 0s $carousel-transition-duration);
79
+ }
80
+ }
81
+
82
+
83
+ //
84
+ // Left/right controls for nav
85
+ //
86
+
87
+ .carousel-control-prev,
88
+ .carousel-control-next {
89
+ position: absolute;
90
+ top: 0;
91
+ bottom: 0;
92
+ z-index: 1;
93
+ // Use flex for alignment (1-3)
94
+ display: flex; // 1. allow flex styles
95
+ align-items: center; // 2. vertically center contents
96
+ justify-content: center; // 3. horizontally center contents
97
+ width: $carousel-control-width;
98
+ color: $carousel-control-color;
99
+ text-align: center;
100
+ opacity: $carousel-control-opacity;
101
+ @include transition($carousel-control-transition);
102
+
103
+ // Hover/focus state
104
+ @include hover-focus() {
105
+ color: $carousel-control-color;
106
+ text-decoration: none;
107
+ outline: 0;
108
+ opacity: $carousel-control-hover-opacity;
109
+ }
110
+ }
111
+ .carousel-control-prev {
112
+ left: 0;
113
+ @if $enable-gradients {
114
+ background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
115
+ }
116
+ }
117
+ .carousel-control-next {
118
+ right: 0;
119
+ @if $enable-gradients {
120
+ background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
121
+ }
122
+ }
123
+
124
+ // Icons for within
125
+ .carousel-control-prev-icon,
126
+ .carousel-control-next-icon {
127
+ display: inline-block;
128
+ width: $carousel-control-icon-width;
129
+ height: $carousel-control-icon-width;
130
+ background: no-repeat 50% / 100% 100%;
131
+ }
132
+ .carousel-control-prev-icon {
133
+ background-image: escape-svg($carousel-control-prev-icon-bg);
134
+ }
135
+ .carousel-control-next-icon {
136
+ background-image: escape-svg($carousel-control-next-icon-bg);
137
+ }
138
+
139
+
140
+ // Optional indicator pips
141
+ //
142
+ // Add an ordered list with the following class and add a list item for each
143
+ // slide your carousel holds.
144
+
145
+ .carousel-indicators {
146
+ position: absolute;
147
+ right: 0;
148
+ bottom: 0;
149
+ left: 0;
150
+ z-index: 15;
151
+ display: flex;
152
+ justify-content: center;
153
+ padding-left: 0; // override <ol> default
154
+ // Use the .carousel-control's width as margin so we don't overlay those
155
+ margin-right: $carousel-control-width;
156
+ margin-left: $carousel-control-width;
157
+ list-style: none;
158
+
159
+ li {
160
+ box-sizing: content-box;
161
+ flex: 0 1 auto;
162
+ width: $carousel-indicator-width;
163
+ height: $carousel-indicator-height;
164
+ margin-right: $carousel-indicator-spacer;
165
+ margin-left: $carousel-indicator-spacer;
166
+ text-indent: -999px;
167
+ cursor: pointer;
168
+ background-color: $carousel-indicator-active-bg;
169
+ background-clip: padding-box;
170
+ // Use transparent borders to increase the hit area by 10px on top and bottom.
171
+ border-top: $carousel-indicator-hit-area-height solid transparent;
172
+ border-bottom: $carousel-indicator-hit-area-height solid transparent;
173
+ opacity: .5;
174
+ @include transition($carousel-indicator-transition);
175
+ }
176
+
177
+ .active {
178
+ opacity: 1;
179
+ }
180
+ }
181
+
182
+
183
+ // Optional captions
184
+ //
185
+ //
186
+
187
+ .carousel-caption {
188
+ position: absolute;
189
+ right: (100% - $carousel-caption-width) / 2;
190
+ bottom: 20px;
191
+ left: (100% - $carousel-caption-width) / 2;
192
+ z-index: 10;
193
+ padding-top: 20px;
194
+ padding-bottom: 20px;
195
+ color: $carousel-caption-color;
196
+ text-align: center;
197
+ }
@@ -0,0 +1,41 @@
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
+ }
@@ -0,0 +1,48 @@
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
+ }
@@ -0,0 +1,521 @@
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
+ }