@unifiedsoftware/styles 1.0.3 → 1.0.5
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/css/styles.css +697 -121
- package/css/styles.min.css +1 -1
- package/css/theme-default.css +246 -52
- package/css/theme-default.min.css +1 -1
- package/index.scss +2 -0
- package/package.json +1 -1
- package/scss/_utilities.scss +103 -0
- package/scss/components/_badge.scss +45 -0
- package/scss/components/_button.scss +22 -3
- package/scss/components/_chip.scss +21 -0
- package/scss/components/_index.scss +3 -0
- package/scss/components/_menu.scss +3 -10
- package/scss/components/_tabs.scss +34 -6
- package/scss/mixins/_button.scss +16 -0
- package/scss/mixins/_chip.scss +16 -0
- package/scss/mixins/_outline.scss +11 -0
- package/scss/mixins/_overlay.scss +38 -39
- package/scss/themes/default/_tokens.scss +3 -0
- package/scss/themes/default/components/_badge.scss +21 -0
- package/scss/themes/default/components/_button.scss +72 -50
- package/scss/themes/default/components/_chip.scss +165 -0
- package/scss/themes/default/components/_index.scss +3 -0
- package/scss/themes/default/components/_menu.scss +11 -6
- package/scss/themes/default/components/_tabs.scss +5 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../variables' as *;
|
|
2
2
|
@use '../mixins/overlay' as *;
|
|
3
|
+
@use '../mixins/outline' as *;
|
|
3
4
|
|
|
4
5
|
.#{$prefix}button {
|
|
5
6
|
position: relative;
|
|
@@ -7,19 +8,37 @@
|
|
|
7
8
|
padding: var(--#{$prefix}button-padding-y) var(--#{$prefix}button-padding-x);
|
|
8
9
|
font-size: var(--#{$prefix}button-font-size);
|
|
9
10
|
font-weight: var(--#{$prefix}button-font-weight);
|
|
11
|
+
font-family: var(--#{$prefix}button-font-family);
|
|
10
12
|
border: none;
|
|
11
13
|
outline: none;
|
|
12
14
|
border-radius: var(--#{$prefix}button-border-radius);
|
|
13
15
|
cursor: pointer;
|
|
14
16
|
color: var(--#{$prefix}button-color);
|
|
15
17
|
background-color: var(--#{$prefix}button-background);
|
|
16
|
-
display: flex;
|
|
18
|
+
display: inline-flex;
|
|
17
19
|
align-items: center;
|
|
18
20
|
gap: var(--#{$prefix}button-gap);
|
|
19
21
|
user-select: none;
|
|
20
22
|
-webkit-tap-highlight-color: transparent;
|
|
21
23
|
|
|
24
|
+
&:hover {
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
@include overlay();
|
|
29
|
+
@include outline();
|
|
30
|
+
|
|
31
|
+
&--disabled {
|
|
32
|
+
opacity: 0.6;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--icon-only {
|
|
37
|
+
width: var(--#{$prefix}button-height);
|
|
38
|
+
padding: 0;
|
|
39
|
+
border-radius: 9999px;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
23
42
|
|
|
24
43
|
&__outline {
|
|
25
44
|
position: absolute;
|
|
@@ -30,8 +49,8 @@
|
|
|
30
49
|
pointer-events: none;
|
|
31
50
|
}
|
|
32
51
|
|
|
33
|
-
&
|
|
34
|
-
&
|
|
52
|
+
&__start-icon,
|
|
53
|
+
&__end-icon,
|
|
35
54
|
&__content {
|
|
36
55
|
position: relative;
|
|
37
56
|
display: flex;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
@use '../mixins/overlay' as *;
|
|
3
|
+
@use '../mixins/outline' as *;
|
|
4
|
+
|
|
5
|
+
.#{$prefix}chip {
|
|
6
|
+
position: relative;
|
|
7
|
+
height: var(--#{$prefix}chip-height);
|
|
8
|
+
padding: var(--#{$prefix}chip-padding-y) var(--#{$prefix}chip-padding-x);
|
|
9
|
+
font-size: var(--#{$prefix}chip-font-size);
|
|
10
|
+
font-weight: var(--#{$prefix}chip-font-weight);
|
|
11
|
+
font-family: var(--#{$prefix}chip-font-family);
|
|
12
|
+
border-radius: var(--#{$prefix}chip-border-radius);
|
|
13
|
+
color: var(--#{$prefix}chip-color);
|
|
14
|
+
background-color: var(--#{$prefix}chip-background);
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--#{$prefix}chip-gap);
|
|
18
|
+
|
|
19
|
+
@include overlay();
|
|
20
|
+
@include outline();
|
|
21
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
.#{$prefix}menu {
|
|
5
5
|
margin: 0;
|
|
6
|
-
padding:
|
|
6
|
+
padding: var(--#{$prefix}menu-padding-y) var(--#{$prefix}menu-padding-x);
|
|
7
7
|
color: var(--#{$prefix}menu-color);
|
|
8
8
|
background-color: var(--#{$prefix}menu-background);
|
|
9
9
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
padding: var(--#{$prefix}menu-item-padding-y) var(--#{$prefix}menu-item-padding-x);
|
|
14
14
|
font-size: var(--#{$prefix}menu-item-font-size);
|
|
15
15
|
font-weight: var(--#{$prefix}menu-item-font-weight);
|
|
16
|
+
border-radius: var(--#{$prefix}menu-item-border-radius);
|
|
16
17
|
text-decoration: none;
|
|
17
18
|
cursor: pointer;
|
|
18
19
|
display: flex;
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
font-weight: var(--#{$prefix}menu-group-font-weight);
|
|
75
76
|
text-decoration: none;
|
|
76
77
|
border-bottom: var(--#{$prefix}menu-group-border-width) solid var(--#{$prefix}menu-group-border-color);
|
|
78
|
+
border-radius: var(--#{$prefix}menu-group-border-radius);
|
|
77
79
|
display: flex;
|
|
78
80
|
align-items: center;
|
|
79
81
|
color: var(--#{$prefix}menu-group-color);
|
|
@@ -94,15 +96,6 @@
|
|
|
94
96
|
align-items: center;
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
&--selected &__icon {
|
|
98
|
-
--#{$prefix}menu-group-icon-color: var(--#{$prefix}_active-menu-item-icon-color);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&__icon .#{$prefix}icon {
|
|
102
|
-
--#{$prefix}icon-font-size: var(--#{$prefix}menu-group-icon-font-size);
|
|
103
|
-
--#{$prefix}icon-color: var(--#{$prefix}menu-group-icon-color);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
99
|
&__content {
|
|
107
100
|
flex-grow: 1;
|
|
108
101
|
z-index: 1;
|
|
@@ -3,8 +3,30 @@
|
|
|
3
3
|
|
|
4
4
|
.#{$prefix}tabs {
|
|
5
5
|
width: 100%;
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
overflow: hidden;
|
|
6
8
|
display: flex;
|
|
7
9
|
align-items: center;
|
|
10
|
+
|
|
11
|
+
&--start {
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&--center {
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--end {
|
|
20
|
+
justify-content: flex-end;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--stretch .#{$prefix}tab {
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (max-width: 767px) and (hover: none) {
|
|
28
|
+
overflow: auto;
|
|
29
|
+
}
|
|
8
30
|
}
|
|
9
31
|
|
|
10
32
|
.#{$prefix}tab {
|
|
@@ -12,6 +34,7 @@
|
|
|
12
34
|
padding: 0px 16px;
|
|
13
35
|
font-size: var(--#{$prefix}tab-font-size);
|
|
14
36
|
font-weight: var(--#{$prefix}tab-font-weight);
|
|
37
|
+
text-decoration: none;
|
|
15
38
|
vertical-align: middle;
|
|
16
39
|
z-index: 1;
|
|
17
40
|
color: var(--#{$prefix}tab-color);
|
|
@@ -21,11 +44,20 @@
|
|
|
21
44
|
user-select: none;
|
|
22
45
|
-webkit-tap-highlight-color: transparent;
|
|
23
46
|
|
|
47
|
+
&:hover {
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
24
51
|
@include overlay();
|
|
25
52
|
|
|
53
|
+
&--disabled {
|
|
54
|
+
opacity: 0.6;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
26
58
|
&__content {
|
|
27
59
|
position: relative;
|
|
28
|
-
height:
|
|
60
|
+
height: 40px;
|
|
29
61
|
display: inline-flex;
|
|
30
62
|
flex-direction: row;
|
|
31
63
|
justify-content: center;
|
|
@@ -36,7 +68,7 @@
|
|
|
36
68
|
&__indicator {
|
|
37
69
|
position: absolute;
|
|
38
70
|
height: var(--#{$prefix}tab-indicator-height);
|
|
39
|
-
border-radius:
|
|
71
|
+
border-radius: var(--#{$prefix}tab-indicator-border-radius);
|
|
40
72
|
inset: auto 0px 0px;
|
|
41
73
|
opacity: 0;
|
|
42
74
|
z-index: -1;
|
|
@@ -44,10 +76,6 @@
|
|
|
44
76
|
transform-origin: left bottom;
|
|
45
77
|
}
|
|
46
78
|
|
|
47
|
-
&--selected {
|
|
48
|
-
// color: var(--#{$prefix}_active-tab-color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
79
|
&--selected &__indicator {
|
|
52
80
|
opacity: 1;
|
|
53
81
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
@mixin button-size($name, $height, $padding-y, $padding-x, $font-size, $border-radius, $gap, $icon-font-size) {
|
|
4
|
+
&--#{$name} {
|
|
5
|
+
--#{$prefix}button-height: #{$height};
|
|
6
|
+
--#{$prefix}button-padding-y: #{$padding-y};
|
|
7
|
+
--#{$prefix}button-padding-x: #{$padding-x};
|
|
8
|
+
--#{$prefix}button-font-size: #{$font-size};
|
|
9
|
+
--#{$prefix}button-border-radius: #{$border-radius};
|
|
10
|
+
--#{$prefix}button-gap: #{$gap};
|
|
11
|
+
|
|
12
|
+
.#{$prefix}icon {
|
|
13
|
+
--#{$prefix}icon-font-size: #{$icon-font-size};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
|
|
3
|
+
@mixin chip-size($name, $height, $padding-y, $padding-x, $font-size, $border-radius, $gap, $icon-font-size) {
|
|
4
|
+
&--#{$name} {
|
|
5
|
+
--#{$prefix}chip-height: #{$height};
|
|
6
|
+
--#{$prefix}chip-padding-y: #{$padding-y};
|
|
7
|
+
--#{$prefix}chip-padding-x: #{$padding-x};
|
|
8
|
+
--#{$prefix}chip-font-size: #{$font-size};
|
|
9
|
+
--#{$prefix}chip-border-radius: #{$border-radius};
|
|
10
|
+
--#{$prefix}chip-gap: #{$gap};
|
|
11
|
+
|
|
12
|
+
.#{$prefix}icon {
|
|
13
|
+
--#{$prefix}icon-font-size: #{$icon-font-size};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,52 +1,51 @@
|
|
|
1
1
|
@use '../variables' as *;
|
|
2
2
|
|
|
3
|
-
@mixin overlay {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
& .#{$prefix}overlay {
|
|
3
|
+
@mixin overlay() {
|
|
4
|
+
& > .#{$prefix}overlay {
|
|
7
5
|
position: absolute;
|
|
8
6
|
inset: 0px;
|
|
9
7
|
border-radius: inherit;
|
|
10
8
|
overflow: hidden;
|
|
11
|
-
color:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
color
|
|
17
|
-
|
|
18
|
-
background-color: currentColor;
|
|
19
|
-
z-index: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&::before {
|
|
23
|
-
content: '';
|
|
24
|
-
position: absolute;
|
|
25
|
-
inset: 0px;
|
|
26
|
-
opacity: 0;
|
|
27
|
-
background-color: currentColor;
|
|
28
|
-
transition:
|
|
29
|
-
opacity 15ms linear,
|
|
30
|
-
background-color 15ms linear;
|
|
31
|
-
}
|
|
9
|
+
color: var(--#{$prefix}overlay-color);
|
|
10
|
+
opacity: var(--#{$prefix}overlay-opacity);
|
|
11
|
+
background-color: currentColor;
|
|
12
|
+
transition:
|
|
13
|
+
opacity 15ms linear,
|
|
14
|
+
background-color 15ms linear;
|
|
15
|
+
}
|
|
32
16
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
opacity: 0;
|
|
38
|
-
color: var(--#{$prefix}_active-overlay-color);
|
|
39
|
-
background-color: currentColor;
|
|
40
|
-
transition: opacity 30ms linear;
|
|
41
|
-
}
|
|
17
|
+
&:hover > .#{$prefix}overlay {
|
|
18
|
+
color: var(--#{$prefix}_hover-overlay-color, var(--#{$prefix}overlay-color));
|
|
19
|
+
opacity: var(--#{$prefix}_hover-overlay-opacity, var(--#{$prefix}overlay-opacity));
|
|
20
|
+
transition: opacity 30ms linear;
|
|
42
21
|
}
|
|
43
22
|
|
|
44
|
-
&:
|
|
45
|
-
color: var(
|
|
46
|
-
|
|
23
|
+
&:active > .#{$prefix}overlay {
|
|
24
|
+
color: var(
|
|
25
|
+
--#{$prefix}_active-overlay-color,
|
|
26
|
+
var(--#{$prefix}_hover-overlay-color, var(--#{$prefix}overlay-color)),
|
|
27
|
+
);
|
|
28
|
+
opacity: var(
|
|
29
|
+
--#{$prefix}_active-overlay-opacity,
|
|
30
|
+
var(--#{$prefix}_hover-overlay-opacity, var(--#{$prefix}overlay-opacity)),
|
|
31
|
+
);
|
|
47
32
|
}
|
|
33
|
+
}
|
|
48
34
|
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
@mixin outline-styles(
|
|
36
|
+
$color: null,
|
|
37
|
+
$opacity: null,
|
|
38
|
+
$hover-color: initial,
|
|
39
|
+
$hover-opacity: initial,
|
|
40
|
+
$active-color: initial,
|
|
41
|
+
$active-opacity: initial
|
|
42
|
+
) {
|
|
43
|
+
& > .#{$prefix}overlay {
|
|
44
|
+
--#{$prefix}overlay-color: #{$color};
|
|
45
|
+
--#{$prefix}overlay-opacity: #{$opacity};
|
|
46
|
+
--#{$prefix}_hover-overlay-color: #{$hover-color};
|
|
47
|
+
--#{$prefix}_hover-overlay-opacity: #{$hover-opacity};
|
|
48
|
+
--#{$prefix}_active-overlay-color: #{$active-color};
|
|
49
|
+
--#{$prefix}_active-overlay-opacity: #{$active-opacity};
|
|
51
50
|
}
|
|
52
51
|
}
|
|
@@ -9,4 +9,7 @@
|
|
|
9
9
|
--#{$prefix}danger-color: #ff0017;
|
|
10
10
|
--#{$prefix}black-color: #000;
|
|
11
11
|
--#{$prefix}white-color: #fff;
|
|
12
|
+
|
|
13
|
+
--#{$prefix}font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
|
|
14
|
+
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
12
15
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use '../../../variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}badge {
|
|
4
|
+
--#{$prefix}badge-padding-y: 0.125rem;
|
|
5
|
+
--#{$prefix}badge-padding-x: 0.325rem;
|
|
6
|
+
--#{$prefix}badge-font-size: 0.75rem;
|
|
7
|
+
--#{$prefix}badge-font-weight: 700;
|
|
8
|
+
--#{$prefix}badge-border-radius: 9999px;
|
|
9
|
+
--#{$prefix}badge-border-width: 2px;
|
|
10
|
+
--#{$prefix}badge-border-color: var(--#{$prefix}white-color);
|
|
11
|
+
--#{$prefix}badge-color: var(--#{$prefix}white-color);
|
|
12
|
+
--#{$prefix}badge-background: var(--#{$prefix}primary-color);
|
|
13
|
+
|
|
14
|
+
/* Overlay */
|
|
15
|
+
--#{$prefix}overlay-color: inherit;
|
|
16
|
+
--#{$prefix}overlay-opacity: 0.08;
|
|
17
|
+
--#{$prefix}_hover-overlay-color: inherit;
|
|
18
|
+
--#{$prefix}_hover-overlay-opacity: 0.08;
|
|
19
|
+
--#{$prefix}_active-overlay-color: inherit;
|
|
20
|
+
--#{$prefix}_active-overlay-opacity: 0.12;
|
|
21
|
+
}
|
|
@@ -1,19 +1,84 @@
|
|
|
1
1
|
@use '../../../variables' as *;
|
|
2
|
+
@use '../../../mixins/button' as *;
|
|
2
3
|
|
|
3
4
|
.#{$prefix}button {
|
|
4
5
|
--#{$prefix}button-font-weight: 500;
|
|
5
|
-
--#{$prefix}button-
|
|
6
|
+
--#{$prefix}button-font-family: var(--#{$prefix}font-sans);
|
|
6
7
|
|
|
7
8
|
/* Overlay */
|
|
8
|
-
--#{$prefix}
|
|
9
|
+
--#{$prefix}overlay-color: inherit;
|
|
10
|
+
--#{$prefix}overlay-opacity: 0;
|
|
11
|
+
--#{$prefix}_hover-overlay-opacity: 0;
|
|
9
12
|
--#{$prefix}_hover-overlay-opacity: 0.08;
|
|
10
|
-
--#{$prefix}_active-overlay-color: inherit;
|
|
11
13
|
--#{$prefix}_active-overlay-opacity: 0.12;
|
|
12
14
|
|
|
15
|
+
/* Outline */
|
|
16
|
+
--#{$prefix}outline-border-width: 1px;
|
|
17
|
+
--#{$prefix}outline-border-color: transparent;
|
|
18
|
+
|
|
19
|
+
@include button-size(
|
|
20
|
+
$name: 'xs',
|
|
21
|
+
$height: 20px,
|
|
22
|
+
$padding-y: 0,
|
|
23
|
+
$padding-x: 0.5rem,
|
|
24
|
+
$font-size: 0.625rem,
|
|
25
|
+
$border-radius: 4px,
|
|
26
|
+
$gap: 0.25rem,
|
|
27
|
+
$icon-font-size: 0.75rem
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
@include button-size(
|
|
31
|
+
$name: 'sm',
|
|
32
|
+
$height: 28px,
|
|
33
|
+
$padding-y: 0,
|
|
34
|
+
$padding-x: 0.75rem,
|
|
35
|
+
$font-size: 0.75rem,
|
|
36
|
+
$border-radius: 4px,
|
|
37
|
+
$gap: 0.375rem,
|
|
38
|
+
$icon-font-size: 1rem
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
@include button-size(
|
|
42
|
+
$name: 'md',
|
|
43
|
+
$height: 36px,
|
|
44
|
+
$padding-y: 0,
|
|
45
|
+
$padding-x: 1rem,
|
|
46
|
+
$font-size: 0.875rem,
|
|
47
|
+
$border-radius: 4px,
|
|
48
|
+
$gap: 0.5rem,
|
|
49
|
+
$icon-font-size: 1.125rem
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
@include button-size(
|
|
53
|
+
$name: 'lg',
|
|
54
|
+
$height: 44px,
|
|
55
|
+
$padding-y: 0,
|
|
56
|
+
$padding-x: 1.25rem,
|
|
57
|
+
$font-size: 1rem,
|
|
58
|
+
$border-radius: 4px,
|
|
59
|
+
$gap: 0.625rem,
|
|
60
|
+
$icon-font-size: 1.25rem
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
@include button-size(
|
|
64
|
+
$name: 'xl',
|
|
65
|
+
$height: 52px,
|
|
66
|
+
$padding-y: 0,
|
|
67
|
+
$padding-x: 1.5rem,
|
|
68
|
+
$font-size: 1rem,
|
|
69
|
+
$border-radius: 4px,
|
|
70
|
+
$gap: 0.75rem,
|
|
71
|
+
$icon-font-size: 1.5rem
|
|
72
|
+
);
|
|
73
|
+
|
|
13
74
|
&--filled {
|
|
14
75
|
--#{$prefix}button-border-width: 1px;
|
|
15
76
|
--#{$prefix}button-border-color: transparent;
|
|
16
77
|
--#{$prefix}button-color: var(--#{$prefix}white-color);
|
|
78
|
+
|
|
79
|
+
.#{$prefix}chip {
|
|
80
|
+
--#{$prefix}chip-background: var(--#{$prefix}white-color);
|
|
81
|
+
}
|
|
17
82
|
}
|
|
18
83
|
|
|
19
84
|
&--filled#{&}--primary {
|
|
@@ -42,15 +107,8 @@
|
|
|
42
107
|
}
|
|
43
108
|
|
|
44
109
|
&--outlined {
|
|
45
|
-
|
|
46
|
-
--#{$prefix}
|
|
47
|
-
|
|
48
|
-
--#{$prefix}button-elevation-opacity: 0;
|
|
49
|
-
--#{$prefix}_hover-button-elevation-opacity: 0.08;
|
|
50
|
-
--#{$prefix}_active-button-elevation-opacity: 0.12;
|
|
51
|
-
|
|
52
|
-
--#{$prefix}button-outline-border-width: 1px;
|
|
53
|
-
--#{$prefix}button-outline-border-color: currentColor;
|
|
110
|
+
/* Outline */
|
|
111
|
+
--#{$prefix}outline-border-color: currentColor;
|
|
54
112
|
}
|
|
55
113
|
|
|
56
114
|
&--outlined#{&}--primary {
|
|
@@ -77,14 +135,8 @@
|
|
|
77
135
|
--#{$prefix}button-color: var(--#{$prefix}danger-color);
|
|
78
136
|
}
|
|
79
137
|
|
|
80
|
-
&--text {
|
|
81
|
-
|
|
82
|
-
--#{$prefix}button-border-color: transparent;
|
|
83
|
-
|
|
84
|
-
--#{$prefix}button-elevation-opacity: 0;
|
|
85
|
-
--#{$prefix}_hover-button-elevation-opacity: 0.08;
|
|
86
|
-
--#{$prefix}_active-button-elevation-opacity: 0.12;
|
|
87
|
-
}
|
|
138
|
+
// &--text {
|
|
139
|
+
// }
|
|
88
140
|
|
|
89
141
|
&--text#{&}--primary {
|
|
90
142
|
--#{$prefix}button-color: var(--#{$prefix}primary-color);
|
|
@@ -109,34 +161,4 @@
|
|
|
109
161
|
&--text#{&}--danger {
|
|
110
162
|
--#{$prefix}button-color: var(--#{$prefix}danger-color);
|
|
111
163
|
}
|
|
112
|
-
|
|
113
|
-
&--sm {
|
|
114
|
-
--#{$prefix}button-height: 32px;
|
|
115
|
-
--#{$prefix}button-padding-y: 0;
|
|
116
|
-
--#{$prefix}button-padding-x: 0.75rem;
|
|
117
|
-
--#{$prefix}button-font-size: 14px;
|
|
118
|
-
--#{$prefix}button-gap: 0.375rem;
|
|
119
|
-
|
|
120
|
-
--#{$prefix}icon-font-size: 1.125rem;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&--md {
|
|
124
|
-
--#{$prefix}button-height: 36px;
|
|
125
|
-
--#{$prefix}button-padding-y: 0;
|
|
126
|
-
--#{$prefix}button-padding-x: 1rem;
|
|
127
|
-
--#{$prefix}button-font-size: 14px;
|
|
128
|
-
--#{$prefix}button-gap: 0.5rem;
|
|
129
|
-
|
|
130
|
-
--#{$prefix}icon-font-size: 1.25rem;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&--lg {
|
|
134
|
-
--#{$prefix}button-height: 40px;
|
|
135
|
-
--#{$prefix}button-padding-y: 0;
|
|
136
|
-
--#{$prefix}button-padding-x: 1.25rem;
|
|
137
|
-
--#{$prefix}button-font-size: 1rem;
|
|
138
|
-
--#{$prefix}button-gap: 0.5rem;
|
|
139
|
-
|
|
140
|
-
--#{$prefix}icon-font-size: 1.5rem;
|
|
141
|
-
}
|
|
142
164
|
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
@use '../../../variables' as *;
|
|
2
|
+
@use '../../../mixins/chip' as *;
|
|
3
|
+
@use '../../../mixins/overlay' as *;
|
|
4
|
+
|
|
5
|
+
.#{$prefix}chip {
|
|
6
|
+
--#{$prefix}chip-padding-y: 0.125rem;
|
|
7
|
+
--#{$prefix}chip-padding-x: 0.5rem;
|
|
8
|
+
--#{$prefix}chip-font-size: 0.75rem;
|
|
9
|
+
--#{$prefix}chip-font-weight: 700;
|
|
10
|
+
--#{$prefix}chip-border-radius: 9999px;
|
|
11
|
+
--#{$prefix}chip-color: var(--#{$prefix}primary-color);
|
|
12
|
+
--#{$prefix}chip-background: transparent;
|
|
13
|
+
|
|
14
|
+
/* Overlay */
|
|
15
|
+
--#{$prefix}overlay-color: inherit;
|
|
16
|
+
--#{$prefix}overlay-opacity: 0;
|
|
17
|
+
|
|
18
|
+
@include outline-styles($color: inherit, $opacity: 0);
|
|
19
|
+
|
|
20
|
+
/* Outline */
|
|
21
|
+
--#{$prefix}outline-border-width: 1px;
|
|
22
|
+
--#{$prefix}outline-border-color: transparent;
|
|
23
|
+
|
|
24
|
+
@include chip-size(
|
|
25
|
+
$name: 'xs',
|
|
26
|
+
$height: 28px,
|
|
27
|
+
$padding-y: 0,
|
|
28
|
+
$padding-x: 0.5rem,
|
|
29
|
+
$font-size: 0.75rem,
|
|
30
|
+
$border-radius: 9999px,
|
|
31
|
+
$gap: 0.375rem,
|
|
32
|
+
$icon-font-size: 0.75rem
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
@include chip-size(
|
|
36
|
+
$name: 'sm',
|
|
37
|
+
$height: 32px,
|
|
38
|
+
$padding-y: 0,
|
|
39
|
+
$padding-x: 0.75rem,
|
|
40
|
+
$font-size: 14px,
|
|
41
|
+
$border-radius: 9999px,
|
|
42
|
+
$gap: 0.375rem,
|
|
43
|
+
$icon-font-size: 0.875rem
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
@include chip-size(
|
|
47
|
+
$name: 'md',
|
|
48
|
+
$height: 40px,
|
|
49
|
+
$padding-y: 0,
|
|
50
|
+
$padding-x: 1rem,
|
|
51
|
+
$font-size: 14px,
|
|
52
|
+
$border-radius: 9999px,
|
|
53
|
+
$gap: 0.5rem,
|
|
54
|
+
$icon-font-size: 1rem
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
@include chip-size(
|
|
58
|
+
$name: 'lg',
|
|
59
|
+
$height: 48px,
|
|
60
|
+
$padding-y: 0,
|
|
61
|
+
$padding-x: 1.5rem,
|
|
62
|
+
$font-size: 1rem,
|
|
63
|
+
$border-radius: 9999px,
|
|
64
|
+
$gap: 0.5rem,
|
|
65
|
+
$icon-font-size: 1.125rem
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
@include chip-size(
|
|
69
|
+
$name: 'xl',
|
|
70
|
+
$height: 48px,
|
|
71
|
+
$padding-y: 0,
|
|
72
|
+
$padding-x: 1.5rem,
|
|
73
|
+
$font-size: 1rem,
|
|
74
|
+
$border-radius: 9999px,
|
|
75
|
+
$gap: 0.5rem,
|
|
76
|
+
$icon-font-size: 1.25rem
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
&--filled {
|
|
80
|
+
--#{$prefix}chip-border-width: 1px;
|
|
81
|
+
--#{$prefix}chip-border-color: transparent;
|
|
82
|
+
--#{$prefix}chip-color: var(--#{$prefix}white-color);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&--filled#{&}--primary {
|
|
86
|
+
--#{$prefix}chip-background: var(--#{$prefix}primary-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&--filled#{&}--secondary {
|
|
90
|
+
--#{$prefix}chip-color: var(--#{$prefix}black-color);
|
|
91
|
+
--#{$prefix}chip-background: var(--#{$prefix}secondary-color);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&--filled#{&}--success {
|
|
95
|
+
--#{$prefix}chip-background: var(--#{$prefix}success-color);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--filled#{&}--info {
|
|
99
|
+
--#{$prefix}chip-background: var(--#{$prefix}info-color);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&--filled#{&}--warning {
|
|
103
|
+
--#{$prefix}chip-background: var(--#{$prefix}warning-color);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&--filled#{&}--danger {
|
|
107
|
+
--#{$prefix}chip-background: var(--#{$prefix}danger-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&--outlined {
|
|
111
|
+
/* Outline */
|
|
112
|
+
--#{$prefix}outline-border-color: currentColor;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&--outlined#{&}--primary {
|
|
116
|
+
--#{$prefix}chip-color: var(--#{$prefix}primary-color);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--outlined#{&}--secondary {
|
|
120
|
+
--#{$prefix}chip-color: var(--#{$prefix}black-color);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--outlined#{&}--success {
|
|
124
|
+
--#{$prefix}chip-color: var(--#{$prefix}success-color);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&--outlined#{&}--info {
|
|
128
|
+
--#{$prefix}chip-color: var(--#{$prefix}info-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--outlined#{&}--warning {
|
|
132
|
+
--#{$prefix}chip-color: var(--#{$prefix}warning-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&--outlined#{&}--danger {
|
|
136
|
+
--#{$prefix}chip-color: var(--#{$prefix}danger-color);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// &--text {
|
|
140
|
+
// }
|
|
141
|
+
|
|
142
|
+
&--text#{&}--primary {
|
|
143
|
+
--#{$prefix}chip-color: var(--#{$prefix}primary-color);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&--text#{&}--secondary {
|
|
147
|
+
--#{$prefix}chip-color: var(--#{$prefix}black-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&--text#{&}--success {
|
|
151
|
+
--#{$prefix}button-color: var(--#{$prefix}success-color);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&--text#{&}--info {
|
|
155
|
+
--#{$prefix}chip-color: var(--#{$prefix}info-color);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&--text#{&}--warning {
|
|
159
|
+
--#{$prefix}chip-color: var(--#{$prefix}warning-color);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&--text#{&}--danger {
|
|
163
|
+
--#{$prefix}chip-color: var(--#{$prefix}danger-color);
|
|
164
|
+
}
|
|
165
|
+
}
|