Skip to content

Commit d3a514d

Browse files
committed
Update snippet css
1 parent f91ae4c commit d3a514d

File tree

5 files changed

+22
-25
lines changed

5 files changed

+22
-25
lines changed

app/javascript/css/baseline.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ a:active > * {
575575
color: var(--joy-link-active);
576576
}
577577

578+
a:has(> div) {
579+
text-decoration: none;
580+
}
581+
578582
pre {
579583
font-family: var(--monospace);
580584
font-size: var(--step--1);

app/javascript/css/components/article-content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
inline-size: 0.3125rem;
4949
}
5050

51-
& :first-child {
51+
& > :first-child {
5252
margin-block-start: 0;
5353
}
5454

app/javascript/css/components/code.scss

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -186,27 +186,3 @@
186186
}
187187
}
188188
}
189-
190-
.snippet {
191-
width: fit-content;
192-
max-width: var(--grid-max-width);
193-
194-
& .code-body {
195-
flex-direction: column;
196-
}
197-
198-
& .code-editor {
199-
padding-top: var(--space-xs);
200-
padding-inline-end: var(--space-m);
201-
padding-bottom: var(--space-m);
202-
padding-inline-start: var(--space-m);
203-
}
204-
}
205-
206-
.grid-stack {
207-
display: grid;
208-
209-
& > * {
210-
grid-area: 1 / 1 / 2 / 2;
211-
}
212-
}

app/javascript/css/components/snippet.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
.snippet {
22
filter: drop-shadow(0 0 0.75rem var(--joy-color-50));
3+
width: fit-content;
4+
max-width: var(--grid-max-width);
5+
6+
& .code-editor {
7+
padding-top: var(--space-xs);
8+
padding-inline-end: var(--space-m);
9+
padding-bottom: var(--space-m);
10+
padding-inline-start: var(--space-m);
11+
}
312
}
413

514
.snippet-background {

app/javascript/css/utilities/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,11 @@
7070
.joy-text-subtle {
7171
color: var(--joy-text-subtle);
7272
}
73+
74+
.grid-stack {
75+
display: grid;
76+
77+
& > * {
78+
grid-area: 1 / 1 / 2 / 2;
79+
}
80+
}

0 commit comments

Comments
 (0)