Add box shadow

This commit is contained in:
Jeremy Thomas 2024-06-27 04:19:20 +01:00
parent ff3ffb12ef
commit 7ac0831470
6 changed files with 27 additions and 166 deletions

View File

@ -24,129 +24,3 @@
"pink": ["#ffeef8", "#fedbf0", "#f9b3dd", "#f692ce", "#ec6cb9", "#ea4aaa", "#d03592", "#b93a86", "#99306f", "#6d224f"] "pink": ["#ffeef8", "#fedbf0", "#f9b3dd", "#f692ce", "#ec6cb9", "#ea4aaa", "#d03592", "#b93a86", "#99306f", "#6d224f"]
*/ */
} }
.prismjs {
color: var(--gh-text);
font-size: 0.875em;
position: relative;
> code {
--lang: "Code";
--language: var(--brand);
background-color: var(--gh-dark);
border-radius: 0;
display: block;
font-size: 1rem;
overflow: auto;
padding: 1em 1.25em;
margin: 0.5rem -0.5rem -0.5rem;
}
& > .language-css {
--lang: "CSS";
--language: var(--gh-blue);
}
& > .language-html {
--lang: "HTML";
--language: var(--gh-orange);
}
.token {
/* CSS */
&.color {
&.hexcode {
color: var(--gh-pink);
}
}
&.comment {
color: var(--gh-dimmed);
}
&.function {
color: var(--gh-yellow);
}
&.number {
color: var(--gh-green);
}
&.property {
color: var(--gh-blue);
}
&.punctuation {
color: var(--gh-dimmed);
}
&.selector {
color: var(--gh-green);
&.attribute {
color: var(--gh-pink);
&.attr-name {
color: var(--gh-orange);
}
&.punctuation {
color: var(--gh-dimmed);
}
}
&.class {
color: var(--gh-purple);
}
&.combinator {
color: var(--gh-pink);
}
&.pseudo-class {
color: var(--gh-purple);
}
&.punctuation {
color: var(--gh-dimmed);
}
}
&.atrule {
color: var(--gh-purple);
}
&.string {
color: var(--gh-blue);
}
&.unit {
color: var(--gh-red);
}
&.variable {
color: var(--gh-orange);
}
/* HTML */
&.tag {
color: var(--gh-green);
&.attr-name {
color: var(--gh-blue);
}
&.attr-value {
color: var(--gh-purple);
}
&.punctuation {
color: var(--gh-dimmed);
&.attr-equals {
color: var(--gh-pink);
}
}
}
}
}

View File

@ -12,7 +12,8 @@
} }
.customizer { .customizer {
background: var(--bulma-background); background: var(--bulma-scheme-main);
box-shadow: var(--bulma-shadow);
border-radius: 0.5rem; border-radius: 0.5rem;
transform-origin: bottom right; transform-origin: bottom right;
transition-duration: 300ms; transition-duration: 300ms;

View File

@ -1,8 +1,6 @@
import { useContext, useEffect, useState } from "react"; import { useContext, useEffect, useState } from "react";
import { CustomizerContext } from "../App"; import { CustomizerContext } from "../App";
import Highlighter from "components/Highlighter";
import cn from "./Export.module.css"; import cn from "./Export.module.css";
function Export() { function Export() {
@ -114,11 +112,7 @@ function Export() {
)} )}
</div> </div>
{css && ( {css && <pre className={cn.pre}>{css.trim()}</pre>}
<Highlighter PreTag="div" language="css">
{css.trim()}
</Highlighter>
)}
</div> </div>
); );
} }

View File

@ -27,3 +27,10 @@
.go { .go {
margin-top: 0.5rem; margin-top: 0.5rem;
} }
.pre {
background-color: var(--gh-dark);
margin: 0.5rem -0.5rem;
color: var(--gh-text);
font-size: 1rem;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long