NanoGal/public/templates/default/default.css

243 lines
4.1 KiB
CSS
Raw Normal View History

2024-10-29 11:36:24 +01:00
[data-theme="dark"] {
--background-color: #171414;
--text-color: #fffbfb;
}
[data-theme="light"] {
--background-color: #fffbfb;
--text-color: #171414;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
background: var(--background-color);
color: var(--text-color);
width: 80vw;
margin: 0 auto;
min-height: 100vh;
min-height: 100dvh;
text-rendering: optimizeSpeed;
font-size: var(--font-size);
line-height: 1.5;
}
header {
h1 {
font-size: calc(var(--font-size) * 1.6);
margin: 0;
}
h1 a {
color: var(--primary);
text-decoration: underline transparent;
transition: 0.4s;
}
h1 a:hover {
color: var(--primary-lighten);
text-decoration: underline var(--primary);
text-decoration-thickness: var(--default-space);
}
nav {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
ul {
font-size: calc(var(--font-size) * 1.2);
}
}
}
/**/
#toggleDarkMode {
fill: var(--primary);
height: calc(var(--font-size) * 1.6);
2024-10-29 11:36:24 +01:00
}
a {
color: var(--primary);
font-weight: bold;
text-decoration: none;
text-decoration: underline transparent;
transition: 0.4s;
2024-10-29 11:36:24 +01:00
}
a:not(.card-content):hover {
color: var(--primary-lighten);
text-decoration: underline var(--primary);
text-decoration-thickness: var(--default-space);
2024-10-29 11:36:24 +01:00
}
#logo-border-color {
fill: var(--primary) !important;
stroke: none !important;
}
#logo-background-color {
fill: #fff;
stroke: none;
2024-10-29 11:36:24 +01:00
}
.logo {
height: 120px;
vertical-align: middle;
stroke: #000 !important;
2024-10-29 11:36:24 +01:00
}
body>header {
background-color: transparent;
2024-10-29 11:36:24 +01:00
color: var(--header-text-color);
padding: 0 .5em;
}
.breadcrumb,
aside {
color: var(--light-text-color);
background-color: var(--light-background-color);
padding: calc(var(--default-space) * 2);
border: 1px solid var(--background-color-darken);
border-radius: calc(var(--default-space) * 1.2);
margin: 0 0 calc(var(--default-space) *5) 0;
box-shadow: var(--box-shadow-light);
2024-10-29 11:36:24 +01:00
}
main,
.message {
max-width: 100%;
margin: 0px auto;
}
.message {
background-color: var(--success);
color: var(--success-text-contrast);
border-radius: 2px;
}
.message>div {
padding: 1rem;
}
img {
transition: all .2s ease-in;
border: none;
}
body>nav {
text-align: center;
}
aside {
padding-bottom: 0.3em;
}
aside a {
color: var(--primary);
text-decoration: none;
}
aside * {
margin: .2em 0;
}
main {
display: flex;
flex-wrap: wrap;
gap: .5em;
justify-content: center;
}
article {
background-color: var(--light-background-color);
2024-10-29 11:36:24 +01:00
display: grid;
grid-template-columns: repeat(1, 1fr);
margin: 0;
padding: 0;
transition: all .2s ease-in;
position: relative;
width: min-content;
}
article a {
display: flex;
}
.card-footer {
color: var(--header-text-color);
margin: 0;
overflow: hidden;
padding: .3em .6em;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
footer {
padding-top: 1em;
text-align: center;
}
footer a {
color: var(--primary);
text-decoration: none;
}
.buildTime {
font-size: 1.1rem;
margin: 0;
}
#backtop {
bottom: 0;
border-radius: 4px;
background-color: var(--primary);
color: var(--text-color-secondary);
display: block;
margin: .5%;
padding: 1rem 4rem;
position: fixed;
right: 0;
}
#legend {
background-color: var(--header-background-color);
flex: none;
max-width: 90%;
width: 100%;
}
.lightbox-container__media {
flex-wrap: wrap;
flex-direction: row;
p {
background-color: var(--header-background-color);
width: 100%;
max-width: 90%;
}
}
.gdesc-inner {
color: var(--text-color-inverse);
word-break: break-word;
}
.gdesc-inner ul {
padding: 0 0 0 1.8em;
}
.glightbox-container .gslide,
.gslide-image img {
user-select: auto;
}