@primer/brand-css 0.77.0-rc.d45b2bb1 → 0.77.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.Section {
|
|
2
2
|
--rounded-padding-overlap-adjustment: 0px;
|
|
3
3
|
--rounded-radius: var(--brand-borderRadius-xlarge);
|
|
4
|
+
--padding-block-start: var(--brand-Section-padding-normal);
|
|
4
5
|
--padding-block-end: var(--brand-Section-padding-normal);
|
|
5
6
|
--adjusted-padding-block-end: calc(var(--padding-block-end) + var(--rounded-padding-overlap-adjustment));
|
|
6
7
|
|
|
@@ -28,6 +29,18 @@
|
|
|
28
29
|
max-width: none;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
.Section--variant-gridline .Section__container {
|
|
33
|
+
padding-inline: var(--brand-Section-variant-gridline-paddingInline);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.Section--variant-gridline .Section__container--fullWidth {
|
|
37
|
+
padding-inline: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.Section.Section--variant-gridline::after {
|
|
41
|
+
bottom: calc(-1 * var(--brand-borderWidth-thin));
|
|
42
|
+
}
|
|
43
|
+
|
|
31
44
|
.Section--rounded {
|
|
32
45
|
border-radius: var(--rounded-radius) var(--rounded-radius) 0 0;
|
|
33
46
|
margin-top: calc(-1 * var(--rounded-radius));
|
|
@@ -40,20 +53,20 @@
|
|
|
40
53
|
|
|
41
54
|
.Section--paddingBlockStart-none,
|
|
42
55
|
.Section-narrow--paddingBlockStart-none {
|
|
43
|
-
padding-block-start: 0;
|
|
56
|
+
--padding-block-start: 0;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
.Section--paddingBlockStart-condensed,
|
|
47
60
|
.Section-narrow--paddingBlockStart-condensed {
|
|
48
|
-
padding-block-start: var(--brand-Section-padding-condensed);
|
|
61
|
+
--padding-block-start: var(--brand-Section-padding-condensed);
|
|
49
62
|
}
|
|
50
63
|
.Section--paddingBlockStart-normal,
|
|
51
64
|
.Section-narrow--paddingBlockStart-normal {
|
|
52
|
-
padding-block-start: var(--brand-Section-padding-normal);
|
|
65
|
+
--padding-block-start: var(--brand-Section-padding-normal);
|
|
53
66
|
}
|
|
54
67
|
.Section--paddingBlockStart-spacious,
|
|
55
68
|
.Section-narrow--paddingBlockStart-spacious {
|
|
56
|
-
padding-block-start: var(--brand-Section-padding-spacious);
|
|
69
|
+
--padding-block-start: var(--brand-Section-padding-spacious);
|
|
57
70
|
}
|
|
58
71
|
|
|
59
72
|
.Section--paddingBlockEnd-none,
|
|
@@ -86,17 +99,17 @@
|
|
|
86
99
|
}
|
|
87
100
|
|
|
88
101
|
.Section-regular--paddingBlockStart-none {
|
|
89
|
-
padding-block-start: 0;
|
|
102
|
+
--padding-block-start: 0;
|
|
90
103
|
}
|
|
91
104
|
|
|
92
105
|
.Section-regular--paddingBlockStart-condensed {
|
|
93
|
-
padding-block-start: var(--brand-Section-padding-condensed);
|
|
106
|
+
--padding-block-start: var(--brand-Section-padding-condensed);
|
|
94
107
|
}
|
|
95
108
|
.Section-regular--paddingBlockStart-normal {
|
|
96
|
-
padding-block-start: var(--brand-Section-padding-normal);
|
|
109
|
+
--padding-block-start: var(--brand-Section-padding-normal);
|
|
97
110
|
}
|
|
98
111
|
.Section-regular--paddingBlockStart-spacious {
|
|
99
|
-
padding-block-start: var(--brand-Section-padding-spacious);
|
|
112
|
+
--padding-block-start: var(--brand-Section-padding-spacious);
|
|
100
113
|
}
|
|
101
114
|
|
|
102
115
|
.Section-regular--paddingBlockEnd-none {
|
|
@@ -127,17 +140,17 @@
|
|
|
127
140
|
}
|
|
128
141
|
|
|
129
142
|
.Section-wide--paddingBlockStart-none {
|
|
130
|
-
padding-block-start: 0;
|
|
143
|
+
--padding-block-start: 0;
|
|
131
144
|
}
|
|
132
145
|
|
|
133
146
|
.Section-wide--paddingBlockStart-condensed {
|
|
134
|
-
padding-block-start: var(--brand-Section-padding-condensed);
|
|
147
|
+
--padding-block-start: var(--brand-Section-padding-condensed);
|
|
135
148
|
}
|
|
136
149
|
.Section-wide--paddingBlockStart-normal {
|
|
137
|
-
padding-block-start: var(--brand-Section-padding-normal);
|
|
150
|
+
--padding-block-start: var(--brand-Section-padding-normal);
|
|
138
151
|
}
|
|
139
152
|
.Section-wide--paddingBlockStart-spacious {
|
|
140
|
-
padding-block-start: var(--brand-Section-padding-spacious);
|
|
153
|
+
--padding-block-start: var(--brand-Section-padding-spacious);
|
|
141
154
|
}
|
|
142
155
|
|
|
143
156
|
.Section-wide--paddingBlockEnd-none {
|
|
@@ -153,4 +166,28 @@
|
|
|
153
166
|
.Section-wide--paddingBlockEnd-spacious {
|
|
154
167
|
--padding-block-end: var(--brand-Section-padding-spacious);
|
|
155
168
|
}
|
|
169
|
+
|
|
170
|
+
.Section--variant-gridline .Section__container:not(.Section__container--fullWidth) {
|
|
171
|
+
position: relative;
|
|
172
|
+
border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::before,
|
|
176
|
+
.Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::after {
|
|
177
|
+
content: '';
|
|
178
|
+
position: absolute;
|
|
179
|
+
inset-block-start: calc(-1 * var(--padding-block-start));
|
|
180
|
+
inset-block-end: calc(-1 * var(--adjusted-padding-block-end));
|
|
181
|
+
width: var(--brand-borderWidth-thin);
|
|
182
|
+
background-color: var(--brand-color-border-muted);
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::before {
|
|
187
|
+
inset-inline-start: calc(-1 * var(--brand-borderWidth-thin));
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.Section--variant-gridline .Section__container:not(.Section__container--fullWidth)::after {
|
|
191
|
+
inset-inline-end: calc(-1 * var(--brand-borderWidth-thin));
|
|
192
|
+
}
|
|
156
193
|
}
|