138 lines
3.5 KiB
CSS
138 lines
3.5 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) - 64px);
|
|
/* 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) - 64px);
|
|
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);
|
|
}
|
|
|
|
nav ul {
|
|
padding-top: 15px; /* Entfernt die Standard-Padding der Liste */
|
|
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 {
|
|
padding-top: 16px; /* Abstand oben für die Links */
|
|
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 */
|
|
}
|
|
|
|
.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: 20px;
|
|
/* 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;
|
|
} |