@stackoverflow/stacks 2.7.3 → 2.7.4
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/LICENSE.MD +9 -9
- package/README.md +158 -180
- package/dist/css/stacks.css +6 -0
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +139 -139
- package/lib/atomic/color.less +36 -36
- package/lib/atomic/flex.less +426 -426
- package/lib/atomic/gap.less +44 -44
- package/lib/atomic/grid.less +139 -139
- package/lib/atomic/misc.less +374 -374
- package/lib/atomic/spacing.less +98 -98
- package/lib/atomic/typography.less +266 -264
- package/lib/atomic/width-height.less +194 -194
- package/lib/base/body.less +44 -44
- package/lib/base/configuration-static.less +61 -61
- package/lib/base/fieldset.less +5 -5
- package/lib/base/icon.less +11 -11
- package/lib/base/internal.less +220 -220
- package/lib/base/reset-meyer.less +64 -64
- package/lib/base/reset-normalize.less +449 -449
- package/lib/base/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.less +53 -53
- package/lib/components/avatar/avatar.less +108 -108
- package/lib/components/award-bling/award-bling.less +31 -31
- package/lib/components/banner/banner.less +44 -44
- package/lib/components/banner/banner.ts +149 -149
- package/lib/components/block-link/block-link.less +82 -82
- package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
- package/lib/components/button-group/button-group.less +82 -82
- package/lib/components/card/card.less +37 -37
- package/lib/components/check-control/check-control.less +17 -17
- package/lib/components/check-group/check-group.less +19 -19
- package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
- package/lib/components/code-block/code-block.fixtures.ts +88 -88
- package/lib/components/code-block/code-block.less +116 -116
- package/lib/components/description/description.less +9 -9
- package/lib/components/empty-state/empty-state.less +16 -16
- package/lib/components/expandable/expandable.less +118 -118
- package/lib/components/input-fill/input-fill.less +35 -35
- package/lib/components/input-icon/input-icon.less +45 -45
- package/lib/components/input-message/input-message.less +49 -49
- package/lib/components/label/label.less +110 -110
- package/lib/components/link-preview/link-preview.less +148 -148
- package/lib/components/menu/menu.less +41 -41
- package/lib/components/modal/modal.less +118 -118
- package/lib/components/modal/modal.ts +383 -383
- package/lib/components/navigation/navigation.less +136 -136
- package/lib/components/navigation/navigation.ts +128 -128
- package/lib/components/page-title/page-title.less +51 -51
- package/lib/components/popover/popover.less +159 -159
- package/lib/components/popover/popover.ts +651 -651
- package/lib/components/post-summary/post-summary.less +457 -457
- package/lib/components/progress-bar/progress-bar.less +291 -291
- package/lib/components/prose/prose.less +452 -452
- package/lib/components/select/select.less +138 -138
- package/lib/components/spinner/spinner.less +103 -103
- package/lib/components/table/table.ts +296 -296
- package/lib/components/table-container/table-container.less +4 -4
- package/lib/components/tag/tag.less +186 -186
- package/lib/components/toast/toast.less +35 -35
- package/lib/components/toast/toast.ts +357 -357
- package/lib/components/toggle-switch/toggle-switch.less +104 -104
- package/lib/components/topbar/topbar.less +553 -553
- package/lib/components/uploader/uploader.less +205 -205
- package/lib/components/user-card/user-card.less +129 -129
- package/lib/controllers.ts +33 -33
- package/lib/exports/color-mixins.less +283 -283
- package/lib/exports/constants-helpers.less +108 -108
- package/lib/exports/constants-type.less +155 -155
- package/lib/exports/exports.less +15 -15
- package/lib/exports/mixins.less +334 -333
- package/lib/exports/spacing-mixins.less +67 -67
- package/lib/index.ts +32 -32
- package/lib/input-utils.less +41 -41
- package/lib/stacks-dynamic.less +24 -24
- package/lib/stacks-static.less +93 -93
- package/lib/stacks.less +13 -13
- package/lib/test/assertions.ts +36 -36
- package/lib/test/less-test-utils.ts +28 -28
- package/lib/test/open-wc-testing-patch.d.ts +26 -26
- package/lib/tsconfig.build.json +4 -4
- package/lib/tsconfig.json +17 -17
- package/package.json +26 -22
|
@@ -1,205 +1,205 @@
|
|
|
1
|
-
.s-uploader {
|
|
2
|
-
// COMPONENT-SPECIFIC CONSTANTS
|
|
3
|
-
--_up-bg-b-image: url("data:image/svg+xml;,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='5' ry='5' stroke='%23000000' stroke-width='8' stroke-dasharray='7%2c 22' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); // Keeping this a custom property to save a few bytes
|
|
4
|
-
// COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
5
|
-
--_up-bg: var(--black-100);
|
|
6
|
-
--_up-bg-focus: var(--black-150);
|
|
7
|
-
--_up-bg-bc: var(--black-250);
|
|
8
|
-
--_up-focus-ring-color: var(--focus-ring);
|
|
9
|
-
|
|
10
|
-
// CONTEXTUAL STYLES
|
|
11
|
-
.highcontrast-mode({
|
|
12
|
-
--_up-bg-bc-hc: var(--black-400);
|
|
13
|
-
&.has-error {
|
|
14
|
-
--_up-bg-bc-hc-state: var(--red-500);
|
|
15
|
-
}
|
|
16
|
-
&.has-success {
|
|
17
|
-
--_up-bg-bc-hc-state: var(--green-400);
|
|
18
|
-
}
|
|
19
|
-
&.has-warning {
|
|
20
|
-
--_up-bg-bc-hc-state: var(--yellow-500);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
// STATES
|
|
25
|
-
&.has-error,
|
|
26
|
-
&.has-success,
|
|
27
|
-
&.has-warning {
|
|
28
|
-
.s-link {
|
|
29
|
-
color: var(--_up-link-fc);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.has-error {
|
|
34
|
-
--_up-bg: var(--red-100);
|
|
35
|
-
--_up-bg-focus: var(--red-200);
|
|
36
|
-
--_up-bg-bc: var(--red-300);
|
|
37
|
-
--_up-focus-ring-color: var(--focus-ring-error);
|
|
38
|
-
--_up-link-fc: var(--red-500);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.has-success {
|
|
42
|
-
--_up-bg: var(--green-100);
|
|
43
|
-
--_up-bg-focus: var(--green-200);
|
|
44
|
-
--_up-bg-bc: var(--green-300);
|
|
45
|
-
--_up-focus-ring-color: var(--focus-ring-success);
|
|
46
|
-
--_up-link-fc: var(--green-400);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.has-warning {
|
|
50
|
-
--_up-bg: var(--yellow-100);
|
|
51
|
-
--_up-bg-focus: var(--yellow-200);
|
|
52
|
-
--_up-bg-bc: var(--yellow-300);
|
|
53
|
-
--_up-focus-ring-color: var(--focus-ring-warning);
|
|
54
|
-
--_up-link-fc: var(--yellow-500);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.is-active {
|
|
58
|
-
--_up-bg: var(--black-150);
|
|
59
|
-
--_up-bg-bc: var(--black-300);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.is-disabled {
|
|
63
|
-
opacity: var(--_o-disabled-static);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// CHILD ELEMENTS
|
|
67
|
-
& &--container {
|
|
68
|
-
&:before { // Add the dashed border as an SVG background mask
|
|
69
|
-
-webkit-mask-image: var(--_up-bg-b-image);
|
|
70
|
-
mask-image: var(--_up-bg-b-image);
|
|
71
|
-
background-color: var(--_up-bg-bc-hc-state, var(--_up-bg-bc-hc, var(--_up-bg-bc)));
|
|
72
|
-
border-radius: var(--br-lg);
|
|
73
|
-
content: '';
|
|
74
|
-
display: block;
|
|
75
|
-
inset: 0;
|
|
76
|
-
position: absolute;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
align-items: center;
|
|
80
|
-
background-color: var(--_up-bg);
|
|
81
|
-
border-radius: var(--br-lg);
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
min-height: var(--su-static128);
|
|
86
|
-
padding: var(--su8) var(--su16);
|
|
87
|
-
position: relative;
|
|
88
|
-
text-align: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
& &--input {
|
|
92
|
-
&:focus:focus-visible + .s-uploader--container {
|
|
93
|
-
.focus-styles();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:focus:focus-visible + .s-uploader--container,
|
|
97
|
-
.s-uploader--container.focus {
|
|
98
|
-
background-color: var(--_up-bg-focus);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
height: 100%;
|
|
103
|
-
inset: 0;
|
|
104
|
-
opacity: 0;
|
|
105
|
-
position: absolute;
|
|
106
|
-
width: 100%;
|
|
107
|
-
z-index: var(--zi-selected);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
& &--preview {
|
|
111
|
-
max-width: 100%;
|
|
112
|
-
pointer-events: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
& &--preview-thumbnail {
|
|
116
|
-
.highcontrast-mode({
|
|
117
|
-
border: var(--su-static1) solid var(--black);
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
&:is(img) {
|
|
121
|
-
object-fit: scale-down;
|
|
122
|
-
object-position: center;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&:not(img) {
|
|
126
|
-
padding: var(--su16);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
background-color: var(--white);
|
|
130
|
-
border-radius: var(--br-sm);
|
|
131
|
-
box-shadow: var(--bs-md);
|
|
132
|
-
max-height: var(--su-static128);
|
|
133
|
-
max-width: 100%;
|
|
134
|
-
overflow: hidden;
|
|
135
|
-
text-overflow: ellipsis;
|
|
136
|
-
white-space: nowrap;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
& &--previews {
|
|
140
|
-
&.has-multiple {
|
|
141
|
-
display: block;
|
|
142
|
-
height: auto;
|
|
143
|
-
padding: var(--su8) var(--su2);
|
|
144
|
-
width: 100%;
|
|
145
|
-
|
|
146
|
-
.s-uploader--preview {
|
|
147
|
-
&:after {
|
|
148
|
-
content: attr(data-filename);
|
|
149
|
-
display: block;
|
|
150
|
-
margin-left: var(--su12);
|
|
151
|
-
max-width: 100%;
|
|
152
|
-
overflow: hidden;
|
|
153
|
-
text-overflow: ellipsis;
|
|
154
|
-
white-space: nowrap;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
align-items: center;
|
|
158
|
-
display: flex;
|
|
159
|
-
padding: var(--su6) 0;
|
|
160
|
-
width: 100%;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.s-uploader--preview-thumbnail {
|
|
164
|
-
&:is(img) {
|
|
165
|
-
object-fit: cover;
|
|
166
|
-
}
|
|
167
|
-
&:not(img) {
|
|
168
|
-
background-image: url("data:image/svg+xml;,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' fill='%23535A60' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 3a2 2 0 012-2h6l4 4v10a2 2 0 01-2 2H5a2 2 0 01-2-2V3zm7-1.5V6h4.5L10 1.5z'%3E%3C/path%3E%3C/svg%3E");
|
|
169
|
-
background-position: center;
|
|
170
|
-
background-repeat: no-repeat;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
color: transparent;
|
|
174
|
-
height: var(--su-static32);
|
|
175
|
-
flex-shrink: 0;
|
|
176
|
-
width: var(--su-static32);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
max-width: 100%;
|
|
181
|
-
text-align: left;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
& &--previews-heading {
|
|
185
|
-
color: var(--black-600);
|
|
186
|
-
font-size: var(--fs-body2);
|
|
187
|
-
font-weight: 700;
|
|
188
|
-
padding-bottom: var(--su8);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
& &--reset {
|
|
192
|
-
position: absolute;
|
|
193
|
-
right: var(--su8);
|
|
194
|
-
top: var(--su8);
|
|
195
|
-
z-index: var(--zi-active);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// This is for safari shadow DOM
|
|
199
|
-
// see https://github.com/StackExchange/Stacks/pull/690#issuecomment-861028193
|
|
200
|
-
input[type="file"]::file-selector-button {
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
position: relative;
|
|
205
|
-
}
|
|
1
|
+
.s-uploader {
|
|
2
|
+
// COMPONENT-SPECIFIC CONSTANTS
|
|
3
|
+
--_up-bg-b-image: url("data:image/svg+xml;,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='5' ry='5' stroke='%23000000' stroke-width='8' stroke-dasharray='7%2c 22' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); // Keeping this a custom property to save a few bytes
|
|
4
|
+
// COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
5
|
+
--_up-bg: var(--black-100);
|
|
6
|
+
--_up-bg-focus: var(--black-150);
|
|
7
|
+
--_up-bg-bc: var(--black-250);
|
|
8
|
+
--_up-focus-ring-color: var(--focus-ring);
|
|
9
|
+
|
|
10
|
+
// CONTEXTUAL STYLES
|
|
11
|
+
.highcontrast-mode({
|
|
12
|
+
--_up-bg-bc-hc: var(--black-400);
|
|
13
|
+
&.has-error {
|
|
14
|
+
--_up-bg-bc-hc-state: var(--red-500);
|
|
15
|
+
}
|
|
16
|
+
&.has-success {
|
|
17
|
+
--_up-bg-bc-hc-state: var(--green-400);
|
|
18
|
+
}
|
|
19
|
+
&.has-warning {
|
|
20
|
+
--_up-bg-bc-hc-state: var(--yellow-500);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// STATES
|
|
25
|
+
&.has-error,
|
|
26
|
+
&.has-success,
|
|
27
|
+
&.has-warning {
|
|
28
|
+
.s-link {
|
|
29
|
+
color: var(--_up-link-fc);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.has-error {
|
|
34
|
+
--_up-bg: var(--red-100);
|
|
35
|
+
--_up-bg-focus: var(--red-200);
|
|
36
|
+
--_up-bg-bc: var(--red-300);
|
|
37
|
+
--_up-focus-ring-color: var(--focus-ring-error);
|
|
38
|
+
--_up-link-fc: var(--red-500);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.has-success {
|
|
42
|
+
--_up-bg: var(--green-100);
|
|
43
|
+
--_up-bg-focus: var(--green-200);
|
|
44
|
+
--_up-bg-bc: var(--green-300);
|
|
45
|
+
--_up-focus-ring-color: var(--focus-ring-success);
|
|
46
|
+
--_up-link-fc: var(--green-400);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.has-warning {
|
|
50
|
+
--_up-bg: var(--yellow-100);
|
|
51
|
+
--_up-bg-focus: var(--yellow-200);
|
|
52
|
+
--_up-bg-bc: var(--yellow-300);
|
|
53
|
+
--_up-focus-ring-color: var(--focus-ring-warning);
|
|
54
|
+
--_up-link-fc: var(--yellow-500);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.is-active {
|
|
58
|
+
--_up-bg: var(--black-150);
|
|
59
|
+
--_up-bg-bc: var(--black-300);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.is-disabled {
|
|
63
|
+
opacity: var(--_o-disabled-static);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// CHILD ELEMENTS
|
|
67
|
+
& &--container {
|
|
68
|
+
&:before { // Add the dashed border as an SVG background mask
|
|
69
|
+
-webkit-mask-image: var(--_up-bg-b-image);
|
|
70
|
+
mask-image: var(--_up-bg-b-image);
|
|
71
|
+
background-color: var(--_up-bg-bc-hc-state, var(--_up-bg-bc-hc, var(--_up-bg-bc)));
|
|
72
|
+
border-radius: var(--br-lg);
|
|
73
|
+
content: '';
|
|
74
|
+
display: block;
|
|
75
|
+
inset: 0;
|
|
76
|
+
position: absolute;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
align-items: center;
|
|
80
|
+
background-color: var(--_up-bg);
|
|
81
|
+
border-radius: var(--br-lg);
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
min-height: var(--su-static128);
|
|
86
|
+
padding: var(--su8) var(--su16);
|
|
87
|
+
position: relative;
|
|
88
|
+
text-align: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& &--input {
|
|
92
|
+
&:focus:focus-visible + .s-uploader--container {
|
|
93
|
+
.focus-styles();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:focus:focus-visible + .s-uploader--container,
|
|
97
|
+
.s-uploader--container.focus {
|
|
98
|
+
background-color: var(--_up-bg-focus);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
height: 100%;
|
|
103
|
+
inset: 0;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
position: absolute;
|
|
106
|
+
width: 100%;
|
|
107
|
+
z-index: var(--zi-selected);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& &--preview {
|
|
111
|
+
max-width: 100%;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& &--preview-thumbnail {
|
|
116
|
+
.highcontrast-mode({
|
|
117
|
+
border: var(--su-static1) solid var(--black);
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
&:is(img) {
|
|
121
|
+
object-fit: scale-down;
|
|
122
|
+
object-position: center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:not(img) {
|
|
126
|
+
padding: var(--su16);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
background-color: var(--white);
|
|
130
|
+
border-radius: var(--br-sm);
|
|
131
|
+
box-shadow: var(--bs-md);
|
|
132
|
+
max-height: var(--su-static128);
|
|
133
|
+
max-width: 100%;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
& &--previews {
|
|
140
|
+
&.has-multiple {
|
|
141
|
+
display: block;
|
|
142
|
+
height: auto;
|
|
143
|
+
padding: var(--su8) var(--su2);
|
|
144
|
+
width: 100%;
|
|
145
|
+
|
|
146
|
+
.s-uploader--preview {
|
|
147
|
+
&:after {
|
|
148
|
+
content: attr(data-filename);
|
|
149
|
+
display: block;
|
|
150
|
+
margin-left: var(--su12);
|
|
151
|
+
max-width: 100%;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
align-items: center;
|
|
158
|
+
display: flex;
|
|
159
|
+
padding: var(--su6) 0;
|
|
160
|
+
width: 100%;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.s-uploader--preview-thumbnail {
|
|
164
|
+
&:is(img) {
|
|
165
|
+
object-fit: cover;
|
|
166
|
+
}
|
|
167
|
+
&:not(img) {
|
|
168
|
+
background-image: url("data:image/svg+xml;,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' fill='%23535A60' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 3a2 2 0 012-2h6l4 4v10a2 2 0 01-2 2H5a2 2 0 01-2-2V3zm7-1.5V6h4.5L10 1.5z'%3E%3C/path%3E%3C/svg%3E");
|
|
169
|
+
background-position: center;
|
|
170
|
+
background-repeat: no-repeat;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
color: transparent;
|
|
174
|
+
height: var(--su-static32);
|
|
175
|
+
flex-shrink: 0;
|
|
176
|
+
width: var(--su-static32);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
text-align: left;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
& &--previews-heading {
|
|
185
|
+
color: var(--black-600);
|
|
186
|
+
font-size: var(--fs-body2);
|
|
187
|
+
font-weight: 700;
|
|
188
|
+
padding-bottom: var(--su8);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
& &--reset {
|
|
192
|
+
position: absolute;
|
|
193
|
+
right: var(--su8);
|
|
194
|
+
top: var(--su8);
|
|
195
|
+
z-index: var(--zi-active);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// This is for safari shadow DOM
|
|
199
|
+
// see https://github.com/StackExchange/Stacks/pull/690#issuecomment-861028193
|
|
200
|
+
input[type="file"]::file-selector-button {
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
position: relative;
|
|
205
|
+
}
|
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
.s-user-card {
|
|
2
|
-
--_uc-ai: center;
|
|
3
|
-
--_uc-bg: unset;
|
|
4
|
-
--_uc-bar: unset;
|
|
5
|
-
--_uc-d: grid;
|
|
6
|
-
--_uc-fc: unset;
|
|
7
|
-
--_uc-g: var(--su4) var(--su8);
|
|
8
|
-
--_uc-p: var(--su8);
|
|
9
|
-
--_uc-info-ai: unset;
|
|
10
|
-
--_uc-info-fd: column;
|
|
11
|
-
--_uc-link-fs: var(--fs-caption);
|
|
12
|
-
--_uc-link-ws: unset;
|
|
13
|
-
--_uc-rep-fc: unset;
|
|
14
|
-
--_uc-time-fc: var(--black-400);
|
|
15
|
-
--_uc-time-ws: unset;
|
|
16
|
-
--_uc-type-fc: var(--theme-primary-400);
|
|
17
|
-
|
|
18
|
-
// MODIFIERS
|
|
19
|
-
&&__deleted {
|
|
20
|
-
--_uc-fc: var(--black-400);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&&__highlighted {
|
|
24
|
-
--_uc-bg: var(--theme-secondary-100);
|
|
25
|
-
--_uc-bar: var(--br-md);
|
|
26
|
-
--_uc-time-fc: var(--black-500);
|
|
27
|
-
--_uc-type-fc: var(--black-500);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// VARIANTS
|
|
31
|
-
&&__minimal,
|
|
32
|
-
&&__small {
|
|
33
|
-
--_uc-d: flex;
|
|
34
|
-
--_uc-g: var(--su4);
|
|
35
|
-
--_uc-p: 0;
|
|
36
|
-
--_uc-info-ai: center;
|
|
37
|
-
--_uc-info-fd: row;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&&__full {
|
|
41
|
-
--_uc-ai: flex-start;
|
|
42
|
-
--_uc-link-fs: var(--fs-body2);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&&__minimal {
|
|
46
|
-
--_uc-link-ws: nowrap;
|
|
47
|
-
--_uc-rep-fc: var(--black-500);
|
|
48
|
-
--_uc-time-ws: nowrap;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// CHILD ELEMENTS
|
|
52
|
-
& &--location,
|
|
53
|
-
& &--role {
|
|
54
|
-
font-size: var(--fs-caption);
|
|
55
|
-
color: var(--black-400);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
& &--awards {
|
|
59
|
-
li {
|
|
60
|
-
font-size: var(--fs-caption);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.list-reset;
|
|
64
|
-
align-items: center;
|
|
65
|
-
display: flex;
|
|
66
|
-
gap: var(--su6);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
& &--info {
|
|
70
|
-
align-items: var(--_uc-info-ai);
|
|
71
|
-
flex-direction: var(--_uc-info-fd);
|
|
72
|
-
|
|
73
|
-
display: flex;
|
|
74
|
-
gap: var(--su4);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
& &--link {
|
|
78
|
-
font-size: var(--_uc-link-fs);
|
|
79
|
-
white-space: var(--_uc-link-ws);
|
|
80
|
-
|
|
81
|
-
align-items: center;
|
|
82
|
-
flex-wrap: wrap;
|
|
83
|
-
min-width: 0; // Allow things to wrap
|
|
84
|
-
overflow-wrap: break-word;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
& &--rep {
|
|
88
|
-
color: var(--_uc-rep-fc);
|
|
89
|
-
|
|
90
|
-
font-weight: 700;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
& &--tags {
|
|
94
|
-
align-items: center;
|
|
95
|
-
min-width: 0; // Allow things to wrap
|
|
96
|
-
flex-wrap: wrap;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
& &--time {
|
|
100
|
-
color: var(--_uc-time-fc);
|
|
101
|
-
white-space: var(--_uc-time-ws);
|
|
102
|
-
|
|
103
|
-
font-size: var(--fs-caption);
|
|
104
|
-
grid-column: ~"1 / 3";
|
|
105
|
-
grid-row: ~"1 / 2";
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
& &--type {
|
|
109
|
-
a:not(.s-link) {
|
|
110
|
-
color: inherit !important;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
color: var(--_uc-type-fc);
|
|
114
|
-
|
|
115
|
-
font-size: var(--fs-caption);
|
|
116
|
-
grid-column: ~"1 / 3";
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
align-items: var(--_uc-ai);
|
|
120
|
-
background-color: var(--_uc-bg);
|
|
121
|
-
border-radius: var(--_uc-bar);
|
|
122
|
-
color: var(--_uc-fc);
|
|
123
|
-
display: var(--_uc-d);
|
|
124
|
-
gap: var(--_uc-g);
|
|
125
|
-
|
|
126
|
-
grid-template-columns: auto 1fr;
|
|
127
|
-
line-height: 1;
|
|
128
|
-
padding: var(--_uc-p);
|
|
129
|
-
}
|
|
1
|
+
.s-user-card {
|
|
2
|
+
--_uc-ai: center;
|
|
3
|
+
--_uc-bg: unset;
|
|
4
|
+
--_uc-bar: unset;
|
|
5
|
+
--_uc-d: grid;
|
|
6
|
+
--_uc-fc: unset;
|
|
7
|
+
--_uc-g: var(--su4) var(--su8);
|
|
8
|
+
--_uc-p: var(--su8);
|
|
9
|
+
--_uc-info-ai: unset;
|
|
10
|
+
--_uc-info-fd: column;
|
|
11
|
+
--_uc-link-fs: var(--fs-caption);
|
|
12
|
+
--_uc-link-ws: unset;
|
|
13
|
+
--_uc-rep-fc: unset;
|
|
14
|
+
--_uc-time-fc: var(--black-400);
|
|
15
|
+
--_uc-time-ws: unset;
|
|
16
|
+
--_uc-type-fc: var(--theme-primary-400);
|
|
17
|
+
|
|
18
|
+
// MODIFIERS
|
|
19
|
+
&&__deleted {
|
|
20
|
+
--_uc-fc: var(--black-400);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&&__highlighted {
|
|
24
|
+
--_uc-bg: var(--theme-secondary-100);
|
|
25
|
+
--_uc-bar: var(--br-md);
|
|
26
|
+
--_uc-time-fc: var(--black-500);
|
|
27
|
+
--_uc-type-fc: var(--black-500);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// VARIANTS
|
|
31
|
+
&&__minimal,
|
|
32
|
+
&&__small {
|
|
33
|
+
--_uc-d: flex;
|
|
34
|
+
--_uc-g: var(--su4);
|
|
35
|
+
--_uc-p: 0;
|
|
36
|
+
--_uc-info-ai: center;
|
|
37
|
+
--_uc-info-fd: row;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&&__full {
|
|
41
|
+
--_uc-ai: flex-start;
|
|
42
|
+
--_uc-link-fs: var(--fs-body2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&&__minimal {
|
|
46
|
+
--_uc-link-ws: nowrap;
|
|
47
|
+
--_uc-rep-fc: var(--black-500);
|
|
48
|
+
--_uc-time-ws: nowrap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// CHILD ELEMENTS
|
|
52
|
+
& &--location,
|
|
53
|
+
& &--role {
|
|
54
|
+
font-size: var(--fs-caption);
|
|
55
|
+
color: var(--black-400);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& &--awards {
|
|
59
|
+
li {
|
|
60
|
+
font-size: var(--fs-caption);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.list-reset;
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
gap: var(--su6);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& &--info {
|
|
70
|
+
align-items: var(--_uc-info-ai);
|
|
71
|
+
flex-direction: var(--_uc-info-fd);
|
|
72
|
+
|
|
73
|
+
display: flex;
|
|
74
|
+
gap: var(--su4);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& &--link {
|
|
78
|
+
font-size: var(--_uc-link-fs);
|
|
79
|
+
white-space: var(--_uc-link-ws);
|
|
80
|
+
|
|
81
|
+
align-items: center;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
min-width: 0; // Allow things to wrap
|
|
84
|
+
overflow-wrap: break-word;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& &--rep {
|
|
88
|
+
color: var(--_uc-rep-fc);
|
|
89
|
+
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
& &--tags {
|
|
94
|
+
align-items: center;
|
|
95
|
+
min-width: 0; // Allow things to wrap
|
|
96
|
+
flex-wrap: wrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& &--time {
|
|
100
|
+
color: var(--_uc-time-fc);
|
|
101
|
+
white-space: var(--_uc-time-ws);
|
|
102
|
+
|
|
103
|
+
font-size: var(--fs-caption);
|
|
104
|
+
grid-column: ~"1 / 3";
|
|
105
|
+
grid-row: ~"1 / 2";
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& &--type {
|
|
109
|
+
a:not(.s-link) {
|
|
110
|
+
color: inherit !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
color: var(--_uc-type-fc);
|
|
114
|
+
|
|
115
|
+
font-size: var(--fs-caption);
|
|
116
|
+
grid-column: ~"1 / 3";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
align-items: var(--_uc-ai);
|
|
120
|
+
background-color: var(--_uc-bg);
|
|
121
|
+
border-radius: var(--_uc-bar);
|
|
122
|
+
color: var(--_uc-fc);
|
|
123
|
+
display: var(--_uc-d);
|
|
124
|
+
gap: var(--_uc-g);
|
|
125
|
+
|
|
126
|
+
grid-template-columns: auto 1fr;
|
|
127
|
+
line-height: 1;
|
|
128
|
+
padding: var(--_uc-p);
|
|
129
|
+
}
|