Files
gigachad-library/style.css
T

242 lines
3.9 KiB
CSS

:root {
--keyframes-from: slategray;
--keyframes-to: darkslategray;
--bg: darkslategray;
--fg: white;
--link: gold;
--link-hover: goldenrod;
--opacity: 0.75;
--hr-bg: none;
--hr-height: 0px;
--hr-border-top: 2px solid var(--fg);
}
/* Thank you g-gundam for helping with the themes :D */
body {
background: var(--bg);
color: var(--fg);
max-width: 800px;
margin: auto;
padding: 10px;
font-family: sans-serif;
word-break: break-word;
/*text-align: justify; */
}
blockquote {
border-left: 4px solid var(--fg);
margin-left: 0px;
padding-left: 20px;
}
p, li, blockquote {
line-height: 1.6em;
}
h1 {
text-align: center;
}
a {
color: var(--link);
text-decoration: none;
}
a:hover {
color: var(--link-hover);
text-decoration: underline;
}
/*
a[href^='http://']:after,
a[href^='https://']:after {
height: 1em !important;
width: 1em !important;
vertical-align: -0.1em;
background-image: url('icons/external-link.svg');
filter: var(--filter);
background-repeat: no-repeat;
background-size: 1em 1em;
margin-left: 0.3em;
display: inline-block;
content: "";
}
*/
/*
code {
background-color: slategray;
}
*/
pre {
overflow: auto;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 95%;
}
.c {
text-align: center;
font-size: smaller;
}
.C {
text-align: center;
}
.right {
float: right;
}
th, td {
padding: 3px;
}
hr {
height: var(--hr-height);
border: 0;
border-top: var(--hr-border-top);
background-image: var(--hr-bg);
}
.icon {
height: 1em !important;
width: 1em !important;
vertical-align: -0.1em;
}
/* category pages */
.category {
list-style: none;
padding-left: 0px;
text-align: left;
}
.category > li > img {
height: 1em !important;
width: 1em !important;
vertical-align: -0.1em;
padding-right: 0.3em;
}
.stats {
height: 1em !important;
width: 1em !important;
vertical-align: -0.1em;
padding-right: 0 !important;
}
/* nav */
.nav {
display: flex;
}
.nav-left {
flex-grow: 1;
}
.nav-right {
flex-shrink: 0;
padding-left: 0.5em;
}
/* could potentially be used, but finnicky on mobile */
/*
.category > li:hover {
background-color: rgba(218, 165, 32, 0.1);
}
*/
/* specific part link kewl effect */
@keyframes hehe {
from {
background-color: var(--keyframes-from);
}
to {
background-color: var(--keyframes-to);
}
}
p:target, h2:target, h3:target {
animation: hehe 2s ease-in-out forwards;
}
/* fooling around */
.epic {
animation: wee 1s ease-in-out;
transition: transform .3s;
}
.epic:hover {
transform: scale(1.2);
}
@keyframes wee {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
.glow {
filter: drop-shadow(0 0 50px rgba(255, 255, 255, 1))
drop-shadow(0 0 50px rgba(255, 255, 255, 1));
-webkit-transform: translateZ(0); /* fix cutting off bugs etc */
transform: translateZ(0);
}
/* main page categories */
div.maincat {
margin: auto;
max-width: 95%;
overflow: hidden;
position: relative;
border-radius: 5px;
}
div.maincat > div {
position: absolute;
height: 100%;
width: 100%;
transition: all .5s;
transform: scale(1,1);
opacity: var(--opacity);
background-size: cover;
z-index: -1;
}
div.maincat:hover > div {
transform: scale(1.2,1.2);
}
div.maincat h1 {
text-align: center;
text-shadow: 2px 2px black;
}
/*
.marquee {
overflow: hidden;
white-space: nowrap;
}
.marquee-content {
padding-left: 100%;
display: inline-block;
white-space: nowrap;
will-change: transform;
animation: scrolling 20s linear infinite;
}
@keyframes scrolling {
0% { transform: translateX(0%); }
100% { transform: translateX(-100%); }
}
*/