profile-site/Styles/home.css

212 lines
3.3 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
}
2023-03-12 11:50:46 -04:00
body {
overflow-x: hidden;
}
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;
}
.subtitle {
margin: 0 2rem;
2021-01-13 17:02:16 -05:00
}
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;
top: .3rem;
2022-11-05 18:43:49 -04:00
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;
}
2023-03-12 11:50:46 -04:00
.main-text p {
2022-11-05 18:43:49 -04:00
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
}
2023-03-12 11:50:46 -04:00
.content {
display: grid;
grid-template-columns: 70% calc(30% - 2em);
gap: 1em;
}
.main-text {
max-width: 750px;
2023-03-12 11:50:46 -04:00
transition: .2s;
}
.thoughts-preview {
padding-top: 8.5em;
margin-right: 2em;
2023-03-12 11:50:46 -04:00
}
.thoughts-preview a {
color: initial;
text-decoration: initial;
}
.thoughts-preview h2 {
margin: 0 0 .4em -.1em;
font-family: sans-serif;
opacity: .8;
}
2023-07-18 17:38:32 -04:00
.thoughts-preview h2:hover {
text-decoration: underline;
}
2023-03-12 11:50:46 -04:00
.thoughts-preview h2:before {
display: none;
}
.thoughts-bit {
padding: .8em 0;
border-bottom: .1em solid #bbb;
}
.thoughts-bit.first-of-class {
border-top: .1em solid #bbb;
}
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
2023-03-12 11:50:46 -04:00
@media only screen and (min-width: 1200px) {
.main-text, .thoughtsblock {
padding: 0 2rem 0 4rem;
line-height: 1.7rem;
}
}
@media only screen and (max-width: 700px) {
.content {
grid-template-columns: 100%;
margin-right: 0;
width: 100vw;
}
.thoughts-preview {
margin: 0 .6em;
padding: 1em 1.4em;
background-color: #dddddd20;
border-radius: .4em;
width: calc(100% - 2em);
box-sizing: border-box;
}
}
2022-12-01 16:53:30 -05:00
@media (prefers-color-scheme: dark) {
2023-07-18 17:38:32 -04:00
.thoughts-preview h2 {
color: #eee;
}
.thoughts-preview * {
color: #ddd;
}
2022-12-01 16:53:30 -05:00
.progress-parent {
background-color: #444;
}
button {
box-shadow: 0 .2rem .2rem #000;
}
2023-03-12 11:50:46 -04:00
@media only screen and (max-width: 700px) {
.thoughts-preview {
background-color: #77777720;
}
2022-12-01 16:53:30 -05:00
}
}