Skip to content

Commit 0debcfa

Browse files
author
pedro
committed
fix poem example styling 2
1 parent 03cc84f commit 0debcfa

2 files changed

Lines changed: 154 additions & 0 deletions

File tree

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/* ============================================================
2+
demo.css — styles for the container-writer demo
3+
============================================================ */
4+
5+
body {
6+
font-family: "Baskervville", "TeX Gyre Pagella", "Libertinus Serif", serif;
7+
font-size: 1rem;
8+
line-height: 1.6;
9+
max-width: 40em;
10+
margin: 2em auto;
11+
padding: 0 1em;
12+
}
13+
14+
.epigraph {
15+
margin: 2em 4em;
16+
font-style: italic;
17+
color: #444;
18+
}
19+
20+
.epigraph p {
21+
margin: 0.25em 0;
22+
}
23+
24+
.dedication {
25+
margin: 2em auto;
26+
text-align: center;
27+
font-style: italic;
28+
}
29+
30+
.abstract {
31+
margin: 1.5em 2em;
32+
font-size: 0.95em;
33+
border-left: 3px solid #ccc;
34+
padding-left: 1em;
35+
}
36+
37+
.sidebar {
38+
background: #f5f5f5;
39+
border-left: 3px solid #ccc;
40+
padding: 0.1em 0.4em;
41+
font-size: 0.9em;
42+
}
43+
44+
.highlight {
45+
background: #fffbcc;
46+
padding: 0.1em 0.2em;
47+
}
48+
49+
/* --- Alerts ------------------------------------------------ */
50+
51+
.note {
52+
margin: 1.25rem 0;
53+
border-radius: .375rem;
54+
border-left: 5px solid var(--color);
55+
border-right: 1px solid rgba(210, 215, 220, 0.5);
56+
border-top: 1px solid rgba(210, 215, 220, 0.5);
57+
border-bottom: 1px solid rgba(210, 215, 220, 0.5);
58+
background-color: white;
59+
--color: #0969da;
60+
--bg: #f6f8fa;
61+
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230969da'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5h.25V8.5h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E");
62+
63+
}
64+
65+
.note .title {
66+
display: flex;
67+
align-items: center;
68+
gap: 0.5em;
69+
font-weight: 600;
70+
font-size: .9rem;
71+
padding: .4em .7em .4em 2rem;
72+
color: var(--color);
73+
background-color: var(--bg);
74+
background-image: var(--icon);
75+
background-repeat: no-repeat;
76+
background-position: 0.7rem center;
77+
background-size: 1rem;
78+
}
79+
80+
/* --- Editorial margin notes -------------------------------- */
81+
82+
.marginnoteopen {
83+
display: inline;
84+
color: #e06c00;
85+
font-size: 0.75em;
86+
font-family: monospace;
87+
}
88+
.marginnoteopen::before { content: "✎ "; }
89+
90+
.marginnoteclosed {
91+
display: inline;
92+
color: #999;
93+
font-size: 0.75em;
94+
font-family: monospace;
95+
}
96+
.marginnoteclosed::before { content: "✓ "; }
97+
98+
.marginnoteopenblock {
99+
display: block;
100+
text-align: right;
101+
color: #e06c00;
102+
font-size: 0.75em;
103+
font-family: monospace;
104+
}
105+
.marginnoteopenblock::before { content: "✎ "; }
106+
107+
.marginnoteclosedblock {
108+
display: block;
109+
text-align: right;
110+
color: #999;
111+
font-size: 0.75em;
112+
font-family: monospace;
113+
}
114+
.marginnoteclosedblock::before { content: "✓ "; }
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
body {
2+
max-width: 650px;
3+
margin: 0 auto;
4+
padding: 2rem;
5+
font-family: "Baskervville", "TeX Gyre Pagella", "Libertinus Serif", serif;
6+
}
7+
8+
.verse p {
9+
margin-left: 1.5em;
10+
margin-top: 0;
11+
margin-bottom: 0;
12+
}
13+
14+
.verse div {
15+
margin-bottom: 1em;
16+
page-break-inside: avoid;
17+
font-style: italic;
18+
}
19+
20+
.verse p + p {
21+
margin-top: 1em;
22+
}
23+
24+
.poemauthor {
25+
display: block;
26+
text-align: right;
27+
font-style: italic;
28+
font-size: 0.9rem;
29+
margin-top: 0.5rem;
30+
}
31+
32+
.poemtitle {
33+
display: block;
34+
font-weight: bold;
35+
font-size: 1.3em;
36+
text-align: center;
37+
margin-top: 1.5rem;
38+
margin-bottom: 1rem;
39+
font-family: serif;
40+
}

0 commit comments

Comments
 (0)