@stackoverflow/stacks 1.6.0 → 1.6.2
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.
|
@@ -387,8 +387,17 @@
|
|
|
387
387
|
& &--number {
|
|
388
388
|
color: var(--_bu-number-fc);
|
|
389
389
|
}
|
|
390
|
-
&--radio { // This lives alongside a .s-btn element
|
|
391
|
-
|
|
390
|
+
&--radio { // This lives alongside a .s-btn element. These styles are the equivelent of `.v-visible-sr`
|
|
391
|
+
border: 0;
|
|
392
|
+
clip-path: inset(50%);
|
|
393
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
394
|
+
height: 1px;
|
|
395
|
+
margin: -1px;
|
|
396
|
+
overflow-wrap: normal;
|
|
397
|
+
overflow: hidden;
|
|
398
|
+
padding: 0;
|
|
399
|
+
position: absolute;
|
|
400
|
+
width: 1px;
|
|
392
401
|
}
|
|
393
402
|
|
|
394
403
|
// INTERACTION
|
|
@@ -152,6 +152,10 @@
|
|
|
152
152
|
background: var(--_no-code-bg, transparent);
|
|
153
153
|
}
|
|
154
154
|
& &--btn {
|
|
155
|
+
// TODO: decouple .s-notice--btn from .s-btn
|
|
156
|
+
&:not(:focus) {
|
|
157
|
+
box-shadow: none; // This will prevent default .s-btn box-shadow from showing
|
|
158
|
+
}
|
|
155
159
|
&:focus,
|
|
156
160
|
&:hover {
|
|
157
161
|
background: var(--_no-btn-bg-focus);
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
--_pr-spacing: 1.1em;
|
|
25
25
|
--_pr-spacing-condensed: calc(var(--_pr-spacing) / 2); // Reduce the base spacing by half in the context of lists, etc.
|
|
26
26
|
--_pr-spoiler-transition: opacity 0.1s ease-in-out;
|
|
27
|
+
// TEMP HOT FIX FOR .s-editor [1]
|
|
28
|
+
--s-prose-spacing: var(--_pr-spacing); // TODO remove once addressed in StackExchange/Stacks-Editor
|
|
29
|
+
--s-prose-spacing-condensed: var(--_pr-spacing-condensed); // TODO remove once addressed in StackExchange/Stacks-Editor
|
|
27
30
|
|
|
28
31
|
// CONDITIONAL STYLES
|
|
29
32
|
.dark-mode({
|
|
@@ -164,6 +167,7 @@
|
|
|
164
167
|
quotes: none;
|
|
165
168
|
}
|
|
166
169
|
dd,
|
|
170
|
+
div,
|
|
167
171
|
dl,
|
|
168
172
|
.s-table-container,
|
|
169
173
|
.s-link-preview {
|
|
@@ -371,7 +375,7 @@
|
|
|
371
375
|
color: var(--black-800);
|
|
372
376
|
min-height: var(--su-static48); // TODO: Let's find a solution that doesn't have a magic number
|
|
373
377
|
}
|
|
374
|
-
.youtube-embed { // [
|
|
378
|
+
.youtube-embed { // [2]
|
|
375
379
|
> div {
|
|
376
380
|
iframe {
|
|
377
381
|
height: 100%;
|
|
@@ -395,7 +399,10 @@
|
|
|
395
399
|
overflow-wrap: break-word;
|
|
396
400
|
}
|
|
397
401
|
|
|
398
|
-
// [1]
|
|
402
|
+
// [1] StackExchange/Stacks-Editor references `--s-prose-spacing` and `--s-prose-spacing-condensed`.
|
|
403
|
+
// Going forward, it shouldn't but for now, I've introduced a hotfix to define those custom properties.
|
|
404
|
+
|
|
405
|
+
// [2] The outer div enforces a max-width of 640px. The inner div has a height of 35 pixels, and a
|
|
399
406
|
// padding-bottom of 56.25%. Padding percentages, even for top/bottom, are always relative
|
|
400
407
|
// to the *width*, so the padding always has an aspect ratio of 1/0.5625, or 16/9. Thus in total,
|
|
401
408
|
// the iframe has a height of 35 + width * 9/16. 35 pixels is the height of youtube's player controls,
|