refinement/static/style.css

263 lines
4.4 KiB
CSS
Raw Normal View History

2024-10-15 15:59:34 -03:00
@font-face {
2025-02-16 11:23:01 -03:00
font-family: Lilex;
src: url(./fonts/Lilex-Regular.ttf) format("truetype");
2024-10-15 15:59:34 -03:00
}
@font-face {
2025-02-16 11:23:01 -03:00
font-family: "Terminess Nerd Font";
src: url("./fonts/TerminessNerdFont-Regular.ttf") format("truetype");
2024-10-15 15:59:34 -03:00
}
2025-02-16 11:23:01 -03:00
:root {
--font-color: #aeaeae;
--hover-color: #ebebeb;
--background-color: #1e1e1e;
--transition-time: 0.2s;
}
2024-10-15 15:59:34 -03:00
2025-02-16 11:23:01 -03:00
body {
font-family: Lilex;
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--background-color);
color: var(--font-color);
2024-10-15 15:59:34 -03:00
}
2025-02-09 18:32:55 -03:00
.image-container {
2025-02-16 11:23:01 -03:00
width: 8rem;
height: 8rem;
border-radius: 3rem;
overflow: hidden;
position: relative;
2025-02-09 18:32:55 -03:00
}
img {
2025-02-16 11:23:01 -03:00
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
transform: scale(1.2);
transform-origin: top center;
2024-10-15 15:59:34 -03:00
}
.top-level div {
2025-02-16 11:23:01 -03:00
display: flex;
align-items: center;
gap: 2em;
2024-10-15 15:59:34 -03:00
}
.link-item {
2025-02-16 11:23:01 -03:00
display: flex;
align-items: center;
gap: 15px;
2024-10-15 15:59:34 -03:00
}
.link-item a {
2025-02-16 11:23:01 -03:00
text-decoration: none;
font-weight: bolder;
display: flex;
color: var(--font-color);
align-items: center;
}
.link-item a,
h2 {
transition: color var(--transition-time) ease-in-out;
2024-10-15 15:59:34 -03:00
}
2025-02-09 18:32:55 -03:00
.link-item a:hover,
h2:hover {
2025-02-16 11:23:01 -03:00
color: var(--hover-color);
2025-02-09 18:32:55 -03:00
}
2024-10-15 15:59:34 -03:00
.icon {
2025-02-16 11:23:01 -03:00
font-family: "Terminess Nerd Font";
font-size: 1.3em;
padding-bottom: 0.5rem;
2024-10-15 15:59:34 -03:00
}
.icon:before {
2025-02-16 11:23:01 -03:00
margin-right: 30px;
2024-10-15 15:59:34 -03:00
}
.mail-icon:before {
2025-02-16 11:23:01 -03:00
content: "\f42f";
font-size: 1.5em;
padding-right: 6px;
2024-10-15 15:59:34 -03:00
}
.github-icon:before {
2025-02-16 11:23:01 -03:00
content: "\f09b";
font-size: 1.5em;
padding-right: 6px;
2024-10-15 15:59:34 -03:00
}
.gitea-icon:before {
2025-02-16 11:23:01 -03:00
content: "\e702";
font-size: 2em;
padding-right: 1px;
2024-10-15 15:59:34 -03:00
}
.paste-icon:before {
2025-02-16 11:23:01 -03:00
content: "\f429";
font-size: 1.5em;
padding-right: 4px;
padding-left: 4px;
}
.projects-icon:before {
content: "\f114";
font-size: 1.5em;
padding-right: 4px;
padding-left: 4px;
2024-10-15 15:59:34 -03:00
}
2025-01-20 10:17:27 -03:00
.mastodon-icon:before {
2025-02-16 11:23:01 -03:00
content: "\edc0";
font-size: 2em;
2025-01-20 10:17:27 -03:00
}
2024-10-15 15:59:34 -03:00
.blog-icon:before {
2025-02-16 11:23:01 -03:00
content: "\f01f";
font-size: 1.5em;
padding-right: 8px;
/* padding-left: 4px; */
2024-10-15 15:59:34 -03:00
}
footer {
2025-02-16 11:23:01 -03:00
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
color: #777;
2024-10-15 15:59:34 -03:00
}
2024-10-22 21:17:55 -03:00
2025-02-09 19:58:01 -03:00
h2 {
2025-02-16 11:23:01 -03:00
font-size: 2.5em;
2025-02-09 19:58:01 -03:00
}
.link-item {
2025-02-16 11:23:01 -03:00
width: fit-content;
2025-02-09 19:58:01 -03:00
}
.bottom-level {
2025-02-16 11:23:01 -03:00
width: fit-content;
2025-02-09 19:58:01 -03:00
}
.container {
2025-02-16 11:23:01 -03:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2025-02-09 19:58:01 -03:00
}
2024-10-22 21:17:55 -03:00
hr {
2025-02-16 11:23:01 -03:00
margin: 2.3em auto;
2025-02-09 19:58:01 -03:00
}
.icon:before {
2025-02-16 11:23:01 -03:00
font-size: 1.3em;
width: 0;
width: fit-content;
padding: 0;
margin-right: 3rem;
position: relative;
transform: translateX(50%);
}
.underline {
text-decoration: none;
text-decoration: underline 1px;
}
.projects-page {
.top-level {
h2,
h3 {
margin: 0;
}
div {
flex-direction: column;
gap: 0.5rem;
}
a {
text-decoration: none;
transition: color var(--transition-time) ease-in-out;
color: var(--font-color);
}
a:hover {
color: var(--hover-color);
}
.back-icon:before {
content: "\f100";
padding: unset;
margin: unset;
font-size: 0.6em;
text-decoration: none;
}
}
.bottom-level {
width: min-content;
.project-card {
/* LINK OVERLAY */
position: relative;
a.project-link:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
pointer-events: auto;
content: "";
background-color: rgba(0, 0, 0, 0);
}
/* END LINK OVERLAY */
/* GRID */
/*
| title | tech |
| ------------ |
| description |
| (hidden link)| [see link overlay above, 0 height]
*/
display: grid;
grid-auto-columns: 1fr;
grid-template-columns: 3fr 1fr;
grid-template-rows: 3em auto 0fr;
gap: 0px 0px;
grid-template-areas:
"title tech"
"description description"
"hidden-link .";
h3 {
grid-area: title;
padding: 0;
margin: 0;
}
small {
grid-area: tech;
justify-self: end;
}
p {
grid-area: description;
}
a {
grid-area: hidden-link;
}
/* END GRID */
margin: 1rem;
border: 1px solid var(--font-color);
padding: 1rem;
border-radius: 0.5rem;
transition: border-color var(--transition-time) ease-in-out;
width: min(60rem, 100vw - 4rem);
&:hover {
border-color: var(--hover-color);
}
}
}
2024-10-22 21:17:55 -03:00
}