Skip to content

Commit 84b02ce

Browse files
Merge pull request #329 from jarrodmillman/kitchen-sink-admonitions
Prepare for better PST alignment
2 parents d7aac28 + b347218 commit 84b02ce

28 files changed

+1238
-702
lines changed

assets/js/shortcuts.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function setupShortcuts(shortcutDepth = 2) {
110110
if (shortcutsTarget) {
111111
const classElements = Array.from(document.querySelectorAll(classes));
112112
classElements.map((el) => {
113-
const title = el.textContent;
113+
const title = el.innerHTML;
114114
const elId = el.id;
115115
// Gets the element type (e.g. h2, h3)
116116
const elType = el.tagName;
@@ -152,7 +152,9 @@ function setupShortcuts(shortcutDepth = 2) {
152152

153153
// Removes the shortcuts container if no shortcuts exist.
154154
// Also removes the 'Get Help' link.
155-
const shortcuts = Array.from(document.querySelectorAll("#shortcuts div"));
155+
const shortcuts = Array.from(
156+
document.querySelectorAll("#shortcuts div:not(#shortcuts-header)"),
157+
);
156158
if (shortcuts.length == 0) {
157159
const shortcutsContainer = document.getElementById("shortcuts-container");
158160
if (shortcutsContainer) {

assets/theme-css/bulma.css

Lines changed: 3 additions & 258 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;
@@ -1594,7 +1340,7 @@ a.navbar-item:hover {
15941340
flex-basis: 0;
15951341
flex-grow: 1;
15961342
flex-shrink: 1;
1597-
padding: 0.75rem;
1343+
padding: 0.75rem 0.75rem 0rem 0.75rem;
15981344
}
15991345
.columns.is-mobile > .column.is-5 {
16001346
flex: none;
@@ -1609,7 +1355,7 @@ a.navbar-item:hover {
16091355
.columns {
16101356
margin-left: -0.75rem;
16111357
margin-right: -0.75rem;
1612-
margin-top: -0.75rem;
1358+
margin-top: 1rem;
16131359
}
16141360
.columns:last-child {
16151361
margin-bottom: -0.75rem;
@@ -1697,6 +1443,5 @@ a.navbar-item:hover {
16971443
}
16981444
}
16991445
.footer {
1700-
background-color: #fafafa;
17011446
padding: 3rem 1.5rem 6rem;
17021447
}

0 commit comments

Comments
 (0)