Skip to content

Commit

Permalink
hack: get background for all slides to be R0 world for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-web3 committed Jul 5, 2024
1 parent 22bb7f5 commit db29dbc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
44 changes: 35 additions & 9 deletions tools/styles/base-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,19 @@
--r-padding: 24px;
}

/* TODO place this in r0-theme, needs to work on local and hosted static site! */
.reveal .slide-background-content {
background-image: url("/tools/assets/r0/r0_planet.svg");
background-size: contain;
opacity: 0.3;
}

/* box sizing;
https://css-tricks.com/box-sizing/#aa-universal-box-sizing-with-inheritance */
html {
box-sizing: border-box;
}

*,
*:before,
*:after {
Expand Down Expand Up @@ -92,7 +100,7 @@ section.has-light-background h6 {
}

.reveal .slides section,
.reveal .slides section > section {
.reveal .slides section>section {
/* line-height: 1.3; */
font-weight: inherit;
}
Expand Down Expand Up @@ -257,54 +265,71 @@ nuke-flex[right] {
.mermaid.size-10 {
width: 10%;
}

.mermaid.size-20 {
width: 20%;
}

.mermaid.size-30 {
width: 30%;
}

.mermaid.size-40 {
width: 40%;
}

.mermaid.size-50 {
width: 50%;
}

.mermaid.size-60 {
width: 60%;
}

.mermaid.size-70 {
width: 70%;
}

.mermaid.size-80 {
width: 80%;
}

.mermaid.size-90 {
width: 90%;
}

.mermaid.size-110 {
width: 110%;
}

.mermaid.size-120 {
width: 120%;
}

.mermaid.size-130 {
width: 130%;
}

.mermaid.size-140 {
width: 140%;
}

.mermaid.size-150 {
width: 150%;
}

.mermaid.size-160 {
width: 160%;
}

.mermaid.size-170 {
width: 170%;
}

.mermaid.size-180 {
width: 180%;
}

.mermaid.size-190 {
width: 190%;
}
Expand Down Expand Up @@ -349,7 +374,7 @@ nuke-flex[right] {
margin-left: -2em;
}

.reveal ul ~ ol {
.reveal ul~ol {
margin-left: 0;
}

Expand Down Expand Up @@ -377,15 +402,15 @@ nuke-flex[right] {
text-align: left;
}

.reveal ol > li {
.reveal ol>li {
counter-increment: count-ol;
}

.reveal * li ol > li {
.reveal * li ol>li {
counter-increment: count-ol-ol;
}

.reveal ul > li::before {
.reveal ul>li::before {
font-size: 0.8em;
font-weight: bold;
line-height: 1.75em;
Expand All @@ -397,7 +422,7 @@ nuke-flex[right] {
color: var(--r-heading-color);
}

.reveal ol > li::before {
.reveal ol>li::before {
font-size: 0.75em;
position: relative;
font-family: monospace;
Expand All @@ -408,11 +433,11 @@ nuke-flex[right] {
font-weight: bold;
}

.reveal ol > li::before {
.reveal ol>li::before {
content: counters(count-ol, '.') ': ';
}

.reveal * li ol > li::before {
.reveal * li ol>li::before {
content: counters(count-ol-ol, '.') ': ';
}

Expand All @@ -428,6 +453,7 @@ nuke-flex[right] {
.reveal blockquote * {
margin: 0em !important;
}

.reveal q {
font-style: italic;
}
Expand Down Expand Up @@ -604,4 +630,4 @@ nuke-flex[right] {
font-family: 'JetBrains Mono';
font-style: italic;
src: url('./fonts/jetbrains-mono/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
}
}
2 changes: 1 addition & 1 deletion tools/styles/r0-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
background-image: url("/tools/assets/r0/r0_planet.svg");
background-size: contain;
opacity: 0.3;
}
}

0 comments on commit db29dbc

Please sign in to comment.