Code and image styles
This commit is contained in:
parent
e4da152de8
commit
59eaeb40ec
6 changed files with 155 additions and 22 deletions
|
|
@ -57,10 +57,10 @@
|
|||
--color-white: #FFFFFF;
|
||||
--color-dark-foreground: var(--color-neutral-50);
|
||||
--color-dark-background: var(--color-neutral-950);
|
||||
--color-dark-shade-1: var(--color-neutral-800);
|
||||
--color-dark-shade-2: var(--color-neutral-700);
|
||||
--color-dark-shade-3: var(--color-neutral-600);
|
||||
--color-dark-shade-4: var(--color-neutral-500);
|
||||
--color-dark-shade-1: var(--color-neutral-900);
|
||||
--color-dark-shade-2: var(--color-neutral-800);
|
||||
--color-dark-shade-3: var(--color-neutral-700);
|
||||
--color-dark-shade-4: var(--color-neutral-600);
|
||||
--color-dark-primary: var(--color-argon-400);
|
||||
--color-dark-secondary: var(--color-krypton-300);
|
||||
--color-dark-error: var(--color-red-500);
|
||||
|
|
@ -326,14 +326,29 @@ h6,
|
|||
line-height: var();
|
||||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
pre {
|
||||
font-family: "Departure Mono", ui-monospace, monospace;
|
||||
display: inline-block;
|
||||
font-size: 0.8em;
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
border-radius: 1rem;
|
||||
background-color: var(--color-shade-1);
|
||||
}
|
||||
pre code {
|
||||
background-color: initial;
|
||||
border-radius: initial;
|
||||
padding: initial;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
font-family: "Departure Mono", ui-monospace, monospace;
|
||||
font-size: 0.8em;
|
||||
background-color: var(--color-shade-1);
|
||||
border-radius: 0.2em;
|
||||
padding: 0 0.2em;
|
||||
}
|
||||
|
||||
table tr th {
|
||||
text-align: left;
|
||||
|
|
@ -356,4 +371,30 @@ a:visited:hover, a:visited:active, a:visited:focus {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
figure {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
figure img {
|
||||
width: 100%;
|
||||
max-height: 30vh;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
}
|
||||
figure img.glitch {
|
||||
filter: url("glitch.svg#glitch");
|
||||
}
|
||||
|
||||
img {
|
||||
width: 80%;
|
||||
max-height: 30vh;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
img.glitch {
|
||||
filter: url("glitch.svg#glitch");
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=main.css.map */
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -332,13 +332,29 @@ h6,
|
|||
line-height: var();
|
||||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
pre {
|
||||
font-family: "Departure Mono", ui-monospace, monospace;
|
||||
display: inline-block;
|
||||
font-size: 0.8em;
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
border-radius: 1rem;
|
||||
background-color: var(--color-shade-1);
|
||||
|
||||
code {
|
||||
background-color: initial;
|
||||
border-radius: initial;
|
||||
padding: initial;
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
font-family: "Departure Mono", ui-monospace, monospace;
|
||||
font-size: 0.8em;
|
||||
background-color: var(--color-shade-1);
|
||||
border-radius: 0.2em;
|
||||
padding: 0 0.2em;
|
||||
}
|
||||
|
||||
table {
|
||||
|
|
@ -371,4 +387,33 @@ a {
|
|||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
max-height: 30vh;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
|
||||
&.glitch {
|
||||
filter: url("glitch.svg#glitch");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 80%;
|
||||
max-height: 30vh;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
margin: 0 auto;
|
||||
|
||||
&.glitch {
|
||||
filter: url("glitch.svg#glitch");
|
||||
}
|
||||
}
|
||||
|
|
@ -326,14 +326,29 @@ h6,
|
|||
line-height: var();
|
||||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
pre {
|
||||
font-family: "Departure Mono", ui-monospace, monospace;
|
||||
display: inline-block;
|
||||
font-size: 0.8em;
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
border-radius: 1rem;
|
||||
background-color: var(--color-shade-1);
|
||||
}
|
||||
pre code {
|
||||
background-color: initial;
|
||||
border-radius: initial;
|
||||
padding: initial;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
code,
|
||||
.code {
|
||||
font-family: "Departure Mono", ui-monospace, monospace;
|
||||
font-size: 0.8em;
|
||||
background-color: var(--color-shade-1);
|
||||
border-radius: 0.2em;
|
||||
padding: 0 0.2em;
|
||||
}
|
||||
|
||||
table tr th {
|
||||
text-align: left;
|
||||
|
|
@ -356,6 +371,32 @@ a:visited:hover, a:visited:active, a:visited:focus {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
figure {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
figure img {
|
||||
width: 100%;
|
||||
max-height: 30vh;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
}
|
||||
figure img.glitch {
|
||||
filter: url("glitch.svg#glitch");
|
||||
}
|
||||
|
||||
img {
|
||||
width: 80%;
|
||||
max-height: 30vh;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
img.glitch {
|
||||
filter: url("glitch.svg#glitch");
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
@ -394,7 +435,7 @@ a.a-visited, a.a-visited:hover, a.a-visited:active, a.a-visited:focus {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
code,
|
||||
pre,
|
||||
.code {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -51,7 +51,7 @@ a {
|
|||
}
|
||||
}
|
||||
|
||||
code,
|
||||
pre,
|
||||
.code {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
|
|
@ -60,14 +60,14 @@ code,
|
|||
.layout-column {
|
||||
display: flex;
|
||||
|
||||
& > * {
|
||||
&>* {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: $breakpoint-md) {
|
||||
flex-wrap: wrap;
|
||||
|
||||
& > * {
|
||||
&>* {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
@ -77,7 +77,7 @@ code,
|
|||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
& > * {
|
||||
&>* {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ code,
|
|||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
|
||||
& > * {
|
||||
&>* {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
@ -102,7 +102,7 @@ code,
|
|||
gap: 1rem;
|
||||
margin-top: 2rem;
|
||||
|
||||
& > span {
|
||||
&>span {
|
||||
width: 100%;
|
||||
font-size: var(--text-xl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue