Files
2026-09-25 06:26:53 +02:00

169 lines
3.9 KiB
CSS

/** layout Main Bereich */
main {
padding: var(--main-content-padding);
margin: 16px;
height: calc(100vh - var(--header-height) - var(--footer-height) - 4 * var(--main-content-padding));
/* 32px für die Margen */
overflow-y: auto;
/* Scrollbar, wenn der Inhalt zu groß ist */
border: 1px solid var(--secondary-color);
border-radius: var(--box-border-radius);
}
nav {
height: calc(100vh - var(--header-height) - var(--footer-height) - 4 * var(--main-content-padding));
overflow-y: auto;
/* Scrollbar, wenn der Inhalt zu groß ist */
display: flex; /* Macht die Liste horizontal */
justify-content: flex-start; /* Elemente am Anfang ausrichten */
flex-direction: column; /* Elemente vertikal anordnen */
border: 1px solid var(--secondary-color);
border-radius: var(--box-border-radius);
margin-left: 16px;
@media (max-width: 768px) {
height: 100%;
}
padding: 5px;
background-color: var(--primary-color);
color: var(--secondary-font-color);
}
nav ul {
list-style-type: none; /* Entfernt die Standard-Aufzählungszeichen */
flex-wrap: wrap; /* Elemente umbrechen, wenn der Platz nicht ausreicht */
gap: 20px; /* Abstand zwischen den Listenelementen */
}
nav ul li a {
text-decoration: none; /* Entfernt die Unterstreichung */
color: var(--secondary-font-color); /* Setzt die Schriftfarbe */
}
nav ul li a:hover {
text-decoration: underline; /* Unterstreichung beim Überfahren mit der Maus */
font-weight: bold; /* Macht den Text fett */
}
.rootNode {
padding-top: 28px;
/* Einrückung für die Wurzelknoten */
color: var(--primary-color);
font-weight: bold;
}
.editor-container {
height: calc(100vh - var(--header-height) - var(--footer-height) - 4 * var(--main-content-padding) - 96px);
display: flex;
flex-direction: row;
/* Elemente horizontal anordnen */
gap: 16px;
/* Abstand zwischen den Elementen */
padding: 16px;
/* Innenabstand */
border-radius: var(--box-border-radius);
background-color: var(--data-background-color);
}
.editor-view {
margin-top: 8px;
padding: 8px;
border: 1px solid var(--primary-color);
border-radius: var(--box-border-radius);
}
/** tree components */
.node {
justify-content: center;
list-style-type: none;
/* Entfernt die Standard-Aufzählungszeichen */
padding-left: 20px;
/* Einrückung für die Unterlisten */
}
.node img {
height: 12px;
/* Höhe des Bildes */
margin-right: 2px;
/* Abstand zwischen Bild und Text */
}
.leaf {
padding-left: 28px;
/* Einrückung für Blätter */
color: var(--primary-color);
font-weight: lighter;
}
/* form styles */
.cform {
display: flex;
flex-direction: column;
color: var(--primary-color);
gap: 8px;
padding: 16px;
}
.cform label {
padding-top: 8px;
}
.cform input[type="text"],
.cform textarea {
padding: 4px;
border: 1px solid var(--primary-color);
border-radius: var(--box-border-radius);
}
/* Style für allgemeine Elemente */
.box {
border: 1px solid var(--primary-color);
border-radius: var(--box-border-radius);
}
.button_row {
display: flex;
flex-direction: row;
justify-content: flex-end;
gap: 8px;
margin-top: 8px;
}
.button_row button {
padding: 4px 8px;
border: 1px solid var(--primary-color);
border-radius: var(--box-border-radius);
background-color: var(--data-background-color);
cursor: pointer;
display: inline-flex;
justify-content: center;
}
.mt-16 {
margin-top: 16px;
}
/* Table styles */
table {
margin: 16px;
width: 80%;
border-collapse: collapse;
}
table, th, td {
border: 1px solid var(--primary-color);
}
th, td {
padding: 8px;
text-align: left;
}
td {
background-color: var(--data-background-color);
}
th {
color: var(--primary-color);
font-weight: 500;
}