@stackoverflow/stacks 1.3.0 → 1.3.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/dist/controllers/s-expandable-control.d.ts +1 -1
- package/dist/controllers/s-tooltip.d.ts +16 -1
- package/dist/css/stacks.css +715 -527
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +153 -84
- package/dist/js/stacks.min.js +1 -1
- package/lib/css/atomic/misc.less +1 -1
- package/lib/css/atomic/typography.less +0 -6
- package/lib/css/components/activity-indicator.less +18 -17
- package/lib/css/components/avatars.less +50 -131
- package/lib/css/components/breadcrumbs.less +4 -4
- package/lib/css/components/buttons.less +8 -48
- package/lib/css/components/empty-states.less +15 -0
- package/lib/css/components/{collapsible.less → expandable.less} +0 -0
- package/lib/css/components/inputs.less +37 -101
- package/lib/css/components/labels.less +98 -0
- package/lib/css/components/notices.less +190 -163
- package/lib/css/components/post-summary.less +4 -4
- package/lib/css/components/progress-bars.less +1 -1
- package/lib/css/components/prose.less +4 -4
- package/lib/css/components/spinner.less +39 -1
- package/lib/css/components/tables.less +1 -5
- package/lib/css/components/uploader.less +70 -84
- package/lib/css/exports/constants-colors.less +14 -0
- package/lib/css/stacks-dynamic.less +0 -1
- package/lib/css/stacks-static.less +3 -2
- package/lib/ts/controllers/s-expandable-control.ts +23 -19
- package/lib/ts/controllers/s-modal.ts +16 -16
- package/lib/ts/controllers/s-navigation-tablist.ts +13 -13
- package/lib/ts/controllers/s-popover.ts +26 -18
- package/lib/ts/controllers/s-table.ts +31 -29
- package/lib/ts/controllers/s-tooltip.ts +62 -23
- package/lib/ts/stacks.ts +8 -4
- package/package.json +17 -17
- package/lib/css/components/banners.less +0 -80
- package/lib/css/components/blank-states.less +0 -26
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// STACK OVERFLOW
|
|
3
|
-
// BANNERS
|
|
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
|
-
// TABLE OF CONTENTS
|
|
10
|
-
// • SYSTEM BANNERS
|
|
11
|
-
//
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// When we use .s-banner, we need to adjust the padding-top on
|
|
14
|
-
// the body tag. This class correctly adjusts the body padding ONLY if
|
|
15
|
-
// the notice is one line. If it wraps to multiple lines, more classes or
|
|
16
|
-
// (ideally) JS will need to be used to determine the notice's height
|
|
17
|
-
// at the time of render. The padding value is determined like so:
|
|
18
|
-
//
|
|
19
|
-
// 50px (top bar) + 44px (notice height) - 1px (bottom border)
|
|
20
|
-
//
|
|
21
|
-
// The borders subtraction are necessary to neatly tuck everything together.
|
|
22
|
-
// ----------------------------------------------------------------------------
|
|
23
|
-
.s-banner__body-pt {
|
|
24
|
-
padding-top: 93px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// ============================================================================
|
|
28
|
-
// $ SYSTEM BANNERS
|
|
29
|
-
// ----------------------------------------------------------------------------
|
|
30
|
-
.s-banner {
|
|
31
|
-
position: fixed;
|
|
32
|
-
z-index: calc(var(--zi-navigation-fixed) - 1); // Tuck below topbar
|
|
33
|
-
top: 0;
|
|
34
|
-
right: 0;
|
|
35
|
-
left: 0;
|
|
36
|
-
width: 100%;
|
|
37
|
-
padding: var(--su12);
|
|
38
|
-
border-top: 1px solid transparent;
|
|
39
|
-
border-bottom: 1px solid transparent;
|
|
40
|
-
border-radius: 0;
|
|
41
|
-
box-shadow: none;
|
|
42
|
-
color: var(--fc-medium);
|
|
43
|
-
font-size: var(--fs-body1);
|
|
44
|
-
|
|
45
|
-
// If you want to hide and reveal the banner
|
|
46
|
-
&[aria-hidden="true"] {
|
|
47
|
-
visibility: hidden;
|
|
48
|
-
opacity: 0;
|
|
49
|
-
-webkit-transform: translate3d(0, -50px, 0);
|
|
50
|
-
transform: translate3d(0, -50px, 0);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&[aria-hidden="false"] {
|
|
54
|
-
visibility: visible;
|
|
55
|
-
opacity: 1;
|
|
56
|
-
-webkit-transform: translate3d(0, 49px, 0);
|
|
57
|
-
transform: translate3d(0, 49px, 0);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// If you want to put the banner above the topbar
|
|
61
|
-
&.is-pinned {
|
|
62
|
-
z-index: calc(var(--zi-navigation-fixed) + 1);
|
|
63
|
-
-webkit-transform: translate3d(0, 0, 0);
|
|
64
|
-
transform: translate3d(0, 0, 0);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// If it's a really important banner
|
|
68
|
-
&.s-banner__important {
|
|
69
|
-
border-color: transparent;
|
|
70
|
-
color: var(--white);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// -- When we want to keep hero content capped
|
|
75
|
-
.s-banner--container {
|
|
76
|
-
position: relative;
|
|
77
|
-
width: 100%;
|
|
78
|
-
max-width: calc(var(--s-step) * 10);
|
|
79
|
-
margin: 0 auto;
|
|
80
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// STACK OVERFLOW
|
|
3
|
-
// EMPTY STATES
|
|
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
|
-
// ============================================================================
|
|
10
|
-
// $ BASE STYLE
|
|
11
|
-
// ----------------------------------------------------------------------------
|
|
12
|
-
.s-empty-state {
|
|
13
|
-
color: var(--fc-light);
|
|
14
|
-
text-align: center;
|
|
15
|
-
margin-left: auto;
|
|
16
|
-
margin-right: auto;
|
|
17
|
-
|
|
18
|
-
p {
|
|
19
|
-
font-size: var(--fs-body1);
|
|
20
|
-
margin-bottom: var(--su12);
|
|
21
|
-
|
|
22
|
-
strong {
|
|
23
|
-
color: var(--fc-dark);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|