@gettrx/core-styles 1.0.28 → 1.0.29
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.
- package/dist/assets/core-icons.json +7512 -0
- package/dist/assets/fonts/Gettrx-Icon.ttf +0 -0
- package/dist/assets/fonts/Gettrx-Icon.woff +0 -0
- package/dist/assets/fonts/Gettrx-Icon.woff2 +0 -0
- package/dist/assets/fonts/Roboto-Black.ttf +0 -0
- package/dist/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/fonts/Roboto-Bold.ttf +0 -0
- package/dist/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/fonts/Roboto-Italic.ttf +0 -0
- package/dist/assets/fonts/Roboto-Light.ttf +0 -0
- package/dist/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/fonts/Roboto-Medium.ttf +0 -0
- package/dist/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/fonts/Roboto-Regular.ttf +0 -0
- package/dist/assets/fonts/Roboto-Thin.ttf +0 -0
- package/dist/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/dist/assets/fonts/tabler-icons.eot +0 -0
- package/dist/assets/fonts/tabler-icons.ttf +0 -0
- package/dist/assets/fonts/tabler-icons.woff +0 -0
- package/dist/assets/fonts/tabler-icons.woff2 +0 -0
- package/dist/core-styles.css +1 -0
- package/dist/core-styles.scss +12 -0
- package/dist/styles/_font-face.scss +77 -0
- package/dist/styles/_functions.scss +180 -0
- package/dist/styles/_icons.scss +1535 -0
- package/dist/styles/_reboot.scss +610 -0
- package/dist/styles/_variables.scss +1125 -0
- package/dist/styles/components/_accordion.scss +149 -0
- package/dist/styles/components/_alert.scss +68 -0
- package/dist/styles/components/_badge.scss +38 -0
- package/dist/styles/components/_breadcrumb.scss +40 -0
- package/dist/styles/components/_button-group.scss +142 -0
- package/dist/styles/components/_buttons.scss +192 -0
- package/dist/styles/components/_card.scss +239 -0
- package/dist/styles/components/_carousel.scss +209 -0
- package/dist/styles/components/_close.scss +56 -0
- package/dist/styles/components/_dropdown.scss +232 -0
- package/dist/styles/components/_forms.scss +9 -0
- package/dist/styles/components/_images.scss +42 -0
- package/dist/styles/components/_list-group.scss +197 -0
- package/dist/styles/components/_modal.scss +237 -0
- package/dist/styles/components/_nav.scss +209 -0
- package/dist/styles/components/_navbar.scss +268 -0
- package/dist/styles/components/_pagination.scss +109 -0
- package/dist/styles/components/_placeholders.scss +51 -0
- package/dist/styles/components/_popover.scss +196 -0
- package/dist/styles/components/_progress.scss +62 -0
- package/dist/styles/components/_spinners.scss +83 -0
- package/dist/styles/components/_tables.scss +171 -0
- package/dist/styles/components/_toasts.scss +73 -0
- package/dist/styles/components/_tooltip.scss +119 -0
- package/dist/styles/components/_type.scss +95 -0
- package/dist/styles/components/forms/_floating-labels.scss +94 -0
- package/dist/styles/components/forms/_form-check.scss +164 -0
- package/dist/styles/components/forms/_form-control.scss +216 -0
- package/dist/styles/components/forms/_form-range.scss +91 -0
- package/dist/styles/components/forms/_form-select.scss +69 -0
- package/dist/styles/components/forms/_form-text.scss +11 -0
- package/dist/styles/components/forms/_input-group.scss +132 -0
- package/dist/styles/components/forms/_labels.scss +36 -0
- package/dist/styles/components/forms/_validation.scss +12 -0
- package/dist/styles/components/mixins/_alert.scss +14 -0
- package/dist/styles/components/mixins/_backdrop.scss +14 -0
- package/dist/styles/components/mixins/_banner.scss +7 -0
- package/dist/styles/components/mixins/_box-shadow.scss +16 -0
- package/dist/styles/components/mixins/_buttons.scss +70 -0
- package/dist/styles/components/mixins/_caret.scss +68 -0
- package/dist/styles/components/mixins/_clearfix.scss +9 -0
- package/dist/styles/components/mixins/_deprecate.scss +10 -0
- package/dist/styles/components/mixins/_forms.scss +145 -0
- package/dist/styles/components/mixins/_gradients.scss +43 -0
- package/dist/styles/components/mixins/_image.scss +16 -0
- package/dist/styles/components/mixins/_list-group.scss +26 -0
- package/dist/styles/components/mixins/_lists.scss +7 -0
- package/dist/styles/components/mixins/_pagination.scss +10 -0
- package/dist/styles/components/mixins/_reset-text.scss +17 -0
- package/dist/styles/components/mixins/_resize.scss +6 -0
- package/dist/styles/components/mixins/_table-variants.scss +24 -0
- package/dist/styles/components/mixins/_text-truncate.scss +8 -0
- package/dist/styles/components/mixins/_transition.scss +24 -0
- package/dist/styles/components/mixins/_visually-hidden.scss +33 -0
- package/dist/styles/css/gettrx.css +13552 -0
- package/dist/styles/functions/_color.functions.scss +14 -0
- package/dist/styles/functions/_grid.functions.scss +41 -0
- package/dist/styles/functions/_map.functions.scss +36 -0
- package/dist/styles/layout/_containers.scss +43 -0
- package/dist/styles/layout/_grid.scss +26 -0
- package/dist/styles/layout/_layout.scss +2 -0
- package/dist/styles/maps/_border.maps.scss +24 -0
- package/dist/styles/maps/_colors.maps.scss +10 -0
- package/dist/styles/maps/_fonts.maps.scss +10 -0
- package/dist/styles/maps/_layout.maps.scss +33 -0
- package/dist/styles/maps/_positions.maps.scss +15 -0
- package/dist/styles/maps/_shadow.maps.scss +11 -0
- package/dist/styles/maps/_spacing.maps.scss +23 -0
- package/dist/styles/mixins/_border-radius.mixins.scss +61 -0
- package/dist/styles/mixins/_breakpoints.mixins.scss +129 -0
- package/dist/styles/mixins/_container.mixins.scss +13 -0
- package/dist/styles/mixins/_grid.mixins.scss +157 -0
- package/dist/styles/mixins/_utilities.mixins.scss +84 -0
- package/dist/styles/utilities/_api.scss +33 -0
- package/dist/styles/utilities/_utilities.scss +695 -0
- package/dist/tokens/_tokens.scss +216 -0
- package/dist/tokens/tokens.css +218 -0
- package/dist/tokens/tokens.js +216 -0
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.toast {
|
|
2
|
+
// scss-docs-start toast-css-vars
|
|
3
|
+
--gtr-toast-zindex: #{$zindex-toast};
|
|
4
|
+
--gtr-toast-padding-x: #{$toast-padding-x};
|
|
5
|
+
--gtr-toast-padding-y: #{$toast-padding-y};
|
|
6
|
+
--gtr-toast-spacing: #{$toast-spacing};
|
|
7
|
+
--gtr-toast-max-width: #{$toast-max-width};
|
|
8
|
+
--gtr-toast-font-size: $toast-font-size;
|
|
9
|
+
--gtr-toast-color: #{$toast-color};
|
|
10
|
+
--gtr-toast-bg: #{$toast-background-color};
|
|
11
|
+
--gtr-toast-border-width: #{$toast-border-width};
|
|
12
|
+
--gtr-toast-border-color: #{$toast-border-color};
|
|
13
|
+
--gtr-toast-border-radius: #{$toast-border-radius};
|
|
14
|
+
--gtr-toast-box-shadow: #{$toast-box-shadow};
|
|
15
|
+
--gtr-toast-header-color: #{$toast-header-color};
|
|
16
|
+
--gtr-toast-header-bg: #{$toast-header-background-color};
|
|
17
|
+
--gtr-toast-header-border-color: #{$toast-header-border-color};
|
|
18
|
+
// scss-docs-end toast-css-vars
|
|
19
|
+
|
|
20
|
+
width: var(--gtr-toast-max-width);
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
font-size: var(--gtr-toast-font-size);
|
|
23
|
+
color: var(--gtr-toast-color);
|
|
24
|
+
pointer-events: auto;
|
|
25
|
+
background-color: var(--gtr-toast-bg);
|
|
26
|
+
background-clip: padding-box;
|
|
27
|
+
border: var(--gtr-toast-border-width) solid var(--gtr-toast-border-color);
|
|
28
|
+
box-shadow: var(--gtr-toast-box-shadow);
|
|
29
|
+
@include border-radius(var(--gtr-toast-border-radius));
|
|
30
|
+
|
|
31
|
+
&.showing {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:not(.show) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.toast-container {
|
|
41
|
+
--gtr-toast-zindex: #{$zindex-toast};
|
|
42
|
+
|
|
43
|
+
position: absolute;
|
|
44
|
+
z-index: var(--gtr-toast-zindex);
|
|
45
|
+
width: max-content;
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
|
|
49
|
+
> :not(:last-child) {
|
|
50
|
+
margin-bottom: var(--gtr-toast-spacing);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.toast-header {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding: var(--gtr-toast-padding-y) var(--gtr-toast-padding-x);
|
|
58
|
+
color: var(--gtr-toast-header-color);
|
|
59
|
+
background-color: var(--gtr-toast-header-bg);
|
|
60
|
+
background-clip: padding-box;
|
|
61
|
+
border-bottom: var(--gtr-toast-border-width) solid var(--gtr-toast-header-border-color);
|
|
62
|
+
@include border-top-radius(calc(var(--gtr-toast-border-radius) - var(--gtr-toast-border-width)));
|
|
63
|
+
|
|
64
|
+
.btn-close {
|
|
65
|
+
margin-right: calc(-.5 * var(--gtr-toast-padding-x)); // stylelint-disable-line function-disallowed-list
|
|
66
|
+
margin-left: var(--gtr-toast-padding-x);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.toast-body {
|
|
71
|
+
padding: var(--gtr-toast-padding-x);
|
|
72
|
+
word-wrap: break-word;
|
|
73
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Base class
|
|
2
|
+
.tooltip {
|
|
3
|
+
// scss-docs-start tooltip-css-vars
|
|
4
|
+
--gtr-tooltip-zindex: #{$zindex-tooltip};
|
|
5
|
+
--gtr-tooltip-max-width: #{$tooltip-max-width};
|
|
6
|
+
--gtr-tooltip-padding-x: #{$tooltip-padding-x};
|
|
7
|
+
--gtr-tooltip-padding-y: #{$tooltip-padding-y};
|
|
8
|
+
--gtr-tooltip-margin: #{$tooltip-margin};
|
|
9
|
+
--gtr-tooltip-font-size: $tooltip-font-size;
|
|
10
|
+
--gtr-tooltip-color: #{$tooltip-color};
|
|
11
|
+
--gtr-tooltip-bg: #{$tooltip-bg};
|
|
12
|
+
--gtr-tooltip-border-radius: #{$tooltip-border-radius};
|
|
13
|
+
--gtr-tooltip-opacity: #{$tooltip-opacity};
|
|
14
|
+
--gtr-tooltip-arrow-width: #{$tooltip-arrow-width};
|
|
15
|
+
--gtr-tooltip-arrow-height: #{$tooltip-arrow-height};
|
|
16
|
+
// scss-docs-end tooltip-css-vars
|
|
17
|
+
|
|
18
|
+
z-index: var(--gtr-tooltip-zindex);
|
|
19
|
+
display: block;
|
|
20
|
+
margin: var(--gtr-tooltip-margin);
|
|
21
|
+
@include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
|
|
22
|
+
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
|
23
|
+
// So reset our font and text properties to avoid inheriting weird values.
|
|
24
|
+
@include reset-text();
|
|
25
|
+
font-size: var(--gtr-tooltip-font-size);
|
|
26
|
+
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
|
27
|
+
word-wrap: break-word;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
|
|
30
|
+
&.show { opacity: var(--gtr-tooltip-opacity); }
|
|
31
|
+
|
|
32
|
+
.tooltip-arrow {
|
|
33
|
+
display: block;
|
|
34
|
+
width: var(--gtr-tooltip-arrow-width);
|
|
35
|
+
height: var(--gtr-tooltip-arrow-height);
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
position: absolute;
|
|
39
|
+
content: "";
|
|
40
|
+
border-color: transparent;
|
|
41
|
+
border-style: solid;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bs-tooltip-top .tooltip-arrow {
|
|
47
|
+
bottom: calc(-1 * var(--gtr-tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
48
|
+
|
|
49
|
+
&::before {
|
|
50
|
+
top: -1px;
|
|
51
|
+
border-width: var(--gtr-tooltip-arrow-height) calc(var(--gtr-tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
|
52
|
+
border-top-color: var(--gtr-tooltip-bg);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* rtl:begin:ignore */
|
|
57
|
+
.bs-tooltip-end .tooltip-arrow {
|
|
58
|
+
left: calc(-1 * var(--gtr-tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
59
|
+
width: var(--gtr-tooltip-arrow-height);
|
|
60
|
+
height: var(--gtr-tooltip-arrow-width);
|
|
61
|
+
|
|
62
|
+
&::before {
|
|
63
|
+
right: -1px;
|
|
64
|
+
border-width: calc(var(--gtr-tooltip-arrow-width) * .5) var(--gtr-tooltip-arrow-height) calc(var(--gtr-tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
|
65
|
+
border-right-color: var(--gtr-tooltip-bg);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* rtl:end:ignore */
|
|
70
|
+
|
|
71
|
+
.bs-tooltip-bottom .tooltip-arrow {
|
|
72
|
+
top: calc(-1 * var(--gtr-tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
73
|
+
|
|
74
|
+
&::before {
|
|
75
|
+
bottom: -1px;
|
|
76
|
+
border-width: 0 calc(var(--gtr-tooltip-arrow-width) * .5) var(--gtr-tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
77
|
+
border-bottom-color: var(--gtr-tooltip-bg);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* rtl:begin:ignore */
|
|
82
|
+
.bs-tooltip-start .tooltip-arrow {
|
|
83
|
+
right: calc(-1 * var(--gtr-tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
84
|
+
width: var(--gtr-tooltip-arrow-height);
|
|
85
|
+
height: var(--gtr-tooltip-arrow-width);
|
|
86
|
+
|
|
87
|
+
&::before {
|
|
88
|
+
left: -1px;
|
|
89
|
+
border-width: calc(var(--gtr-tooltip-arrow-width) * .5) 0 calc(var(--gtr-tooltip-arrow-width) * .5) var(--gtr-tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
90
|
+
border-left-color: var(--gtr-tooltip-bg);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* rtl:end:ignore */
|
|
95
|
+
|
|
96
|
+
.bs-tooltip-auto {
|
|
97
|
+
&[data-popper-placement^="top"] {
|
|
98
|
+
@extend .bs-tooltip-top;
|
|
99
|
+
}
|
|
100
|
+
&[data-popper-placement^="right"] {
|
|
101
|
+
@extend .bs-tooltip-end;
|
|
102
|
+
}
|
|
103
|
+
&[data-popper-placement^="bottom"] {
|
|
104
|
+
@extend .bs-tooltip-bottom;
|
|
105
|
+
}
|
|
106
|
+
&[data-popper-placement^="left"] {
|
|
107
|
+
@extend .bs-tooltip-start;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Wrapper for the tooltip content
|
|
112
|
+
.tooltip-inner {
|
|
113
|
+
max-width: var(--gtr-tooltip-max-width);
|
|
114
|
+
padding: var(--gtr-tooltip-padding-y) var(--gtr-tooltip-padding-x);
|
|
115
|
+
color: var(--gtr-tooltip-color);
|
|
116
|
+
text-align: center;
|
|
117
|
+
background-color: var(--gtr-tooltip-bg);
|
|
118
|
+
@include border-radius(var(--gtr-tooltip-border-radius));
|
|
119
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Headings
|
|
3
|
+
//
|
|
4
|
+
.h1 {
|
|
5
|
+
@extend h1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.h2 {
|
|
9
|
+
@extend h2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.h3 {
|
|
13
|
+
@extend h3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.h4 {
|
|
17
|
+
@extend h4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.h5 {
|
|
21
|
+
@extend h5;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.h6 {
|
|
25
|
+
@extend h6;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
.lead {
|
|
30
|
+
font-size: $gtr-size-font-size-base * 1.25;
|
|
31
|
+
font-weight: 300;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//
|
|
35
|
+
// Emphasis
|
|
36
|
+
//
|
|
37
|
+
.small {
|
|
38
|
+
@extend small;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mark {
|
|
42
|
+
@extend mark;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//
|
|
46
|
+
// Lists
|
|
47
|
+
//
|
|
48
|
+
|
|
49
|
+
.list-unstyled {
|
|
50
|
+
@include list-unstyled();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Inline turns list items into inline-block
|
|
54
|
+
.list-inline {
|
|
55
|
+
@include list-unstyled();
|
|
56
|
+
}
|
|
57
|
+
.list-inline-item {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
|
|
60
|
+
&:not(:last-child) {
|
|
61
|
+
margin-right: .5rem;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
//
|
|
67
|
+
// Misc
|
|
68
|
+
//
|
|
69
|
+
|
|
70
|
+
// Builds on `abbr`
|
|
71
|
+
.initialism {
|
|
72
|
+
font-size: $gtr-size-font-size-sm;
|
|
73
|
+
text-transform: uppercase;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Blockquotes
|
|
77
|
+
.blockquote {
|
|
78
|
+
margin-bottom: $gtr-size-spacing-base;
|
|
79
|
+
font-size: $gtr-size-font-size-base * 1.25;
|
|
80
|
+
|
|
81
|
+
> :last-child {
|
|
82
|
+
margin-bottom: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.blockquote-footer {
|
|
87
|
+
margin-top: -$gtr-size-spacing-base;
|
|
88
|
+
margin-bottom: $gtr-size-spacing-base;
|
|
89
|
+
font-size: $gtr-size-font-size-sm;
|
|
90
|
+
color: $gray-600;
|
|
91
|
+
|
|
92
|
+
&::before {
|
|
93
|
+
content: "\2014\00A0"; // em dash, nbsp
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.form-floating {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
> .form-control,
|
|
5
|
+
> .form-control-plaintext,
|
|
6
|
+
> .form-select {
|
|
7
|
+
height: $form-floating-height;
|
|
8
|
+
min-height: $form-floating-height;
|
|
9
|
+
line-height: $form-floating-line-height;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
> label {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
z-index: 2;
|
|
17
|
+
height: 100%; // allow textareas
|
|
18
|
+
padding: $form-floating-padding-y $form-floating-padding-x;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-align: start;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
|
|
25
|
+
transform-origin: 0 0;
|
|
26
|
+
@include transition($form-floating-transition);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
> .form-control,
|
|
30
|
+
> .form-control-plaintext {
|
|
31
|
+
padding: $form-floating-padding-y $form-floating-padding-x;
|
|
32
|
+
|
|
33
|
+
&::placeholder {
|
|
34
|
+
color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus,
|
|
38
|
+
&:not(:placeholder-shown) {
|
|
39
|
+
padding-top: $form-floating-input-padding-t;
|
|
40
|
+
padding-bottom: $form-floating-input-padding-b;
|
|
41
|
+
}
|
|
42
|
+
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
|
|
43
|
+
&:-webkit-autofill {
|
|
44
|
+
padding-top: $form-floating-input-padding-t;
|
|
45
|
+
padding-bottom: $form-floating-input-padding-b;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
> .form-select {
|
|
50
|
+
padding-top: $form-floating-input-padding-t;
|
|
51
|
+
padding-bottom: $form-floating-input-padding-b;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
> .form-control:focus,
|
|
55
|
+
> .form-control:not(:placeholder-shown),
|
|
56
|
+
> .form-control-plaintext,
|
|
57
|
+
> .form-select {
|
|
58
|
+
~ label {
|
|
59
|
+
color: rgba(var(--gtr-body-color-rgb), #{$form-floating-label-opacity});
|
|
60
|
+
transform: $form-floating-label-transform;
|
|
61
|
+
|
|
62
|
+
&::after {
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset: $form-floating-padding-y ($form-floating-padding-x * .5);
|
|
65
|
+
z-index: -1;
|
|
66
|
+
height: $form-floating-label-height;
|
|
67
|
+
content: "";
|
|
68
|
+
background-color: $input-bg;
|
|
69
|
+
@include border-radius($input-border-radius);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
|
|
74
|
+
> .form-control:-webkit-autofill {
|
|
75
|
+
~ label {
|
|
76
|
+
color: rgba(var(--gtr-body-color-rgb), #{$form-floating-label-opacity});
|
|
77
|
+
transform: $form-floating-label-transform;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
> .form-control-plaintext {
|
|
82
|
+
~ label {
|
|
83
|
+
border-width: $input-border-width 0; // Required to properly position label text - as explained above
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
> :disabled ~ label {
|
|
88
|
+
color: $form-floating-label-disabled-color;
|
|
89
|
+
|
|
90
|
+
&::after {
|
|
91
|
+
background-color: $input-disabled-bg;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Check/radio
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.form-check {
|
|
6
|
+
display: block;
|
|
7
|
+
min-height: $form-check-min-height;
|
|
8
|
+
padding-left: $form-check-padding-start;
|
|
9
|
+
margin-bottom: $form-check-margin-bottom;
|
|
10
|
+
|
|
11
|
+
.form-check-input {
|
|
12
|
+
float: left;
|
|
13
|
+
margin-left: $form-check-padding-start * -1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.form-check-reverse {
|
|
18
|
+
padding-right: $form-check-padding-start;
|
|
19
|
+
padding-left: 0;
|
|
20
|
+
text-align: right;
|
|
21
|
+
|
|
22
|
+
.form-check-input {
|
|
23
|
+
float: right;
|
|
24
|
+
margin-right: $form-check-padding-start * -1;
|
|
25
|
+
margin-left: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.form-check-input {
|
|
30
|
+
--gtr-form-check-bg: #{$form-check-input-bg};
|
|
31
|
+
|
|
32
|
+
width: $form-check-input-width;
|
|
33
|
+
height: $form-check-input-width;
|
|
34
|
+
margin-top: ($gtr-component-font-line-height-base - $form-check-input-width) * .5; // line-height minus check height
|
|
35
|
+
vertical-align: top;
|
|
36
|
+
background-color: var(--gtr-form-check-bg);
|
|
37
|
+
background-image: var(--gtr-form-check-bg-image);
|
|
38
|
+
background-repeat: no-repeat;
|
|
39
|
+
background-position: center;
|
|
40
|
+
background-size: contain;
|
|
41
|
+
border: $form-check-input-border;
|
|
42
|
+
appearance: none;
|
|
43
|
+
print-color-adjust: exact; // Keep themed appearance for print
|
|
44
|
+
@include transition($form-check-transition);
|
|
45
|
+
|
|
46
|
+
&[type="checkbox"] {
|
|
47
|
+
@include border-radius($form-check-input-border-radius);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[type="radio"] {
|
|
51
|
+
// stylelint-disable-next-line property-disallowed-list
|
|
52
|
+
border-radius: $form-check-radio-border-radius;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:active {
|
|
56
|
+
filter: $form-check-input-active-filter;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:focus {
|
|
60
|
+
border-color: $form-check-input-focus-border;
|
|
61
|
+
outline: 0;
|
|
62
|
+
box-shadow: $form-check-input-focus-box-shadow;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:checked {
|
|
66
|
+
background-color: $form-check-input-checked-bg-color;
|
|
67
|
+
border-color: $form-check-input-checked-border-color;
|
|
68
|
+
|
|
69
|
+
&[type="checkbox"] {
|
|
70
|
+
--gtr-form-check-bg-image: #{escape-svg($form-check-input-checked-bg-image)};
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&[type="radio"] {
|
|
75
|
+
--gtr-form-check-bg-image: #{escape-svg($form-check-radio-checked-bg-image)};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[type="checkbox"]:indeterminate {
|
|
80
|
+
background-color: $form-check-input-indeterminate-bg-color;
|
|
81
|
+
border-color: $form-check-input-indeterminate-border-color;
|
|
82
|
+
--gtr-form-check-bg-image: #{escape-svg($form-check-input-indeterminate-bg-image)};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:disabled {
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
filter: none;
|
|
88
|
+
opacity: $form-check-input-disabled-opacity;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Use disabled attribute in addition of :disabled pseudo-class
|
|
92
|
+
// See: https://github.com/twbs/bootstrap/issues/28247
|
|
93
|
+
&[disabled],
|
|
94
|
+
&:disabled {
|
|
95
|
+
~ .form-check-label {
|
|
96
|
+
cursor: default;
|
|
97
|
+
opacity: $form-check-label-disabled-opacity;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.form-check-label {
|
|
103
|
+
color: $form-check-label-color;
|
|
104
|
+
cursor: $form-check-label-cursor;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//
|
|
108
|
+
// Switch
|
|
109
|
+
//
|
|
110
|
+
|
|
111
|
+
.form-switch {
|
|
112
|
+
padding-left: $form-switch-padding-start;
|
|
113
|
+
|
|
114
|
+
.form-check-input {
|
|
115
|
+
--gtr-form-switch-bg: #{escape-svg($form-switch-bg-image)};
|
|
116
|
+
|
|
117
|
+
width: $form-switch-width;
|
|
118
|
+
margin-left: $form-switch-padding-start * -1;
|
|
119
|
+
background-image: var(--gtr-form-switch-bg);
|
|
120
|
+
background-position: left center;
|
|
121
|
+
@include border-radius($form-switch-border-radius);
|
|
122
|
+
@include transition($form-switch-transition);
|
|
123
|
+
|
|
124
|
+
&:focus {
|
|
125
|
+
--gtr-form-switch-bg: #{escape-svg($form-switch-focus-bg-image)};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:checked {
|
|
129
|
+
background-position: $form-switch-checked-bg-position;
|
|
130
|
+
--gtr-form-switch-bg: #{escape-svg($form-switch-checked-bg-image)};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.form-check-reverse {
|
|
135
|
+
padding-right: $form-switch-padding-start;
|
|
136
|
+
padding-left: 0;
|
|
137
|
+
|
|
138
|
+
.form-check-input {
|
|
139
|
+
margin-right: $form-switch-padding-start * -1;
|
|
140
|
+
margin-left: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.form-check-inline {
|
|
146
|
+
display: inline-block;
|
|
147
|
+
margin-right: $form-check-inline-margin-end;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.btn-check {
|
|
151
|
+
position: absolute;
|
|
152
|
+
clip: rect(0, 0, 0, 0);
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
|
|
155
|
+
&[disabled],
|
|
156
|
+
&:disabled {
|
|
157
|
+
+ .btn {
|
|
158
|
+
pointer-events: none;
|
|
159
|
+
filter: none;
|
|
160
|
+
opacity: $form-check-btn-check-disabled-opacity;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|