Files
Daniel Ledda 65bd8c9c2a update
2024-11-02 16:21:16 +01:00

271 lines
4.4 KiB
CSS

:root {
--text-color: #313131;
--header-color: rgb(114, 132, 114);
--bg-color-box: #ffffff;
--bg-color: #f6f9f6;
}
body {
font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #313131;
background-color: var(--bg-color);
}
h1, h2, h3, h4, h5 {
font-family: "Roboto Slab", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: var(--header-color);
}
.baustelle {
text-align: center;
display: block;
}
a.home-btn {
display: block;
text-align: center;
&.hide {
visibility: hidden;
}
}
span.tag {
margin-left: 4px;
font-style: italic;
&::before {
content: '#';
}
}
.ge-article {
.title {
text-align: center;
}
.header {
margin-top: 20px;
text-align: center;
button {
margin-top: 10px;
}
@media (min-width: 370px) {
display: flex;
justify-content: space-between;
button {
margin: 0;
}
}
}
[data-tunit] {
position: relative;
transition: background 0.15s;
}
[data-tunit].swap {
background-color: #bde4ff;
}
button.swap {
background-color: rgb(96, 128, 96);
height: 25px;
width: 25px;
font-size: 18px;
border-radius: 6px;
border: 0;
cursor: pointer;
position: absolute;
color: white;
top: 5px;
right: 5px;
opacity: 0%;
font-weight: bold;
transition: background-color 150ms, opacity 150ms;
}
button.swap:hover {
background-color: rgb(57, 85, 57);
}
[data-tunit]:hover > button.swap {
opacity: 100%;
}
.lang-en [data-tunit].swap :lang(de) {
display: revert;
}
.lang-en [data-tunit].swap :lang(en) {
display: none;
}
.lang-de [data-tunit].swap :lang(en) {
display: revert;
}
.lang-de [data-tunit].swap :lang(de) {
display: none;
}
.lang-en [data-tunit] :lang(de) {
display: none;
}
.lang-de [data-tunit] :lang(en) {
display: none;
}
}
main {
width: calc(100% - 20px);
margin: auto;
}
@media (min-width: 900px) {
main {
max-width: 943px;
min-width: 600px;
}
}
li {
margin-bottom: 8px;
}
header {
margin: auto;
text-align: center;
}
article {
margin: auto;
}
.text-slab {
margin-bottom: 15px;
background-color: white;
border-radius: 5px;
padding: 10px;
}
.text-slab > p:first-of-type {
margin-top: 0;
}
.text-slab > p:last-of-type {
margin-bottom: 0;
}
form {
display: block;
text-align: center;
margin: 40px;
}
label {
display: block;
}
hr {
border: 0;
border-bottom: 1px dashed #ccc;
background: #999;
}
footer {
margin-bottom: 20px;
.bottom {
text-align: center;
display: block;
.dj-donate {
margin-top: 16px;
}
img {
display: inline-block;
}
}
@media (min-width: 600px) {
.bottom {
text-align: left;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
> * {
flex: 1;
}
.dj-donate {
text-align: right;
}
}
}
}
.ge-calculator {
table {
border-collapse: separate;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
border-radius: 5px;
border-spacing: 0;
border: 1px solid var(--text-color);
}
input {
width: 70px;
}
tr:last-of-type td {
border-bottom: none;
}
td {
border-bottom: 1px solid var(--text-color);
border-right: 1px solid var(--text-color);
padding: 10px;
}
td:last-of-type {
border-right: none;
}
td.right {
text-align: center;
}
.breathe {
padding-left: 4px;
padding-right: 4px;
}
.separator::before {
content: '—';
}
@media (min-width: 600px) {
.separator::before {
content: ':';
padding-left: 4px;
padding-right: 4px;
}
td.ratio {
text-align: left;
}
td.right div {
display: inline-block;
}
}
}