Skip to content

Commit 44e641d

Browse files
committed
chore: spacing tweaks
- make paragraph breaks less spacey - move `ul` closer to the preceeding paragraph which gives more visual clarity of where it belongs to - give code blocks a bit more space at the top/bottom on larger screens - give blockquotes more space at the top/bottom on larger screens Combined, these changes give more visual clarity of which things belong together, which stand on its own, etc
1 parent ceb315a commit 44e641d

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
margin: 2rem 0;
120120
/* background: var(--sk-back-3); */
121121
122+
@media (min-width: 767px) {
123+
margin: 3rem 0;
124+
}
125+
122126
.controls {
123127
--height: 3.6rem;
124128
display: flex;
@@ -376,7 +380,7 @@
376380
li::before {
377381
content: '';
378382
position: absolute;
379-
top: 1.43rem;
383+
top: 1.1rem;
380384
left: -1.8rem;
381385
background-color: var(--sk-text-4);
382386
width: 0.6rem;

packages/site-kit/src/lib/styles/base.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ p,
4545
ul,
4646
ol {
4747
font: var(--sk-font-body);
48-
margin: 1lh 0;
48+
margin: 2rem 0;
4949

5050
&:first-child {
5151
margin-top: 0;
@@ -56,6 +56,15 @@ ol {
5656
}
5757
}
5858

59+
ul,
60+
ol {
61+
margin-top: 1rem;
62+
}
63+
64+
p:has(+ ul, + ol) {
65+
margin-bottom: 1rem;
66+
}
67+
5968
a {
6069
position: relative;
6170
text-decoration: none;
@@ -139,6 +148,10 @@ blockquote {
139148
margin: 2.4rem 0;
140149
padding: 2rem 2.4rem 1.8rem 2.4rem;
141150
max-width: var(--sk-page-content-width);
151+
152+
@media (min-width: 767px) {
153+
margin: 4rem 0;
154+
}
142155
}
143156

144157
blockquote :where(p, ul, ol) {

0 commit comments

Comments
 (0)