trygve.me/css/main.css
2021-05-31 18:08:12 +02:00

154 lines
3.1 KiB
CSS

:root {
--dark-accent-color: #5C6BC0;
--dark-bg-color: black;
--dark-alt-bg-color: #5c6bc0;
--dark-cont-bg-color: transparent;
--dark-header-bg-color: #121212;
--dark-text-color: #eeeeee;
--dark-btn-color: #303f9f;
--dark-link-color: #5C6BC0;
--dark-shadow-color: #1a1a1a;
}
body {
min-height: 100%;
font-family: "Noto Sans", "Liberation Sans","Trebuchet MS", Arial, Helvetica, sans-serif;
margin: 0;
--accent-color: #1A237E;
--cont-bg-color: white;
--alt-bg-color: #283593;
--bg-color: #f6f5f4;
--header-bg-color: white;
--text-color: black;
--btn-color: #303f9f;
--link-color: #3949AB;
--shadow-color: rgba(0,0,0,.15);
background-color: var(--bg-color);
background-image: url(/img/noise.png);
color: var(--text-color);
}
header{
align-self: start;
padding: 0.5rem;
}
a {
color: var(--link-color);
}
.header-list{
width: fit-content;
width: -moz-fit-content;
padding: 0.5rem;
background-color: var(--header-bg-color);
border-radius: 1rem;
align-items: center;
justify-content: center;
margin: auto;
min-height: 2rem;
display: flex;
flex-wrap: wrap;
list-style: none;
gap: 1rem;
}
.tab-button{
padding: 0.5rem 1rem;
border-radius: .25rem;
text-decoration: underline;
font-weight: 600;
transition: 0.15s;
color: var(--text-accent-color);
}
.tab-button.active{
color: #fff;
background-color: var(--btn-color);
}
.tab-button:focus {
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
outline: none;
box-shadow: 0 0 2px 2px var(--accent-color), 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
.tab-button:hover {
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
background-color: var(--btn-color);
box-shadow: 0 0 2px 2px var(--accent-color), 0 .5rem 1rem rgba(0,0,0,.15) !important;
color: white;
}
/* Container for main content */
.cont {
background-image: url(/img/noise.png);
margin: auto;
min-width: 20%;
background: var(--cont-bg-color);
border-radius: 1rem;
grid-area: main;
}
.center-txt{
text-align: center;
}
@media screen and (max-width:600px){
.cont {
max-width: 100%;
width: calc(100% - 0.5rem);
padding: 0.25rem;
}
}
@media only screen and (max-width:800px){
.cont {
max-width: 90%;
}
}
@media only screen and (min-width:800px){
.cont {
max-width: 80%;
}
}
@media only screen and (min-width:1000px){
.cont {
padding: 1rem;
width: max-content;
max-width: 50%;
}
}
@media only screen and (min-width:1300px){
html {
font-size: 18px;
}
}
@media only screen and (min-width:2000px){
html {
font-size: 20px;
}
.cont {
max-width: 40%;
}
}
@media (prefers-color-scheme: dark) {
body.theme-auto {
--bg-color: var(--dark-bg-color);
--alt-bg-color: var(--dark-alt-bg-color);
--cont-bg-color: var(--dark-cont-bg-color);
--header-bg-color: var(--dark-header-bg-color);
--text-color: var(--dark-text-color);
--btn-color: var(--dark-btn-color);
--accent-color: var(--dark-accent-color);
--link-color: var(--dark-link-color);
--shadow-color: var(--dark-shadow-color);
}
}