claritas-web-framework 6.2.72 → 6.3.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.
- package/.stylelintrc.json +6 -8
- package/dist/index.css +1 -1
- package/dist/index.html +1 -1
- package/dist/index.js +0 -1
- package/index.html +37 -30
- package/index.js +0 -7
- package/package.json +15 -20
- package/sass/_functions.scss +18 -6
- package/sass/_mixins.scss +0 -2
- package/sass/_reboot.scss +46 -62
- package/sass/_root.scss +35 -21
- package/sass/_variables.scss +60 -301
- package/sass/helpers/_grid.scss +2 -3
- package/sass/mixins/_borderRadius.scss +2 -1
- package/sass/mixins/_boxShadow.scss +2 -2
- package/sass/mixins/_breakpoints.scss +5 -1
- package/sass/mixins/_button.scss +193 -64
- package/sass/mixins/_colors.scss +18 -9
- package/sass/mixins/_colors.temp.scss +88 -0
- package/sass/mixins/_gradient.scss +0 -1
- package/sass/mixins/_grid.scss +13 -14
- package/sass/mixins/_group.scss +1 -1
- package/sass/mixins/_list.scss +1 -1
- package/sass/mixins/_pill.scss +1 -1
- package/sass/mixins/_rfs.scss +5 -4
- package/sass/mixins/_tag.scss +46 -24
- package/sass/mixins/_transition.scss +2 -2
- package/sass/modules/_alert.scss +37 -13
- package/sass/modules/_button.old.scss +214 -0
- package/sass/modules/_button.scss +151 -161
- package/sass/modules/_card.scss +1 -2
- package/sass/modules/_close.scss +21 -22
- package/sass/modules/_details.scss +1 -1
- package/sass/modules/_dialog.scss +0 -1
- package/sass/modules/_dropdown.scss +0 -1
- package/sass/modules/_form.scss +1 -2
- package/sass/modules/_list.scss +2 -3
- package/sass/modules/_loader.scss +3 -0
- package/sass/modules/_modal.scss +0 -1
- package/sass/modules/_nav.scss +1 -2
- package/sass/modules/_pill.scss +45 -30
- package/sass/modules/_tabs.scss +2 -3
- package/sass/modules/_tag.scss +48 -36
- package/sass/modules/_tile.scss +1 -2
- package/sass/modules/_tooltip.scss +0 -1
- package/sass/modules/form/_checkbox.scss +0 -1
- package/sass/modules/form/_file.scss +0 -1
- package/sass/modules/form/_output.scss +0 -1
- package/sass/modules/form/_progress.scss +0 -1
- package/sass/modules/form/_radio.scss +0 -1
- package/sass/modules/form/_range.scss +0 -1
- package/sass/modules/form/_text.scss +0 -1
- package/sass/modules/form/_toggle.scss +0 -1
- package/sass/utilities/_align.scss +0 -1
- package/sass/utilities/_border.scss +31 -14
- package/sass/utilities/_colors.scss +6 -6
- package/sass/utilities/_display.scss +0 -1
- package/sass/utilities/_flex.scss +0 -1
- package/sass/utilities/_float.scss +0 -1
- package/sass/utilities/_order.scss +0 -1
- package/sass/utilities/_overflow.scss +0 -1
- package/sass/utilities/_pointerEvents.scss +0 -1
- package/sass/utilities/_position.scss +0 -1
- package/sass/utilities/_size.scss +0 -1
- package/sass/utilities/_spacing.scss +0 -1
- package/sass/utilities/_typography.scss +0 -1
- package/sass/utilities/_visibility.scss +0 -1
- package/sass/utilities/_zIndex.scss +0 -1
- package/.eslintrc.js +0 -21
- package/sass/mixins/_alert.scss +0 -31
package/sass/mixins/_tag.scss
CHANGED
|
@@ -1,30 +1,52 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
|
-
|
|
3
2
|
@use "./../variables" as *;
|
|
4
3
|
@use "./../functions" as *;
|
|
4
|
+
@use "./../mixins/colors" as *;
|
|
5
5
|
@use "./../mixins/gradient" as *;
|
|
6
6
|
|
|
7
|
-
@mixin tag-variant(
|
|
8
|
-
$background,
|
|
9
|
-
|
|
10
|
-
$
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
26
|
-
color: $hover-color;
|
|
27
|
-
background-color: $hover-background;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
7
|
+
@mixin tag-variant($background, $lightness) {
|
|
8
|
+
// @include make-background-color($value: $background, $title: "tag-");
|
|
9
|
+
|
|
10
|
+
// @if $lightness < $lightness-value {
|
|
11
|
+
// @include make-color($value: "white", $shade: 0, $title: "tag-");
|
|
12
|
+
// } @else {
|
|
13
|
+
// @include make-color($value: "dark", $shade: 0, $title: "tag-");
|
|
14
|
+
// }
|
|
15
|
+
|
|
16
|
+
// &.tag--link {
|
|
17
|
+
// @include make-link-color("body-color", $shade: $link-shade-value, $title: "tag-");
|
|
18
|
+
|
|
19
|
+
// cursor: pointer;
|
|
20
|
+
|
|
21
|
+
// &:hover {
|
|
22
|
+
// text-decoration: none;
|
|
23
|
+
// }
|
|
24
|
+
// }
|
|
30
25
|
}
|
|
26
|
+
|
|
27
|
+
// @mixin tag-variant(
|
|
28
|
+
// $background,
|
|
29
|
+
// $color,
|
|
30
|
+
// $hover-background:
|
|
31
|
+
// if(
|
|
32
|
+
// $color == $color-contrast-light,
|
|
33
|
+
// color.mix(black, $background, $button-hover-background-shade-amount),
|
|
34
|
+
// color.mix(white, $background, $button-hover-background-tint-amount)
|
|
35
|
+
// ),
|
|
36
|
+
// $hover-color: color-contrast($hover-background)
|
|
37
|
+
// ) {
|
|
38
|
+
// color: $color;
|
|
39
|
+
|
|
40
|
+
// @include gradient-background($background);
|
|
41
|
+
|
|
42
|
+
// &.tag--link {
|
|
43
|
+
// color: $color;
|
|
44
|
+
|
|
45
|
+
// @include gradient-background($background);
|
|
46
|
+
|
|
47
|
+
// &:hover {
|
|
48
|
+
// color: $hover-color;
|
|
49
|
+
// background-color: $hover-background;
|
|
50
|
+
// }
|
|
51
|
+
// }
|
|
52
|
+
// }
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
@if length($transition) > 1 {
|
|
9
9
|
@each $value in $transition {
|
|
10
|
-
@if $value
|
|
10
|
+
@if not $value or $value == none {
|
|
11
11
|
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
@if $enable-transitions {
|
|
17
|
-
@if nth($transition, 1)
|
|
17
|
+
@if nth($transition, 1) {
|
|
18
18
|
transition: $transition;
|
|
19
19
|
}
|
|
20
20
|
|
package/sass/modules/_alert.scss
CHANGED
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
|
-
|
|
3
2
|
@use "./../variables" as *;
|
|
4
|
-
@use "./../functions" as *;
|
|
5
|
-
@use "./../mixins/alert" as *;
|
|
6
3
|
|
|
7
4
|
.alert {
|
|
8
|
-
|
|
9
|
-
padding:
|
|
10
|
-
border-
|
|
11
|
-
|
|
12
|
-
color: $
|
|
5
|
+
--alert-padding-x: var(--spacer);
|
|
6
|
+
--alert-padding-y: var(--spacer);
|
|
7
|
+
--alert-border-width: 1px;
|
|
8
|
+
--alert-border-style: solid;
|
|
9
|
+
--alert-border-color: hsl(var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-opacity});
|
|
10
|
+
--alert-border-radius: var(--border-radius-default);
|
|
11
|
+
--alert-background: hsl(var(--body-color-h) var(--body-color-s) #{$alert-background-l} / var(--body-color-a));
|
|
12
|
+
--alert-color: hsl(var(--body-color-h) var(--body-color-s) #{$alert-color-l} / var(--body-color-a));
|
|
13
|
+
--alert-link-color: hsl(var(--body-color-h) var(--body-color-s) #{$alert-color-l} / var(--body-color-a));
|
|
14
|
+
--alert-link-hover-color: hsl(
|
|
15
|
+
var(--body-color-h) var(--body-color-s) calc(#{$alert-color-l} - #{$link-shade-percentage}) / var(--body-color-a)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
@each $key in (1, 2, 3, 4, 5, 6) {
|
|
19
|
+
h#{$key},
|
|
20
|
+
.h#{$key} {
|
|
21
|
+
--color: var(--alert-color);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
color: var(--alert-color);
|
|
26
|
+
border: var(--alert-border-width) var(--alert-border-style) var(--alert-border-color);
|
|
27
|
+
padding: var(--alert-padding-y) var(--alert-padding-x);
|
|
28
|
+
border-radius: var(--alert-border-radius);
|
|
29
|
+
background: var(--alert-background);
|
|
13
30
|
position: relative;
|
|
14
31
|
|
|
15
32
|
@if $enable-margins {
|
|
16
|
-
margin-bottom:
|
|
33
|
+
margin-bottom: var(--spacer);
|
|
17
34
|
} @else {
|
|
18
35
|
margin-bottom: 0;
|
|
19
36
|
}
|
|
@@ -25,17 +42,24 @@
|
|
|
25
42
|
}
|
|
26
43
|
|
|
27
44
|
& a:not(.button) {
|
|
45
|
+
color: var(--alert-link-color);
|
|
28
46
|
font-weight: $font-weight-semibold;
|
|
29
|
-
color: $body-color;
|
|
30
47
|
|
|
31
|
-
&:hover
|
|
32
|
-
|
|
48
|
+
&:hover,
|
|
49
|
+
&:focus {
|
|
50
|
+
color: var(--alert-link-hover-color);
|
|
33
51
|
}
|
|
34
52
|
}
|
|
35
53
|
}
|
|
36
54
|
|
|
37
55
|
@each $key, $value in $all-colors {
|
|
38
56
|
.alert--#{$key} {
|
|
39
|
-
|
|
57
|
+
--alert-border-color: hsl(var(--#{$key}-h) var(--#{$key}-s) var(--#{$key}-l) / #{$border-opacity});
|
|
58
|
+
--alert-background: hsl(var(--#{$key}-h) var(--#{$key}-s) #{$alert-background-l} / var(--#{$key}-a));
|
|
59
|
+
--alert-color: hsl(var(--#{$key}-h) var(--#{$key}-s) #{$alert-color-l} / var(--#{$key}-a));
|
|
60
|
+
--alert-link-color: hsl(var(--#{$key}-h) var(--#{$key}-s) #{$alert-color-l} / var(--#{$key}-a));
|
|
61
|
+
--alert-link-hover-color: hsl(
|
|
62
|
+
var(--#{$key}-h) var(--#{$key}-s) calc(#{$alert-color-l} - #{$link-shade-percentage}) / var(--#{$key}-a)
|
|
63
|
+
);
|
|
40
64
|
}
|
|
41
65
|
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../variables" as *;
|
|
3
|
+
@use "./../functions" as *;
|
|
4
|
+
@use "./../mixins" as *;
|
|
5
|
+
|
|
6
|
+
.button {
|
|
7
|
+
// --button-padding-x: #{$button-padding-x};
|
|
8
|
+
// --button-padding-y: #{$button-padding-y};
|
|
9
|
+
// --button-font-family: #{$button-font-family};
|
|
10
|
+
|
|
11
|
+
// @include rfs($button-font-size, --button-font-size);
|
|
12
|
+
|
|
13
|
+
// --button-font-weight: #{$button-font-weight};
|
|
14
|
+
// --button-line-height: #{$button-line-height};
|
|
15
|
+
// --button-color: #{$body-color};
|
|
16
|
+
// --button-background: #{$button-background};
|
|
17
|
+
// --button-border-width: #{$button-border-width};
|
|
18
|
+
// --button-border-style: #{$button-border-style};
|
|
19
|
+
// --button-border-color: #{$button-border-color};
|
|
20
|
+
// --button-border-radius: #{$button-border-radius};
|
|
21
|
+
--button-hover-border-color: #{$button-hover-border-color};
|
|
22
|
+
--button-active-border-color: #{$button-active-border-color};
|
|
23
|
+
--button-box-shadow: #{$button-box-shadow};
|
|
24
|
+
--button-disabled-opacity: #{$button-disabled-opacity};
|
|
25
|
+
--button-focus-box-shadow: 0 0 #{$input-button-focus-blur} #{$input-button-focus-width} var(--button-border-color);
|
|
26
|
+
// --button-text-decoration: none;
|
|
27
|
+
// --button-hover-text-decoration: none;
|
|
28
|
+
|
|
29
|
+
// display: inline-flex;
|
|
30
|
+
// padding: var(--button-padding-y) var(--button-padding-x);
|
|
31
|
+
// font-family: var(--button-font-family);
|
|
32
|
+
|
|
33
|
+
// @include font-size(var(--button-font-size));
|
|
34
|
+
|
|
35
|
+
// font-weight: var(--button-font-weight);
|
|
36
|
+
// line-height: var(--button-line-height);
|
|
37
|
+
// color: var(--button-color);
|
|
38
|
+
// text-align: center;
|
|
39
|
+
// align-items: center;
|
|
40
|
+
// justify-content: center;
|
|
41
|
+
// text-decoration: var(--button-text-decoration);
|
|
42
|
+
// white-space: $button-white-space;
|
|
43
|
+
// vertical-align: middle;
|
|
44
|
+
// cursor: if($enable-button-pointers, pointer, null);
|
|
45
|
+
// user-select: none;
|
|
46
|
+
// border: var(--button-border-width) var(--button-border-style) var(--button-border-color);
|
|
47
|
+
|
|
48
|
+
@include border-radius(var(--button-border-radius));
|
|
49
|
+
@include gradient-background(var(--button-background));
|
|
50
|
+
@include box-shadow(var(--button-box-shadow));
|
|
51
|
+
@include transition($button-transition);
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
color: var(--button-hover-color);
|
|
55
|
+
text-decoration: var(--button-hover-text-decoration);
|
|
56
|
+
background-color: var(--button-hover-background);
|
|
57
|
+
border-color: var(--button-hover-border-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.button--switch + &:hover {
|
|
61
|
+
color: var(--button-hover-color);
|
|
62
|
+
text-decoration: var(--button-hover-text-decoration);
|
|
63
|
+
background-color: var(--button-hover-background);
|
|
64
|
+
border-color: var(--button-hover-border-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
color: var(--button-hover-color);
|
|
69
|
+
|
|
70
|
+
@include gradient-background(var(--button-hover-background));
|
|
71
|
+
|
|
72
|
+
border-color: var(--button-hover-border-color);
|
|
73
|
+
outline: 0;
|
|
74
|
+
|
|
75
|
+
@if $enable-shadows {
|
|
76
|
+
box-shadow: var(--button-box-shadow), var(--button-focus-box-shadow);
|
|
77
|
+
} @else {
|
|
78
|
+
box-shadow: var(--button-focus-box-shadow);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.button--switch:focus-visible + & {
|
|
83
|
+
border-color: var(--button-hover-border-color);
|
|
84
|
+
outline: 0;
|
|
85
|
+
|
|
86
|
+
@if $enable-shadows {
|
|
87
|
+
box-shadow: var(--button-box-shadow), var(--button-focus-box-shadow);
|
|
88
|
+
} @else {
|
|
89
|
+
box-shadow: var(--button-focus-box-shadow);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.button--switch:checked + &,
|
|
94
|
+
:not(.button--switch) + &:active,
|
|
95
|
+
&:first-child:active,
|
|
96
|
+
&.active,
|
|
97
|
+
&.show {
|
|
98
|
+
color: var(--button-active-color);
|
|
99
|
+
background-color: var(--button-active-background);
|
|
100
|
+
background-image: if($enable-gradients, none, null);
|
|
101
|
+
border-color: var(--button-active-border-color);
|
|
102
|
+
|
|
103
|
+
@include box-shadow(var(--button-active-shadow));
|
|
104
|
+
|
|
105
|
+
&:focus-visible {
|
|
106
|
+
@if $enable-shadows {
|
|
107
|
+
box-shadow: var(--button-active-shadow), var(--button-focus-box-shadow);
|
|
108
|
+
} @else {
|
|
109
|
+
box-shadow: var(--button-focus-box-shadow);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:disabled,
|
|
115
|
+
&.disabled,
|
|
116
|
+
fieldset:disabled & {
|
|
117
|
+
color: var(--button-disabled-color);
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
background-color: var(--button-disabled-background);
|
|
120
|
+
background-image: if($enable-gradients, none, null);
|
|
121
|
+
border-color: var(--button-disabled-border-color);
|
|
122
|
+
opacity: var(--button-disabled-opacity);
|
|
123
|
+
|
|
124
|
+
@include box-shadow(none);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.button--outline {
|
|
128
|
+
@include button-outline-variant($body-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.button--link {
|
|
132
|
+
@include button-link-variant($body-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.button--unstyled {
|
|
136
|
+
@include button-unstyled-variant($body-color);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Alternate buttons
|
|
141
|
+
|
|
142
|
+
@each $color, $value in $all-colors {
|
|
143
|
+
.button.button--#{$color} {
|
|
144
|
+
@if $color == "light" {
|
|
145
|
+
@include button-variant(
|
|
146
|
+
$value,
|
|
147
|
+
$button-border-color,
|
|
148
|
+
$hover-background: color.mix(black, $value, $button-hover-background-shade-amount),
|
|
149
|
+
$hover-border: color.mix(black, $value, $button-hover-border-shade-amount),
|
|
150
|
+
$active-background: color.mix(black, $value, $button-active-background-shade-amount),
|
|
151
|
+
$active-border: color.mix(black, $value, $button-active-border-shade-amount)
|
|
152
|
+
);
|
|
153
|
+
} @else if $color == "dark" {
|
|
154
|
+
@include button-variant(
|
|
155
|
+
$value,
|
|
156
|
+
$button-border-color,
|
|
157
|
+
$hover-background: color.mix(white, $value, $button-hover-background-tint-amount),
|
|
158
|
+
$hover-border: color.mix(white, $value, $button-hover-border-tint-amount),
|
|
159
|
+
$active-background: color.mix(white, $value, $button-active-background-tint-amount),
|
|
160
|
+
$active-border: color.mix(white, $value, $button-active-border-tint-amount)
|
|
161
|
+
);
|
|
162
|
+
} @else {
|
|
163
|
+
@include button-variant($value, $button-border-color);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.button--outline {
|
|
167
|
+
@include button-outline-variant($value);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&.button--link {
|
|
171
|
+
@include button-link-variant($value);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.button--unstyled {
|
|
175
|
+
@include button-unstyled-variant($value);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Button Sizes
|
|
181
|
+
|
|
182
|
+
.button--large {
|
|
183
|
+
@include button-size(
|
|
184
|
+
$button-padding-y-large,
|
|
185
|
+
$button-padding-x-large,
|
|
186
|
+
$button-font-size-large,
|
|
187
|
+
$button-border-radius-large
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
&.button--unstyled {
|
|
191
|
+
@include button-size(0, 0, $button-font-size-large, 0);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.button--small {
|
|
196
|
+
@include button-size(
|
|
197
|
+
$button-padding-y-small,
|
|
198
|
+
$button-padding-x-small,
|
|
199
|
+
$button-font-size-small,
|
|
200
|
+
$button-border-radius-small
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
&.button--unstyled {
|
|
204
|
+
@include button-size(0, 0, $button-font-size-small, 0);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.buttons {
|
|
209
|
+
@include make-group-row;
|
|
210
|
+
|
|
211
|
+
&.buttons--grouped {
|
|
212
|
+
@include make-grouped-row(".button");
|
|
213
|
+
}
|
|
214
|
+
}
|