From 23051eecf02864bada4778b30834cca8dfbcd4ea Mon Sep 17 00:00:00 2001 From: Jannik Menzel Date: Sat, 7 Jun 2025 21:13:18 +0200 Subject: [PATCH] minor responsive layout adjustments --- assets/css/main.css | 5 +++-- assets/css/shortcodes.css | 14 +++++++++++++- layouts/shortcodes/profile.html | 3 +-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 4f70bfe..d9247b8 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -83,6 +83,7 @@ p { border: 1px solid var(--color-text); border-radius: 0 0 30px 30px; box-shadow: 0 4px 0 0 var(--color-text); + z-index: 1000; } .navbar-brand { @@ -278,7 +279,7 @@ li .dropdown-item-mobile { } .hero-card.right-1 svg:hover, -.hero-card.right-1 svg:active{ +.hero-card.right-1 svg:active { color: var(--color-link); } @@ -366,7 +367,7 @@ li .dropdown-item-mobile { .ese-section .card-body { font-size: 1.1rem; align-content: center; - max-width: 80%; + max-width: 90%; margin-left: auto; margin-right: auto; } diff --git a/assets/css/shortcodes.css b/assets/css/shortcodes.css index 8594d2f..79c05c6 100644 --- a/assets/css/shortcodes.css +++ b/assets/css/shortcodes.css @@ -20,6 +20,7 @@ #markdown .profile-content { flex: 1; + margin-top: 1rem; } @media (max-width: 768px) { @@ -30,7 +31,12 @@ } #markdown .profile-content { - text-align: center; + margin-left: 2rem; + display: flex; + flex-direction: column; + align-items: flex-start; + text-align: left; + width: 100%; } } @@ -143,3 +149,9 @@ #markdown .details.expanded .details-content a:hover { text-decoration: none !important; } + +@media (max-width: 768px) { + .details-number { + display: none; + } +} \ No newline at end of file diff --git a/layouts/shortcodes/profile.html b/layouts/shortcodes/profile.html index 7ea0976..3a3ebe9 100644 --- a/layouts/shortcodes/profile.html +++ b/layouts/shortcodes/profile.html @@ -4,8 +4,7 @@

{{ .Get "name" }}

-

Studiengang: {{ .Get "studiengang" }}
- {{ with .Get "email" }}📧 {{ . }}
{{ end }}

+

Studiengang: {{ .Get "studiengang" }}

{{ .Inner | markdownify }} \ No newline at end of file