@stackoverflow/stacks 0.76.0 → 1.0.0-beta.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.
Files changed (86) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +47 -47
  3. package/dist/controllers/index.d.ts +7 -7
  4. package/dist/controllers/s-expandable-control.d.ts +17 -17
  5. package/dist/controllers/s-modal.d.ts +97 -97
  6. package/dist/controllers/s-navigation-tablist.d.ts +36 -36
  7. package/dist/controllers/s-popover.d.ts +155 -155
  8. package/dist/controllers/s-table.d.ts +8 -8
  9. package/dist/controllers/s-tooltip.d.ts +82 -82
  10. package/dist/controllers/s-uploader.d.ts +48 -48
  11. package/dist/css/stacks.css +4321 -2635
  12. package/dist/css/stacks.min.css +1 -1
  13. package/dist/index.d.ts +3 -3
  14. package/dist/js/stacks.js +1978 -1978
  15. package/dist/js/stacks.min.js +1 -1
  16. package/dist/stacks.d.ts +21 -21
  17. package/lib/css/atomic/{_stacks-borders.less → borders.less} +378 -378
  18. package/lib/css/atomic/{_stacks-colors.less → colors.less} +209 -209
  19. package/lib/css/atomic/{_stacks-flex.less → flex.less} +375 -374
  20. package/lib/css/atomic/{_stacks-grid.less → grid.less} +174 -174
  21. package/lib/css/atomic/{_stacks-misc.less → misc.less} +343 -343
  22. package/lib/css/atomic/spacing.less +314 -0
  23. package/lib/css/atomic/{_stacks-typography.less → typography.less} +273 -273
  24. package/lib/css/atomic/width-height.less +194 -0
  25. package/lib/css/base/{_stacks-body.less → body.less} +44 -44
  26. package/lib/css/base/{_stacks-configuration-static.less → configuration-static.less} +61 -59
  27. package/lib/css/base/{_stacks-icons.less → icons.less} +20 -20
  28. package/lib/css/base/{_stacks-internals.less → internals.less} +220 -220
  29. package/lib/css/base/{_stacks-reset-meyer.less → reset-meyer.less} +64 -64
  30. package/lib/css/base/{_stacks-reset-normalize.less → reset-normalize.less} +449 -449
  31. package/lib/css/base/{_stacks-reset.less → reset.less} +20 -20
  32. package/lib/css/components/{_stacks-activity-indicator.less → activity-indicator.less} +45 -45
  33. package/lib/css/components/{_stacks-avatars.less → avatars.less} +189 -189
  34. package/lib/css/components/{_stacks-badges.less → badges.less} +209 -209
  35. package/lib/css/components/{_stacks-banners.less → banners.less} +80 -80
  36. package/lib/css/components/{_stacks-blank-states.less → blank-states.less} +26 -26
  37. package/lib/css/components/{_stacks-breadcrumbs.less → breadcrumbs.less} +44 -44
  38. package/lib/css/components/{_stacks-button-groups.less → button-groups.less} +104 -104
  39. package/lib/css/components/{_stacks-buttons.less → buttons.less} +665 -658
  40. package/lib/css/components/{_stacks-cards.less → cards.less} +44 -44
  41. package/lib/css/components/{_stacks-code-blocks.less → code-blocks.less} +130 -130
  42. package/lib/css/components/{_stacks-collapsible.less → collapsible.less} +104 -104
  43. package/lib/css/components/{_stacks-inputs.less → inputs.less} +728 -728
  44. package/lib/css/components/{_stacks-link-previews.less → link-previews.less} +136 -136
  45. package/lib/css/components/{_stacks-links.less → links.less} +218 -218
  46. package/lib/css/components/{_stacks-menu.less → menu.less} +47 -47
  47. package/lib/css/components/{_stacks-modals.less → modals.less} +133 -133
  48. package/lib/css/components/{_stacks-navigation.less → navigation.less} +146 -146
  49. package/lib/css/components/{_stacks-notices.less → notices.less} +233 -233
  50. package/lib/css/components/{_stacks-page-titles.less → page-titles.less} +60 -60
  51. package/lib/css/components/{_stacks-pagination.less → pagination.less} +55 -55
  52. package/lib/css/components/{_stacks-popovers.less → popovers.less} +197 -197
  53. package/lib/css/components/{_stacks-post-summary.less → post-summary.less} +425 -425
  54. package/lib/css/components/{_stacks-progress-bars.less → progress-bars.less} +330 -331
  55. package/lib/css/components/{_stacks-prose.less → prose.less} +503 -503
  56. package/lib/css/components/{_stacks-spinner.less → spinner.less} +107 -107
  57. package/lib/css/components/{_stacks-tables.less → tables.less} +341 -341
  58. package/lib/css/components/{_stacks-tags.less → tags.less} +236 -236
  59. package/lib/css/components/{_stacks-toggle-switches.less → toggle-switches.less} +144 -144
  60. package/lib/css/components/{_stacks-topbar.less → topbar.less} +427 -425
  61. package/lib/css/components/{_stacks-uploader.less → uploader.less} +210 -210
  62. package/lib/css/components/{_stacks-user-cards.less → user-cards.less} +169 -169
  63. package/lib/css/components/{_stacks-widget-dynamic.less → widget-dynamic.less} +33 -33
  64. package/lib/css/components/{_stacks-widget-static.less → widget-static.less} +273 -272
  65. package/lib/css/exports/{_stacks-constants-colors.less → constants-colors.less} +1092 -1112
  66. package/lib/css/exports/constants-helpers.less +108 -0
  67. package/lib/css/exports/{_stacks-constants-type.less → constants-type.less} +153 -152
  68. package/lib/css/exports/{_stacks-exports.less → exports.less} +15 -15
  69. package/lib/css/exports/{_stacks-mixins.less → mixins.less} +237 -220
  70. package/lib/css/stacks-dynamic.less +35 -35
  71. package/lib/css/stacks-static.less +86 -86
  72. package/lib/ts/controllers/index.ts +7 -7
  73. package/lib/ts/controllers/s-expandable-control.ts +188 -188
  74. package/lib/ts/controllers/s-modal.ts +321 -321
  75. package/lib/ts/controllers/s-navigation-tablist.ts +117 -117
  76. package/lib/ts/controllers/s-popover.ts +547 -547
  77. package/lib/ts/controllers/s-table.ts +220 -220
  78. package/lib/ts/controllers/s-tooltip.ts +246 -246
  79. package/lib/ts/controllers/s-uploader.ts +172 -172
  80. package/lib/ts/index.ts +20 -20
  81. package/lib/ts/stacks.ts +88 -88
  82. package/lib/tsconfig.json +13 -13
  83. package/package.json +87 -87
  84. package/lib/css/atomic/_stacks-spacing.less +0 -168
  85. package/lib/css/atomic/_stacks-width-height.less +0 -195
  86. package/lib/css/exports/_stacks-constants-helpers.less +0 -139
