@stackoverflow/stacks 0.72.0 → 0.73.0

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.
@@ -194,11 +194,6 @@ p {
194
194
  .wb-unset { word-break: unset !important; }
195
195
 
196
196
  // -- Overflow Wrap
197
- // This property will create a line break only if an entire word cannot be
198
- // placed on its own line without overflowing. This was formerly called
199
- // word-wrap, which was an unprefixed Microsoft vendor property implemented
200
- // by most browsers. Word-wrap is still a supported alias, but can be removed
201
- // once we no longer support IE11.
202
197
  .ow-normal {
203
198
  overflow-wrap: normal !important;
204
199
  word-wrap: normal !important;
@@ -224,8 +219,6 @@ p {
224
219
  word-wrap: unset !important;
225
220
  }
226
221
 
227
- .ww-break-word { word-wrap: break-word !important; }
228
-
229
222
  // -- Hyphenation
230
223
  .hyphens-none { hyphens: none !important; }
231
224
  .hyphens-auto {
@@ -235,9 +228,31 @@ p {
235
228
  }
236
229
  .hyphens-unset { hyphens: unset !important; }
237
230
 
231
+ // -- Break word
232
+ .break-word {
233
+ word-break: break-word !important;
234
+ word-wrap: break-word !important;
235
+ overflow-wrap: break-word !important;
236
+ -webkit-hyphens: auto !important;
237
+ -moz-hyphens: auto !important;
238
+ -ms-hyphens: auto !important;
239
+ hyphens: auto !important;
240
+ }
241
+
238
242
  // ============================================================================
239
243
  // $ LISTS
240
244
  // ----------------------------------------------------------------------------
245
+ ul,
246
+ ol {
247
+ padding: 0;
248
+ margin-left: 2.8em;
249
+
250
+ ul,
251
+ ol {
252
+ margin-bottom: 0;
253
+ }
254
+ }
255
+
241
256
  .list-reset {
242
257
  list-style: none;
243
258
  margin: 0;
@@ -74,22 +74,12 @@
74
74
 
75
75
  // DEPRECATED will be removed in a future release
76
76
  // Tags
77
- @tags-border: transparent;
78
- @tags-background: var(--powder-100);
79
- @tags-color: var(--powder-700);
80
- @tags-hover-border: transparent;
81
- @tags-hover-background: var(--powder-200);
82
- @tags-hover-color: var(--powder-800);
83
- @tags-selected-border: transparent;
84
- @tags-selected-background: var(--powder-300);
85
- @tags-selected-color: var(--powder-900);
86
-
87
- @tags-moderator-border: var(--red-100);
77
+ @tags-moderator-border: var(--red-200);
88
78
  @tags-moderator-background: var(--red-050);
89
- @tags-moderator-color: var(--red-600);
90
- @tags-moderator-hover-border: var(--red-200);
79
+ @tags-moderator-color: var(--red-800);
80
+ @tags-moderator-hover-border: var(--red-300);
91
81
  @tags-moderator-hover-background: var(--red-100);
92
- @tags-moderator-hover-color: var(--red-700);
82
+ @tags-moderator-hover-color: var(--red-900);
93
83
  @tags-moderator-selected-border: var(--red-400);
94
84
  @tags-moderator-selected-background: var(--red-200);
95
85
  @tags-moderator-selected-color: var(--red-800);
@@ -167,6 +167,7 @@
167
167
  margin-top: 0;
168
168
  }
169
169
  }
170
+
170
171
  .s-badge__staff {
171
172
  // Staff badges are always "Stack Overflow Orange"
172
173
  .badge-styles(var(--orange-300), var(--orange-100), var(--orange-900));
@@ -690,6 +690,11 @@ fieldset {
690
690
  border-radius: @br-sm + 1;
691
691
  }
692
692
 
693
+ .s-textarea__md {
694
+ padding-top: 0.72em;
695
+ padding-bottom: 0.72em;
696
+ }
697
+
693
698
  .s-input__lg,
694
699
  .s-textarea__lg,
695
700
  .s-select__lg > select {
@@ -30,6 +30,10 @@
30
30
  min-width: 12rem;
31
31
  width: 100%;
32
32
 
33
+ // Guard against popovers being in a container with white-space: nowrap
34
+ // Without this, the content pops *out* of the popover.
35
+ white-space: normal;
36
+
33
37
  .dark-mode({
34
38
  background-color: var(--black-075);
35
39
  border-color: var(--bc-light);
@@ -70,7 +70,14 @@
70
70
  border: 1px solid transparent;
71
71
 
72
72
  &.has-answers,
73
- &.has-bounty {
73
+ &.has-bounty,
74
+ &.is-watched,
75
+ &.is-ignored,
76
+ &.is-deleted,
77
+ &.is-published,
78
+ &.is-draft,
79
+ &.is-review,
80
+ &.is-rejected {
74
81
  border-radius: @br-sm;
75
82
  padding: @su2 @su4;
76
83
  }
@@ -105,6 +112,26 @@
105
112
  &.is-supernova {
106
113
  color: var(--orange-400);
107
114
  }
115
+
116
+ &.is-published {
117
+ color: var(--black-800);
118
+ background-color: var(--black-050);
119
+ }
120
+
121
+ &.is-draft {
122
+ color: var(--white);
123
+ background-color: var(--blue-700);
124
+ }
125
+
126
+ &.is-review {
127
+ color: var(--white);
128
+ background-color: var(--yellow-700);
129
+ }
130
+
131
+ &.is-rejected {
132
+ color: var(--white);
133
+ background-color: var(--red-600);
134
+ }
108
135
  }
109
136
 
110
137
  #stacks-internals #screen-md({
@@ -120,7 +147,7 @@
120
147
 
121
148
  .s-post-summary--content-title {
122
149
  display: inline-block;
123
- font-size: @fs-subheading;
150
+ font-size: @fs-body3;
124
151
  margin-bottom: @su6;
125
152
  overflow-wrap: break-word;
126
153
  word-wrap: break-word;
@@ -221,3 +248,50 @@
221
248
  .v-truncate4;
222
249
  }
223
250
  }
251
+
252
+ .s-post-summary__watched .is-watched {
253
+ color: var(--white);
254
+ background-color: var(--yellow-600);
255
+ }
256
+
257
+ .s-post-summary__ignored .is-ignored {
258
+ color: var(--white);
259
+ background-color: var(--black-600);
260
+ }
261
+
262
+ .s-post-summary__deleted .is-deleted {
263
+ color: @white;
264
+ background-color: var(--red-500);
265
+ }
266
+
267
+ .s-post-summary__ignored,
268
+ .s-post-summary__deleted {
269
+ .s-post-summary--content {
270
+ opacity: 0.7;
271
+ }
272
+
273
+ .s-post-summary--stats-item:not(.is-ignored):not(.is-deleted) {
274
+ opacity: 0.7;
275
+ filter: grayscale(100%);
276
+ }
277
+
278
+ .s-post-summary--content-title {
279
+ color: var(--black-600);
280
+
281
+ &:hover {
282
+ color: var(--black-500);
283
+ }
284
+
285
+ &:visited {
286
+ color: var(--black-700);
287
+ }
288
+ }
289
+
290
+ .s-post-summary--content-excerpt {
291
+ color: var(--black-500);
292
+ }
293
+
294
+ .s-post-summary--meta {
295
+ filter: grayscale(100%);
296
+ }
297
+ }
@@ -37,7 +37,6 @@
37
37
  background-color: var(--green-400);
38
38
  }
39
39
 
40
-
41
40
  // $$ LABEL
42
41
  // For when there's descriptive, label copy within the progress bar
43
42
  // ----------------------------------------------------------------------------
@@ -53,7 +52,6 @@
53
52
  z-index: @zi-base + 2;
54
53
  }
55
54
 
56
-
57
55
  // ===========================================================================
58
56
  // $ VARIATION PROGRESS BACKGROUNDS
59
57
  // ---------------------------------------------------------------------------
@@ -75,10 +73,13 @@
75
73
  }
76
74
  .s-progress--label {
77
75
  border-color: var(--green-400);
76
+ display: flex;
77
+ gap: @su4;
78
+ align-items: center;
79
+ justify-content: center;
78
80
  }
79
81
  }
80
82
 
81
-
82
83
  // ===========================================================================
83
84
  // $ BADGE PROGRESS BARS
84
85
  // ===========================================================================
@@ -95,6 +96,20 @@
95
96
  background-color: transparent;
96
97
  }
