Skip to content

Commit 8ad2651

Browse files
committed
Spacing: Add callout and tab group spacing
1 parent 623413d commit 8ad2651

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ textarea:not([rows]) {
211211
/* Details */
212212
--details-margin: 0.5rem 0rem;
213213

214+
/* Tab Group */
215+
--magrin-tab-group: 1rem 0 0 0;
216+
214217
--overflow-gutter-extension: 1rem;
215218

216219
/* vars for the primary grid setup */
@@ -221,6 +224,7 @@ textarea:not([rows]) {
221224
--grid-side-callout: minmax(18rem, 26rem);
222225
--grid-column-gutter: 3.5rem;
223226

227+
/* Used for standard grid gap, and internal component flows */
224228
--flow-gap: 1rem;
225229

226230
/* @link https://utopia.fyi/type/calculator?c=320,14,1.2,1240,16,1.25,5,3,&s=0.75,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
@@ -1722,8 +1726,8 @@ blockquote.note:before {
17221726
z-index: 999;
17231727
}
17241728

1725-
blockquote p:first-child {
1726-
margin: 0 auto 1rem auto;
1729+
blockquote p {
1730+
margin: 0 auto var(--flow-gap) auto;
17271731
}
17281732

17291733
blockquote p:last-child {
@@ -1819,6 +1823,7 @@ li:has(> div > blockquote) {
18191823
.tabs-container {
18201824
width: calc(100% + 2rem);
18211825
margin-inline-start: -1rem;
1826+
margin: var(--margin-tab-group);
18221827

18231828
input[type="radio"] {
18241829
display: none;
@@ -1884,6 +1889,8 @@ li:has(> div > blockquote) {
18841889
width: 100%;
18851890
padding: 1rem;
18861891

1892+
--flow-gap: 2rem;
1893+
18871894
& > * {
18881895
margin: 0 0 var(--flow-gap) 0;
18891896
}

exampleSite/content/test-product/call-out/all-callouts.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ This callout especially should be used **VERY** judiciously.
5757

5858
{{<warning>}}
5959
This is a Warning callout. There was previously a bug with **bold text** that we should be aware of and continue to check for. This callout was invoked with the `<warning>` shortcode. It has no custom title.
60+
61+
This callout has another line.
62+
63+
And another line.
64+
65+
And a final line.
66+
6067
{{</warning>}}
6168

6269

exampleSite/content/test-product/tab-group/tab-group.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ This is a callout with an icon.
1515
{{</call-out>}}
1616

1717
{{<caution>}}
18+
1819
This is a Caution callout. There was previously a bug with **bold text** that we should be aware of and continue to check for. This callout was invoked with the `<caution>` shortcode. It has no custom title.
20+
21+
This is on a new line.
22+
23+
This is on a new line
24+
1925
{{</caution>}}
2026

2127
{{<call-out "" "Custom title">}}

0 commit comments

Comments
 (0)