Beitrag erstellen #13

Merged
niklas.ortmann merged 164 commits from Beitrag-erstellen into dev 2026-05-29 13:22:11 +02:00
2 changed files with 18 additions and 18 deletions
Showing only changes of commit d5e177654f - Show all commits
+1 -1
View File
@@ -5,7 +5,7 @@ session_start();
Seite: Beitrag erstellen Seite: Beitrag erstellen
Inhalt: Formular für die Erstellung eines neuen Beitrags Inhalt: Formular für die Erstellung eines neuen Beitrags
--> -->
<form method="post" action="php/controller/createArticle-controller.php" id="editor-form" class="wp-editor-scope editor-container"> <form method="post" action="php/controller/createArticle-controller.php" id="editor-form" class="article-editor-scope editor-container">
<main class="editor-main"> <main class="editor-main">
<?php if (isset($_SESSION["message"]) && $_SESSION["message"] == "internal_error"): ?> <?php if (isset($_SESSION["message"]) && $_SESSION["message"] == "internal_error"): ?>
+17 -17
View File
@@ -1,5 +1,5 @@
/* editor in Flexbox */ /* editor in Flexbox */
.wp-editor-scope.editor-container { .article-editor-scope.editor-container {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
@@ -8,14 +8,14 @@
box-sizing: border-box; box-sizing: border-box;
} }
.wp-editor-scope * { .article-editor-scope * {
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
/* Hauptbereich */ /* Hauptbereich */
.wp-editor-scope .editor-main { .article-editor-scope .editor-main {
flex: 1; flex: 1;
padding: 40px; padding: 40px;
display: flex; display: flex;
@@ -24,7 +24,7 @@
background: #ffffff; background: #ffffff;
} }
.wp-editor-scope #title { .article-editor-scope #title {
font-size: 2.5rem; font-size: 2.5rem;
font-weight: 700; font-weight: 700;
border: none; border: none;
@@ -33,7 +33,7 @@
background: transparent; background: transparent;
} }
.wp-editor-scope #content { .article-editor-scope #content {
flex: 1; flex: 1;
font-size: 1.1rem; font-size: 1.1rem;
line-height: 1.6; line-height: 1.6;
@@ -45,7 +45,7 @@
} }
/* Seitenleiste */ /* Seitenleiste */
.wp-editor-scope .editor-sidebar { .article-editor-scope .editor-sidebar {
width: 300px; width: 300px;
background-color: #ffffff; background-color: #ffffff;
border-left: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0;
@@ -55,24 +55,24 @@
gap: 24px; gap: 24px;
} }
.wp-editor-scope .sidebar-block { .article-editor-scope .sidebar-block {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px; gap: 8px;
} }
.wp-editor-scope .sidebar-block label { .article-editor-scope .sidebar-block label {
font-weight: 600; font-weight: 600;
font-size: 0.9rem; font-size: 0.9rem;
} }
.wp-editor-scope .required { .article-editor-scope .required {
color: #d94f4f; color: #d94f4f;
} }
/* Formularelemente innerhalb der Editor-Sidebar */ /* Formularelemente innerhalb der Editor-Sidebar */
.wp-editor-scope .editor-sidebar select, .article-editor-scope .editor-sidebar select,
.wp-editor-scope .editor-sidebar input[type="text"] { .article-editor-scope .editor-sidebar input[type="text"] {
width: 100%; width: 100%;
padding: 8px; padding: 8px;
border: 1px solid #ccc; border: 1px solid #ccc;
@@ -82,7 +82,7 @@
} }
/* Button-Zeugs */ /* Button-Zeugs */
.wp-editor-scope .btn-publish { .article-editor-scope .btn-publish {
background-color: #007cba; background-color: #007cba;
color: white; color: white;
border: none; border: none;
@@ -94,27 +94,27 @@
width: 100%; width: 100%;
} }
.wp-editor-scope .btn-publish:hover { .article-editor-scope .btn-publish:hover {
background-color: #006ba1; background-color: #006ba1;
} }
@media (max-width: 760px) { @media (max-width: 760px) {
.wp-editor-scope.editor-container { .article-editor-scope.editor-container {
/* Sidebar nach unten */ /* Sidebar nach unten */
flex-direction: column; flex-direction: column;
} }
.wp-editor-scope .editor-main { .article-editor-scope .editor-main {
/* weniger Innenabstand */ /* weniger Innenabstand */
padding: 20px; padding: 20px;
} }
.wp-editor-scope #content { .article-editor-scope #content {
/* Verhindert, dass das Textfeld auf kleinen Displays kollabiert */ /* Verhindert, dass das Textfeld auf kleinen Displays kollabiert */
min-height: 300px; min-height: 300px;
} }
.wp-editor-scope .editor-sidebar { .article-editor-scope .editor-sidebar {
width: 100%; width: 100%;
/* Entfernt den linken Rand und setzt ihn nach oben als Trenner */ /* Entfernt den linken Rand und setzt ihn nach oben als Trenner */
border-left: none; border-left: none;