@triptease/stylesheet 1.0.6

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.
@@ -0,0 +1,224 @@
1
+ /*
2
+ * @triptease/stylesheet v1.0.6
3
+ */
4
+ /*
5
+ Suppress "invalid at-rule" warnings: @import-glob is a build-time feature
6
+ handled by our bundler, not standard CSS. WebStorm doesn't recognize it.
7
+ */
8
+
9
+ /* noinspection CssInvalidAtRule */
10
+
11
+ @layer blocks {
12
+
13
+ @property --badge-bg-color {
14
+ syntax: '<color>';
15
+ inherits: true;
16
+ initial-value: transparent;
17
+ }
18
+
19
+ @property --badge-border-color {
20
+ syntax: '<color>';
21
+ inherits: true;
22
+ initial-value: transparent;
23
+ }
24
+
25
+ .badge {
26
+ --badge-bg-color: var(--color-surface-300);
27
+ --badge-border-color: var(--color-border-300);
28
+
29
+ background-color: var(--badge-bg-color);
30
+ border: 1px solid var(--badge-border-color);
31
+ border-radius: var(--border-radius-50);
32
+ display: inline-block;
33
+ color: var(--color-text-400);
34
+ font-weight: var(--font-weight-normal);
35
+ font-size: var(--font-size-200);
36
+ line-height: var(--font-line-height-200);
37
+ padding-inline: var(--space-scale-1);
38
+
39
+ &[data-theme='danger'] {
40
+ --badge-bg-color: var(--color-alert-100);
41
+ --badge-border-color: var(--color-alert-200);
42
+ }
43
+
44
+ &[data-theme='success'] {
45
+ --badge-bg-color: var(--color-success-100);
46
+ --badge-border-color: var(--color-success-200);
47
+ }
48
+
49
+ &[data-theme='warning'] {
50
+ --badge-bg-color: var(--color-warning-100);
51
+ --badge-border-color: var(--color-warning-200);
52
+ }
53
+
54
+ &[data-theme='info'] {
55
+ --badge-bg-color: var(--color-info-100);
56
+ --badge-border-color: var(--color-info-100);
57
+ }
58
+
59
+ &[data-theme='primary'] {
60
+ --badge-bg-color: var(--color-primary-100);
61
+ --badge-border-color: var(--color-primary-200);
62
+ }
63
+
64
+ &[data-theme='subtle'] {
65
+ --badge-bg-color: var(--color-surface-200);
66
+ --badge-border-color: var(--color-border-100);
67
+ }
68
+ }
69
+ }
70
+
71
+ @layer blocks {
72
+
73
+ .card {
74
+ border-radius: var(--border-radius-100);
75
+ border: 1px solid var(--color-border-100);
76
+ background-color: var(--color-surface-100);
77
+ box-shadow: 0 2px 0 0 var(--color-border-200);
78
+ padding: var(--card-padding, var(--space-scale-3));
79
+ display: flex;
80
+ flex-direction: column;
81
+ gap: var(--card-vertical-spacing, var(--space-scale-3));
82
+ }
83
+
84
+ [class*='card'] {
85
+ background-color: var(--color-surface-100);
86
+ box-shadow: var(--box-shadow-lg);
87
+ display: flex;
88
+ flex-direction: column;
89
+ gap: var(--card-vertical-spacing, var(--space-scale-1));
90
+
91
+ padding: var(--card-padding, var(--space-scale-3));
92
+ font-size: var(--font-size-200);
93
+ font-weight: var(--font-weight-normal);
94
+ line-height: 1.5;
95
+
96
+ .value {
97
+ font-size: var(--font-size-600);
98
+ font-weight: var(--font-weight-normal);
99
+ line-height: normal;
100
+ display: block;
101
+ font-family: var(--font-family-serif);
102
+ }
103
+ }
104
+
105
+ .card-dataview {
106
+ --card-vertical-spacing: 0;
107
+ --card-padding: var(--space-scale-2);
108
+
109
+ display: grid;
110
+ grid-template-rows: repeat(4, 1fr);
111
+
112
+ .title {
113
+ font-size: inherit;
114
+ font-weight: inherit;
115
+ line-height: inherit;
116
+ }
117
+
118
+ .status {
119
+ align-self: center;
120
+ }
121
+ }
122
+ }
123
+
124
+ @layer blocks {
125
+ header[data-theme='top-nav'] {
126
+ background-color: var(--color-surface-800);
127
+ color: var(--color-text-100);
128
+ padding: var(--space-scale-2) var(--space-scale-6);
129
+ min-height: var(--space-scale-7-5);
130
+ display: flex;
131
+ align-items: center;
132
+ gap: var(--space-scale-4);
133
+ width: 100%;
134
+ box-sizing: border-box;
135
+
136
+ img {
137
+ }
138
+
139
+ nav {
140
+ > ul {
141
+ display: flex;
142
+ gap: var(--space-scale-3);
143
+ list-style: none;
144
+ margin: 0;
145
+ padding: 0;
146
+ align-items: center;
147
+ height: 100%;
148
+ }
149
+
150
+ a {
151
+ color: inherit;
152
+ text-underline-offset: var(--space-scale-1-5);
153
+ font-weight: var(--font-weight-bold);
154
+ font-size: var(--font-size-100);
155
+
156
+ &:is(:hover, [data-active='true']) {
157
+ text-decoration: underline;
158
+ text-decoration-thickness: 2px;
159
+ text-decoration-color: var(--color-primary-300);
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ @layer blocks {
167
+ .status {
168
+ --tag-background-color: var(--color-surface-100);
169
+ --tag-color: var(--color-text-500);
170
+
171
+ background-color: var(--tag-background-color);
172
+ color: var(--tag-color);
173
+ border-radius: var(--border-radius-100);
174
+ padding: var(--space-scale-0-5) var(--space-scale-1);
175
+ font-size: var(--font-size-100);
176
+ width: -moz-fit-content;
177
+ width: fit-content;
178
+ height: -moz-fit-content;
179
+ height: fit-content;
180
+
181
+ &[data-status='warning'] {
182
+ --tag-background-color: var(--color-warning-100);
183
+ --tag-color: var(--color-warning-400);
184
+ }
185
+ }
186
+ }
187
+
188
+ @layer blocks {
189
+ table {
190
+ width: 100%;
191
+ border: 1px solid var(--color-surface-500);
192
+ }
193
+ thead {
194
+ background-color: var(--color-surface-300);
195
+ color: var(--color-text-400);
196
+ }
197
+
198
+ th {
199
+ padding: var(--space-scale-1);
200
+ text-align: right;
201
+
202
+ &:first-child {
203
+ text-align: left;
204
+ }
205
+ }
206
+
207
+ td {
208
+ padding: var(--space-scale-1);
209
+ text-align: right;
210
+ vertical-align: middle;
211
+
212
+ &:first-child {
213
+ text-align: left;
214
+ }
215
+ }
216
+
217
+ tr {
218
+ border-top: 1px solid var(--color-surface-500);
219
+ border-bottom: 1px solid var(--color-surface-500);
220
+ }
221
+
222
+ tfoot {
223
+ }
224
+ }
@@ -0,0 +1,99 @@
1
+ /*
2
+ * @triptease/stylesheet v1.0.6
3
+ */
4
+ /*
5
+ Suppress "invalid at-rule" warnings: @import-glob is a build-time feature
6
+ handled by our bundler, not standard CSS. WebStorm doesn't recognize it.
7
+ */
8
+
9
+ /* noinspection CssInvalidAtRule */
10
+
11
+ @layer compositions {
12
+
13
+ [class^='column'] {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: var(--column-vertical-spacing, var(--space-scale-1));
17
+
18
+ &[data-align='end'] {
19
+ align-items: flex-end;
20
+ }
21
+
22
+ &[data-align='center'] {
23
+ align-items: center;
24
+ }
25
+
26
+ &[data-align='start'] {
27
+ align-items: flex-start;
28
+ }
29
+
30
+ &[data-justify='end'] {
31
+ justify-content: flex-end;
32
+ }
33
+
34
+ &[data-justify='center'] {
35
+ justify-content: center;
36
+ }
37
+ }
38
+
39
+ .column-xs {
40
+ --column-vertical-spacing: var(--space-scale-0-5);
41
+ }
42
+
43
+ .column-sm {
44
+ --column-vertical-spacing: var(--space-scale-1);
45
+ }
46
+
47
+ .column-md {
48
+ --column-vertical-spacing: var(--space-scale-2);
49
+ }
50
+
51
+ .column-lg {
52
+ --column-vertical-spacing: var(--space-scale-3);
53
+ }
54
+
55
+ .column-xl {
56
+ --column-vertical-spacing: var(--space-scale-4);
57
+ }
58
+
59
+ .column-2xl {
60
+ --column-vertical-spacing: var(--space-scale-5);
61
+ }
62
+ }
63
+
64
+ @layer compositions {
65
+
66
+ @property --stack-vertical-spacing {
67
+ syntax: '<length>';
68
+ initial-value: var(--space-scale-1);
69
+ inherits: false;
70
+ }
71
+
72
+ [class^='stack'] > * + * {
73
+ margin-top: var(--stack-vertical-spacing);
74
+ }
75
+
76
+ .stack-xs {
77
+ --stack-vertical-spacing: var(--space-scale-0-5);
78
+ }
79
+
80
+ .stack-sm {
81
+ --stack-vertical-spacing: var(--space-scale-1);
82
+ }
83
+
84
+ .stack-md {
85
+ --stack-vertical-spacing: var(--space-scale-2);
86
+ }
87
+
88
+ .stack-lg {
89
+ --stack-vertical-spacing: var(--space-scale-3);
90
+ }
91
+
92
+ .stack-xl {
93
+ --stack-vertical-spacing: var(--space-scale-4);
94
+ }
95
+
96
+ .stack-2xl {
97
+ --stack-vertical-spacing: var(--space-scale-5);
98
+ }
99
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * @triptease/stylesheet v1.0.6
3
+ */
4
+ /*
5
+ Suppress "invalid at-rule" warnings: @import-glob is a build-time feature
6
+ handled by our bundler, not standard CSS. WebStorm doesn't recognize it.
7
+ */
8
+
9
+ /* noinspection CssInvalidAtRule */