profile-site/styles.css

137 lines
2.1 KiB
CSS
Raw Normal View History

2021-01-13 17:02:16 -05:00
* {
padding: 0;
margin: 0;
2022-11-05 18:43:49 -04:00
font-family: "Nunito", "Times New Roman", Times, serif;
2020-12-02 14:12:33 -05:00
}
2022-11-05 18:43:49 -04:00
:root {
/* Eventually allow any hex color through JS, along with random generator */
--theme-color: #f69b46;
/*
Other nice colors
#46aaf6 // blue
#f69b46 // orange
#46f64f // green
#f64646 // red
*/
2021-01-15 14:09:56 -05:00
}
2022-11-12 00:43:05 -05:00
@media (prefers-color-scheme: dark) {
body {
background-color: #222;
color: #f8f8f8;
}
2022-11-12 00:50:56 -05:00
.footer {
background-color: #000;
}
2022-11-12 00:43:05 -05:00
}
2022-11-05 18:43:49 -04:00
.title {
margin: 2rem 2rem 1rem 2rem;
2021-01-13 17:02:16 -05:00
text-align: center;
}
2022-11-05 18:43:49 -04:00
h2 {
position: relative;
margin: 1rem .75rem .75rem 2.5rem;
font-size: 1.5rem;
transition: .2s;
2021-01-13 17:02:16 -05:00
}
2022-11-05 18:43:49 -04:00
h2::before {
2021-01-13 17:02:16 -05:00
content: "";
position: absolute;
2022-11-05 18:43:49 -04:00
top: .5rem;
left: -.6rem;
height: 1rem;
width: .25rem;
border-radius: 5rem;
background-color: var(--theme-color);
2021-09-23 14:43:28 -04:00
transition: .2s;
}
2022-11-05 18:43:49 -04:00
h2:hover {
margin: 1rem .75rem .75rem 3rem;
2021-09-23 14:43:28 -04:00
}
2022-11-05 18:43:49 -04:00
h2:hover::before {
left: -1.1rem;
2021-09-23 14:43:28 -04:00
}
2022-11-05 18:43:49 -04:00
p {
margin: .5rem 2rem;
}
2021-09-23 14:43:28 -04:00
2022-11-06 14:57:38 -05:00
button {
padding: .2rem .5rem;
font-size: 1.1rem;
color: #fff;
background-color: var(--theme-color);
border: solid .2rem var(--theme-color);
border-radius: .5rem;
box-shadow: 0 .1rem .2rem #ddd;
transition: .15s;
}
button:hover {
color: var(--theme-color);
background-color: transparent;
}
button:active {
transform: scale(.98);
}
2021-09-23 14:43:28 -04:00
a {
2022-11-05 18:43:49 -04:00
color: var(--theme-color);
2021-09-23 14:43:28 -04:00
}
2022-11-06 14:57:38 -05:00
.funsies {
padding: .5rem 2rem;
}
.funsies p {
margin: 0 .2rem .8rem .2rem;
}
2022-11-05 18:43:49 -04:00
.footer {
padding: 1rem;
display: grid;
grid-template-columns: auto auto;
background-color: #222;
color: #fff;
border-bottom: solid .4rem var(--theme-color);
2021-09-23 14:43:28 -04:00
}
2022-11-05 18:43:49 -04:00
.faded-footer {
color: #bbb;
2021-09-23 14:43:28 -04:00
}
2022-11-05 18:43:49 -04:00
.progress-parent {
display: block;
2021-09-23 14:43:28 -04:00
width: 100%;
2022-11-05 18:43:49 -04:00
background-color: #ccc;
position: fixed;
top: 0;
2021-09-23 14:43:28 -04:00
left: 0;
2022-11-06 14:57:38 -05:00
z-index: 10;
2021-09-23 14:43:28 -04:00
}
2022-11-05 18:43:49 -04:00
.progress {
height: .5rem;
width: 0%;
background-color: var(--theme-color);
animation: progress 1s linear;
2020-12-02 18:19:16 -05:00
}
2022-11-05 18:43:49 -04:00
@keyframes progress {
to { width: 100%; }
2021-01-16 18:32:29 -05:00
}
2022-11-05 18:43:49 -04:00
.progress {
animation-play-state: paused;
animation-delay: calc(var(--scroll) * -1s);
animation-iteration-count: 1;
animation-fill-mode: both;
2020-12-02 14:12:33 -05:00
}