Skip to content

Commit 028c3bf

Browse files
committed
Style blockquote and unordered lists
1 parent df22b6c commit 028c3bf

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
margin-inline-start: auto;
2020
overflow: visible;
2121
position: relative;
22+
margin-top: var(--space-m);
23+
margin-bottom: var(--space-m);
2224
}
2325

2426
& hr:before {
@@ -60,4 +62,48 @@
6062
z-index: 100;
6163
max-width: calc(var(--grid-max-width) / 3);
6264
}
65+
66+
& ul {
67+
list-style-type: disc;
68+
padding-inline-start: var(--space-s);
69+
70+
& li:has(+ li) {
71+
margin-bottom: var(--space-s);
72+
}
73+
}
74+
75+
& blockquote {
76+
font-size: var(--step-1);
77+
font-style: italic;
78+
padding: var(--space-m) 30px var(--space-m) 75px;
79+
border-left: var(--space-3xs) solid var(--joy-color-quote);
80+
line-height: 1.6;
81+
position: relative;
82+
background: var(--joy-background-blockquote);
83+
84+
& p:has(+ p) {
85+
margin-bottom: var(--space-m);
86+
}
87+
}
88+
89+
& blockquote::before {
90+
font-family: Arial;
91+
content: '\201C';
92+
color: var(--joy-color-quote);
93+
font-size: 4em;
94+
position: absolute;
95+
left: 10px;
96+
top: -10px;
97+
}
98+
99+
blockquote::after {
100+
content: '';
101+
}
102+
103+
& blockquote span {
104+
display: block;
105+
font-style: normal;
106+
font-weight: bold;
107+
margin-top: var(--space-s);
108+
}
63109
}

app/javascript/css/config/theme.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
--joy-background-header: var(--joy-color-200);
3232
--joy-background-banner: var(--joy-color-100);
3333
--joy-background-footer: var(--joy-color-200);
34+
--joy-background-blockquote: var(--joy-color-100);
3435

3536
--joy-background-mask: var(--color-darken);
3637
--joy-background-reset: white;
@@ -42,6 +43,7 @@
4243
--joy-background-inline-code: ghostwhite;
4344

4445
--joy-border-subtle: var(--joy-color-200);
46+
--joy-color-quote: var(--joy-color-600);
4547

4648
--joy-text: var(--color-dark);
4749
--joy-text-subtle: var(--color-stone-700);
@@ -73,6 +75,7 @@
7375
--joy-background-header: var(--color-slate-800);
7476
--joy-background-banner: var(--color-slate-900);
7577
--joy-background-footer: var(--color-slate-800);
78+
--joy-background-blockquote: var(--color-slate-800);
7679

7780
--joy-background-mask: var(--color-lighten);
7881
--joy-background-reset: var(--color-slate-950);

0 commit comments

Comments
 (0)