@oardi/css-utils 0.63.1 → 0.64.1
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/package.json
CHANGED
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
|
|
52
52
|
.alert-action.btn {
|
|
53
53
|
--button-color: currentColor;
|
|
54
|
-
--button-color-hover:
|
|
55
|
-
--button-color-active: currentColor;
|
|
54
|
+
// --button-color-hover: var(--text-color);
|
|
55
|
+
// --button-color-active: currentColor;
|
|
56
56
|
--button-on-color: currentColor;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.alert-close.icon-btn {
|
|
60
60
|
--icon-button-color: currentColor;
|
|
61
|
-
--icon-button-color-hover: currentColor;
|
|
62
|
-
--icon-button-color-active: currentColor;
|
|
61
|
+
// --icon-button-color-hover: currentColor;
|
|
62
|
+
// --icon-button-color-active: currentColor;
|
|
63
63
|
--icon-button-on-color: currentColor;
|
|
64
64
|
|
|
65
65
|
flex-shrink: 0;
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
@layer components {
|
|
5
5
|
.btn {
|
|
6
|
+
--button-color: var(--text-color);
|
|
7
|
+
--button-color-hover: var(--text-color);
|
|
8
|
+
--button-color-active: var(--text-color);
|
|
9
|
+
--button-color-rgb: var(--primary-rgb);
|
|
10
|
+
--button-on-color: var(--on-primary);
|
|
11
|
+
|
|
6
12
|
--button-border-width: var(--border-width);
|
|
7
13
|
--button-border-radius: var(--border-radius);
|
|
8
14
|
|
|
@@ -90,6 +96,7 @@
|
|
|
90
96
|
border-color: var(--button-color);
|
|
91
97
|
|
|
92
98
|
&:hover {
|
|
99
|
+
color: var(--button-on-color);
|
|
93
100
|
background-color: var(--button-color-hover);
|
|
94
101
|
border-color: var(--button-color-hover);
|
|
95
102
|
}
|
|
@@ -144,6 +151,7 @@
|
|
|
144
151
|
&:hover,
|
|
145
152
|
&.is-active,
|
|
146
153
|
&:active {
|
|
154
|
+
color: var(--button-color-hover);
|
|
147
155
|
background-color: var(--button-highlight);
|
|
148
156
|
}
|
|
149
157
|
|
|
@@ -87,27 +87,6 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.icon-btn-text {
|
|
91
|
-
color: var(--icon-button-color);
|
|
92
|
-
background-color: transparent;
|
|
93
|
-
border-color: transparent;
|
|
94
|
-
|
|
95
|
-
&:hover,
|
|
96
|
-
&:active {
|
|
97
|
-
color: var(--icon-button-color-hover);
|
|
98
|
-
background-color: var(--icon-button-highlight);
|
|
99
|
-
border-color: transparent;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&:focus-visible,
|
|
103
|
-
&.is-focus-visible {
|
|
104
|
-
outline-color: rgba(var(--icon-button-color-rgb), 0.5);
|
|
105
|
-
outline: var(--icon-button-focus-outline-width) var(--icon-button-focus-outline-style)
|
|
106
|
-
rgba(var(--icon-button-color-rgb), 0.5);
|
|
107
|
-
background-color: var(--icon-button-highlight);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
90
|
.icon-btn-solid {
|
|
112
91
|
color: var(--icon-button-on-color);
|
|
113
92
|
background-color: var(--icon-button-color);
|
|
@@ -134,6 +113,27 @@
|
|
|
134
113
|
}
|
|
135
114
|
}
|
|
136
115
|
|
|
116
|
+
.icon-btn-text {
|
|
117
|
+
color: var(--icon-button-color);
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
border-color: transparent;
|
|
120
|
+
|
|
121
|
+
&:hover,
|
|
122
|
+
&:active {
|
|
123
|
+
color: var(--icon-button-color-hover);
|
|
124
|
+
background-color: var(--icon-button-highlight);
|
|
125
|
+
border-color: transparent;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:focus-visible,
|
|
129
|
+
&.is-focus-visible {
|
|
130
|
+
outline-color: rgba(var(--icon-button-color-rgb), 0.5);
|
|
131
|
+
outline: var(--icon-button-focus-outline-width) var(--icon-button-focus-outline-style)
|
|
132
|
+
rgba(var(--icon-button-color-rgb), 0.5);
|
|
133
|
+
background-color: var(--icon-button-highlight);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
137
|
.icon-btn-outline {
|
|
138
138
|
color: var(--icon-button-color);
|
|
139
139
|
background-color: transparent;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.timeline {
|
|
3
|
+
--timeline-line-color: var(--border-color);
|
|
4
|
+
--timeline-line-width: var(--border-width);
|
|
5
|
+
|
|
6
|
+
--timeline-dot-size: 0.75rem;
|
|
7
|
+
--timeline-dot-offset-y: var(--spacer-3);
|
|
8
|
+
--timeline-dot-center-y: calc(var(--timeline-dot-offset-y) + (var(--timeline-dot-size) / 2));
|
|
9
|
+
|
|
10
|
+
--timeline-dot-color: var(--border-color);
|
|
11
|
+
--timeline-dot-active-color: var(--primary);
|
|
12
|
+
--timeline-dot-ring-color: var(--bg-body);
|
|
13
|
+
--timeline-dot-ring-size: 0.25rem;
|
|
14
|
+
|
|
15
|
+
--timeline-gap: var(--spacer-3);
|
|
16
|
+
--timeline-item-padding-bottom: var(--spacer-4);
|
|
17
|
+
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.timeline-item {
|
|
26
|
+
--timeline-item-line-color: var(--timeline-line-color);
|
|
27
|
+
|
|
28
|
+
position: relative;
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-template-columns: var(--timeline-dot-size) minmax(0, 1fr);
|
|
31
|
+
gap: var(--timeline-gap);
|
|
32
|
+
padding-bottom: var(--timeline-item-padding-bottom);
|
|
33
|
+
|
|
34
|
+
&::before {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset-block-start: 0;
|
|
38
|
+
inset-block-end: 0;
|
|
39
|
+
inset-inline-start: calc(var(--timeline-dot-size) / 2);
|
|
40
|
+
width: var(--timeline-line-width);
|
|
41
|
+
background-color: var(--timeline-item-line-color);
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:first-child::before {
|
|
46
|
+
inset-block-start: var(--timeline-dot-center-y);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:last-child {
|
|
50
|
+
padding-bottom: 0;
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
inset-block-end: calc(100% - var(--timeline-dot-center-y));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:only-child::before {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.is-active {
|
|
62
|
+
--timeline-dot-color: var(--timeline-dot-active-color);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.timeline-dot {
|
|
67
|
+
position: relative;
|
|
68
|
+
z-index: 1;
|
|
69
|
+
width: var(--timeline-dot-size);
|
|
70
|
+
height: var(--timeline-dot-size);
|
|
71
|
+
margin-top: var(--timeline-dot-offset-y);
|
|
72
|
+
border-radius: 9999px;
|
|
73
|
+
background-color: var(--timeline-dot-color);
|
|
74
|
+
box-shadow: 0 0 0 var(--timeline-dot-ring-size) var(--timeline-dot-ring-color);
|
|
75
|
+
}
|
|
76
|
+
}
|
package/scss/index.scss
CHANGED