make code examples horizontally scrollable
This commit is contained in:
parent
fd3f37d744
commit
d6bb4e9911
|
@ -36,12 +36,16 @@ body {
|
|||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
button, textarea, input {
|
||||
button,
|
||||
textarea,
|
||||
input {
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
pre, code, textarea {
|
||||
pre,
|
||||
code,
|
||||
textarea {
|
||||
font-family: var(--font-monospace);
|
||||
line-height: var(--line-height);
|
||||
}
|
||||
|
@ -131,8 +135,7 @@ rkgk-throbber {
|
|||
background: var(--color-panel-background);
|
||||
border: none;
|
||||
border-radius: var(--panel-border-radius);
|
||||
box-shadow:
|
||||
0 0 0 1px var(--color-panel-border);
|
||||
box-shadow: 0 0 0 1px var(--color-panel-border);
|
||||
/* 4px 4px 0 0 var(--color-panel-border); */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
@ -146,7 +149,8 @@ hr {
|
|||
|
||||
/* Lists */
|
||||
|
||||
ul, ol {
|
||||
ul,
|
||||
ol {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
|
@ -156,13 +160,14 @@ pre:has(code) {
|
|||
background-color: var(--color-shaded-background);
|
||||
border-radius: 8px;
|
||||
padding: 1em 1em;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* Icons */
|
||||
|
||||
:root {
|
||||
--icon-rkgk-grayscale: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJtMCAwaDE2djE2aC0xNnoiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNhKSIgc3Ryb2tlPSIjMD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jLS42NjQ5LTEuMzI5ODEuMzAyMDktMi44OTQ0MyAxLjc4ODg2LTIuODk0NDNoOC43NjM5MyIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxnIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0ibTUuNSAxMi0yLjUgNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0ibTMgNWgxIi8+PC9nPjwvZz48L3N2Zz4=");
|
||||
--icon-external-link: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBzdHJva2U9IiMwMDAiPjxwYXRoIGQ9Im0xMC41IDl2Mi41aC02di02aDIuNSIvPjxwYXRoIGQ9Im03IDkgNC41LTQuNW0wIDBoLTMuNW0zLjUgMHYzLjUiLz48L2c+PC9zdmc+");
|
||||
}
|
||||
|
||||
.icon {
|
||||
|
@ -174,7 +179,10 @@ pre:has(code) {
|
|||
background-repeat: no-repeat;
|
||||
background-position: 50% 50%;
|
||||
|
||||
&.icon-rkgk-grayscale { background-image: var(--icon-rkgk-grayscale); }
|
||||
&.icon-external-link { background-image: var(--icon-external-link); }
|
||||
&.icon-rkgk-grayscale {
|
||||
background-image: var(--icon-rkgk-grayscale);
|
||||
}
|
||||
&.icon-external-link {
|
||||
background-image: var(--icon-external-link);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue