cbax_dev/static/css/styles.css
2024-10-22 18:38:28 -04:00

183 lines
3.5 KiB
CSS

@import url('/res/css/nord.css');
@font-face {
font-family: 'Intel One Mono Regular';
font-style: normal;
font-weight: normal;
src: local('Intel One Mono Regular'), url('/res/woff/im.woff2') format('woff2');
}
@font-face {
font-family: 'Sans Forgetica Regular';
font-style: normal;
font-weight: normal;
src: local('Sans Forgetica Regular'), url('/res/woff/sf.woff') format('woff');
}
:root {
--bg-accent: var(--nord2);
--bg-main: var(--nord0);
--text-primary: var(--nord4);
--highlight-primary: #00fcff;
--highlight-secondary: var(--nord5);
--card-margin: 2svh;
--card-radius: 15px;
--card-shadow-size: 5px;
font-family: "Intel One Mono Regular", monospace, sans-serif;
scrollbar-width: none;
background-color: var(--base);
color: var(--text);
}
body {
background: var(--bg-accent);
padding: 0px;
margin: 0px;
color: var(--text-primary);
}
h1 {
font-family: 'Sans Forgetica Regular';
font-size: 4em;
color: var(--highlight-primary);
text-shadow: #ededed 3px -3px;
margin-top: 2svh;
margin-bottom: 2svh;
}
span {
display: inline-block;
}
.container {
display: flex;
flex-flow: column;
height: 100svh;
}
figure {
display: inline-block;
margin: 20px; /* adjust as needed */
}
figure img {
width: 10vw;
height: auto;
border-radius: var(--card-radius);
vertical-align: top;
}
figure figcaption {
width: 10vw;
text-align: center;
}
.main {
flex: 1 1 auto;
border-radius: var(--card-radius);
margin-top: var(--card-margin);
margin-left: var(--card-margin);
margin-right: var(--card-margin);
margin-bottom: var(--card-margin);
padding: 2svh;
/*height: 78svh;*/
background: var(--bg-main);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-shadow: var(--highlight-primary) calc(var(--card-shadow-size) * -1) var(--card-shadow-size);
}
.card {
display: flex;
flex-wrap: wrap;
}
.article {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 1vw;
}
footer {
flex: 0 1 15svh;
border-radius: var(--card-radius);
margin-left: var(--card-margin);
margin-right: var(--card-margin);
margin-bottom: var(--card-margin);
padding: 1svh;
background: var(--bg-main);
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 0.25vw;
box-shadow: var(--highlight-secondary) calc(var(--card-shadow-size) * -1) var(--card-shadow-size);
}
a {
color: var(--text-primary);
text-decoration: underline var(--highlight-primary);
}
a:visited {
color: #444;
text-decoration: underline var(--highlight-primary);
}
td:nth-child(1) {
font-weight: 900;
word-break: keep-all;
}
td:nth-child(2) {
padding-left: 0.5em;
word-break: break-all;
}
fieldset {
border-color: var(--bg-accent);
border-radius: var(--card-radius);
}
.fancy {
background-image: linear-gradient(
to right,
var(--highlight-primary),
var(--highlight-primary) 50%,
#ededed 50%
);
text-decoration: underline var(--highlight-primary);
background-size: 200% 100%;
background-position: -100%;
display: inline-block;
padding: 0px 0;
position: relative;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: all 0.3s ease-in-out;
}
.fancy:before {
content: '';
background: var(--highlight-primary);
display: block;
position: absolute;
bottom: 0px;
left: 0;
width: 0;
height: 3px;
transition: all 0.3s ease-in-out;
}
.fancy:hover {
background-position: 0;
}
.fancy:hover::before {
width: 100%;
}