site/style.css

725 lines
16 KiB
CSS

/* background wallpaper, global font */
body {
background: linear-gradient(125deg, var(--pink), var(--mauve), var(--maroon), var(--peach), var(--teal));
background-size: 1000% 1000%;
animation: bg-gradient 10s ease infinite;
-moz-animation: bg-gradient 10s ease infinite;
-webkit-animation: bg-gradient 10s ease infinite;
font-family: 'JetBrains Mono', monospace, system-ui, sans-serif;
font-size: 1.125rem;
margin: unset !important; /* idk why it does that */
}
/* terminal window styling */
.terminal {
/* the titlebar of the terminals */
.term-titlebar {
display: grid;
grid-template-columns: 2fr auto 2fr;
grid-template-areas:
"term-icon term-title term-buttons";
margin: -10px 0px -20px;
/* terminal icon */
.ph-terminal {
font-size: 25px;
align-self: center;
}
/* title text */
p, a {
font-family: 'Lexend Deca', system-ui, sans-serif;
font-size: 16px;
color: var(--text);
text-decoration: none;
grid-column: 2;
}
/* window buttons */
div {
display: flex;
height: 22px;
align-self: center;
margin-left: auto;
#minimize-btn, #maximize-btn, #close-btn {
width: 22px;
height: 22px;
background: var(--surface2);
border-radius: 50%;
transition: .2s background;
}
#maximize-btn, #close-btn {
margin-left: 10px;
}
}
}
/* the prompt */
.term-input {
.folder {
color: var(--sapphire);
background-color: var(--crust);
border-radius: 3em;
padding: 0px 12px 0px 12px;
}
.status {
color: var(--green);
font-size: 24px;
margin-left: 3px;
margin-right: -8px;
vertical-align: middle;
}
.blink {
display: none;
color: var(--text);
margin-left: 3px;
padding-bottom: 4px;
animation: blink .8s linear infinite;
-moz-animation: blink .8s linear infinite;
-webkit-animation: blink .8s linear infinite;
}
}
background-color: var(--base);
color: var(--text);
border: var(--mantle) solid 3px;
border-radius: 20px;
max-width: 48em;
padding: 14px 24px;
margin-left: auto;
margin-right: auto;
margin-bottom: 3.4em;
transition: .2s border-color;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.terminal:hover {
.term-titlebar {
div {
#minimize-btn {
background: var(--yellow);
transition: .2s background;
}
#maximize-btn {
background: var(--green);
transition: .2s background;
}
#close-btn {
background: var(--red);
transition: .2s background;
}
}
}
.term-input {
.blink {
display: unset;
}
}
border-color: var(--green);
transition: .2s border-color;
}
.terminal > .term-titlebar > p:hover, a:hover {
text-decoration: underline;
}
/* top navbar styling, attempts to look like a window manager bar */
.navbar {
display: flex;
flex-direction: row;
position: fixed;
top: 0 !important;
z-index: 10;
min-width: 100%;
max-width: 100%;
min-height: 1.8em !important;
max-height: 1.8em !important;
margin-top: .5em;
font-family: 'Lexend Deca', system-ui, sans-serif;
align-content: center;
vertical-align: middle;
color: var(--text);
.nav-base {
padding: 0px .2em !important;
border-radius: 8px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 15px;
max-width: fit-content;
align-content: center;
}
.nav-baselink {
background-color: var(--green);
text-decoration: unset !important;
color: var(--crust);
margin-left: .5em !important;
}
.nav-baselink-mobile {
display: none;
}
.nav-links {
background-color: var(--base);
color: var(--text);
padding: 0px 5px 0px;
margin-left: .5em !important;
}
.nav-links a {
color: var(--text);
text-decoration: unset !important;
}
.nav-links a:hover {
color: var(--green);
text-decoration: underline !important;
}
.nav-systray {
background-color: var(--base);
color: var(--text);
margin-left: auto !important;
margin-right: .5em !important;
i {
padding: 0px 2px 0px 2px;
}
}
a, p {
margin: unset !important;
}
small {
opacity: .7;
}
}
/* table of contents button */
.toc details {
display: block !important;
position: fixed;
margin: 2em 0px 0px .4em !important;
min-width: 2em;
border-radius: 8px;
z-index: 9999;
padding: unset !important;
box-shadow: unset !important;
right: .5em;
top: 1em;
a {
display: inline-flex;
align-items: center;
color: var(--text);
padding: .6em .7em;
text-decoration: none;
}
a:hover {
color: var(--green);
text-decoration: underline;
}
i {
padding-right: .4em;
}
ul {
background-color: var(--base);
box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 15px;
border-radius: 8px;
margin-top: 2.5em;
max-width: 40em;
width: max-content;
z-index: 9999;
li {
margin-left: -.5em;
padding-bottom: unset !important;
}
li::marker {
color: var(--text);
}
}
}
.toc details summary {
display: block !important;
right: 0em !important;
position: absolute;
font-family: 'Lexend Deca', system-ui, sans-serif;
background-color: var(--green);
box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 15px;
text-decoration: unset !important;
color: var(--crust);
padding: .3em;
border-radius: 8px;
width: 2.5em;
i:not(:first-child) {
margin-left: -.5em;
margin-right: -.9em;
opacity: .6;
}
}
.toc details summary::after {
margin-left: unset;
}
/* text formatting and config stuff
font-family and <p> is set under .terminal */
/* headings */
h1, h1 a {
color: var(--text);
font-size: 2rem;
text-decoration: none;
}
/* apparently having more than one h1 is against web standards
but i prefer how it looks so i just use the same styling again */
h2, h2 a {
color: var(--text);
font-size: 2rem;
text-decoration: none;
}
h3, h3 a {
font-size: 2rem;
}
/* text */
p, li, button {
font-size: 1.125rem;
}
/* links should look good i think */
a {
font-size: 1.125rem;
color: var(--green);
}
/* smol text */
small, small a {
font-size: 0.875rem;
}
/* lists need some styling */
li {
margin-left: -1em;
padding-bottom: 18px;
}
/* gay ass text */
.rainbow {
animation: 2s linear infinite rainbow;
-webkit-animation: 2s linear infinite rainbow;
-moz-animation: 2s linear infinite rainbow;
}
/* heading 1 is also clickable */
h1 a:hover {
text-decoration: underline;
}
/* line seperator */
#seperator {
display: block;
height: 1px;
width: auto;
margin-top: 20px;
margin-bottom: 20px;
border-bottom: 1px var(--surface2) solid;
}
/* summary styling */
summary {
display: flex;
}
summary::after {
font-family: "Phosphor-Fill" !important;
content: '\e136';
align-self: center;
margin-left: .70em;
transition: 0.2s;
}
details[open] > summary::after {
transform: rotate(180deg);
}
/* styled summary styling */
details.styled {
padding: .5em;
border-radius: 1em;
background-color: var(--surface0);
summary {
display: inline-block;
width: 100%;
i {
vertical-align: middle;
padding-bottom: .2rem;
}
}
ul li {
padding-bottom: unset !important;
}
}
details.styled[open] {
summary {
border-bottom: solid 1px var(--surface2);
padding-bottom: .5rem;
}
}
/* padding above first terminal */
body:has(div.toc) {
.terminal:nth-child(3) {
margin-top: 4.8em;
}
}
body:not(:has(div.toc)) {
.terminal:nth-child(2) {
margin-top: 3.8em;
}
}
/* footer/credits */
footer {
.fediring {
a {
display: inline-grid;
font-size: 1.5rem;
color: var(--green);
margin-bottom: .5em;
vertical-align: bottom;
}
[href="https://fediring.net"] {
color: var(--base);
background: var(--flamingo);
padding: 0px 10px 0px 10px;
border-radius: 5px;
}
[href="https://keithhacks.cyou/furryring.php"] {
color: var(--base);
background: var(--rosewater);
padding: 0px 10px 0px 10px;
border-radius: 5px;
}
[href="https://stellophiliac.github.io/roboring"] {
@media (prefers-color-scheme: light) {
color: var(--base);
}
@media (prefers-color-scheme: dark) {
color: var(--text);
}
background: var(--overlay0);
padding: 0px 10px 0px 10px;
border-radius: 5px;
}
[href*="prev"] {
color: var(--base);
background: var(--yellow);
padding: 4px 6px;
border-radius: 5px;
}
[href*="next"] {
color: var(--base);
background: var(--green);
padding: 4px 5px;
border-radius: 5px;
}
}
p, a {
text-align: center;
font-size: 0.938rem;
margin: .2em 0px .2em;
text-decoration: none;
}
img {
padding-top: 18px;
max-width: 30%;
display: flex;
margin-left: auto;
margin-right: auto;
}
.inner-footer {
text-align: center;
padding-top: 14px;
padding-bottom: 14px;
i {
font-size: 2.4em;
}
a:not(:last-child):has(i) {
margin-right: 1em;
}
}
}
/* various reusable animations */
@keyframes blink {
0% { opacity: 0; }
50% { opacity: 1.0; }
100% { opacity: 0; }
}
@keyframes blink-navbar-text {
0% { opacity: 0; }
50% { opacity: .8; }
100% { opacity: 0; }
}
@keyframes spin-y {
/* values: 128px, 256px, 348px, 396px*/
0% { transform: perspective(396px) rotateY(0); }
100% { transform: perspective(396px) rotateY(360deg); }
}
@keyframes rainbow {
0% { filter: hue-rotate(0deg) contrast(150%) saturate(150%); }
100% { filter: hue-rotate(360deg) contrast(150%) saturate(150%); }
}
@keyframes bg-gradient {
0% { background-position: 0% 27% }
50% { background-position: 100% 74% }
100% { background-position: 0% 27% }
}
@-moz-keyframes blink {
0% { opacity: 0; }
50% { opacity: 1.0; }
100% { opacity: 0; }
}
@-moz-keyframes blink-navbar-text {
0% { opacity: 0; }
50% { opacity: .8; }
100% { opacity: 0; }
}
@-moz-keyframes spin-y {
/* values: 128px, 256px, 348px, 396px*/
0% { transform: perspective(396px) rotateY(0); }
100% { transform: perspective(396px) rotateY(360deg); }
}
@-moz-keyframes rainbow {
0% { filter: hue-rotate(0deg) contrast(150%) saturate(150%); }
100% { filter: hue-rotate(360deg) contrast(150%) saturate(150%); }
}
@-moz-keyframes bg-gradient {
0% { background-position: 0% 27% }
50% { background-position: 100% 74% }
100% { background-position: 0% 27% }
}
@-webkit-keyframes blink {
0% { opacity: 0; }
50% { opacity: 1.0; }
100% { opacity: 0; }
}
@-webkit-keyframes blink-navbar-text {
0% { opacity: 0; }
50% { opacity: .8; }
100% { opacity: 0; }
}
@-webkit-keyframes spin-y {
/* values: 128px, 256px, 348px, 396px*/
0% { transform: perspective(396px) rotateY(0); }
100% { transform: perspective(396px) rotateY(360deg); }
}
@-webkit-keyframes rainbow {
0% { filter: hue-rotate(0deg) contrast(150%) saturate(150%); }
100% { filter: hue-rotate(360deg) contrast(150%) saturate(150%); }
}
@-webkit-keyframes bg-gradient {
0% { background-position: 0% 27% }
50% { background-position: 100% 74% }
100% { background-position: 0% 27% }
}
/* disable certain animations if user has animations disabled on their system */
@media (prefers-reduced-motion) {
body {
background: var(--crust) !important;
animation: unset !important;
-moz-animation: unset !important;
-webkit-animation: unset !important;
}
.terminal {
.term-titlebar {
div {
#minimize-btn, #maximize-btn, #close-btn {
transition: 0s background !important;
}
}
}
.term-input {
.blink {
animation: unset !important;
-moz-animation: unset !important;
-webkit-animation: unset !important;
}
}
transition: 0s border-color !important;
}
.terminal:hover {
.term-titlebar {
div {
#minimize-btn {
background: var(--yellow);
transition: 0s background !important;
}
#maximize-btn {
background: var(--green);
transition: 0s background !important;
}
#close-btn {
background: var(--red);
transition: 0s background !important;
}
}
}
transition: 0s border-color !important;
}
}
/* modify widths and spacing depending on the size of the display */
@media screen and (max-width: 59em) {
.navbar {
min-height: 1.8em !important;
max-height: 1.8em !important;
flex-wrap: wrap;
.nav-base {
padding: .27em .2em !important;
}
.nav-baselink {
display: none !important;
}
.nav-baselink-mobile {
display: block !important;
position: absolute;
margin: 2em 0px 0px .4em !important;
max-width: 40em;
width: max-content;
border-radius: 8px;
z-index: 9999;
padding: unset !important;
box-shadow: unset !important;
top: -2em;
a {
display: inline-flex;
align-items: center;
color: var(--text);
padding: .6em .7em;
text-decoration: none;
}
a:hover {
color: var(--green);
text-decoration: underline;
}
i {
padding-right: .4em;
}
ul {
background-color: var(--base);
box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 15px;
border-radius: 8px;
max-width: 10em;
width: auto;
z-index: 9999;
li {
list-style-type: none;
margin-left: -2em;
padding-bottom: unset !important;
}
}
}
.nav-baselink-mobile summary {
display: block !important;
margin-top: 0px !important;
font-family: 'Lexend Deca', system-ui, sans-serif;
background-color: var(--green);
box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 15px;
text-decoration: unset !important;
color: var(--crust);
padding: .3em;
border-radius: 8px;
width: 6.4em;
i:not(:first-child) {
margin-left: -.5em;
margin-right: -.9em;
opacity: .6;
}
}
.nav-links {
display: none !important;
}
}
body:has(.toc) {
.terminal:nth-child(3) {
margin-top: 5.4em !important;
}
}
body:not(:has(.toc)) {
.terminal:nth-child(2) {
margin-top: 2.7em !important;
}
}
.terminal {
.term-titlebar {
margin: -16px 0px -24px;
}
margin: 0px .7em .7em;
padding: 10px 16px;
}
}