Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/site-kit/src/lib/components/Text.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@
border: 1px solid var(--sk-back-5);
border-radius: var(--sk-border-radius);
overflow: hidden;
margin: 2rem 0;
margin: calc(0.5 * var(--sk-line-height-body)) 0;
/* background: var(--sk-back-3); */

@media (min-width: 767px) {
margin: var(--sk-line-height-body) 0;
}

.controls {
--height: 3.6rem;
display: flex;
Expand Down Expand Up @@ -376,11 +380,11 @@
li::before {
content: '';
position: absolute;
top: 1.43rem;
top: 0.65em;
left: -1.8rem;
background-color: var(--sk-text-4);
width: 0.6rem;
height: 0.6rem;
width: 0.3em;
height: 0.3em;
border-radius: 50%;
opacity: 0.7;
}
Expand Down
5 changes: 2 additions & 3 deletions packages/site-kit/src/lib/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ p,
ul,
ol {
font: var(--sk-font-body);
margin: 1lh 0;
margin: 0.5lh 0;

&:first-child {
margin-top: 0;
Expand Down Expand Up @@ -136,8 +136,7 @@ header {
/* opinionated styles --------------------- */
blockquote {
position: relative;
margin: 2.4rem 0;
padding: 2rem 2.4rem 1.8rem 2.4rem;
margin: var(--sk-line-height-body) 0;
max-width: var(--sk-page-content-width);
}

Expand Down
4 changes: 3 additions & 1 deletion packages/site-kit/src/lib/styles/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
--sk-font-size-ui-large: 3rem;
--sk-font-size-mono: 1.4rem;

--sk-line-height-body: 1.5;
/* doing it this way (rather than just `1.5`) means it has a unit, and can be used elsewhere */
--sk-line-height-body: calc(1.5 * var(--sk-font-size-body));
--sk-line-height-body-small: calc(1.5 * var(--sk-font-size-body-small));

--sk-font-h1: 500 var(--sk-font-size-h1) / 1.2 var(--sk-font-family-heading);
--sk-font-h2: 500 var(--sk-font-size-h2) / 1.2 var(--sk-font-family-heading);
Expand Down
Loading