97
98
 
99
+ .s-progress__badge {
100
+ .s-progress--label {
101
+ display: flex;
102
+ gap: @su4;
103
+ align-items: center;
104
+ padding-left: 1em;
105
+ padding-right: 1em;
106
+
107
+ .s-badge--label {
108
+ text-align: center;
109
+ flex-grow: 1;
110
+ }
111
+ }
112
+ }
98
113
 
99
114
  // $$ GOLD
100
115
  // ---------------------------------------------------------------------------
@@ -26,7 +26,7 @@
26
26
  background-color: transparent;
27
27
 
28
28
  &:hover {
29
- color: @white; // We want this color to remain fixed regardless of dark mode
29
+ color: @background;
30
30
  background-color: @color;
31
31
 
32
32
  .highcontrast-mode({
@@ -82,12 +82,12 @@
82
82
  vertical-align: middle;
83
83
  white-space: nowrap;
84
84
 
85
- .s-tag-styles(@tags-border, @tags-background, @tags-color);
85
+ .s-tag-styles(var(--theme-tag-border-color), var(--theme-tag-background-color), var(--theme-tag-color));
86
86
 
87
87
  .highcontrast-mode({ text-decoration: none; });
88
88
 
89
89
  &.is-selected {
90
- .s-tag-selected-styles(@tags-selected-border, @tags-selected-background, @tags-selected-color);
90
+ .s-tag-selected-styles(transparent, var(--theme-secondary-200), var(--theme-secondary-900));
91
91
  }
92
92
 
93
93
  // -- SIZES
@@ -118,7 +118,7 @@
118
118
 
119
119
  a.s-tag:not(.is-selected) {
120
120
  #stacks-internals #load-config();
121
- .s-tag-hover-styles(@tags-hover-border, @tags-hover-background, @tags-hover-color);
121
+ .s-tag-hover-styles(var(--theme-tag-hover-border-color), var(--theme-tag-hover-background-color), var(--theme-tag-hover-color));
122
122
  }
123
123
 
124
124
  // $$ DISMISS ICON
@@ -207,18 +207,3 @@ a.s-tag__muted:not(.is-selected) {
207
207
  #stacks-internals #load-config();
208
208
  .s-tag-hover-styles(@tags-muted-hover-border, @tags-muted-hover-background, @tags-muted-hover-color);
209
209
  }
210
-
211
- // $$ Themed Tag
212
- // ---------------------------------------------------------------------------
213
- .s-tag__themed {
214
- #stacks-internals #load-config();
215
- .s-tag-styles(var(--theme-primary-300), var(--theme-primary-050), var(--theme-primary-700));
216
-
217
- &.is-selected {
218
- .s-tag-selected-styles(transparent, var(--theme-primary-200), var(--theme-primary-900));
219
- }
220
- }
221
- a.s-tag__themed:not(.is-selected) {
222
- #stacks-internals #load-config();
223
- .s-tag-hover-styles(var(--theme-primary-400), var(--theme-primary-100), var(--theme-primary-900));
224
- }
@@ -236,6 +236,14 @@
236
236
  --theme-button-outlined-border-color: var(--theme-secondary-300);
237
237
  --theme-button-outlined-selected-border-color: var(--theme-secondary-400);
238
238
 
239
+ // Tags
240
+ --theme-tag-color: var(--theme-secondary-800);
241
+ --theme-tag-background-color: var(--theme-secondary-075);
242
+ --theme-tag-border-color: transparent;
243
+ --theme-tag-hover-color: var(--theme-secondary-900);
244
+ --theme-tag-hover-background-color: var(--theme-secondary-100);
245
+ --theme-tag-hover-border-color: transparent;
246
+
239
247
  // Topbar
240
248
  --theme-topbar-height: @su48;
241
249
  --theme-topbar-background-color: var(--black-025);
@@ -52,6 +52,7 @@
52
52
  // ============================================================================
53
53
  // $ SPACING UNITS (su-)
54
54
  // ----------------------------------------------------------------------------
55
+ @su1: 1px;
55
56
  @su2: 2px;
56
57
  @su4: 4px;
57
58
  @su6: 6px;
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": "0.72.0",
8
+ "version": "0.73.0",
9
9
  "files": [
10
10
  "dist",
11
11
  "lib"
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@popperjs/core": "^2.10.2",
22
+ "@popperjs/core": "^2.11.0",
23
23
  "stimulus": "^2.0.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@11ty/eleventy": "^0.12.1",
27
27
  "@highlightjs/cdn-assets": "^11.3.1",
28
28
  "@stackoverflow/stacks-editor": "^0.4.1",
29
- "@stackoverflow/stacks-icons": "^2.25.0",
30
- "backstopjs": "^6.0.1",
29
+ "@stackoverflow/stacks-icons": "^2.25.1",
30
+ "backstopjs": "^6.0.4",
31
31
  "docsearch.js": "^2.6.3",
32
32
  "eleventy-plugin-highlightjs": "^0.3.0",
33
33
  "eleventy-plugin-markdown-shortcode": "^1.1.0",
@@ -46,9 +46,12 @@
46
46
  "grunt-ts": "^6.0.0-beta.22",
47
47
  "jquery": "^3.6.0",
48
48
  "list.js": "^2.3.1",
49
- "stylelint": "^13.13.1",
50
- "stylelint-config-standard": "^22.0.0",
51
- "typescript": "^4.5.2"
49
+ "postcss-less": "^5.0.0",
50
+ "stylelint": "^14.2.0",
51
+ "stylelint-config-recommended-less": "^1.0.1",
52
+ "stylelint-config-standard": "^24.0.0",
53
+ "stylelint-less": "^1.0.1",
54
+ "typescript": "^4.5.4"
52
55
  },
53
56
  "browserslist": [
54
57
  "last 2 versions",