@stackoverflow/stacks 3.0.0-beta.0 → 3.0.0-beta.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/dist/css/stacks.css +781 -729
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +0 -14
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +2 -20
- package/lib/atomic/misc.less +1 -1
- package/lib/atomic/typography.less +13 -26
- package/lib/base/body.less +2 -7
- package/lib/components/activity-indicator/activity-indicator.less +17 -13
- package/lib/components/anchor/anchor.less +1 -1
- package/lib/components/avatar/avatar.less +9 -11
- package/lib/components/award-bling/award-bling.less +4 -3
- package/lib/components/badge/badge.less +7 -7
- package/lib/components/block-link/block-link.less +1 -1
- package/lib/components/button/button.less +1 -1
- package/lib/components/button-group/button-group.less +1 -1
- package/lib/components/card/card.less +1 -1
- package/lib/components/checkbox_radio/checkbox_radio.less +13 -11
- package/lib/components/link/link.less +1 -1
- package/lib/components/link-preview/link-preview.less +6 -6
- package/lib/components/modal/modal.less +1 -1
- package/lib/components/notice/notice.less +1 -1
- package/lib/components/pagination/pagination.less +1 -1
- package/lib/components/popover/popover.less +0 -98
- package/lib/components/popover/popover.ts +0 -6
- package/lib/components/popover/tooltip.ts +0 -12
- package/lib/components/post-summary/post-summary.less +3 -3
- package/lib/components/progress-bar/progress-bar.less +13 -12
- package/lib/components/prose/prose.less +2 -2
- package/lib/components/skeleton/skeleton.less +1 -1
- package/lib/components/tag/tag.less +4 -4
- package/lib/components/toggle-switch/toggle-switch.less +4 -2
- package/lib/components/topbar/topbar.less +3 -3
- package/lib/components/uploader/uploader.less +3 -3
- package/lib/exports/color-mixins.less +13 -3
- package/lib/exports/color-sets.less +255 -216
- package/lib/exports/constants-helpers.less +5 -3
- package/lib/exports/constants-type.less +25 -25
- package/lib/exports/mixins.less +2 -2
- package/package.json +1 -1
|
@@ -37,36 +37,22 @@ p {
|
|
|
37
37
|
.fs-body3 { font-size: var(--fs-body3) !important; }
|
|
38
38
|
.fs-body2 { font-size: var(--fs-body2) !important; }
|
|
39
39
|
.fs-body1 { font-size: var(--fs-body1) !important; }
|
|
40
|
-
|
|
41
|
-
.fs-caption,
|
|
42
|
-
.fs-category { font-size: var(--fs-caption) !important; }
|
|
40
|
+
.fs-caption { font-size: var(--fs-caption) !important; }
|
|
43
41
|
.fs-fine { font-size: var(--fs-fine) !important; }
|
|
44
42
|
|
|
45
43
|
#stacks-internals #screen-sm({
|
|
46
|
-
.fs-display4 { font-size:
|
|
47
|
-
.fs-display3 { font-size:
|
|
48
|
-
.fs-display2 { font-size:
|
|
49
|
-
.fs-display1 { font-size:
|
|
50
|
-
.fs-headline2 { font-size:
|
|
51
|
-
.fs-headline1 { font-size:
|
|
52
|
-
.fs-title { font-size:
|
|
53
|
-
.fs-subheading { font-size:
|
|
54
|
-
.fs-body3 { font-size:
|
|
55
|
-
.fs-body2 { font-size:
|
|
44
|
+
.fs-display4 { font-size: calc(var(--fs-display4) * .43) !important; } // 43px
|
|
45
|
+
.fs-display3 { font-size: calc(var(--fs-display3) * .5139) !important; } // ~37px
|
|
46
|
+
.fs-display2 { font-size: calc(var(--fs-display2) * .5862) !important; } // ~34px
|
|
47
|
+
.fs-display1 { font-size: calc(var(--fs-display1) * .6304) !important; } // ~29px
|
|
48
|
+
.fs-headline2 { font-size: calc(var(--fs-headline2) * .7224) !important; } // ~26px
|
|
49
|
+
.fs-headline1 { font-size: calc(var(--fs-headline1) * .8215) !important; } // ~23px
|
|
50
|
+
.fs-title { font-size: calc(var(--fs-title) * .9094) !important; } // ~20px
|
|
51
|
+
.fs-subheading { font-size: calc(var(--fs-subheading) * .8998) !important; } // ~18px
|
|
52
|
+
.fs-body3 { font-size: calc(var(--fs-body3) * .8888) !important; } // ~16px
|
|
53
|
+
.fs-body2 { font-size: calc(var(--fs-body2) * .9374) !important; } // ~15px
|
|
56
54
|
}, @force-selector: true);
|
|
57
55
|
|
|
58
|
-
.fs-category {
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
text-transform: uppercase;
|
|
61
|
-
|
|
62
|
-
// If a top border is desired
|
|
63
|
-
&.has-border {
|
|
64
|
-
width: 100%;
|
|
65
|
-
padding: var(--su4) 0;
|
|
66
|
-
border-top: var(--su-static1) solid var(--bc-medium);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
56
|
// ============================================================================
|
|
71
57
|
// $ LINE HEIGHTS
|
|
72
58
|
// ----------------------------------------------------------------------------
|
|
@@ -89,7 +75,8 @@ p {
|
|
|
89
75
|
|
|
90
76
|
// -- Font Weight
|
|
91
77
|
.fw-normal { font-weight: 400 !important; }
|
|
92
|
-
.fw-
|
|
78
|
+
.fw-medium { font-weight: 500 !important; }
|
|
79
|
+
.fw-bold { font-weight: 600 !important; }
|
|
93
80
|
|
|
94
81
|
// -- Font Styles
|
|
95
82
|
.fs-normal { font-style: normal !important; }
|
package/lib/base/body.less
CHANGED
|
@@ -24,13 +24,6 @@ body {
|
|
|
24
24
|
line-height: var(--lh-base);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
#stacks-internals #screen-sm({
|
|
28
|
-
&,
|
|
29
|
-
body {
|
|
30
|
-
font-size: 11px;
|
|
31
|
-
}
|
|
32
|
-
}, @force-selector: true);
|
|
33
|
-
|
|
34
27
|
body {
|
|
35
28
|
box-sizing: border-box;
|
|
36
29
|
min-height: 100%;
|
|
@@ -41,4 +34,6 @@ body {
|
|
|
41
34
|
*:after {
|
|
42
35
|
box-sizing: inherit;
|
|
43
36
|
}
|
|
37
|
+
|
|
38
|
+
// TODO SHINE set max width here
|
|
44
39
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.s-activity-indicator {
|
|
2
|
-
--_ai-
|
|
3
|
-
--_ai-bg: var(--theme-secondary-400);
|
|
2
|
+
--_ai-bg: var(--pink-400);
|
|
4
3
|
--_ai-fc: var(--white);
|
|
4
|
+
--_ai-min-size: var(--su-static16);
|
|
5
|
+
--_ai-p: 0 calc(var(--su-static4) - var(--su-static1));
|
|
5
6
|
|
|
6
7
|
.highcontrast-mode({
|
|
7
8
|
--_ai-bg: var(--theme-secondary-500);
|
|
@@ -10,7 +11,6 @@
|
|
|
10
11
|
// VARIANTS
|
|
11
12
|
&&__danger {
|
|
12
13
|
--_ai-bg: var(--red-400);
|
|
13
|
-
--_ai-translucent: var(--translucent-error);
|
|
14
14
|
|
|
15
15
|
.highcontrast-mode({
|
|
16
16
|
--_ai-bg: var(--red-500);
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
|
|
20
20
|
&&__success {
|
|
21
21
|
--_ai-bg: var(--green-400);
|
|
22
|
-
--_ai-translucent: var(--translucent-success);
|
|
23
22
|
|
|
24
23
|
.highcontrast-mode({
|
|
25
24
|
--_ai-bg: var(--green-500);
|
|
@@ -28,8 +27,6 @@
|
|
|
28
27
|
|
|
29
28
|
&&__warning {
|
|
30
29
|
--_ai-bg: var(--yellow-400);
|
|
31
|
-
--_ai-fc: var(--_black-static);
|
|
32
|
-
--_ai-translucent: var(--translucent-warning);
|
|
33
30
|
|
|
34
31
|
.highcontrast-mode({
|
|
35
32
|
--_ai-bg: var(--yellow-500); // needs to be here to override default high contrast
|
|
@@ -37,17 +34,24 @@
|
|
|
37
34
|
});
|
|
38
35
|
}
|
|
39
36
|
|
|
37
|
+
&&__sm {
|
|
38
|
+
--_ai-min-size: calc(var(--su-static8) + var(--su-static2));
|
|
39
|
+
--_ai-p: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
40
42
|
background-color: var(--_ai-bg);
|
|
41
|
-
box-shadow: 0 0 0 var(--su-static4) var(--_ai-translucent);
|
|
42
43
|
color: var(--_ai-fc);
|
|
44
|
+
min-width: var(--_ai-min-size);
|
|
45
|
+
min-height: var(--_ai-min-size);
|
|
46
|
+
padding: var(--_ai-p);
|
|
43
47
|
|
|
44
48
|
border-radius: 1000px;
|
|
45
|
-
display: inline-
|
|
49
|
+
display: inline-flex;
|
|
46
50
|
font-size: var(--fs-fine);
|
|
47
|
-
font-weight:
|
|
48
|
-
line-height: 1.1;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
line-height: 1.1;
|
|
53
|
+
text-align: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
52
56
|
text-transform: uppercase;
|
|
53
57
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&&__default {
|
|
31
|
-
--_an-a-fc: var(--theme-link-color, var(--theme-secondary
|
|
31
|
+
--_an-a-fc: var(--theme-link-color, var(--theme-secondary));
|
|
32
32
|
--_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
|
|
33
33
|
--_an-a-fc-visited: var(--theme-link-color-visited, var(--purple-500));
|
|
34
34
|
--_an-a-fc-hover-visited: var(--theme-link-color-hover, var(--purple-600));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.s-avatar {
|
|
2
2
|
--_av-size: var(--su-static16);
|
|
3
3
|
--_av-bg: var(--_white-static); // Force a white background color for when we have transparent avatars
|
|
4
|
-
--_av-br: var(--br-sm);
|
|
5
4
|
--_av-fs-letter: calc(var(--su-static12) - var(--su-static1));
|
|
6
5
|
--_av-scale-badge: 1;
|
|
7
6
|
|
|
@@ -18,14 +17,8 @@
|
|
|
18
17
|
|
|
19
18
|
// MODIFIERS
|
|
20
19
|
// Sizes
|
|
21
|
-
&&__32,
|
|
22
|
-
&&__48 {
|
|
23
|
-
--_av-br: var(--br-md);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
20
|
&&__96,
|
|
27
21
|
&&__128 {
|
|
28
|
-
--_av-br: calc(var(--br-lg) + var(--br-sm));
|
|
29
22
|
--_av-scale-badge: 3;
|
|
30
23
|
}
|
|
31
24
|
|
|
@@ -49,7 +42,6 @@
|
|
|
49
42
|
|
|
50
43
|
&&__64 {
|
|
51
44
|
--_av-size: var(--su-static64);
|
|
52
|
-
--_av-br: var(--br-lg);
|
|
53
45
|
--_av-fs-letter: calc(var(--su-static48) - var(--su-static4));
|
|
54
46
|
--_av-scale-badge: 2.4;
|
|
55
47
|
}
|
|
@@ -74,7 +66,6 @@
|
|
|
74
66
|
}
|
|
75
67
|
|
|
76
68
|
& &--image {
|
|
77
|
-
border-radius: var(--_av-br);
|
|
78
69
|
display: block;
|
|
79
70
|
height: var(--_av-size);
|
|
80
71
|
width: var(--_av-size);
|
|
@@ -95,8 +86,15 @@
|
|
|
95
86
|
user-select: none;
|
|
96
87
|
}
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
& &--indicator {
|
|
90
|
+
box-shadow: 0 0 0 var(--su-static2) var(--white);
|
|
91
|
+
bottom: 100%;
|
|
92
|
+
left: 100%;
|
|
93
|
+
position: absolute;
|
|
94
|
+
transform: translate(-50%, 60%);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
background-color: var(--_av-bg);
|
|
100
98
|
height: var(--_av-size);
|
|
101
99
|
width: var(--_av-size);
|
|
102
100
|
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
--_ab-before-bg: unset;
|
|
3
3
|
|
|
4
4
|
// VARIANTS
|
|
5
|
+
// TODO SHINE expect a conflict with the award-bling updates. Prefer the changes in https://github.com/StackExchange/Stacks/pull/2013.
|
|
5
6
|
&&__gold {
|
|
6
|
-
--_ab-before-bg: var(--
|
|
7
|
+
--_ab-before-bg: var(--yellow-300);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
&&__silver {
|
|
10
|
-
--_ab-before-bg: var(--
|
|
11
|
+
--_ab-before-bg: var(--blue-300);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
&&__bronze {
|
|
14
|
-
--_ab-before-bg: var(--
|
|
15
|
+
--_ab-before-bg: var(--orange-300);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
// CHILD ELEMENTS
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&&__gold {
|
|
65
|
-
--_ba-bc: var(--
|
|
66
|
-
--_ba-bg: var(--
|
|
65
|
+
--_ba-bc: var(--yellow-300);
|
|
66
|
+
--_ba-bg: var(--yellow-100);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&&__silver {
|
|
70
|
-
--_ba-bc: var(--
|
|
71
|
-
--_ba-bg: var(--
|
|
70
|
+
--_ba-bc: var(--blue-300);
|
|
71
|
+
--_ba-bg: var(--blue-100);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&&__bronze {
|
|
75
|
-
--_ba-bc: var(--
|
|
76
|
-
--_ba-bg: var(--
|
|
75
|
+
--_ba-bc: var(--orange-300);
|
|
76
|
+
--_ba-bg: var(--orange-100);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// Number counts
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
text-transform: var(--_ba-tt);
|
|
261
261
|
|
|
262
262
|
align-items: center;
|
|
263
|
-
border-radius: var(--br-
|
|
263
|
+
border-radius: var(--br-md);
|
|
264
264
|
display: inline-flex;
|
|
265
265
|
justify-content: center;
|
|
266
266
|
text-decoration: none;
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
& &--badge {
|
|
389
389
|
opacity: var(--_bu-badge-o);
|
|
390
390
|
display: inline-block;
|
|
391
|
-
border-radius: var(--br-
|
|
391
|
+
border-radius: var(--br-md);
|
|
392
392
|
padding: var(--su2) calc(var(--su4) - var(--su1));
|
|
393
393
|
font-size: var(--fs-caption);
|
|
394
394
|
line-height: var(--lh-xs);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
// --_bu-py values set below to ensure btn-group height matches same-sized button height
|
|
24
24
|
// See https://github.com/StackEng/StackOverflow/pull/18992#pullrequestreview-1947490680
|
|
25
25
|
.s-btn {
|
|
26
|
-
--_bu-br: var(--br-
|
|
26
|
+
--_bu-br: var(--br-md);
|
|
27
27
|
--_bu-bc-hover: transparent;
|
|
28
28
|
--_bu-px: calc(var(--su12) - var(--su1)); // 11px
|
|
29
29
|
--_bu-py: calc(var(--su6) + 0.65px); // 6.65px
|
|
@@ -48,21 +48,23 @@
|
|
|
48
48
|
// Less variables for check svg fill color
|
|
49
49
|
@ch-bg-image-fill: .set-white()[default];
|
|
50
50
|
@ch-bg-image-fill-dark: .set-white-dark()[default];
|
|
51
|
+
@ch-bg-image-fill-esc: escape("@{ch-bg-image-fill}"); // color escaped for URL usage
|
|
52
|
+
@ch-bg-image-fill-dark-esc: escape("@{ch-bg-image-fill-dark}"); // color escaped for URL usage
|
|
51
53
|
|
|
52
54
|
// CONTEXTUAL STYLES
|
|
53
55
|
.dark-mode({
|
|
54
56
|
&:checked {
|
|
55
|
-
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.41L8.59 2 4 6.59 2.41 5 1 6.41l3 3z' fill='@{ch-bg-image-fill-dark}'/%3E%3C/svg%3E");
|
|
57
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.41L8.59 2 4 6.59 2.41 5 1 6.41l3 3z' fill='@{ch-bg-image-fill-dark-esc}'/%3E%3C/svg%3E");
|
|
56
58
|
}
|
|
57
59
|
&:indeterminate {
|
|
58
|
-
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5 h7 v2 h-7 z' fill='@{ch-bg-image-fill-dark}'/%3E%3C/svg%3E");
|
|
60
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5 h7 v2 h-7 z' fill='@{ch-bg-image-fill-dark-esc}'/%3E%3C/svg%3E");
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
63
|
|
|
62
64
|
.highcontrast-dark-mode({
|
|
63
65
|
&:checked, &:indeterminate {
|
|
64
|
-
--_ch-bc: var(--
|
|
65
|
-
--_ch-bg: var(--
|
|
66
|
+
--_ch-bc: var(--black) !important;
|
|
67
|
+
--_ch-bg: var(--black);
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
|
|
@@ -75,16 +77,16 @@
|
|
|
75
77
|
|
|
76
78
|
// STATES
|
|
77
79
|
&:checked, &:indeterminate {
|
|
78
|
-
--_ch-bc: var(--theme-secondary
|
|
79
|
-
--_ch-bg: var(--theme-secondary
|
|
80
|
+
--_ch-bc: var(--theme-secondary) !important;
|
|
81
|
+
--_ch-bg: var(--theme-secondary);
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
&:checked {
|
|
83
|
-
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.41L8.59 2 4 6.59 2.41 5 1 6.41l3 3z' fill='@{ch-bg-image-fill}'/%3E%3C/svg%3E");
|
|
85
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.41L8.59 2 4 6.59 2.41 5 1 6.41l3 3z' fill='@{ch-bg-image-fill-esc}'/%3E%3C/svg%3E");
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
&:indeterminate {
|
|
87
|
-
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5 h7 v2 h-7 z' fill='@{ch-bg-image-fill}'/%3E%3C/svg%3E");
|
|
89
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5 h7 v2 h-7 z' fill='@{ch-bg-image-fill-esc}'/%3E%3C/svg%3E");
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
background-image: var(--_ch-bg-image);
|
|
@@ -92,7 +94,7 @@
|
|
|
92
94
|
background-position: center center;
|
|
93
95
|
background-repeat: no-repeat;
|
|
94
96
|
background-size: contain;
|
|
95
|
-
border-radius: var(--br-
|
|
97
|
+
border-radius: var(--br-md);
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.s-radio {
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
// CONTEXTUAL STYLES
|
|
101
103
|
.highcontrast-dark-mode({
|
|
102
104
|
&:checked {
|
|
103
|
-
--_ch-bc: var(--
|
|
105
|
+
--_ch-bc: var(--black);
|
|
104
106
|
outline: var(--su-static1) solid var(--black);
|
|
105
107
|
}
|
|
106
108
|
});
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
// STATES
|
|
109
111
|
&:checked {
|
|
110
112
|
--_ch-baw: 0.30769231em;
|
|
111
|
-
--_ch-bc: var(--theme-secondary
|
|
113
|
+
--_ch-bc: var(--theme-secondary);
|
|
112
114
|
--_ch-bg: var(--white);
|
|
113
115
|
}
|
|
114
116
|
|
|
@@ -26,7 +26,7 @@ a {
|
|
|
26
26
|
|
|
27
27
|
a,
|
|
28
28
|
.s-link {
|
|
29
|
-
--_li-fc: var(--theme-link-color, var(--theme-secondary
|
|
29
|
+
--_li-fc: var(--theme-link-color, var(--theme-secondary));
|
|
30
30
|
--_li-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
|
|
31
31
|
--_li-fc-visited: var(--theme-link-color-visited, var(--purple-500));
|
|
32
32
|
--_li-fc-hover-visited: var(--theme-link-color-visited, var(--purple-600));
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
background: var(--_lp-footer-bg);
|
|
67
67
|
flex-direction: var(--_lp-footer-fd);
|
|
68
68
|
|
|
69
|
-
border-bottom-left-radius: var(--br-
|
|
70
|
-
border-bottom-right-radius: var(--br-
|
|
69
|
+
border-bottom-left-radius: var(--br-md);
|
|
70
|
+
border-bottom-right-radius: var(--br-md);
|
|
71
71
|
border-top: var(--su-static1) solid var(--bc-medium);
|
|
72
72
|
display: flex;
|
|
73
73
|
font-size: var(--fs-caption);
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
& &--header {
|
|
79
79
|
background: var(--_lp-header-bg);
|
|
80
80
|
border-bottom: var(--su-static1) solid var(--bc-medium);
|
|
81
|
-
border-top-left-radius: var(--br-
|
|
82
|
-
border-top-right-radius: var(--br-
|
|
81
|
+
border-top-left-radius: var(--br-md);
|
|
82
|
+
border-top-right-radius: var(--br-md);
|
|
83
83
|
display: flex;
|
|
84
84
|
padding: var(--su12) var(--su8);
|
|
85
85
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
color: var(--theme-link-color, var(--purple-500));
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
color: var(--theme-link-color, var(--theme-secondary
|
|
132
|
+
color: var(--theme-link-color, var(--theme-secondary));
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
text-decoration: none;
|
|
135
135
|
}
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
border: var(--su-static1) solid var(--bc-medium);
|
|
145
|
-
border-radius: var(--br-
|
|
145
|
+
border-radius: var(--br-md);
|
|
146
146
|
box-shadow: var(--bs-sm);
|
|
147
147
|
text-align: left;
|
|
148
148
|
}
|
|
@@ -5,18 +5,6 @@
|
|
|
5
5
|
--_po-d: none;
|
|
6
6
|
--_po-wmn: 12rem;
|
|
7
7
|
--_po-w: 100%;
|
|
8
|
-
// arrow
|
|
9
|
-
--_po-arrow-fc: var(--white);
|
|
10
|
-
--_po-arrow-b: unset;
|
|
11
|
-
--_po-arrow-l: unset;
|
|
12
|
-
--_po-arrow-r: unset;
|
|
13
|
-
--_po-arrow-t: unset;
|
|
14
|
-
--_po-arrow-ps: calc(var(--su6) * -1); // ps suffix used for placement, not positioning value
|
|
15
|
-
--_po-arrow-after-b: unset;
|
|
16
|
-
--_po-arrow-after-l: unset;
|
|
17
|
-
--_po-arrow-after-r: unset;
|
|
18
|
-
--_po-arrow-after-t: unset;
|
|
19
|
-
--_po-arrow-after-bs: unset;
|
|
20
8
|
// content
|
|
21
9
|
// --_po-topbar-height assumes the topbar height based on topbar styles
|
|
22
10
|
--_po-topbar-height: var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8)));
|
|
@@ -27,7 +15,6 @@
|
|
|
27
15
|
--_po-bg: var(--black-200);
|
|
28
16
|
--_po-bc: var(--bc-light);
|
|
29
17
|
--_po-bs: var(--bs-lg);
|
|
30
|
-
--_po-arrow-fc: var(--black-200);
|
|
31
18
|
});
|
|
32
19
|
|
|
33
20
|
// MODIFIERS
|
|
@@ -41,91 +28,6 @@
|
|
|
41
28
|
}
|
|
42
29
|
|
|
43
30
|
// CHILD ELEMENTS
|
|
44
|
-
// Arrow
|
|
45
|
-
&[data-popper-placement^="top"] > &--arrow,
|
|
46
|
-
& &--arrow__bc,
|
|
47
|
-
& &--arrow__bl,
|
|
48
|
-
& &--arrow__br {
|
|
49
|
-
--_po-arrow-b: var(--_po-arrow-ps);
|
|
50
|
-
--_po-arrow-after-b: var(--su-static1);
|
|
51
|
-
--_po-arrow-after-bs: 2px 2px 5px 0 hsla(0, 0%, 0%, 0.07), 2px 2px 2px -1px hsla(0, 0%, 0%, 0.1);
|
|
52
|
-
.highcontrast-mode({ --_po-arrow-after-bs: 1px 1px 0 0 var(--bc-medium); });
|
|
53
|
-
}
|
|
54
|
-
&[data-popper-placement^="bottom"] > &--arrow,
|
|
55
|
-
& &--arrow__tc,
|
|
56
|
-
& &--arrow__tl,
|
|
57
|
-
& &--arrow__tr {
|
|
58
|
-
--_po-arrow-t: var(--_po-arrow-ps);
|
|
59
|
-
--_po-arrow-after-t: var(--su-static1);
|
|
60
|
-
--_po-arrow-after-bs: -1px -1px 1px 0 hsla(0, 0%, 0%, 0.12);
|
|
61
|
-
.highcontrast-mode({ --_po-arrow-after-bs: -1px -1px 0 0 var(--bc-medium); });
|
|
62
|
-
}
|
|
63
|
-
&[data-popper-placement^="left"] > &--arrow,
|
|
64
|
-
& &--arrow__rc,
|
|
65
|
-
& &--arrow__rt,
|
|
66
|
-
& &--arrow__rb {
|
|
67
|
-
--_po-arrow-r: var(--_po-arrow-ps);
|
|
68
|
-
--_po-arrow-after-r: var(--su-static1);
|
|
69
|
-
--_po-arrow-after-bs: 2px -2px 5px 0 hsla(0, 0%, 0%, 0.07), 2px -2px 2px -1px hsla(0, 0%, 0%, 0.1);
|
|
70
|
-
.highcontrast-mode({ --_po-arrow-after-bs: 1px -1px 0 0 var(--bc-medium); });
|
|
71
|
-
}
|
|
72
|
-
&[data-popper-placement^="right"] > &--arrow,
|
|
73
|
-
& &--arrow__lc,
|
|
74
|
-
& &--arrow__lt,
|
|
75
|
-
& &--arrow__lb {
|
|
76
|
-
--_po-arrow-l: var(--_po-arrow-ps);
|
|
77
|
-
--_po-arrow-after-l: var(--su-static1);
|
|
78
|
-
--_po-arrow-after-bs: -2px 2px 5px 0 hsla(0, 0%, 0%, 0.07), -2px 2px 2px -1px hsla(0, 0%, 0%, 0.1);
|
|
79
|
-
.highcontrast-mode({ --_po-arrow-after-bs: -1px 1px 0 0 var(--bc-medium); });
|
|
80
|
-
}
|
|
81
|
-
& &--arrow__tc,
|
|
82
|
-
& &--arrow__bc {
|
|
83
|
-
--_po-arrow-l: calc(50% - var(--su6));
|
|
84
|
-
}
|
|
85
|
-
& &--arrow__lc,
|
|
86
|
-
& &--arrow__rc {
|
|
87
|
-
--_po-arrow-t: calc(50% - var(--su6));
|
|
88
|
-
}
|
|
89
|
-
& &--arrow__tr,
|
|
90
|
-
.s-popover--arrow__br {
|
|
91
|
-
--_po-arrow-r: var(--su12);
|
|
92
|
-
}
|
|
93
|
-
& &--arrow__rb,
|
|
94
|
-
& &--arrow__lb {
|
|
95
|
-
--_po-arrow-b: var(--su12);
|
|
96
|
-
}
|
|
97
|
-
& &--arrow {
|
|
98
|
-
&,
|
|
99
|
-
&:before,
|
|
100
|
-
&:after {
|
|
101
|
-
display: block;
|
|
102
|
-
height: var(--su12);
|
|
103
|
-
position: absolute;
|
|
104
|
-
width: var(--su12);
|
|
105
|
-
z-index: -1;
|
|
106
|
-
}
|
|
107
|
-
&:before, // This renders our border
|
|
108
|
-
&:after {
|
|
109
|
-
content: '';
|
|
110
|
-
transform: rotate(45deg);
|
|
111
|
-
}
|
|
112
|
-
&:after { // This renders our foreground color
|
|
113
|
-
bottom: var(--_po-arrow-after-b);
|
|
114
|
-
box-shadow: var(--_po-arrow-after-bs);
|
|
115
|
-
left: var(--_po-arrow-after-l);
|
|
116
|
-
right: var(--_po-arrow-after-r);
|
|
117
|
-
top: var(--_po-arrow-after-t);
|
|
118
|
-
|
|
119
|
-
background: currentColor;
|
|
120
|
-
border-radius: calc(var(--su-static1) * 1.5);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
bottom: var(--_po-arrow-b);
|
|
124
|
-
color: var(--_po-arrow-fc);
|
|
125
|
-
left: var(--_po-arrow-l);
|
|
126
|
-
right: var(--_po-arrow-r);
|
|
127
|
-
top: var(--_po-arrow-t);
|
|
128
|
-
}
|
|
129
31
|
// Close btn
|
|
130
32
|
& &--close {
|
|
131
33
|
float: right; // Use floats for title wrapping
|
|
@@ -231,12 +231,6 @@ export abstract class BasePopoverController extends Stacks.StacksController {
|
|
|
231
231
|
offset: [0, 10], // The entire popover should be 10px away from the element
|
|
232
232
|
},
|
|
233
233
|
},
|
|
234
|
-
{
|
|
235
|
-
name: "arrow",
|
|
236
|
-
options: {
|
|
237
|
-
element: ".s-popover--arrow",
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
234
|
],
|
|
241
235
|
});
|
|
242
236
|
}
|
|
@@ -137,22 +137,10 @@ export class TooltipController extends BasePopoverController {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
const arrow = popover.querySelector(".s-popover--arrow");
|
|
141
|
-
|
|
142
140
|
// clear and set the content of the popover
|
|
143
141
|
popover.innerHTML = "";
|
|
144
142
|
popover.appendChild(content);
|
|
145
143
|
|
|
146
|
-
// create the arrow if necessary
|
|
147
|
-
if (arrow) {
|
|
148
|
-
popover.appendChild(arrow);
|
|
149
|
-
} else {
|
|
150
|
-
popover.insertAdjacentHTML(
|
|
151
|
-
"beforeend",
|
|
152
|
-
`<div class="s-popover--arrow"></div>`
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
144
|
this.scheduleUpdate();
|
|
157
145
|
|
|
158
146
|
return popover;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--_ps-o: unset;
|
|
6
6
|
// Child components
|
|
7
7
|
--_ps-content-excerpt-fc: var(--_ps-state-fc, var(--fc-medium));
|
|
8
|
-
--_ps-content-title-a-fc: var(--_ps-state-fc, var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary
|
|
8
|
+
--_ps-content-title-a-fc: var(--_ps-state-fc, var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary))));
|
|
9
9
|
--_ps-content-title-a-fc-hover: var(--_ps-state-fc, var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--theme-secondary-500))));
|
|
10
10
|
--_ps-content-title-a-fc-visited: var(--_ps-state-fc, var(--theme-post-title-color-visited, var(--theme-link-color-visited, var(--purple-500))));
|
|
11
11
|
--_ps-content-title-a-fc-hover-visited: var(--_ps-state-fc, var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--purple-600))));
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
&:not(.s-post-summary__deleted):not(.s-post-summary__ignored) {
|
|
120
120
|
--_ps-bg: var(--yellow-100);
|
|
121
121
|
--_ps-stats-fc: var(--black-400);
|
|
122
|
-
--_ps-content-title-a-fc: var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary
|
|
122
|
+
--_ps-content-title-a-fc: var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary)));
|
|
123
123
|
--_ps-content-title-a-fc-hover: var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--theme-secondary-500)));
|
|
124
124
|
--_ps-content-title-a-fc-visited: var(--theme-post-title-color-visited, var(--theme-link-color-visited, var(--purple-500)));
|
|
125
125
|
--_ps-content-title-a-fc-hover-visited: var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--purple-600)));
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
&.is-pinned,
|
|
369
369
|
&.is-published,
|
|
370
370
|
&.is-review {
|
|
371
|
-
border-radius: var(--br-
|
|
371
|
+
border-radius: var(--br-md);
|
|
372
372
|
padding: var(--su2) var(--su4);
|
|
373
373
|
}
|
|
374
374
|
|