@stackoverflow/stacks 1.6.1 → 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.
@@ -195,6 +195,7 @@
195
195
  }
196
196
 
197
197
  // CHILD ELEMENTS
198
+ &--image, // Included with no base class to account for usage in .s-progress__badge
198
199
  & &--image {
199
200
  display: inline-flex;
200
201
  align-self: center;
@@ -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 { // [1]
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] The outer div enforces a max-width of 640px. The inner div has a height of 35 pixels, and a
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,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/StackExchange/Stacks.git"
7
7
  },
8
- "version": "1.6.1",
8
+ "version": "1.6.2",
9
9
  "files": [
10
10
  "dist",
11
11
  "lib"