@stackoverflow/stacks 2.5.1 → 2.5.3

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.
@@ -96,6 +96,14 @@
96
96
  padding: 0 var(--su2); // Helps the label visually line up with inputs
97
97
  }
98
98
 
99
+ .s-required-symbol {
100
+ color: var(--red-400);
101
+ font-size: 125%;
102
+ font-weight: normal;
103
+ line-height: 0;
104
+ text-decoration: none !important;
105
+ }
106
+
99
107
  // [1] In Core, we have *many* instances of `.s-label--status` used without the `.s-label` parent.
100
108
  // While I'd prefer to enforce the requirement of the parent class, it's too much of a lift at this moment.
101
109
  // We'll come back to it, hopefully when we have a pill component to replace the current usage of `.s-label--status`
@@ -17,6 +17,10 @@
17
17
  --_po-arrow-after-r: unset;
18
18
  --_po-arrow-after-t: unset;
19
19
  --_po-arrow-after-bs: unset;
20
+ // content
21
+ // --_po-topbar-height assumes the topbar height based on topbar styles
22
+ --_po-topbar-height: var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8)));
23
+ --_po-content-mxh: calc(100vh - var(--_po-topbar-height) - var(--su48));
20
24
 
21
25
  // CONTEXTUAL STYLES
22
26
  .dark-mode({
@@ -130,6 +134,11 @@
130
134
  padding: var(--su8) !important;
131
135
  }
132
136
 
137
+ & &--content {
138
+ max-height: var(--_po-content-mxh);
139
+ overflow-y: auto;
140
+ }
141
+
133
142
  background-color: var(--_po-bg);
134
143
  border: 1px solid var(--_po-bc);
135
144
  box-shadow: var(--_po-bs);
@@ -31,6 +31,8 @@
31
31
  --_tb-searchbar-p: 0 var(--su8);
32
32
  --_tb-searchbar-open-d: unset;
33
33
  --_tb-searchbar-open-mxw: 0;
34
+ --_tb-searchbar-popover-wmn: calc(var(--s-step) * 4);
35
+ --_tb-searchbar-popover-content-mxh: calc(100vh - var(--_tb-h) - var(--su16));
34
36
 
35
37
  // CONTEXTUAL STYLES
36
38
  .dark-mode({
@@ -97,6 +99,8 @@
97
99
  --_tb-searchbar-open-d: flex;
98
100
  --_tb-searchbar-open-mxw: none;
99
101
  --_tb-searchbar-select-w: 25%;
102
+ --_tb-searchbar-popover-wmn: initial;
103
+ --_tb-searchbar-popover-content-mxh: calc(100vh - var(--_tb-h) - var(--su48) - var(--su12));
100
104
  });
101
105
 
102
106
  // VARIANTS
@@ -367,6 +371,16 @@
367
371
  position: relative;
368
372
  }
369
373
 
374
+ .s-popover {
375
+ max-width: 100%;
376
+ min-width: var(--_tb-searchbar-popover-wmn);
377
+ padding: 0;
378
+
379
+ .s-popover--content {
380
+ max-height: var(--_tb-searchbar-popover-content-mxh);
381
+ }
382
+ }
383
+
370
384
  .s-select {
371
385
  #stacks-internals #screen-sm({
372
386
  width: 25% !important;
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": "2.5.1",
8
+ "version": "2.5.3",
9
9
  "files": [
10
10
  "dist",
11
11
  "lib",
@@ -46,28 +46,28 @@
46
46
  "@11ty/eleventy": "^2.0.1",
47
47
  "@highlightjs/cdn-assets": "^11.9.0",
48
48
  "@open-wc/testing": "^4.0.0",
49
- "@rollup/plugin-commonjs": "^25.0.7",
49
+ "@rollup/plugin-commonjs": "^25.0.8",
50
50
  "@rollup/plugin-replace": "^5.0.5",
51
51
  "@stackoverflow/stacks-editor": "^0.10.6",
52
52
  "@stackoverflow/stacks-icons": "^6.0.2",
53
- "@testing-library/dom": "^10.0.0",
53
+ "@testing-library/dom": "^10.1.0",
54
54
  "@testing-library/user-event": "^14.5.2",
55
55
  "@types/cssbeautify": "^0.3.5",
56
56
  "@types/less": "^3.0.6",
57
57
  "@types/mocha": "^10.0.6",
58
- "@typescript-eslint/eslint-plugin": "^7.7.1",
59
- "@typescript-eslint/parser": "^7.7.1",
58
+ "@typescript-eslint/eslint-plugin": "^7.11.0",
59
+ "@typescript-eslint/parser": "^7.11.0",
60
60
  "@web/dev-server-esbuild": "^1.0.2",
61
- "@web/dev-server-rollup": "^0.6.1",
62
- "@web/test-runner": "^0.18.1",
61
+ "@web/dev-server-rollup": "^0.6.3",
62
+ "@web/test-runner": "^0.18.2",
63
63
  "@web/test-runner-playwright": "^0.11.0",
64
64
  "@web/test-runner-visual-regression": "^0.9.0",
65
65
  "apca-check": "^0.1.0",
66
66
  "colorjs.io": "^0.5.0",
67
67
  "concurrently": "^8.2.2",
68
- "css-loader": "^7.1.1",
68
+ "css-loader": "^7.1.2",
69
69
  "cssbeautify": "^0.3.1",
70
- "cssnano": "^6.1.2",
70
+ "cssnano": "^7.0.1",
71
71
  "docsearch.js": "^2.6.3",
72
72
  "eleventy-plugin-highlightjs": "^1.1.0",
73
73
  "eleventy-plugin-nesting-toc": "^1.3.0",
@@ -81,15 +81,15 @@
81
81
  "mini-css-extract-plugin": "^2.9.0",
82
82
  "postcss-less": "^6.0.0",
83
83
  "postcss-loader": "^8.1.1",
84
- "prettier": "^3.2.5",
84
+ "prettier": "^3.3.0",
85
85
  "rollup-plugin-postcss": "^4.0.2",
86
- "stylelint": "^16.3.1",
86
+ "stylelint": "^16.6.1",
87
87
  "stylelint-config-recommended": "^14.0.0",
88
88
  "stylelint-config-standard": "^36.0.0",
89
89
  "terser-webpack-plugin": "^5.3.10",
90
90
  "ts-loader": "^9.5.1",
91
91
  "typescript": "^5.4.5",
92
- "vitest": "^1.5.2",
92
+ "vitest": "^1.6.0",
93
93
  "webpack": "^5.91.0",
94
94
  "webpack-cli": "^5.1.4",
95
95
  "webpack-merge": "^5.10.0"