package/package.json CHANGED
@@ -1,87 +1,87 @@
1
- {
2
- "name": "@stackoverflow/stacks",
3
- "description": "Stack Overflow’s CSS and Design Pattern Library. Stacks is an atomic CSS library with classes and components for rapidly building Stack Overflow.",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://github.com/StackExchange/Stacks.git"
7
- },
8
- "version": "0.76.0",
9
- "files": [
10
- "dist",
11
- "lib"
12
- ],
13
- "main": "./dist/js/stacks.js",
14
- "types": "./dist/index.d.ts",
15
- "style": "./dist/css/stacks.css",
16
- "less": "./lib/css/stacks.less",
17
- "unpkg": "dist/css/stacks.min.css",
18
- "scripts": {
19
- "start": "concurrently -n w: npm:start:*",
20
- "build": "concurrently -n w: npm:build:*",
21
- "build:bundle": "webpack --mode=production",
22
- "build:docs": "webpack --mode=production --config ./docs/webpack.config.js && cd ./docs && eleventy",
23
- "start:webpack": "webpack --watch --config ./docs/webpack.config.js",
24
- "start:eleventy": "cd ./docs && eleventy --serve",
25
- "test": "backstop test",
26
- "approve": "backstop approve",
27
- "prepublishOnly": "npm run build",
28
- "lint:eslint": "eslint .",
29
- "lint:prettier": "prettier --check . --end-of-line auto"
30
- },
31
- "license": "MIT",
32
- "dependencies": {
33
- "@popperjs/core": "^2.11.4",
34
- "stimulus": "^2.0.0"
35
- },
36
- "devDependencies": {
37
- "@11ty/eleventy": "^1.0.0",
38
- "@highlightjs/cdn-assets": "^11.5.0",
39
- "@stackoverflow/stacks-editor": "^0.4.2",
40
- "@stackoverflow/stacks-icons": "^2.27.0",
41
- "@typescript-eslint/eslint-plugin": "^5.17.0",
42
- "@typescript-eslint/parser": "^5.17.0",
43
- "backstopjs": "^6.0.4",
44
- "concurrently": "^7.0.0",
45
- "css-loader": "^6.7.1",
46
- "cssnano": "^5.1.5",
47
- "docsearch.js": "^2.6.3",
48
- "eleventy-plugin-highlightjs": "^1.0.0",
49
- "eleventy-plugin-nesting-toc": "^1.3.0",
50
- "eslint": "^8.12.0",
51
- "eslint-config-prettier": "^8.5.0",
52
- "eslint-plugin-no-unsanitized": "^4.0.1",
53
- "grunt-concurrent": "^3.0.0",
54
- "jquery": "^3.6.0",
55
- "less-loader": "^10.2.0",
56
- "list.js": "^2.3.1",
57
- "markdown-it": "^12.3.2",
58
- "mini-css-extract-plugin": "^2.6.0",
59
- "postcss-less": "^6.0.0",
60
- "postcss-loader": "^6.2.1",
61
- "prettier": "^2.6.1",
62
- "stylelint": "^14.6.1",
63
- "stylelint-config-recommended": "^7.0.0",
64
- "stylelint-config-standard": "^25.0.0",
65
- "terser-webpack-plugin": "^5.3.1",
66
- "ts-loader": "^9.2.8",
67
- "typescript": "^4.6.3",
68
- "webpack": "^5.70.0",
69
- "webpack-cli": "^4.9.2",
70
- "webpack-merge": "^5.8.0"
71
- },
72
- "browserslist": [
73
- "last 2 versions",
74
- "not dead",
75
- "not ie > 0",
76
- "not op_mini all",
77
- "not baidu > 0",
78
- "not and_ff > 0",
79
- "not and_qq > 0",
80
- "not kaios > 0",
81
- "not op_mob > 0",
82
- "not ie_mob > 0",
83
- "not and_uc > 0",
84
- "not Samsung > 0",
85
- "not Android > 0"
86
- ]
87
- }
1
+ {
2
+ "name": "@stackoverflow/stacks",
3
+ "description": "Stack Overflow’s CSS and Design Pattern Library. Stacks is an atomic CSS library with classes and components for rapidly building Stack Overflow.",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/StackExchange/Stacks.git"
7
+ },
8
+ "version": "1.0.0-beta.0",
9
+ "files": [
10
+ "dist",
11
+ "lib"
12
+ ],
13
+ "main": "./dist/js/stacks.js",
14
+ "types": "./dist/index.d.ts",
15
+ "style": "./dist/css/stacks.css",
16
+ "less": "./lib/css/stacks.less",
17
+ "unpkg": "dist/css/stacks.min.css",
18
+ "scripts": {
19
+ "start": "concurrently -n w: npm:start:*",
20
+ "build": "concurrently -n w: npm:build:*",
21
+ "build:bundle": "webpack --mode=production",
22
+ "build:docs": "webpack --mode=production --config ./docs/webpack.config.js && cd ./docs && eleventy",
23
+ "start:webpack": "webpack --watch --config ./docs/webpack.config.js",
24
+ "start:eleventy": "cd ./docs && eleventy --serve",
25
+ "test": "backstop test",
26
+ "approve": "backstop approve",
27
+ "prepublishOnly": "npm run build",
28
+ "lint:eslint": "eslint .",
29
+ "lint:prettier": "prettier --check . --end-of-line auto"
30
+ },
31
+ "license": "MIT",
32
+ "dependencies": {
33
+ "@popperjs/core": "^2.11.4",
34
+ "stimulus": "^2.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@11ty/eleventy": "^1.0.0",
38
+ "@highlightjs/cdn-assets": "^11.5.0",
39
+ "@stackoverflow/stacks-editor": "^0.4.2",
40
+ "@stackoverflow/stacks-icons": "^2.27.0",
41
+ "@typescript-eslint/eslint-plugin": "^5.17.0",
42
+ "@typescript-eslint/parser": "^5.17.0",
43
+ "backstopjs": "^6.0.4",
44
+ "concurrently": "^7.1.0",
45
+ "css-loader": "^6.7.1",
46
+ "cssnano": "^5.1.7",
47
+ "docsearch.js": "^2.6.3",
48
+ "eleventy-plugin-highlightjs": "^1.0.0",
49
+ "eleventy-plugin-nesting-toc": "^1.3.0",
50
+ "eslint": "^8.12.0",
51
+ "eslint-config-prettier": "^8.5.0",
52
+ "eslint-plugin-no-unsanitized": "^4.0.1",
53
+ "grunt-concurrent": "^3.0.0",
54
+ "jquery": "^3.6.0",
55
+ "less-loader": "^10.2.0",
56
+ "list.js": "^2.3.1",
57
+ "markdown-it": "^12.3.2",
58
+ "mini-css-extract-plugin": "^2.6.0",
59
+ "postcss-less": "^6.0.0",
60
+ "postcss-loader": "^6.2.1",
61
+ "prettier": "^2.6.2",
62
+ "stylelint": "^14.6.1",
63
+ "stylelint-config-recommended": "^7.0.0",
64
+ "stylelint-config-standard": "^25.0.0",
65
+ "terser-webpack-plugin": "^5.3.1",
66
+ "ts-loader": "^9.2.8",
67
+ "typescript": "^4.6.3",
68
+ "webpack": "^5.71.0",
69
+ "webpack-cli": "^4.9.2",
70
+ "webpack-merge": "^5.8.0"
71
+ },
72
+ "browserslist": [
73
+ "last 2 versions",
74
+ "not dead",
75
+ "not ie > 0",
76
+ "not op_mini all",
77
+ "not baidu > 0",
78
+ "not and_ff > 0",
79
+ "not and_qq > 0",
80
+ "not kaios > 0",
81
+ "not op_mob > 0",
82
+ "not ie_mob > 0",
83
+ "not and_uc > 0",
84
+ "not Samsung > 0",
85
+ "not Android > 0"
86
+ ]
87
+ }
@@ -1,168 +0,0 @@
1
- //
2
- // STACK OVERFLOW
3
- // SPACING
4
- //
5
- // This CSS comes from Stacks, our CSS & Pattern library for rapidly building
6
- // Stack Overflow. For documentation of all these classes and how to contribute,
7
- // visit https://stackoverflow.design/
8
- //
9
- // • MARGIN
10
- // • PADDING
11
- // • POSITIONING
12
- //
13
- // ============================================================================
14
- // $ MARGIN
15
- // ----------------------------------------------------------------------------
16
- // $$ All margin
17
- #stacks-internals #build-classes(
18
- responsive,
19
- '.m', { .template(@value) { margin: @value !important; } },
20
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128 auto -@su2 -@su4 -@su6 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
21
- );
22
-
23
- // $$ Top margin
24
- #stacks-internals #build-classes(
25
- responsive,
26
- '.mt', { .template(@value) { margin-top: @value !important; } },
27
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
28
- );
29
-
30
- // $$ Negative & auto top margin
31
- #stacks-internals #build-classes(
32
- '.mt', { .template(@value) { margin-top: @value !important; } },
33
- auto -(@su2/2) -@su2 -@su4 -@su6 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
34
- );
35
-
36
- // $$ Right margin
37
- #stacks-internals #build-classes(
38
- responsive,
39
- '.mr', { .template(@value) { margin-right: @value !important; } },
40
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
41
- );
42
-
43
- // $$ Negative & auto right margin
44
- #stacks-internals #build-classes(
45
- '.mr', { .template(@value) { margin-right: @value !important; } },
46
- auto -(@su2/2) -@su2 -@su4 -@su6 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
47
- );
48
-
49
- // $$ Bottom margin
50
- #stacks-internals #build-classes(
51
- responsive,
52
- '.mb', { .template(@value) { margin-bottom: @value !important; } },
53
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
54
- );
55
-
56
- // $$ Negative & auto bottom margin
57
- #stacks-internals #build-classes(
58
- '.mb', { .template(@value) { margin-bottom: @value !important; } },
59
- auto -(@su2/2) -@su2 -@su4 -@su6 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
60
- );
61
-
62
- // $$ Left margin
63
- #stacks-internals #build-classes(
64
- responsive,
65
- '.ml', { .template(@value) { margin-left: @value !important; } },
66
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
67
- );
68
-
69
- // $$ Negative & auto left margin
70
- #stacks-internals #build-classes(
71
- '.ml', { .template(@value) { margin-left: @value !important; } },
72
- auto -(@su2/2) -@su2 -@su4 -@su6 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
73
- );
74
-
75
- // $$ X-Axis margin
76
- #stacks-internals #build-classes(
77
- '.mx', { .template(@value) { margin-left: @value !important; margin-right: @value !important; } },
78
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128 auto -(@su2/2) -@su2 -@su4 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
79
- );
80
-
81
- // $$ Y-Axis margin
82
- #stacks-internals #build-classes(
83
- '.my', { .template(@value) { margin-top: @value !important; margin-bottom: @value !important; } },
84
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128 auto -(@su2/2) -@su2 -@su4 -@su8 -@su12 -@su16 -@su24 -@su32 -@su48 -@su64 -@su96 -@su128
85
- );
86
-
87
- // ============================================================================
88
- // $ PADDING
89
- // ----------------------------------------------------------------------------
90
- // $$ All padding
91
- #stacks-internals #build-classes(
92
- responsive,
93
- '.p', { .template(@value) { padding: @value !important; } },
94
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
95
- );
96
-
97
- // $$ Top Padding
98
- #stacks-internals #build-classes(
99
- responsive,
100
- '.pt', { .template(@value) { padding-top: @value !important; } },
101
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
102
- );
103
-
104
- // $$ Right Padding
105
- #stacks-internals #build-classes(
106
- responsive,
107
- '.pr', { .template(@value) { padding-right: @value !important; } },
108
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
109
- );
110
-
111
- // $$ Bottom Padding
112
- #stacks-internals #build-classes(
113
- responsive,
114
- '.pb', { .template(@value) { padding-bottom: @value !important; } },
115
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
116
- );
117
-
118
- // $$ Left Padding
119
- #stacks-internals #build-classes(
120
- responsive,
121
- '.pl', { .template(@value) { padding-left: @value !important; } },
122
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
123
- );
124
-
125
- // $$ X-Axis Padding
126
- #stacks-internals #build-classes(
127
- '.px', { .template(@value) { padding-left: @value !important; padding-right: @value !important; } },
128
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
129
- );
130
-
131
- // $$ Y-Axis Padding
132
- #stacks-internals #build-classes(
133
- '.py', { .template(@value) { padding-top: @value !important; padding-bottom: @value !important; } },
134
- 0 (@su2/2) @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
135
- );
136
-
137
- // ============================================================================
138
- // $ POSITIONING
139
- // ----------------------------------------------------------------------------
140
- // $$ Top
141
- #stacks-internals #build-classes(
142
- '.t', { .template(@value) { top: @value !important; } },
143
- 0 1px -1px @su2 -@su2 @su4 -@su4 @su6 -@su6 @su8 -@su8 @su12 -@su12 @su16 -@su16 @su24 -@su24 @su32 -@su32 @su48 -@su48 @su64 -@su64 @su96 -@su96 @su128 -@su128 50% -50% 100% -100%
144
- );
145
-
146
- // $$ Right
147
- #stacks-internals #build-classes(
148
- '.r', { .template(@value) { right: @value !important; } },
149
- 0 1px -1px @su2 -@su2 @su4 -@su4 @su6 -@su6 @su8 -@su8 @su12 -@su12 @su16 -@su16 @su24 -@su24 @su32 -@su32 @su48 -@su48 @su64 -@su64 @su96 -@su96 @su128 -@su128 50% -50% 100% -100%
150
- );
151
-
152
- // $$ Bottom
153
- #stacks-internals #build-classes(
154
- '.b', { .template(@value) { bottom: @value !important; } },
155
- 0 1px -1px @su2 -@su2 @su4 -@su4 @su6 -@su6 @su8 -@su8 @su12 -@su12 @su16 -@su16 @su24 -@su24 @su32 -@su32 @su48 -@su48 @su64 -@su64 @su96 -@su96 @su128 -@su128 50% -50% 100% -100%
156
- );
157
-
158
- // $$ Left
159
- #stacks-internals #build-classes(
160
- '.l', { .template(@value) { left: @value !important; } },
161
- 0 1px -1px @su2 -@su2 @su4 -@su4 @su6 -@su6 @su8 -@su8 @su12 -@su12 @su16 -@su16 @su24 -@su24 @su32 -@su32 @su48 -@su48 @su64 -@su64 @su96 -@su96 @su128 -@su128 50% -50% 100% -100%
162
- );
163
-
164
- // $$ Inset
165
- #stacks-internals #build-classes(
166
- '.i', { .template(@value) { inset: @value !important; } },
167
- 0 1px @su2 @su4 @su6 @su8 @su12 @su16 @su24 @su32 @su48 @su64 @su96 @su128
168
- );
@@ -1,195 +0,0 @@
1
- //
2
- // STACK OVERFLOW
3
- // WIDTH & HEIGHT
4
- //
5
- // This CSS comes from Stacks, our CSS & Pattern library for rapidly building
6
- // Stack Overflow. For documentation of all these classes and how to contribute,
7
- // visit https://stackoverflow.design/
8
- //
9
- // • WIDTH
10
- // • PERCENTAGE
11
- // • STATIC
12
- // • MAX-WIDTH
13
- // • MIN-WIDTH
14
- // • HEIGHT
15
- // • PERCENTAGE
16
- // • STATIC
17
- // • MAX-HEIGHT
18
- // • MIN-HEIGHT
19
- //
20
- // ============================================================================
21
- // $ WIDTH
22
- // ----------------------------------------------------------------------------
23
- // $$ PERCENTAGE AND VIEWPORT UNITS
24
- .w0 { width: 0 !important; }
25
- .w10 { width: 10% !important; }
26
- .w20 { width: 20% !important; }
27
- #stacks-internals #responsify('.w25', { width: 25% !important; });
28
- .w30 { width: 30% !important; }
29
- #stacks-internals #responsify('.w33', { width: 33.33333% !important; });
30
- .w40 { width: 40% !important; }
31
- #stacks-internals #responsify('.w50', { width: 50% !important; });
32
- .w60 { width: 60% !important; }
33
- #stacks-internals #responsify('.w66', { width: 66.66667% !important; });
34
- .w70 { width: 70% !important; }
35
- #stacks-internals #responsify('.w75', { width: 75% !important; });
36
- .w80 { width: 80% !important; }
37
- .w90 { width: 90% !important; }
38
- #stacks-internals #responsify('.w100', { width: 100% !important; });
39
- #stacks-internals #responsify('.w-auto', { width: auto !important; });
40
- #stacks-internals #responsify('.w-screen', { width: 100vw !important; });
41
-
42
-
43
- // $$ STATIC
44
- .ws0,
45
- .w0 { width: 0 !important; }
46
- .ws1 { width: @s-step !important; }
47
- .ws2 { width: @s-step * 2 !important; }
48
- .ws3 { width: @s-step * 3 !important; }
49
- .ws4 { width: @s-step * 4 !important; }
50
- .ws5 { width: @s-step * 5 !important; }
51
- .ws6 { width: @s-step * 6 !important; }
52
- .ws7 { width: @s-step * 7 !important; }
53
- .ws8 { width: @s-step * 8 !important; }
54
- .ws9 { width: @s-step * 9 !important; }
55
- .ws10 { width: @s-step * 10 !important; }
56
- .ws11 { width: @s-step * 11 !important; }
57
- .ws12 { width: @s-full !important; }
58
-
59
- // $$ SPACING UNITS
60
- .w2 { width: @su2 !important; }
61
- .w4 { width: @su4 !important; }
62
- .w6 { width: @su6 !important; }
63
- .w8 { width: @su8 !important; }
64
- .w12 { width: @su12 !important; }
65
- .w16 { width: @su16 !important; }
66
- .w24 { width: @su24 !important; }
67
- .w32 { width: @su32 !important; }
68
- .w48 { width: @su48 !important; }
69
- .w64 { width: @su64 !important; }
70
- .w96 { width: @su96 !important; }
71
- .w128 { width: @su128 !important; }
72
-
73
- // ============================================================================
74
- // $ MAX-WIDTH
75
- // ----------------------------------------------------------------------------
76
- .wmx0 { max-width: 0 !important; }
77
- .wmx1 { max-width: @s-step !important; }
78
- .wmx2 { max-width: @s-step * 2 !important; }
79
- .wmx25 { max-width: 25% !important; }
80
- .wmx3 { max-width: @s-step * 3 !important; }
81
- .wmx4 { max-width: @s-step * 4 !important; }
82
- .wmx5 { max-width: @s-step * 5 !important; }
83
- .wmx50 { max-width: 50% !important; }
84
- .wmx6 { max-width: @s-step * 6 !important; }
85
- .wmx7 { max-width: @s-step * 7 !important; }
86
- .wmx75 { max-width: 75% !important; }
87
- .wmx8 { max-width: @s-step * 8 !important; }
88
- .wmx9 { max-width: @s-step * 9 !important; }
89
- .wmx10 { max-width: @s-step * 10 !important; }
90
- .wmx11 { max-width: @s-step * 11 !important; }
91
- .wmx12 { max-width: @s-full !important; }
92
- #stacks-internals #responsify('.wmx100', { max-width: 100% !important; });
93
- #stacks-internals #responsify('.wmx-initial', { max-width: initial !important; });
94
- #stacks-internals #responsify('.wmx-screen', { max-width: 100vw !important; });
95
-
96
- // ============================================================================
97
- // $ MIN-WIDTH
98
- // ----------------------------------------------------------------------------
99
- .wmn0 { min-width: 0 !important; }
100
- .wmn1 { min-width: @s-step !important; }
101
- .wmn2 { min-width: @s-step * 2 !important; }
102
- .wmn25 { min-width: 25% !important; }
103
- .wmn3 { min-width: @s-step * 3 !important; }
104
- .wmn4 { min-width: @s-step * 4 !important; }
105
- .wmn5 { min-width: @s-step * 5 !important; }
106
- .wmn50 { min-width: 50% !important; }
107
- .wmn6 { min-width: @s-step * 6 !important; }
108
- .wmn7 { min-width: @s-step * 7 !important; }
109
- .wmn75 { min-width: 75% !important; }
110
- .wmn8 { min-width: @s-step * 8 !important; }
111
- .wmn9 { min-width: @s-step * 9 !important; }
112
- .wmn10 { min-width: @s-step * 10 !important; }
113
- .wmn11 { min-width: @s-step * 11 !important; }
114
- .wmn12 { min-width: @s-full !important; }
115
- #stacks-internals #responsify('.wmn100', { min-width: 100% !important; });
116
- #stacks-internals #responsify('.wmn-initial', { min-width: initial !important; });
117
-
118
- // ============================================================================
119
- // $ HEIGHT
120
- // ----------------------------------------------------------------------------
121
- // $$ PERCENTAGE AND VIEWPORT UNITS
122
- .h0 { height: 0 !important; }
123
- #stacks-internals #responsify('.h100', { height: 100% !important; });
124
- #stacks-internals #responsify('.h-auto', { height: auto !important; });
125
- #stacks-internals #responsify('.h-screen', { height: 100vh !important; });
126
-
127
- // $$ STATIC
128
- .hs0,
129
- .h0 { height: 0 !important; }
130
- .hs1 { height: @s-step !important; }
131
- .hs2 { height: @s-step * 2 !important; }
132
- .hs3 { height: @s-step * 3 !important; }
133
- .hs4 { height: @s-step * 4 !important; }
134
- .hs5 { height: @s-step * 5 !important; }
135
- .hs6 { height: @s-step * 6 !important; }
136
- .hs7 { height: @s-step * 7 !important; }
137
- .hs8 { height: @s-step * 8 !important; }
138
- .hs9 { height: @s-step * 9 !important; }
139
- .hs10 { height: @s-step * 10 !important; }
140
- .hs11 { height: @s-step * 11 !important; }
141
- .hs12 { height: @s-full !important; }
142
-
143
- // $$ SPACING UNITS
144
- .h2 { height: @su2 !important; }
145
- .h4 { height: @su4 !important; }
146
- .h6 { height: @su6 !important; }
147
- .h8 { height: @su8 !important; }
148
- .h12 { height: @su12 !important; }
149
- .h16 { height: @su16 !important; }
150
- .h24 { height: @su24 !important; }
151
- .h32 { height: @su32 !important; }
152
- .h48 { height: @su48 !important; }
153
- .h64 { height: @su64 !important; }
154
- .h96 { height: @su96 !important; }
155
- .h128 { height: @su128 !important; }
156
-
157
- // ============================================================================
158
- // $ MAX-HEIGHT
159
- // ----------------------------------------------------------------------------
160
- .hmx0 { max-height: 0 !important; }
161
- .hmx1 { max-height: @s-step !important; }
162
- .hmx2 { max-height: @s-step * 2 !important; }
163
- .hmx3 { max-height: @s-step * 3 !important; }
164
- .hmx4 { max-height: @s-step * 4 !important; }
165
- .hmx5 { max-height: @s-step * 5 !important; }
166
- .hmx6 { max-height: @s-step * 6 !important; }
167
- .hmx7 { max-height: @s-step * 7 !important; }
168
- .hmx8 { max-height: @s-step * 8 !important; }
169
- .hmx9 { max-height: @s-step * 9 !important; }
170
- .hmx10 { max-height: @s-step * 10 !important; }
171
- .hmx11 { max-height: @s-step * 11 !important; }
172
- .hmx12 { max-height: @s-full !important; }
173
- #stacks-internals #responsify('.hmx100', { max-height: 100% !important; });
174
- #stacks-internals #responsify('.hmx-initial', { max-height: initial !important; });
175
- #stacks-internals #responsify('.hmx-screen', { max-height: 100vh !important; });
176
-
177
- // ============================================================================
178
- // $ MIN-HEIGHT
179
- // ----------------------------------------------------------------------------
180
- .hmn0 { min-height: 0 !important; }
181
- .hmn1 { min-height: @s-step !important; }
182
- .hmn2 { min-height: @s-step * 2 !important; }
183
- .hmn3 { min-height: @s-step * 3 !important; }
184
- .hmn4 { min-height: @s-step * 4 !important; }
185
- .hmn5 { min-height: @s-step * 5 !important; }
186
- .hmn6 { min-height: @s-step * 6 !important; }
187
- .hmn7 { min-height: @s-step * 7 !important; }
188
- .hmn8 { min-height: @s-step * 8 !important; }
189
- .hmn9 { min-height: @s-step * 9 !important; }
190
- .hmn10 { min-height: @s-step * 10 !important; }
191
- .hmn11 { min-height: @s-step * 11 !important; }
192
- .hmn12 { min-height: @s-full !important; }
193
- #stacks-internals #responsify('.hmn100', { min-height: 100% !important; });
194
- #stacks-internals #responsify('.hmn-initial', { min-height: initial !important; });
195
- #stacks-internals #responsify('.hmx-screen', { min-height: 100vh !important; });
@@ -1,139 +0,0 @@
1
- //
2
- // STACK OVERFLOW
3
- // CONSTANTS -- HELPERS
4
- //
5
- // This CSS comes from Stacks, our CSS & Pattern library for rapidly building
6
- // Stack Overflow. For documentation of all these classes and how to contribute,
7
- // visit https://stackoverflow.design/
8
- //
9
- // These are helper variables to quickly set values.
10
- // These SHOULD NOT be reset.
11
- //
12
- // Table of Contents
13
- // • z-index (zi-)
14
- // • border-radius (br-)
15
- // • box-shadow (bs-)
16
- // • spacing units (su-)
17
- // • transition easings (te-)
18
- //
19
- // ============================================================================
20
- // $ Z-INDEX (zi-)
21
- // Used for a bird's eye view of components dependent on the z-axis.
22
- // Try to avoid customizing these.
23
- // ----------------------------------------------------------------------------
24
- @zi-hide: -1; // Hide something all the elements
25
- @zi-base: 0; // Reset to 0
26
- @zi-selected: 25; // Pop above siblings
27
- @zi-active: 30; // Pop above selected siblings
28
- @zi-dropdown: 1000; // Dropdowns
29
- @zi-popovers: 2000; // Popovers, Popups, Autocompletes
30
- @zi-tooltips: 3000; // Tooltips
31
- @zi-banners: 4000; // Banners
32
- @zi-navigation: 5000; // Navigation Bars
33
- @zi-navigation-fixed: 5050; // Fixed navigation bars
34
- @zi-modals: 9000; // Modals
35
- @zi-modals-background: @zi-modals - 50;
36
-
37
- // ============================================================================
38
- // $ RESPONSIVE BREAKPOINTS
39
- // ----------------------------------------------------------------------------
40
- @breakpoint-lg: 1264px;
41
- @breakpoint-md: 980px;
42
- @breakpoint-sm: 640px;
43
-
44
- // ============================================================================
45
- // $ BORDER RADIUS (br-)
46
- // ----------------------------------------------------------------------------
47
- @br-sm: 3px;
48
- @br-md: 5px;
49
- @br-lg: 7px;
50
- @br-circle: 50%;
51
-
52
- // ============================================================================
53
- // $ SPACING UNITS (su-)
54
- // ----------------------------------------------------------------------------
55
- @su1: 1px;
56
- @su2: 2px;
57
- @su4: 4px;
58
- @su6: 6px;
59
- @su8: 8px;
60
- @su12: 12px;
61
- @su16: 16px;
62
- @su24: 24px;
63
- @su32: 32px;
64
- @su48: 48px;
65
- @su64: 64px;
66
- @su96: 96px;
67
- @su128: 128px;
68
-
69
-
70
- // ============================================================================
71
- // $ SIZING UNITS (su-)
72
- // ----------------------------------------------------------------------------
73
- @s-full: 97.2307692rem; // Based on a pixel size of 1264px;
74
- @s-step: (@s-full / 12);
75
-
76
- // TODO These helpers allow us to create our own timing functions with
77
- // cubic-bezier ~ but perhaps the default timing functions are acceptable?
78
-
79
- // ============================================================================
80
- // $ TRANSITION EASINGS (te-)
81
- // ----------------------------------------------------------------------------
82
- @te-smooth-slow: cubic-bezier(0.25, 0.46, 0.45, 0.94); // easeOutQuad
83
- @te-smooth: cubic-bezier(0.165, 0.84, 0.44, 1); // easeOutQuart
84
- @te-smooth-quick: cubic-bezier(0.19, 1, 0.22, 1); // easeOutExpo
85
- @te-back-out: cubic-bezier(0.175, 0.885, 0.32, 1.275); // easeOutBack
86
- @te-back-in-out: cubic-bezier(0.68, -0.55, 0.265, 1.55); // easeInOutBack
87
- @te-ease-in: cubic-bezier(0.47, 0, 0.745, 0.715); // easeIn
88
- @te-ease-in-out: cubic-bezier(0.445, 0.05, 0.55, 0.95); // easeInOut
89
- @te-ease-out: cubic-bezier(0.39, 0.575, 0.565, 1); // easeOut
90
-
91
- @default-transition-duration: 0.1s;
92
- @transition-time: @default-transition-duration;
93
-
94
-
95
- // ============================================================================
96
- // $ SCROLLBAR STYLING
97
- // ----------------------------------------------------------------------------
98
- @scrollbar-styles: {
99
- &::-webkit-scrollbar {
100
- width: @su12 - @su2;
101
- height: @su12 - @su2;
102
- background-color: transparent;
103
- }
104
-
105
- &::-webkit-scrollbar-track {
106
- border-radius: @su12 - @su2;
107
- background-color: transparent;
108
- }
109
-
110
- &::-webkit-scrollbar-thumb {
111
- border-radius: @su12 - @su2;
112
- background-color: var(--scrollbar);
113
- }
114
-
115
- &::-webkit-scrollbar-corner {
116
- background-color: transparent;
117
- border-color: transparent;
118
- }
119
-
120
- scrollbar-color: var(--scrollbar) transparent;
121
- }
122
-
123
- // ============================================================================
124
- // $ FOCUS STYLING
125
- // ----------------------------------------------------------------------------
126
- @focus-styles: {
127
- // Hide focus styles if they're not needed, for example,
128
- // when an element receives focus via the mouse.
129
- &:focus:not(:focus-visible) {
130
- outline: none;
131
- box-shadow: none;
132
- }
133
-
134
- // Show focus styles on keyboard focus.
135
- &:focus-visible {
136
- outline: none;
137
- box-shadow: 0 0 0 @su4 var(--focus-ring-muted);
138
- }
139
- }