@stackoverflow/stacks 0.76.0 → 1.0.1
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/LICENSE.MD +9 -9
- package/README.md +0 -0
- package/dist/controllers/index.d.ts +7 -7
- package/dist/controllers/s-expandable-control.d.ts +17 -17
- package/dist/controllers/s-modal.d.ts +97 -97
- package/dist/controllers/s-navigation-tablist.d.ts +36 -36
- package/dist/controllers/s-popover.d.ts +155 -155
- package/dist/controllers/s-table.d.ts +8 -8
- package/dist/controllers/s-tooltip.d.ts +82 -82
- package/dist/controllers/s-uploader.d.ts +48 -48
- package/dist/css/stacks.css +4354 -2560
- package/dist/css/stacks.min.css +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/js/stacks.js +1978 -1978
- package/dist/js/stacks.min.js +1 -1
- package/dist/stacks.d.ts +21 -21
- package/lib/css/atomic/{_stacks-borders.less → borders.less} +30 -30
- package/lib/css/atomic/{_stacks-colors.less → colors.less} +0 -0
- package/lib/css/atomic/{_stacks-flex.less → flex.less} +14 -13
- package/lib/css/atomic/{_stacks-grid.less → grid.less} +11 -11
- package/lib/css/atomic/{_stacks-misc.less → misc.less} +22 -22
- package/lib/css/atomic/spacing.less +332 -0
- package/lib/css/atomic/{_stacks-typography.less → typography.less} +29 -29
- package/lib/css/atomic/width-height.less +194 -0
- package/lib/css/base/{_stacks-body.less → body.less} +2 -2
- package/lib/css/base/{_stacks-configuration-static.less → configuration-static.less} +3 -1
- package/lib/css/base/{_stacks-icons.less → icons.less} +0 -0
- package/lib/css/base/{_stacks-internals.less → internals.less} +0 -0
- package/lib/css/base/{_stacks-reset-meyer.less → reset-meyer.less} +0 -0
- package/lib/css/base/{_stacks-reset-normalize.less → reset-normalize.less} +0 -0
- package/lib/css/base/{_stacks-reset.less → reset.less} +2 -2
- package/lib/css/components/{_stacks-activity-indicator.less → activity-indicator.less} +9 -9
- package/lib/css/components/{_stacks-avatars.less → avatars.less} +40 -40
- package/lib/css/components/{_stacks-badges.less → badges.less} +11 -11
- package/lib/css/components/{_stacks-banners.less → banners.less} +5 -5
- package/lib/css/components/{_stacks-blank-states.less → blank-states.less} +2 -2
- package/lib/css/components/{_stacks-breadcrumbs.less → breadcrumbs.less} +7 -7
- package/lib/css/components/{_stacks-button-groups.less → button-groups.less} +2 -2
- package/lib/css/components/{_stacks-buttons.less → buttons.less} +46 -39
- package/lib/css/components/{_stacks-cards.less → cards.less} +2 -2
- package/lib/css/components/{_stacks-code-blocks.less → code-blocks.less} +8 -8
- package/lib/css/components/{_stacks-collapsible.less → collapsible.less} +0 -0
- package/lib/css/components/{_stacks-inputs.less → inputs.less} +41 -41
- package/lib/css/components/{_stacks-link-previews.less → link-previews.less} +17 -17
- package/lib/css/components/{_stacks-links.less → links.less} +4 -4
- package/lib/css/components/{_stacks-menu.less → menu.less} +5 -5
- package/lib/css/components/{_stacks-modals.less → modals.less} +20 -20
- package/lib/css/components/{_stacks-navigation.less → navigation.less} +12 -12
- package/lib/css/components/{_stacks-notices.less → notices.less} +12 -12
- package/lib/css/components/{_stacks-page-titles.less → page-titles.less} +9 -9
- package/lib/css/components/{_stacks-pagination.less → pagination.less} +8 -8
- package/lib/css/components/{_stacks-popovers.less → popovers.less} +17 -17
- package/lib/css/components/{_stacks-post-summary.less → post-summary.less} +35 -35
- package/lib/css/components/{_stacks-progress-bars.less → progress-bars.less} +29 -30
- package/lib/css/components/{_stacks-prose.less → prose.less} +31 -31
- package/lib/css/components/{_stacks-spinner.less → spinner.less} +14 -14
- package/lib/css/components/{_stacks-tables.less → tables.less} +10 -10
- package/lib/css/components/{_stacks-tags.less → tags.less} +24 -24
- package/lib/css/components/{_stacks-toggle-switches.less → toggle-switches.less} +5 -5
- package/lib/css/components/{_stacks-topbar.less → topbar.less} +22 -20
- package/lib/css/components/{_stacks-uploader.less → uploader.less} +18 -18
- package/lib/css/components/{_stacks-user-cards.less → user-cards.less} +14 -14
- package/lib/css/components/{_stacks-widget-dynamic.less → widget-dynamic.less} +1 -1
- package/lib/css/components/{_stacks-widget-static.less → widget-static.less} +39 -38
- package/lib/css/exports/{_stacks-constants-colors.less → constants-colors.less} +9 -29
- package/lib/css/exports/constants-helpers.less +108 -0
- package/lib/css/exports/constants-type.less +153 -0
- package/lib/css/exports/{_stacks-exports.less → exports.less} +4 -4
- package/lib/css/exports/{_stacks-mixins.less → mixins.less} +18 -1
- package/lib/css/stacks-dynamic.less +12 -12
- package/lib/css/stacks-static.less +38 -38
- package/lib/css/stacks.less +13 -13
- package/package.json +9 -9
- package/lib/css/atomic/_stacks-spacing.less +0 -168
- package/lib/css/atomic/_stacks-width-height.less +0 -195
- package/lib/css/exports/_stacks-constants-helpers.less +0 -139
- package/lib/css/exports/_stacks-constants-type.less +0 -152
|
@@ -13,48 +13,48 @@
|
|
|
13
13
|
// The following items are elements which we DO NOT allow communities
|
|
14
14
|
// to modify via variables.
|
|
15
15
|
// ----------------------------------------------------------------------------
|
|
16
|
-
@import "base/
|
|
17
|
-
@import "base/
|
|
16
|
+
@import "base/reset.less";
|
|
17
|
+
@import "base/icons.less";
|
|
18
18
|
|
|
19
19
|
// -- COMPONENTS
|
|
20
|
-
@import "components/
|
|
21
|
-
@import "components/
|
|
22
|
-
@import "components/
|
|
23
|
-
@import "components/
|
|
24
|
-
@import "components/
|
|
25
|
-
@import "components/
|
|
26
|
-
@import "components/
|
|
27
|
-
@import "components/
|
|
28
|
-
@import "components/
|
|
29
|
-
@import "components/
|
|
30
|
-
@import "components/
|
|
31
|
-
@import "components/
|
|
32
|
-
@import "components/
|
|
33
|
-
@import "components/
|
|
34
|
-
@import "components/
|
|
35
|
-
@import "components/
|
|
36
|
-
@import "components/
|
|
37
|
-
@import "components/
|
|
38
|
-
@import "components/
|
|
39
|
-
@import "components/
|
|
40
|
-
@import "components/
|
|
41
|
-
@import "components/
|
|
42
|
-
@import "components/
|
|
43
|
-
@import "components/
|
|
44
|
-
@import "components/
|
|
20
|
+
@import "components/activity-indicator.less";
|
|
21
|
+
@import "components/avatars.less";
|
|
22
|
+
@import "components/badges.less";
|
|
23
|
+
@import "components/blank-states.less";
|
|
24
|
+
@import "components/breadcrumbs.less";
|
|
25
|
+
@import "components/button-groups.less";
|
|
26
|
+
@import "components/cards.less";
|
|
27
|
+
@import "components/code-blocks.less";
|
|
28
|
+
@import "components/collapsible.less";
|
|
29
|
+
@import "components/inputs.less";
|
|
30
|
+
@import "components/menu.less";
|
|
31
|
+
@import "components/modals.less";
|
|
32
|
+
@import "components/navigation.less";
|
|
33
|
+
@import "components/page-titles.less";
|
|
34
|
+
@import "components/popovers.less";
|
|
35
|
+
@import "components/post-summary.less";
|
|
36
|
+
@import "components/progress-bars.less";
|
|
37
|
+
@import "components/prose.less";
|
|
38
|
+
@import "components/spinner.less";
|
|
39
|
+
@import "components/tables.less";
|
|
40
|
+
@import "components/toggle-switches.less";
|
|
41
|
+
@import "components/topbar.less";
|
|
42
|
+
@import "components/uploader.less";
|
|
43
|
+
@import "components/user-cards.less";
|
|
44
|
+
@import "components/widget-static.less";
|
|
45
45
|
|
|
46
46
|
// -- LESS CONSTANTS AND MIXINS
|
|
47
|
-
@import "exports/
|
|
47
|
+
@import "exports/exports.less";
|
|
48
48
|
|
|
49
49
|
// -- ATOMIC CLASSES
|
|
50
|
-
@import "atomic/
|
|
51
|
-
@import "atomic/
|
|
52
|
-
@import "atomic/
|
|
53
|
-
@import "atomic/
|
|
54
|
-
@import "atomic/
|
|
55
|
-
@import "atomic/
|
|
56
|
-
@import "atomic/
|
|
57
|
-
@import "atomic/
|
|
50
|
+
@import "atomic/borders.less";
|
|
51
|
+
@import "atomic/colors.less";
|
|
52
|
+
@import "atomic/flex.less";
|
|
53
|
+
@import "atomic/grid.less";
|
|
54
|
+
@import "atomic/spacing.less";
|
|
55
|
+
@import "atomic/typography.less";
|
|
56
|
+
@import "atomic/misc.less";
|
|
57
|
+
@import "atomic/width-height.less";
|
|
58
58
|
|
|
59
59
|
/* stylelint-disable */
|
|
60
60
|
#stacks-internals #screen-lg({
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
/* stylelint-enable */
|
|
83
83
|
|
|
84
84
|
// -- CONFIG
|
|
85
|
-
@import "base/
|
|
86
|
-
@import "base/
|
|
85
|
+
@import "base/configuration-static.less";
|
|
86
|
+
@import "base/internals.less";
|
package/lib/css/stacks.less
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
//
|
|
2
|
-
// STACK OVERFLOW
|
|
3
|
-
// THE COMPLETE STANDALONE STACKS
|
|
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
|
-
// This is where all the magic happens.
|
|
10
|
-
//
|
|
11
|
-
// ============================================================================
|
|
12
|
-
@import "stacks-static.less";
|
|
13
|
-
@import "stacks-dynamic.less";
|
|
1
|
+
//
|
|
2
|
+
// STACK OVERFLOW
|
|
3
|
+
// THE COMPLETE STANDALONE STACKS
|
|
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
|
+
// This is where all the magic happens.
|
|
10
|
+
//
|
|
11
|
+
// ============================================================================
|
|
12
|
+
@import "stacks-static.less";
|
|
13
|
+
@import "stacks-dynamic.less";
|
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.
|
|
8
|
+
"version": "1.0.1",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"lib"
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@11ty/eleventy": "^1.0.0",
|
|
38
|
-
"@highlightjs/cdn-assets": "^11.5.
|
|
38
|
+
"@highlightjs/cdn-assets": "^11.5.1",
|
|
39
39
|
"@stackoverflow/stacks-editor": "^0.4.2",
|
|
40
40
|
"@stackoverflow/stacks-icons": "^2.27.0",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
42
|
-
"@typescript-eslint/parser": "^5.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
42
|
+
"@typescript-eslint/parser": "^5.18.0",
|
|
43
43
|
"backstopjs": "^6.0.4",
|
|
44
|
-
"concurrently": "^7.
|
|
44
|
+
"concurrently": "^7.1.0",
|
|
45
45
|
"css-loader": "^6.7.1",
|
|
46
|
-
"cssnano": "^5.1.
|
|
46
|
+
"cssnano": "^5.1.7",
|
|
47
47
|
"docsearch.js": "^2.6.3",
|
|
48
48
|
"eleventy-plugin-highlightjs": "^1.0.0",
|
|
49
49
|
"eleventy-plugin-nesting-toc": "^1.3.0",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.13.0",
|
|
51
51
|
"eslint-config-prettier": "^8.5.0",
|
|
52
52
|
"eslint-plugin-no-unsanitized": "^4.0.1",
|
|
53
53
|
"grunt-concurrent": "^3.0.0",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"mini-css-extract-plugin": "^2.6.0",
|
|
59
59
|
"postcss-less": "^6.0.0",
|
|
60
60
|
"postcss-loader": "^6.2.1",
|
|
61
|
-
"prettier": "^2.6.
|
|
61
|
+
"prettier": "^2.6.2",
|
|
62
62
|
"stylelint": "^14.6.1",
|
|
63
63
|
"stylelint-config-recommended": "^7.0.0",
|
|
64
64
|
"stylelint-config-standard": "^25.0.0",
|
|
65
65
|
"terser-webpack-plugin": "^5.3.1",
|
|
66
66
|
"ts-loader": "^9.2.8",
|
|
67
67
|
"typescript": "^4.6.3",
|
|
68
|
-
"webpack": "^5.
|
|
68
|
+
"webpack": "^5.72.0",
|
|
69
69
|
"webpack-cli": "^4.9.2",
|
|
70
70
|
"webpack-merge": "^5.8.0"
|
|
71
71
|
},
|
|
@@ -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
|
-
}
|