caelum-bludit-theme/css/style.css

339 lines
5.5 KiB
CSS
Raw Normal View History

2024-08-17 17:30:35 +02:00
@charset "UTF-8";
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
position: relative;
}
html {
--color-background: rgba(255, 255, 255, 0.8);
--color-background-hover: rgba(220, 220, 220, 0.8);
--color-hover: rgba(0, 0, 0, 0.1);
--color-accent: #099268;
--coler-accent-lighter: #12b886;
--color-heading: #FFF;
--color-text: #333;
}
a {
color: var(--color-accent);
padding: 0.05rem;
border-radius: 0.1rem;
text-decoration: underline dashed 1px;
text-underline-offset: 0.1rem;
}
a:visited {
color: var(--color-accent);
}
a:hover,
a:active {
background-color: var(--color-hover);
text-decoration: none;
}
a:focus-visible,
input:focus-visible {
outline-style: dashed;
outline-width: 2px;
outline-offset: 1px;
}
input, a.button, a.btn {
transition: background-color 0.2s, opacity 0.2s;
}
input:focus-visible,
a:focus-visible,
button:focus-visible {
outline-style: dashed;
outline-color: var(--color-accent);
outline-offset: 1px;
outline-width: 2px;
box-shadow: none;
}
html {
background-image: url("../img/wallpaper.png");
background-size: cover;
background-position: center;
background-attachment: fixed;
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 15px;
line-height: 1.5;
font-weight: normal;
padding: 1rem;
}
.flex, .flex-that {
display:flex;
justify-content: space-between;
}
.center {
text-align: center;
}
body {
max-width: 1400px;
margin: auto;
column-gap: 0.66rem;
row-gap: 0.66rem;
display: grid;
grid-template-columns: 240px auto 240px;
grid-template-areas:
"header header header"
"side1 main side2"
"side1 footer side2";
}
#page-header { grid-area: header; }
#info-sidebar { grid-area: side2; }
main { grid-area: main; }
#content-sidebar { grid-area: side1; }
footer { grid-area: footer;}
.skip {
display: none;
}
.card {
background-color: var(--color-background);
backdrop-filter: blur(6px);
box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.5);
border-radius: 6px;
padding: 0.33rem 0.66rem;
}
.card h2 {
font-weight: 900 !important;
font-size: 1.1rem;
text-align: center;
color: var(--color-text);
}
.card h2 a {
color: var(--color-text);
}
.card:not(:last-child) {
margin-bottom: 0.66rem;
}
.tag-list-badge li:not(:last-child) {
margin-right: 5px;
}
ul.tag-list {
margin: 0;
padding: 0;
}
ul.tag-list li {
margin: 0;
padding: 0;
list-style-type: none;
display: inline-block;
}
nav ul,
.menu ul {
margin:0;
padding:0;
display: flex;
flex-direction: column;
}
nav ul li,
.menu ul li {
margin: 0;
padding: 0;
list-style-type: none;
}
.menu ul li a.menu-element {
display: flex;
justify-content: space-between;
}
.menu-element .badge {
padding: 0px 8px;
margin: 1px 0px;
}
nav ul li {
display: flex;
}
.badge {
background-color: var(--color-accent);
color:white;
padding: 2px 8px;
border-radius: 9999px;
}
#searchfield, .fakebutton, .button, .page-item span, .page-item a {
background-color: var(--color-background);
backdrop-filter: blur(6px);
box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.5);
border-radius: 9999px;
border-style:none;
padding: 0.66rem 1rem;
margin:0;
line-height: 1;
display: block;
text-decoration: none;
width: fit-content;
}
.fakebutton {
border-radius: 6px;
}
a.button, a.badge, .page-item a {
background-color: var(--color-accent);
color: white;
opacity: 0.9;
text-decoration: none;
}
a.button:hover,
a.badge:hover,
.page-item a:hover {
opacity: 1;
background-color: var(--coler-accent-lighter);
color: white;
}
.button.soft:not(:hover) {
background-color: var(--color-background);
color: var(--color-text);
}
.button.soft:hover {
background-color: var(--color-background-hover);
color: var(--color-text);
}
.rss .button {
padding: 0.66rem 1.5rem;
}
.card .menu a {
display: block;
border-radius: 3px;
padding: 0.11rem 0.33rem;
width: 100%;
text-decoration: none;
}
article header,
article p,
.before-article {
margin-bottom: .66rem;
}
.avatar {
background-color: white;
display: block;
margin: 1rem auto;
height: auto;
max-width: 66.6%;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
border: 3px solid white;
border-radius: 9999px;
}
.navbar-pages ul {
display:flex;
flex-direction: row;
}
.navbar-pages ul li {
display: block;
margin-right: .66rem;
}
.nav-links {
margin-top: .5rem;
}
.page-numbers {
border-radius: 3px;
padding: 3px 6px;
margin: 1px;
background-color: var(--color-background);
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
text-decoration: none;
}
a.page-numbers:hover,
.page-numbers.current {
background-color: var(--color-accent);
color: white;
}
.icon {
display: inline-block;
width: 1em;
height: 1em;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
color: currentColor;
position: relative;
top: 0.1em;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
#content-sidebar > .fakebutton {
margin:0px auto;
}
#sidebar-about .button {
margin:1rem auto;
}
#sidebar-tags .badge {
margin-right: 3px;
}
.flex > div:first-child .badge {
margin-right: 6px;
}
.flex > div:last-child .badge {
margin-left: 6px;
}
.paginator {
margin-top: 1rem;
}
.pagination {
flex-direction: row;
}