@steroidsjs/bootstrap 3.0.0-beta.85 → 3.0.0-beta.87
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/content/Accordion/AccordionItemView.scss +24 -14
- package/content/Alert/AlertView.scss +20 -17
- package/content/Avatar/AvatarView.scss +12 -10
- package/content/Badge/BadgeView.scss +21 -19
- package/content/Calendar/CalendarView.scss +27 -37
- package/content/Calendar/CaptionElement.scss +14 -11
- package/content/Card/CardView.scss +11 -9
- package/content/Detail/DetailView.scss +13 -11
- package/content/DropDown/DropDownView.scss +4 -2
- package/content/Menu/MenuItemView.scss +7 -3
- package/content/Menu/MenuView.scss +16 -13
- package/form/AutoCompleteField/AutoCompleteFieldView.scss +36 -33
- package/form/Button/ButtonView.scss +28 -26
- package/form/CheckboxField/CheckboxFieldView.scss +29 -27
- package/form/DateField/DateFieldView.scss +11 -7
- package/form/DateRangeField/DateRangeFieldView.scss +21 -7
- package/form/DateTimeField/DateTimeFieldView.scss +11 -8
- package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +15 -10
- package/form/DropDownField/DropDownFieldView.scss +75 -73
- package/form/DropDownFieldItem/DropDownFieldItemView.scss +13 -11
- package/form/FieldLayout/FieldLayoutView.scss +27 -25
- package/form/FieldList/FieldListItemView.scss +3 -1
- package/form/FieldList/FieldListView.scss +11 -8
- package/form/FieldSet/FieldSetView.scss +4 -1
- package/form/FileField/FileFieldItemView.scss +21 -17
- package/form/FileField/FileFieldView.scss +3 -1
- package/form/ImageField/ImageFieldView.scss +2 -2
- package/form/InputField/InputFieldView.scss +33 -31
- package/form/NumberField/NumberFieldView.scss +23 -21
- package/form/PasswordField/PasswordFieldView.scss +22 -20
- package/form/RadioField/RadioFieldView.scss +26 -24
- package/form/RateField/RateFieldView.scss +19 -16
- package/form/SliderField/SliderFieldView.scss +17 -15
- package/form/SwitcherField/SwitcherFieldView.scss +30 -26
- package/form/TextField/TextFieldView.scss +24 -21
- package/form/TimeField/TimeFieldView.scss +11 -8
- package/form/TimeField/TimePanelView.scss +13 -10
- package/form/TimeRangeField/TimeRangeFieldView.scss +14 -10
- package/index.scss +90 -89
- package/layout/Header/HeaderView.scss +15 -13
- package/layout/Loader/LoaderView.scss +5 -2
- package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
- package/layout/ProgressBar/LineProgressBarView.scss +10 -8
- package/layout/Sidebar/FooterIcons/FooterIcons.scss +1 -1
- package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +7 -7
- package/layout/Sidebar/SidebarUser/SidebarUser.scss +5 -5
- package/layout/Sidebar/SidebarView.scss +9 -7
- package/layout/Skeleton/SkeletonView.scss +7 -5
- package/layout/Tooltip/TooltipView.scss +2 -1
- package/list/Empty/EmptyView.scss +2 -1
- package/list/FlexGrid/FlexGridView.scss +6 -3
- package/list/Grid/GridView.scss +15 -13
- package/list/Grid/views/ContentColumnView/ContentColumnView.scss +9 -7
- package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +12 -12
- package/list/List/ListView.scss +3 -1
- package/list/Pagination/PaginationButtonView.scss +15 -13
- package/list/Steps/StepItemView.scss +13 -12
- package/list/Steps/StepsView.scss +3 -1
- package/modal/Modal/ModalView.scss +19 -17
- package/nav/Breadcrubms/BreadcrumbsView.scss +5 -5
- package/nav/ButtonGroup/ButtonGroupView.scss +8 -5
- package/nav/Nav/NavBarView.scss +7 -4
- package/nav/Nav/NavIconView.scss +6 -4
- package/nav/Nav/NavTabsView.scss +11 -8
- package/nav/Tree/TreeView.scss +7 -5
- package/package.json +1 -1
- package/scss/animations/index.scss +1 -1
- package/scss/mixins/button.scss +31 -28
- package/scss/mixins/customMixins.scss +2 -1
- package/scss/mixins/date.scss +55 -41
- package/scss/mixins/index.scss +6 -6
- package/scss/mixins/typography.scss +23 -20
- package/scss/variables/common/colors.scss +4 -2
- package/scss/variables/common/typography.scss +22 -19
- package/scss/variables/components/calendar.scss +8 -5
- package/scss/variables/components/input.scss +3 -1
- package/scss/variables/components/ratefield.scss +3 -1
- package/scss/variables/index.scss +10 -11
- package/typography/Text/TextView.scss +7 -4
- package/typography/Title/TitleView.scss +7 -4
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--accordion-light-background: var(--gray);
|
|
3
6
|
--accordion-intermediate-background: #ffffff;
|
|
@@ -14,6 +17,8 @@
|
|
|
14
17
|
--accordion-chevron-revert-box-shadow: none;
|
|
15
18
|
|
|
16
19
|
--accordion-content-background: #ffffff;
|
|
20
|
+
--accordion-text-color: #312c3a;
|
|
21
|
+
--accordion-content-border: rgba(0, 0, 0, 0.1);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
html[data-theme="dark"] {
|
|
@@ -32,6 +37,8 @@ html[data-theme="dark"] {
|
|
|
32
37
|
--accordion-chevron-revert-box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.1);
|
|
33
38
|
|
|
34
39
|
--accordion-content-background: var(--graphite);
|
|
40
|
+
--accordion-text-color: #ffffff;
|
|
41
|
+
--accordion-content-border: rgba(255, 255, 255, 0.1);
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
$accordion-light-background: var(--accordion-light-background);
|
|
@@ -50,19 +57,23 @@ $accordion-chevron-revert-box-shadow: var(--accordion-chevron-revert-box-shadow)
|
|
|
50
57
|
|
|
51
58
|
$accordion-content-background: var(--accordion-content-background);
|
|
52
59
|
|
|
60
|
+
$accordion-text-color: var(--accordion-text-color);
|
|
61
|
+
|
|
62
|
+
$accordion-content-border: var(--accordion-content-border);
|
|
63
|
+
|
|
53
64
|
$accordion-themes: () !default;
|
|
54
|
-
$accordion-themes: map
|
|
65
|
+
$accordion-themes: map.merge(
|
|
55
66
|
(
|
|
56
67
|
"light": (
|
|
57
68
|
"background": $accordion-light-background,
|
|
58
|
-
"text-color": $text-color,
|
|
69
|
+
"text-color": $accordion-text-color,
|
|
59
70
|
"chevron-box-shadow": $accordion-chevron-default-box-shadow,
|
|
60
71
|
"chevron-background": $accordion-chevron-light-background,
|
|
61
72
|
"chevron-inner-color": $accordion-chevron-inner-default-color,
|
|
62
73
|
),
|
|
63
74
|
"intermediate": (
|
|
64
75
|
"background": $accordion-intermediate-background,
|
|
65
|
-
"text-color": $text-color,
|
|
76
|
+
"text-color": $accordion-text-color,
|
|
66
77
|
"chevron-box-shadow": $accordion-chevron-default-box-shadow,
|
|
67
78
|
"chevron-background": $accordion-chevron-intermediate-background,
|
|
68
79
|
"chevron-inner-color": $accordion-chevron-inner-default-color,
|
|
@@ -92,22 +103,21 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
92
103
|
height: 56px;
|
|
93
104
|
width: 480px;
|
|
94
105
|
height: fit-content;
|
|
95
|
-
font-family: $font-family-nunito;
|
|
96
106
|
|
|
97
107
|
@each $theme, $themeProperties in $accordion-themes {
|
|
98
108
|
&_theme_#{$theme} {
|
|
99
109
|
#{$root}__header-container {
|
|
100
|
-
background-color: map
|
|
101
|
-
color: map
|
|
110
|
+
background-color: map.get($themeProperties, background);
|
|
111
|
+
color: map.get($themeProperties, text-color);
|
|
102
112
|
}
|
|
103
113
|
|
|
104
114
|
#{$root}__icon-chevron {
|
|
105
|
-
box-shadow: map
|
|
115
|
+
box-shadow: map.get($themeProperties, chevron-box-shadow);
|
|
106
116
|
rect {
|
|
107
|
-
fill: map
|
|
117
|
+
fill: map.get($themeProperties, chevron-background);
|
|
108
118
|
}
|
|
109
119
|
path {
|
|
110
|
-
stroke: map
|
|
120
|
+
stroke: map.get($themeProperties, chevron-inner-color);
|
|
111
121
|
}
|
|
112
122
|
}
|
|
113
123
|
}
|
|
@@ -115,7 +125,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
115
125
|
|
|
116
126
|
&_position {
|
|
117
127
|
&_top {
|
|
118
|
-
border-radius:
|
|
128
|
+
border-radius: variables.$radius-large variables.$radius-large 0 0;
|
|
119
129
|
}
|
|
120
130
|
|
|
121
131
|
&_middle {
|
|
@@ -123,7 +133,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
123
133
|
}
|
|
124
134
|
|
|
125
135
|
&_bottom {
|
|
126
|
-
border-radius: 0 0
|
|
136
|
+
border-radius: 0 0 variables.$radius-large variables.$radius-large;
|
|
127
137
|
|
|
128
138
|
#{$root}__content {
|
|
129
139
|
grid-row-start: 1;
|
|
@@ -165,7 +175,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
165
175
|
width: 24px;
|
|
166
176
|
height: 24px;
|
|
167
177
|
box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.1);
|
|
168
|
-
border-radius:
|
|
178
|
+
border-radius: variables.$radius-small;
|
|
169
179
|
|
|
170
180
|
transform: rotate(0deg);
|
|
171
181
|
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
@@ -185,7 +195,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
185
195
|
padding: 16px;
|
|
186
196
|
align-self: center;
|
|
187
197
|
|
|
188
|
-
font-size:
|
|
198
|
+
font-size: variables.$font-size-lg;
|
|
189
199
|
line-height: 24px;
|
|
190
200
|
}
|
|
191
201
|
|
|
@@ -214,7 +224,7 @@ $accordion-chevron-color: var(--accordion-chevron-color);
|
|
|
214
224
|
overflow: hidden;
|
|
215
225
|
max-height: 0;
|
|
216
226
|
padding: 0 16px;
|
|
217
|
-
color:
|
|
227
|
+
color: variables.$text-color;
|
|
218
228
|
|
|
219
229
|
&_visible {
|
|
220
230
|
max-height: 1024px;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../scss/variables";
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--alert-text-color: #152536;
|
|
3
6
|
}
|
|
@@ -9,27 +12,27 @@ html[data-theme="dark"] {
|
|
|
9
12
|
$alert-text-color: var(--alert-text-color);
|
|
10
13
|
|
|
11
14
|
$alert-themes: () !default;
|
|
12
|
-
$alert-themes: map
|
|
15
|
+
$alert-themes: map.merge(
|
|
13
16
|
(
|
|
14
17
|
"success": (
|
|
15
|
-
"background-color":
|
|
16
|
-
"icon-color":
|
|
18
|
+
"background-color": variables.$success-light,
|
|
19
|
+
"icon-color": variables.$success,
|
|
17
20
|
),
|
|
18
21
|
"info": (
|
|
19
|
-
"background-color":
|
|
20
|
-
"icon-color":
|
|
22
|
+
"background-color": variables.$info-light,
|
|
23
|
+
"icon-color": variables.$info,
|
|
21
24
|
),
|
|
22
25
|
"warning": (
|
|
23
|
-
"background-color":
|
|
24
|
-
"icon-color":
|
|
26
|
+
"background-color": variables.$warning-light,
|
|
27
|
+
"icon-color": variables.$warning,
|
|
25
28
|
),
|
|
26
29
|
"error": (
|
|
27
|
-
"background-color":
|
|
28
|
-
"icon-color":
|
|
30
|
+
"background-color": variables.$danger-light,
|
|
31
|
+
"icon-color": variables.$danger,
|
|
29
32
|
),
|
|
30
33
|
"default": (
|
|
31
|
-
"background-color":
|
|
32
|
-
"icon-color":
|
|
34
|
+
"background-color": variables.$light-gray,
|
|
35
|
+
"icon-color": variables.$gray-dark,
|
|
33
36
|
),
|
|
34
37
|
),
|
|
35
38
|
$alert-themes
|
|
@@ -40,8 +43,8 @@ $alert-themes: map-merge(
|
|
|
40
43
|
|
|
41
44
|
position: relative;
|
|
42
45
|
padding: 16px;
|
|
43
|
-
border-radius:
|
|
44
|
-
font-family:
|
|
46
|
+
border-radius: variables.$radius-large;
|
|
47
|
+
font-family: variables.$font-family-nunito;
|
|
45
48
|
|
|
46
49
|
&_close-animation {
|
|
47
50
|
animation: hide_slide 0.4s ease-in;
|
|
@@ -93,18 +96,18 @@ $alert-themes: map-merge(
|
|
|
93
96
|
|
|
94
97
|
@each $color, $alert-properties in $alert-themes {
|
|
95
98
|
&_#{$color} {
|
|
96
|
-
background-color: map
|
|
99
|
+
background-color: map.get($alert-properties, background-color);
|
|
97
100
|
|
|
98
101
|
#{$root}__icon_#{$color} {
|
|
99
102
|
g > circle:not([fill="white"]), rect {
|
|
100
|
-
fill: map
|
|
103
|
+
fill: map.get($alert-properties, icon-color);
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
&__message {
|
|
107
|
-
font-size:
|
|
110
|
+
font-size: variables.$font-size-lg;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
&__wrapper {
|
|
@@ -121,6 +124,6 @@ $alert-themes: map-merge(
|
|
|
121
124
|
}
|
|
122
125
|
|
|
123
126
|
&__description {
|
|
124
|
-
font-size:
|
|
127
|
+
font-size: variables.$font-size-base;
|
|
125
128
|
}
|
|
126
129
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--border-width-small: 1px;
|
|
3
5
|
--border-width-medium: 2px;
|
|
@@ -60,7 +62,7 @@ $status-border-color: var(--status-border-color);
|
|
|
60
62
|
height: 64px;
|
|
61
63
|
width: 64px;
|
|
62
64
|
line-height: 64px;
|
|
63
|
-
font-size:
|
|
65
|
+
font-size: variables.$font-size-base;
|
|
64
66
|
}
|
|
65
67
|
--border-width: var(--border-width-large);
|
|
66
68
|
--status-border-width: var(--status-border-width-large);
|
|
@@ -72,7 +74,7 @@ $status-border-color: var(--status-border-color);
|
|
|
72
74
|
height: 50px;
|
|
73
75
|
width: 50px;
|
|
74
76
|
line-height: 50px;
|
|
75
|
-
font-size:
|
|
77
|
+
font-size: variables.$font-size-sm;
|
|
76
78
|
}
|
|
77
79
|
--border-width: var(--border-width-medium);
|
|
78
80
|
--status-border-width: var(--status-border-width-medium);
|
|
@@ -84,7 +86,7 @@ $status-border-color: var(--status-border-color);
|
|
|
84
86
|
height: 32px;
|
|
85
87
|
width: 32px;
|
|
86
88
|
line-height: 32px;
|
|
87
|
-
font-size:
|
|
89
|
+
font-size: variables.$font-size-xs;
|
|
88
90
|
}
|
|
89
91
|
--border-width: var(--border-width-small);
|
|
90
92
|
--status-border-width: var(--status-border-width-small);
|
|
@@ -123,17 +125,17 @@ $status-border-color: var(--status-border-color);
|
|
|
123
125
|
height: var(--status-size);
|
|
124
126
|
z-index: 10;
|
|
125
127
|
|
|
126
|
-
color:
|
|
128
|
+
color: variables.$success;
|
|
127
129
|
|
|
128
|
-
border-radius:
|
|
129
|
-
background-color:
|
|
130
|
+
border-radius: variables.$radius-circle;
|
|
131
|
+
background-color: variables.$success;
|
|
130
132
|
|
|
131
133
|
border: var(--status-border-width) solid $status-border-color;
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
&_has-border {
|
|
136
|
-
@include border(
|
|
138
|
+
@include border(variables.$gradient-blue);
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
&__body {
|
|
@@ -144,12 +146,12 @@ $status-border-color: var(--status-border-color);
|
|
|
144
146
|
white-space: nowrap;
|
|
145
147
|
vertical-align: middle;
|
|
146
148
|
|
|
147
|
-
color:
|
|
148
|
-
background:
|
|
149
|
+
color: variables.$white;
|
|
150
|
+
background: variables.$primary;
|
|
149
151
|
|
|
150
152
|
span {
|
|
151
153
|
display: block;
|
|
152
|
-
font-family:
|
|
154
|
+
font-family: variables.$font-family-nunito;
|
|
153
155
|
font-weight: 800;
|
|
154
156
|
letter-spacing: 0.1em;
|
|
155
157
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--counter-background-color: #ffffff;
|
|
3
5
|
--counter-border-color: var(--gray);
|
|
@@ -21,9 +23,9 @@ $counter-cross-color: var(--counter-cross-color);
|
|
|
21
23
|
position: relative;
|
|
22
24
|
width: fit-content;
|
|
23
25
|
|
|
24
|
-
font-family:
|
|
25
|
-
color:
|
|
26
|
-
font-size:
|
|
26
|
+
font-family: variables.$font-family-nunito;
|
|
27
|
+
color: variables.$white;
|
|
28
|
+
font-size: variables.$font-size-xs;
|
|
27
29
|
line-height: 16px;
|
|
28
30
|
|
|
29
31
|
&__content {
|
|
@@ -41,12 +43,12 @@ $counter-cross-color: var(--counter-cross-color);
|
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
$badge-types: (
|
|
44
|
-
"primary":
|
|
45
|
-
"secondary":
|
|
46
|
-
"success":
|
|
47
|
-
"danger":
|
|
48
|
-
"warning":
|
|
49
|
-
"info":
|
|
46
|
+
"primary": variables.$primary,
|
|
47
|
+
"secondary": variables.$secondary,
|
|
48
|
+
"success": variables.$success,
|
|
49
|
+
"danger": variables.$danger,
|
|
50
|
+
"warning": variables.$warning,
|
|
51
|
+
"info": variables.$info,
|
|
50
52
|
);
|
|
51
53
|
|
|
52
54
|
@each $type, $color in $badge-types {
|
|
@@ -54,7 +56,7 @@ $counter-cross-color: var(--counter-cross-color);
|
|
|
54
56
|
background-color: $color;
|
|
55
57
|
|
|
56
58
|
@if ($type == "warning" or $type == "info") {
|
|
57
|
-
color:
|
|
59
|
+
color: variables.$static-text-color;
|
|
58
60
|
|
|
59
61
|
#{$root}__close {
|
|
60
62
|
svg {
|
|
@@ -80,11 +82,11 @@ $counter-cross-color: var(--counter-cross-color);
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
&_squarer {
|
|
83
|
-
border-radius:
|
|
85
|
+
border-radius: variables.$radius-small;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
&_rounder {
|
|
87
|
-
border-radius:
|
|
89
|
+
border-radius: variables.$radius-xlarge;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
&_hasClose {
|
|
@@ -97,8 +99,8 @@ $counter-cross-color: var(--counter-cross-color);
|
|
|
97
99
|
border: 1px solid $counter-border-color;
|
|
98
100
|
border-radius: 100px;
|
|
99
101
|
|
|
100
|
-
background:
|
|
101
|
-
color:
|
|
102
|
+
background: variables.$light-gray;
|
|
103
|
+
color: variables.$text-color;
|
|
102
104
|
padding: 3px 12px;
|
|
103
105
|
|
|
104
106
|
#{$root}__content {
|
|
@@ -117,17 +119,17 @@ $counter-cross-color: var(--counter-cross-color);
|
|
|
117
119
|
|
|
118
120
|
margin-right: 4px;
|
|
119
121
|
padding: 0 5.4px;
|
|
120
|
-
background-color:
|
|
122
|
+
background-color: variables.$white;
|
|
121
123
|
|
|
122
|
-
border-radius:
|
|
124
|
+
border-radius: variables.$radius-circle;
|
|
123
125
|
background-color: $counter-background-color;
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
#{$root}__counter-content {
|
|
127
|
-
font-weight:
|
|
128
|
-
font-size:
|
|
129
|
+
font-weight: variables.$font-weight-sm;
|
|
130
|
+
font-size: variables.$font-size-xs;
|
|
129
131
|
line-height: 16px;
|
|
130
|
-
color:
|
|
132
|
+
color: variables.$text-color;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
#{$root}__close {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--day-background-color-hover: rgba(0, 0, 0, 0.1);
|
|
3
6
|
--calendar-border-color: var(--light-gray);
|
|
@@ -11,28 +14,15 @@ html[data-theme="dark"] {
|
|
|
11
14
|
$day-background-color-hover: var(--day-background-color-hover);
|
|
12
15
|
$calendar-border-color: var(--calendar-border-color);
|
|
13
16
|
|
|
14
|
-
@mixin calendar-button () {
|
|
15
|
-
padding: 5px 12.5px;
|
|
16
|
-
border-radius: $radius-small;
|
|
17
|
-
border: 1px solid $gray;
|
|
18
|
-
background-color: transparent;
|
|
19
|
-
background-image: none;
|
|
20
|
-
box-shadow: none;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
color: $text-color;
|
|
23
|
-
font-size: $font-size-sm;
|
|
24
|
-
line-height: $line-height-lg;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
17
|
.CalendarView {
|
|
28
18
|
$root: &;
|
|
29
19
|
|
|
30
|
-
background-color:
|
|
31
|
-
border-radius:
|
|
20
|
+
background-color: variables.$element-background-color;
|
|
21
|
+
border-radius: variables.$radius-large;
|
|
32
22
|
border: 4px solid $calendar-border-color;
|
|
33
23
|
position: relative;
|
|
34
|
-
color:
|
|
35
|
-
font-weight:
|
|
24
|
+
color: variables.$text-color;
|
|
25
|
+
font-weight: variables.$font-weight-md;
|
|
36
26
|
user-select: none;
|
|
37
27
|
padding: 12px;
|
|
38
28
|
|
|
@@ -71,9 +61,9 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
71
61
|
color: inherit;
|
|
72
62
|
text-align: center;
|
|
73
63
|
vertical-align: middle;
|
|
74
|
-
font-size:
|
|
75
|
-
line-height:
|
|
76
|
-
font-weight:
|
|
64
|
+
font-size: variables.$font-size-base;
|
|
65
|
+
line-height: variables.$line-height-base;
|
|
66
|
+
font-weight: variables.$font-weight-lg;
|
|
77
67
|
text-transform: capitalize;
|
|
78
68
|
}
|
|
79
69
|
|
|
@@ -102,7 +92,7 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
102
92
|
.DayPicker-Day {
|
|
103
93
|
position: relative;
|
|
104
94
|
padding: 0;
|
|
105
|
-
border-radius:
|
|
95
|
+
border-radius: variables.$radius-large;
|
|
106
96
|
|
|
107
97
|
vertical-align: middle;
|
|
108
98
|
text-align: center;
|
|
@@ -152,14 +142,14 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
152
142
|
}
|
|
153
143
|
|
|
154
144
|
&--outside {
|
|
155
|
-
color:
|
|
145
|
+
color: variables.$element-placeholder-color;
|
|
156
146
|
|
|
157
147
|
}
|
|
158
148
|
|
|
159
149
|
&--today {
|
|
160
150
|
#{$root}__day {
|
|
161
|
-
border: 1px solid
|
|
162
|
-
color:
|
|
151
|
+
border: 1px solid variables.$primary;
|
|
152
|
+
color: variables.$primary;
|
|
163
153
|
}
|
|
164
154
|
}
|
|
165
155
|
|
|
@@ -179,18 +169,18 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
179
169
|
}
|
|
180
170
|
|
|
181
171
|
.DayPicker-TodayButton {
|
|
182
|
-
@include calendar-button();
|
|
172
|
+
@include mixins.calendar-button();
|
|
183
173
|
}
|
|
184
174
|
|
|
185
175
|
// Days selection
|
|
186
176
|
// Selected day
|
|
187
177
|
.DayPicker-Day--selected:not(.DayPicker-Day--inRange) {
|
|
188
|
-
color:
|
|
189
|
-
background-color:
|
|
178
|
+
color: variables.$white;
|
|
179
|
+
background-color: variables.$primary;
|
|
190
180
|
}
|
|
191
181
|
|
|
192
182
|
.DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
|
|
193
|
-
color:
|
|
183
|
+
color: variables.$white;
|
|
194
184
|
}
|
|
195
185
|
|
|
196
186
|
// Hover
|
|
@@ -214,7 +204,7 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
214
204
|
width: 34px;
|
|
215
205
|
height: 34px;
|
|
216
206
|
line-height: 30px;
|
|
217
|
-
border-radius:
|
|
207
|
+
border-radius: variables.$radius-large;
|
|
218
208
|
display: flex;
|
|
219
209
|
justify-content: center;
|
|
220
210
|
align-items: center;
|
|
@@ -223,16 +213,16 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
223
213
|
&_ranged {
|
|
224
214
|
.DayPicker-Day {
|
|
225
215
|
&--start {
|
|
226
|
-
color:
|
|
216
|
+
color: variables.$white;
|
|
227
217
|
|
|
228
218
|
#{$root}__day {
|
|
229
|
-
background-color:
|
|
219
|
+
background-color: variables.$primary;
|
|
230
220
|
}
|
|
231
221
|
|
|
232
222
|
&::before {
|
|
233
223
|
width: 50px;
|
|
234
224
|
height: 42px;
|
|
235
|
-
background-color:
|
|
225
|
+
background-color: variables.$primary-light;
|
|
236
226
|
border-radius: 16px 0px 0px 16px;
|
|
237
227
|
}
|
|
238
228
|
}
|
|
@@ -241,20 +231,20 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
241
231
|
color: #fff;
|
|
242
232
|
|
|
243
233
|
#{$root}__day {
|
|
244
|
-
background-color:
|
|
234
|
+
background-color: variables.$calendar-primary-color;
|
|
245
235
|
}
|
|
246
236
|
|
|
247
237
|
&::before {
|
|
248
238
|
width: 46px;
|
|
249
239
|
height: 42px;
|
|
250
|
-
background-color:
|
|
240
|
+
background-color: variables.$primary-light;
|
|
251
241
|
border-radius: 0px 16px 16px 0px;
|
|
252
242
|
}
|
|
253
243
|
}
|
|
254
244
|
|
|
255
245
|
&--inRange {
|
|
256
246
|
&::before {
|
|
257
|
-
background-color:
|
|
247
|
+
background-color: variables.$primary-light;
|
|
258
248
|
width: 50px;
|
|
259
249
|
height: 42px;
|
|
260
250
|
}
|
|
@@ -262,7 +252,7 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
262
252
|
|
|
263
253
|
//Today in range
|
|
264
254
|
&--inRange.DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
|
|
265
|
-
color:
|
|
255
|
+
color: variables.$primary;
|
|
266
256
|
}
|
|
267
257
|
|
|
268
258
|
&--inRange:hover .CalendarView__day {
|
|
@@ -273,7 +263,7 @@ $calendar-border-color: var(--calendar-border-color);
|
|
|
273
263
|
&--outRange {
|
|
274
264
|
pointer-events: none;
|
|
275
265
|
&::before {
|
|
276
|
-
background-color:
|
|
266
|
+
background-color: variables.$calendar-primary-light-color;
|
|
277
267
|
}
|
|
278
268
|
}
|
|
279
269
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
@use '../../scss/mixins';
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--caption-arrow-background-color: #f1f5f7;
|
|
3
6
|
--caption-arrow-color: #323232;
|
|
@@ -48,14 +51,14 @@ $separator-background-color: var(--separator-background-color);
|
|
|
48
51
|
cursor: pointer;
|
|
49
52
|
transition: color 0.1s ease-in;
|
|
50
53
|
|
|
51
|
-
font-weight:
|
|
52
|
-
font-size:
|
|
53
|
-
line-height:
|
|
54
|
+
font-weight: variables.$font-weight-lg;
|
|
55
|
+
font-size: variables.$font-size-lg;
|
|
56
|
+
line-height: variables.$line-height-lg;
|
|
54
57
|
|
|
55
58
|
&:hover,
|
|
56
59
|
&:active,
|
|
57
60
|
&:focus {
|
|
58
|
-
color:
|
|
61
|
+
color: variables.$calendar-primary-color;
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
|
|
@@ -95,7 +98,7 @@ $separator-background-color: var(--separator-background-color);
|
|
|
95
98
|
left: 0;
|
|
96
99
|
right: 0;
|
|
97
100
|
bottom: 50px;
|
|
98
|
-
background-color:
|
|
101
|
+
background-color: variables.$element-background-color;
|
|
99
102
|
margin-bottom: 12px;
|
|
100
103
|
max-height: 294px;
|
|
101
104
|
|
|
@@ -117,7 +120,7 @@ $separator-background-color: var(--separator-background-color);
|
|
|
117
120
|
|
|
118
121
|
text-align: center;
|
|
119
122
|
background-color: $caption-header-month-background-color;
|
|
120
|
-
font-weight:
|
|
123
|
+
font-weight: variables.$font-weight-lg;
|
|
121
124
|
|
|
122
125
|
&_months {
|
|
123
126
|
position: relative;
|
|
@@ -159,7 +162,7 @@ $separator-background-color: var(--separator-background-color);
|
|
|
159
162
|
|
|
160
163
|
&-years {
|
|
161
164
|
grid-area: YearsCol;
|
|
162
|
-
@include scrollWrapper(294px, 0,
|
|
165
|
+
@include mixins.scrollWrapper(294px, 0, variables.$scroll-thumb-color, variables.$scroll-track-color);
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
|
|
@@ -169,19 +172,19 @@ $separator-background-color: var(--separator-background-color);
|
|
|
169
172
|
}
|
|
170
173
|
display: block;
|
|
171
174
|
width: fit-content;
|
|
172
|
-
background-color:
|
|
175
|
+
background-color: variables.$element-background-color;
|
|
173
176
|
padding: 4px 8px;
|
|
174
177
|
cursor: pointer;
|
|
175
178
|
transition: background-color 0.1s ease-in;
|
|
176
179
|
margin: 0 auto;
|
|
177
|
-
border-radius:
|
|
180
|
+
border-radius: variables.$radius-large;
|
|
178
181
|
|
|
179
182
|
&_selected {
|
|
180
|
-
background-color:
|
|
183
|
+
background-color: variables.$primary-light;
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
&:hover {
|
|
184
|
-
background-color:
|
|
187
|
+
background-color: variables.$primary-light;
|
|
185
188
|
}
|
|
186
189
|
|
|
187
190
|
#{$root}__cell-value {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../scss/variables";
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--card-footer-background-color: var(--additional-light-blue);
|
|
3
5
|
--card-dots-color: #323232;
|
|
@@ -13,13 +15,13 @@ $card-dots-color: var(--card-dots-color);
|
|
|
13
15
|
|
|
14
16
|
%headTemplate {
|
|
15
17
|
font-weight: 700;
|
|
16
|
-
font-size:
|
|
18
|
+
font-size: variables.$font-size-lg;
|
|
17
19
|
line-height: 24px;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
%subheadTemplate {
|
|
21
23
|
font-weight: 400;
|
|
22
|
-
font-size:
|
|
24
|
+
font-size: variables.$font-size-xs;
|
|
23
25
|
line-height: 16px;
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -28,7 +30,7 @@ $card-dots-color: var(--card-dots-color);
|
|
|
28
30
|
width: 4px;
|
|
29
31
|
height: 4px;
|
|
30
32
|
background-color: $card-dots-color;
|
|
31
|
-
border-radius:
|
|
33
|
+
border-radius: variables.$radius-circle;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.CardView {
|
|
@@ -39,10 +41,10 @@ $card-dots-color: var(--card-dots-color);
|
|
|
39
41
|
overflow: hidden;
|
|
40
42
|
height: fit-content;
|
|
41
43
|
|
|
42
|
-
border: 1px solid
|
|
43
|
-
border-radius:
|
|
44
|
-
color:
|
|
45
|
-
background-color:
|
|
44
|
+
border: 1px solid variables.$element-border-color;
|
|
45
|
+
border-radius: variables.$radius-large;
|
|
46
|
+
color: variables.$text-color;
|
|
47
|
+
background-color: variables.$element-background-color;
|
|
46
48
|
|
|
47
49
|
&__header {
|
|
48
50
|
display: flex;
|
|
@@ -109,7 +111,7 @@ $card-dots-color: var(--card-dots-color);
|
|
|
109
111
|
width: 100%;
|
|
110
112
|
height: 227px;
|
|
111
113
|
overflow: hidden;
|
|
112
|
-
border-radius:
|
|
114
|
+
border-radius: variables.$radius-large;
|
|
113
115
|
|
|
114
116
|
img {
|
|
115
117
|
display: block;
|
|
@@ -135,7 +137,7 @@ $card-dots-color: var(--card-dots-color);
|
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
&__description {
|
|
138
|
-
font-size:
|
|
140
|
+
font-size: variables.$font-size-base;
|
|
139
141
|
line-height: 22px;
|
|
140
142
|
}
|
|
141
143
|
|