Small improvements and better directory structure
This commit is contained in:
153
css/main.css
Normal file
153
css/main.css
Normal file
@@ -0,0 +1,153 @@
|
||||
: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;
|
||||
}
|
||||
|
||||
body {
|
||||
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;
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
header{
|
||||
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 {
|
||||
margin: auto;
|
||||
background: var(--cont-bg-color);
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
.service-list {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
list-style: none;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.service-list li {
|
||||
margin: 0.1rem;
|
||||
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 {
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.service-list li a {
|
||||
font-size: 1.5rem;
|
||||
color: var(--text-color);
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
vertical-align:middle;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.service-list li a div {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#li-nextcloud { background-image: url(/img/icons/Nextcloud_Logo.svg); }
|
||||
#li-matrix { background-image: url(/img/icons/Matrix_Logo.svg); }
|
||||
|
||||
@media only screen and (min-width:1000px){
|
||||
.cont {
|
||||
width: max-content;
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
#li-nextcloud { }
|
||||
#li-matrix { filter: invert(); }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user