trygve.me/common/main.css

135 lines
3.2 KiB
CSS
Raw Normal View History

2021-03-16 10:11:18 +00:00
:root {
--dark-accent-color: #5C6BC0;
2021-03-16 13:16:38 +00:00
--dark-bg-color: black;
2021-03-16 10:11:18 +00:00
--dark-alt-bg-color: #5c6bc0;
2021-03-16 13:16:38 +00:00
--dark-cont-bg-color: transparent;
--dark-header-bg-color: #121212;
2021-03-16 10:11:18 +00:00
--dark-text-color: #eeeeee;
--dark-btn-color: #303f9f
}
2021-03-15 19:59:05 +00:00
body {
font-family: "Noto Sans", "Liberation Sans","Trebuchet MS", Arial, Helvetica, sans-serif;
2021-03-16 10:11:18 +00:00
margin: 0;
--accent-color: #1A237E;
2021-03-16 13:16:38 +00:00
--cont-bg-color: white;
2021-03-16 10:11:18 +00:00
--alt-bg-color: #283593;
2021-03-16 13:16:38 +00:00
--bg-color: #f6f5f4;
--header-bg-color: white;
2021-03-16 10:11:18 +00:00
--text-color: black;
--btn-color: #303f9f;
background-color: var(--bg-color);
color: var(--text-color);
}
header{
padding: 0.5rem;
2021-03-15 19:59:05 +00:00
}
2021-03-16 10:11:18 +00:00
.header-list{
2021-03-16 14:06:58 +00:00
width: fit-content;
2021-03-16 13:16:38 +00:00
padding: 0.5rem;
background-color: var(--header-bg-color);
border-radius: 1rem;
2021-03-16 10:11:18 +00:00
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;
}
2021-03-15 19:59:05 +00:00
/* Container for main content */
.cont {
margin: auto;
2021-03-16 13:16:38 +00:00
background: var(--cont-bg-color);
border-radius: 1rem;
2021-03-15 19:59:05 +00:00
}
.service-list {
2021-03-16 10:11:18 +00:00
padding: 0;
2021-03-15 19:59:05 +00:00
display: flex;
2021-03-16 10:11:18 +00:00
flex-wrap: wrap;
justify-content: center;
2021-03-15 19:59:05 +00:00
list-style: none;
gap: 1rem;
}
.service-list li {
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 10rem;
height: 8rem;
border: thin solid #3c4043;
border-radius: 0.5rem;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.service-list li:hover {
2021-03-16 10:11:18 +00:00
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
box-shadow: 0 0 2px 2px var(--accent-color), 0 .5rem 1rem rgba(0,0,0,.15) !important;
2021-03-15 19:59:05 +00:00
}
2021-03-16 10:11:18 +00:00
2021-03-15 19:59:05 +00:00
.service-list li a {
display: block;
width: 100%;
height: 100%;
text-align: center;
2021-03-16 10:11:18 +00:00
vertical-align:middle;
2021-03-15 19:59:05 +00:00
}
#li-nextcloud { background-image: url(./icons/Nextcloud_Logo.svg); }
#li-matrix { background-image: url(./icons/Matrix_Logo.svg); }
2021-03-16 10:11:18 +00:00
@media only screen and (min-width:1000px){
.cont {
2021-03-16 13:16:38 +00:00
width: max-content;
padding: 1rem;
2021-03-16 10:11:18 +00:00
}
}
@media (prefers-color-scheme: dark) {
body.theme-auto {
--bg-color: var(--dark-bg-color);
--alt-bg-color: var(--dark-alt-bg-color);
2021-03-16 13:16:38 +00:00
--cont-bg-color: var(--dark-cont-bg-color);
--header-bg-color: var(--dark-header-bg-color);
2021-03-16 10:11:18 +00:00
--text-color: var(--dark-text-color);
--btn-color: var(--dark-btn-color);
--accent-color: var(--dark-accent-color);
}
#li-nextcloud { }
#li-matrix { filter: invert(); }
}