Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d3169eba18 | |||
| 2d967c200c | |||
| ee7986bef3 | |||
| 8de1b1bdb5 | |||
| 4a663391ef | |||
| 4cd877ea4c |
+17
-2
@@ -149,8 +149,8 @@ CSS für die navbar
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive Anpassungen unter 660px (für z.B. Smartphones) */
|
/* Responsive Anpassungen unter 760px (für z.B. Smartphones) */
|
||||||
@media (max-width: 660px) {
|
@media (max-width: 760px) {
|
||||||
.nav {
|
.nav {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -227,6 +227,9 @@ CSS für die navbar
|
|||||||
padding: 2rem 1rem;
|
padding: 2rem 1rem;
|
||||||
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
|
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
|
/* Genug Abstand oben rechts, damit Links nicht hinter dem X liegen */
|
||||||
|
padding: 4rem 1.5rem 2rem 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav__checkbox:checked ~ .nav__mobile-menu {
|
.nav__checkbox:checked ~ .nav__mobile-menu {
|
||||||
@@ -237,6 +240,18 @@ CSS für die navbar
|
|||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav__close-btn {
|
||||||
|
position: absolute;
|
||||||
|
top: 1rem;
|
||||||
|
right: 1.5rem;
|
||||||
|
font-size: 2rem;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
line-height: 1;
|
||||||
|
user-select: none;
|
||||||
|
transition: color 0.2s ease, transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
.nav__mobile-menu a {
|
.nav__mobile-menu a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ Globales Menü, wird via PHP später in alle Seiten eingebunden
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<ul id="mobile-nav" class="nav__mobile-menu">
|
<ul id="mobile-nav" class="nav__mobile-menu">
|
||||||
|
<li>
|
||||||
|
<label for="nav-toggle" class="nav__close-btn">×</label>
|
||||||
|
</li>
|
||||||
<li><a href="index.php?pfad=profile">Profil</a></li>
|
<li><a href="index.php?pfad=profile">Profil</a></li>
|
||||||
<li><a href="index.php?pfad=login">Anmelden</a></li>
|
<li><a href="index.php?pfad=login">Anmelden</a></li>
|
||||||
<li><a href="index.php?pfad=register">Registrieren</a></li>
|
<li><a href="index.php?pfad=register">Registrieren</a></li>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!--
|
<!--
|
||||||
Seite: Hompage der Lernplattform
|
Seite: Index der Lernplattform
|
||||||
Funktion: Webseitengerüst, Anzeigen von Beiträgen, Suchfunktion etc.
|
Funktion: Webseitengerüst, Anzeigen von Content
|
||||||
-->
|
-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once 'includes/navbar.php';
|
include_once 'includes/navbar.php';
|
||||||
//Dynamischer Inhalt (später mit php...):
|
//Dynamischer Inhalt:
|
||||||
if (isset($_GET["pfad"])) {
|
if (isset($_GET["pfad"])) {
|
||||||
if (file_exists('content/' . $_GET["pfad"] . '.php')) {
|
if (file_exists('content/' . $_GET["pfad"] . '.php')) {
|
||||||
include_once 'content/' . $_GET["pfad"] . '.php';
|
include_once 'content/' . $_GET["pfad"] . '.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user