Skip to content

Commit 3542e09

Browse files
committed
Add kitchen-sink admonitions and typography
1 parent d7aac28 commit 3542e09

15 files changed

Lines changed: 478 additions & 397 deletions

File tree

assets/theme-css/bulma.css

Lines changed: 1 addition & 256 deletions
Original file line numberDiff line numberDiff line change
@@ -153,40 +153,8 @@
153153
font-size: 1em;
154154
margin: 0;
155155
padding: 0;
156-
} /*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
157-
blockquote,
158-
body,
159-
dd,
160-
dl,
161-
dt,
162-
figure,
163-
h1,
164-
h2,
165-
h3,
166-
h4,
167-
h5,
168-
h6,
169-
hr,
170-
html,
171-
iframe,
172-
legend,
173-
li,
174-
ol,
175-
p,
176-
pre,
177-
ul {
178-
margin: 0;
179-
padding: 0;
180-
}
181-
h1,
182-
h2,
183-
h3,
184-
h4,
185-
h5,
186-
h6 {
187-
font-size: 100%;
188-
font-weight: 400;
189156
}
157+
/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
190158
ul {
191159
list-style: none;
192160
}
@@ -223,19 +191,6 @@ td:not([align]),
223191
th:not([align]) {
224192
text-align: inherit;
225193
}
226-
html {
227-
background-color: #fff;
228-
font-size: 16px;
229-
-moz-osx-font-smoothing: grayscale;
230-
-webkit-font-smoothing: antialiased;
231-
min-width: 300px;
232-
overflow-x: hidden;
233-
overflow-y: scroll;
234-
text-rendering: optimizeLegibility;
235-
-webkit-text-size-adjust: 100%;
236-
-moz-text-size-adjust: 100%;
237-
text-size-adjust: 100%;
238-
}
239194
article,
240195
aside,
241196
figure,
@@ -244,55 +199,6 @@ header,
244199
section {
245200
display: block;
246201
}
247-
body,
248-
button,
249-
input,
250-
select {
251-
font-family:
252-
BlinkMacSystemFont,
253-
-apple-system,
254-
"Segoe UI",
255-
Roboto,
256-
Oxygen,
257-
Ubuntu,
258-
Cantarell,
259-
"Fira Sans",
260-
"Droid Sans",
261-
"Helvetica Neue",
262-
Helvetica,
263-
Arial,
264-
sans-serif;
265-
}
266-
code,
267-
pre {
268-
-moz-osx-font-smoothing: auto;
269-
-webkit-font-smoothing: auto;
270-
font-family: monospace;
271-
}
272-
body {
273-
color: #4a4a4a;
274-
font-size: 1em;
275-
font-weight: 400;
276-
line-height: 1.5;
277-
}
278-
a {
279-
color: #485fc7;
280-
cursor: pointer;
281-
text-decoration: none;
282-
}
283-
a strong {
284-
color: currentColor;
285-
}
286-
a:hover {
287-
color: #363636;
288-
}
289-
code {
290-
background-color: #f5f5f5;
291-
color: #da1039;
292-
font-size: 0.875em;
293-
font-weight: 400;
294-
padding: 0.25em 0.5em 0.25em;
295-
}
296202
hr {
297203
background-color: #f5f5f5;
298204
border: none;
@@ -315,26 +221,6 @@ span {
315221
font-style: inherit;
316222
font-weight: inherit;
317223
}
318-
strong {
319-
color: #363636;
320-
font-weight: 700;
321-
}
322-
pre {
323-
-webkit-overflow-scrolling: touch;
324-
background-color: #f5f5f5;
325-
color: #4a4a4a;
326-
font-size: 0.875em;
327-
overflow-x: auto;
328-
padding: 1.25rem 1.5rem;
329-
white-space: pre;
330-
word-wrap: normal;
331-
}
332-
pre code {
333-
background-color: transparent;
334-
color: currentColor;
335-
font-size: 1em;
336-
padding: 0;
337-
}
338224
table td,
339225
table th {
340226
vertical-align: top;
@@ -518,145 +404,6 @@ a.box:active {
518404
max-width: 1344px;
519405
}
520406
}
521-
.content li + li {
522-
margin-top: 0.25em;
523-
}
524-
.content blockquote:not(:last-child),
525-
.content dl:not(:last-child),
526-
.content ol:not(:last-child),
527-
.content p:not(:last-child),
528-
.content pre:not(:last-child),
529-
.content table:not(:last-child),
530-
.content ul:not(:last-child) {
531-
margin-bottom: 1em;
532-
}
533-
.content h1,
534-
.content h2,
535-
.content h3,
536-
.content h4,
537-
.content h5,
538-
.content h6 {
539-
color: #363636;
540-
font-weight: 600;
541-
line-height: 1.125;
542-
}
543-
.content h1 {
544-
font-size: 2em;
545-
margin-bottom: 0.5em;
546-
}
547-
.content h1:not(:first-child) {
548-
margin-top: 1em;
549-
}
550-
.content h2 {
551-
font-size: 1.75em;
552-
margin-bottom: 0.5714em;
553-
}
554-
.content h2:not(:first-child) {
555-
margin-top: 1.1428em;
556-
}
557-
.content h3 {
558-
font-size: 1.5em;
559-
margin-bottom: 0.6666em;
560-
}
561-
.content h3:not(:first-child) {
562-
margin-top: 1.3333em;
563-
}
564-
.content h4 {
565-
font-size: 1.25em;
566-
margin-bottom: 0.8em;
567-
}
568-
.content h5 {
569-
font-size: 1.125em;
570-
margin-bottom: 0.8888em;
571-
}
572-
.content h6 {
573-
font-size: 1em;
574-
margin-bottom: 1em;
575-
}
576-
.content blockquote {
577-
background-color: #f5f5f5;
578-
border-left: 5px solid #dbdbdb;
579-
padding: 1.25em 1.5em;
580-
}
581-
.content ol {
582-
list-style-position: outside;
583-
margin-left: 2em;
584-
margin-top: 1em;
585-
}
586-
.content ol:not([type]) {
587-
list-style-type: decimal;
588-
}
589-
.content ul {
590-
list-style: disc outside;
591-
margin-left: 2em;
592-
margin-top: 1em;
593-
}
594-
.content ul ul {
595-
list-style-type: circle;
596-
margin-top: 0.5em;
597-
}
598-
.content ul ul ul {
599-
list-style-type: square;
600-
}
601-
.content dd {
602-
margin-left: 2em;
603-
}
604-
.content figure {
605-
margin-left: 2em;
606-
margin-right: 2em;
607-
text-align: center;
608-
}
609-
.content figure:not(:first-child) {
610-
margin-top: 2em;
611-
}
612-
.content figure:not(:last-child) {
613-
margin-bottom: 2em;
614-
}
615-
.content figure img {
616-
display: inline-block;
617-
}
618-
.content figure figcaption {
619-
font-style: italic;
620-
}
621-
.content pre {
622-
-webkit-overflow-scrolling: touch;
623-
overflow-x: auto;
624-
padding: 1.25em 1.5em;
625-
white-space: pre;
626-
word-wrap: normal;
627-
}
628-
.content sub,
629-
.content sup {
630-
font-size: 75%;
631-
}
632-
.content table {
633-
width: 100%;
634-
}
635-
.content table td,
636-
.content table th {
637-
border: 1px solid #dbdbdb;
638-
border-width: 0 0 1px;
639-
padding: 0.5em 0.75em;
640-
vertical-align: top;
641-
}
642-
.content table th {
643-
color: #363636;
644-
}
645-
.content table th:not([align]) {
646-
text-align: inherit;
647-
}
648-
.content table thead td,
649-
.content table thead th {
650-
border-width: 0 0 2px;
651-
color: #363636;
652-
}
653-
.content table tbody tr:last-child td,
654-
.content table tbody tr:last-child th {
655-
border-bottom-width: 0;
656-
}
657-
.content .tabs li + li {
658-
margin-top: 0;
659-
}
660407
.icon {
661408
align-items: center;
662409
display: inline-flex;
@@ -868,7 +615,6 @@ a.tag:hover {
868615
vertical-align: middle;
869616
}
870617
.title {
871-
color: #363636;
872618
font-size: 2rem;
873619
font-weight: 600;
874620
line-height: 1.125;
@@ -1697,6 +1443,5 @@ a.navbar-item:hover {
16971443
}
16981444
}
16991445
.footer {
1700-
background-color: #fafafa;
17011446
padding: 3rem 1.5rem 6rem;
17021447
}

assets/theme-css/code-highlight.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Generated using:
44
55
hugo gen chromastyles --style=witchhazel > /assets/css/code-highlight.css
66
7-
We replaced the background color, `#433e56`, with `var(--colorPrimaryDark)`.
7+
We replaced the color and background color with pst ones.
88
99
*/
1010
/* Background */
1111
.chroma {
12-
color: #f8f8f2;
13-
background-color: var(--colorPrimaryDark);
12+
color: var(--pst-color-text-base);
13+
background-color: var(--pst-color-surface);
1414
}
1515
/* Error */
1616
.chroma .err {

assets/theme-css/content.css

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -30,67 +30,3 @@
3030
margin: 0 auto;
3131
}
3232
}
33-
34-
.content-container h1,
35-
h2,
36-
h3,
37-
h4,
38-
h5,
39-
h6 {
40-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
41-
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
42-
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
43-
font-weight: bold;
44-
text-transform: uppercase;
45-
color: var(--colorHeading);
46-
}
47-
48-
.content-container h1 {
49-
font-size: 2em;
50-
letter-spacing: 1.5px;
51-
}
52-
53-
.content-container h2 {
54-
font-size: 1.4em;
55-
letter-spacing: 1.3px;
56-
margin-top: 30px;
57-
}
58-
59-
.content-container h3 {
60-
font-size: 1.2em;
61-
letter-spacing: 1.3px;
62-
margin-top: 25px;
63-
}
64-
65-
.content-container h4 {
66-
font-size: 1.1em;
67-
letter-spacing: 1.2px;
68-
margin-top: 23px;
69-
}
70-
71-
.content-container h5 {
72-
font-size: 1em;
73-
letter-spacing: 1.1px;
74-
margin-top: 22px;
75-
}
76-
77-
.content-container h6 {
78-
font-size: 0.9em;
79-
letter-spacing: 1px;
80-
margin-top: 21px;
81-
}
82-
83-
.content-container .name.title {
84-
/* Override bulma's .title selector. */
85-
color: var(--colorHeading);
86-
}
87-
88-
/* Override bulma .label font-weight, which otherwise impacts on g.label used by mermaid */
89-
g.label {
90-
font-weight: normal;
91-
}
92-
93-
strong {
94-
/* Override bulma's STRONG selector. */
95-
color: var(--colorText);
96-
}

0 commit comments

Comments
 (0)