mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Make CSS simpler again
This commit is contained in:
parent
fee81f47ce
commit
1091773e9f
6 changed files with 21 additions and 42 deletions
|
@ -22,7 +22,9 @@ pub fn handler<B: 'static>(
|
||||||
asset::Css::Shared("not-found.css"),
|
asset::Css::Shared("not-found.css"),
|
||||||
array::from_fn(|_| {
|
array::from_fn(|_| {
|
||||||
(html! {
|
(html! {
|
||||||
.frame { "404" }
|
.frame {
|
||||||
|
a href="/" { "404" }
|
||||||
|
}
|
||||||
.square .black {}
|
.square .black {}
|
||||||
.square .magenta {}
|
.square .magenta {}
|
||||||
.square .magenta {}
|
.square .magenta {}
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
html {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.face {
|
.face {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
|
|
@ -1,28 +1,11 @@
|
||||||
html {
|
html {
|
||||||
font-size: 450%;
|
font-size: min(9vw, 9vh, 4.5em);
|
||||||
overscroll-behavior: none;
|
overscroll-behavior: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 400px) {
|
|
||||||
html {
|
|
||||||
font-size: 200%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 800px) and (min-width: 400px) {
|
|
||||||
html {
|
|
||||||
font-size: 300%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
/* Black on a white background. */
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
/* The frame changes color only. */
|
|
||||||
color: black;
|
color: black;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame {
|
.frame {
|
||||||
|
@ -36,6 +19,10 @@ a:hover {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.frame:hover {
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
.scene {
|
.scene {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
font-display: block;
|
font-display: block;
|
||||||
font-family: "BaiJam";
|
font-family: "BaiJam";
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
src: url("/assets/BaiJamjureeMedium.woff2");
|
src: url("/assets/BaiJamjureeMedium.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-display: block;
|
font-display: block;
|
||||||
font-family: "BaiJam";
|
font-family: "BaiJam";
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
src: url("/assets/BaiJamjureeBold.woff2");
|
src: url("/assets/BaiJamjureeBold.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
@ -25,11 +25,5 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: yellow;
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
}
|
|
@ -26,7 +26,7 @@ nav {
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
color: black;
|
color: black;
|
||||||
font-style: normal;
|
font-weight: bold;
|
||||||
margin-right: .6em;
|
margin-right: .6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,14 @@ nav a:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin-bottom: 3em;
|
margin-bottom: 3em;
|
||||||
}
|
}
|
|
@ -1,11 +1,3 @@
|
||||||
a:hover {
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.frame:hover {
|
|
||||||
background-color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.face::after {
|
.face::after {
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
|
@ -71,4 +63,4 @@ a:hover {
|
||||||
.left::after {
|
.left::after {
|
||||||
background: linear-gradient(to bottom, cyan, blue);
|
background: linear-gradient(to bottom, cyan, blue);
|
||||||
mask-image: linear-gradient(to left, blue, transparent);
|
mask-image: linear-gradient(to left, blue, transparent);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue