@stackoverflow/stacks 2.8.0 → 2.8.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.
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Stacks documentation can be found at https://stackoverflow.design/
|
|
|
22
22
|
|
|
23
23
|
- [Using Stacks](#using-stacks)
|
|
24
24
|
- [Migrating from v1 to v2](#migrating-from-v1-to-v2)
|
|
25
|
-
- [
|
|
25
|
+
- [Local Development](#local-development)
|
|
26
26
|
- [Format Stacks](#format-stacks)
|
|
27
27
|
- [Linting Stacks](#linting-stacks)
|
|
28
28
|
- [Testing Stacks](#testing-stacks)
|
|
@@ -38,8 +38,13 @@ Using Stacks is outlined in our [usage guidelines](https://stackoverflow.design/
|
|
|
38
38
|
|
|
39
39
|
To migrate from Stacks v1 to v2, see our [migration guide](/MIGRATION_GUIDE.md).
|
|
40
40
|
|
|
41
|
-
##
|
|
42
|
-
|
|
41
|
+
## Local Development
|
|
42
|
+
|
|
43
|
+
To contribute to Stacks documentation or its CSS library, you’ll need to build Stacks locally:
|
|
44
|
+
```sh
|
|
45
|
+
npm start
|
|
46
|
+
```
|
|
47
|
+
This command will pull up the local dev server at http://localhost:8000. You can also view our [building guidelines](https://stackoverflow.design/product/develop/building).
|
|
43
48
|
|
|
44
49
|
Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
|
|
45
50
|
|
package/dist/css/stacks.css
CHANGED
|
@@ -1753,7 +1753,6 @@ body.theme-highcontrast .s-btn.s-btn__github {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
.s-btn-group .s-btn .s-btn--text:before {
|
|
1755
1755
|
content: attr(data-text);
|
|
1756
|
-
content: attr(data-text) / "";
|
|
1757
1756
|
font-weight: bold;
|
|
1758
1757
|
height: 0;
|
|
1759
1758
|
pointer-events: none;
|
|
@@ -2947,7 +2946,6 @@ body.theme-system .theme-dark__forced .s-menu {
|
|
|
2947
2946
|
position: fixed;
|
|
2948
2947
|
transition: opacity 100ms var(--te-smooth) 0s, z-index 0s 100ms, visibility 0s 100ms;
|
|
2949
2948
|
visibility: hidden;
|
|
2950
|
-
will-change: visibility, z-index, opacity;
|
|
2951
2949
|
z-index: var(--zi-hide);
|
|
2952
2950
|
}
|
|
2953
2951
|
@media (prefers-color-scheme: dark) {
|
|
@@ -3025,7 +3023,6 @@ body.theme-highcontrast.theme-dark .s-modal {
|
|
|
3025
3023
|
transform: translate3d(0, 30%, 0) scale3d(0.6, 0.6, 0.6);
|
|
3026
3024
|
transition: opacity 200ms var(--te-smooth) 0s, z-index 0s 100ms, visibility 0s 100ms, transform 100ms var(--te-smooth) 0s, transform 100ms var(--te-smooth) 0s;
|
|
3027
3025
|
visibility: hidden;
|
|
3028
|
-
will-change: visibility, z-index, opacity, transform;
|
|
3029
3026
|
z-index: var(--zi-hide);
|
|
3030
3027
|
}
|
|
3031
3028
|
.s-modal .s-modal--dialog::-webkit-scrollbar {
|
|
@@ -3072,6 +3069,7 @@ body.theme-highcontrast.theme-dark .s-modal {
|
|
|
3072
3069
|
--_na-item-selected-bg: var(--theme-primary);
|
|
3073
3070
|
--_na-item-selected-fc: var(--white);
|
|
3074
3071
|
--_na-item-selected-bg-hover: var(--theme-primary-500);
|
|
3072
|
+
--_na-item-text-ta: center;
|
|
3075
3073
|
--_na-title-mt: var(--su16);
|
|
3076
3074
|
flex-direction: var(--_na-fd);
|
|
3077
3075
|
flex-wrap: var(--_na-fw);
|
|
@@ -3115,6 +3113,7 @@ body.theme-highcontrast .s-navigation {
|
|
|
3115
3113
|
--_na-fd: column;
|
|
3116
3114
|
--_na-gap: 0;
|
|
3117
3115
|
--_na-p: 0;
|
|
3116
|
+
--_na-item-text-ta: unset;
|
|
3118
3117
|
--_na-item-ws: normal;
|
|
3119
3118
|
}
|
|
3120
3119
|
.s-navigation.s-navigation__muted {
|
|
@@ -3148,6 +3147,7 @@ body.theme-highcontrast .s-navigation.s-navigation__muted {
|
|
|
3148
3147
|
--_na-item-fc: var(--_na-item-selected-fc);
|
|
3149
3148
|
--_na-item-fc-hover: var(--_na-item-fc);
|
|
3150
3149
|
--_na-item-bg-hover: var(--_na-item-selected-bg-hover);
|
|
3150
|
+
font-weight: bold;
|
|
3151
3151
|
}
|
|
3152
3152
|
body.theme-highcontrast .s-navigation .s-navigation--item.is-selected {
|
|
3153
3153
|
text-decoration: none;
|
|
@@ -3175,6 +3175,19 @@ body.theme-highcontrast .s-navigation .s-navigation--item.is-selected {
|
|
|
3175
3175
|
box-shadow: inset 0 0 0 var(--su-static2) var(--focus-theme), inset 0 0 0 var(--su-static4) var(--focus-neutral);
|
|
3176
3176
|
outline: var(--su-static2) solid transparent !important;
|
|
3177
3177
|
}
|
|
3178
|
+
.s-navigation .s-navigation--item-text {
|
|
3179
|
+
display: inline-flex;
|
|
3180
|
+
flex-direction: column;
|
|
3181
|
+
text-align: var(--_na-item-text-ta);
|
|
3182
|
+
}
|
|
3183
|
+
.s-navigation .s-navigation--item-text:before {
|
|
3184
|
+
content: attr(data-text);
|
|
3185
|
+
font-weight: bold;
|
|
3186
|
+
height: 0;
|
|
3187
|
+
pointer-events: none;
|
|
3188
|
+
user-select: none;
|
|
3189
|
+
visibility: hidden;
|
|
3190
|
+
}
|
|
3178
3191
|
.s-navigation .s-navigation--title {
|
|
3179
3192
|
margin-top: var(--_na-title-mt);
|
|
3180
3193
|
font-size: var(--fs-fine);
|