profile-site/Styles/home.css

133 lines
2 KiB
CSS
Raw Normal View History

2021-01-13 17:02:16 -05:00
* {
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-12-01 16:53:30 -05:00
.content {
transition: .2s;
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-30 12:18:50 -05:00
h3 {
margin: .75rem 0 0 2rem;
}
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-12-01 16:53:30 -05:00
.thoughts {
margin: 2rem 2rem 0 0;
float: right;
color: #888;
text-decoration: none;
font-weight: 700;
font-size: 1.5rem;
font-family: monospace;
}
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
.progress-parent {
display: block;
2021-09-23 14:43:28 -04:00
width: 100%;
2022-12-01 16:53:30 -05:00
background-color: #ddd;
2022-11-05 18:43:49 -04:00
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
}
2022-12-01 16:53:30 -05:00
@media (prefers-color-scheme: dark) {
.progress-parent {
background-color: #444;
}
button {
box-shadow: 0 .2rem .2rem #000;
}
}
@media only screen and (min-width: 1200px) {
.content {
padding: 0 6rem;
line-height: 1.7rem;
}
}