web-of-things/a1/assets/styles.css
2026-02-05 17:19:25 +01:00

161 lines
2.6 KiB
CSS

:root {
--font-mono: "Fira Code VF", "Fira Code", monospace;
--font-sans: "Fira Sans", sans-serif;
--primary-dark: #242038;
--primary: #9067c6;
--bg-dark: #100d11;
--bg: #110f1a;
--bg-success: #7ceec8;
--gray-700: oklch(37.3% 0.034 259.733);
}
html,
body {
margin: 0;
width: 100%;
height: 100%;
background: var(--bg);
font-family: var(--font-mono);
}
code {
font-variant-ligatures: none;
}
* {
user-select: none;
box-sizing: border-box;
color: white;
text-decoration: none;
padding: 0;
margin: 0;
border: none;
background: none;
}
.bg-gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, var(--primary), var(--bg));
opacity: 0.06;
pointer-events: none;
}
nav {
z-index: 100;
/*background: var(--bg);*/
top: 0;
left: 50%;
transform: translateX(-50%);
position: fixed;
flex: 1;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: 70rem;
padding: 0.5rem;
margin: auto;
text-transform: uppercase;
display: flex;
}
.nav-spacer {
height: 3rem;
}
nav .links {
display: flex;
gap: 0.5rem;
}
.font-bold {
font-weight: bold;
}
.text-gray-500 {
color: #999;
}
.btn {
isolation: isolate;
position: relative;
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.5rem;
}
.btn::before {
z-index: -1;
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0;
background: var(--primary);
transition: all 0.3s ease;
}
.btn:hover::before {
width: 100%;
height: 100%;
}
main {
max-width: 70rem;
margin: auto;
padding: 1rem;
}
.rounded-full {
border-radius: 999px;
}
.card {
display: flex;
gap: 1rem;
padding: 1rem;
border-radius: 0.5rem;
margin: 1rem 0;
background: var(--bg-dark);
}
.card > img {
height: 5rem;
width: 5rem;
}
.card .contents {
flex: 1;
flex-direction: column;
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.btn-link {
border: 1px solid var(--gray-700);
}
.btn-link::after {
content: "";
width: 1rem;
height: 1rem;
background-image: url("/assets/icon-right.svg");
}
.btn-link-out {
border: 1px solid var(--gray-700);
}
.btn-link-out::after {
content: "";
width: 1rem;
height: 1rem;
background-image: url("/assets/icon-link.svg");
}
/*main.profile {
background: var(--bg-dark);
}*/