This commit is contained in:
Tomáš Dvořák
2025-09-23 20:15:36 +02:00
parent b8891c8a38
commit 71942e45b9
49 changed files with 8453 additions and 929 deletions
+88
View File
@@ -0,0 +1,88 @@
/* Unified Admin Sidebar Layout */
:root{
--admin-sb-w: 220px;
--admin-sb-bg: #0f172a; /* slate-900 */
--admin-sb-fg: #e5e7eb; /* gray-200 */
--admin-sb-fg-muted: #94a3b8; /* slate-400 */
--admin-sb-accent: #2563eb; /* blue-600 */
--admin-border: #1f2937; /* gray-800 */
}
body.admin-with-sidenav {
padding-left: var(--admin-sb-w);
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.admin-sidenav {
position: fixed;
z-index: 900; /* keep below potential dropdowns */
top: 0;
left: 0;
bottom: 0;
width: var(--admin-sb-w);
background: var(--admin-sb-bg);
color: var(--admin-sb-fg);
display: flex;
flex-direction: column;
border-right: 1px solid var(--admin-border);
}
.admin-sidenav .brand {
display:flex;
align-items:center;
gap:10px;
padding: 16px 14px;
font-weight: 700;
border-bottom: 1px solid var(--admin-border);
}
.admin-sidenav .brand img { width: 28px; height: 28px; }
.admin-sidenav nav { padding: 12px 8px; display:flex; flex-direction: column; gap: 6px; }
.admin-sidenav a {
color: var(--admin-sb-fg);
text-decoration: none;
padding: 8px 10px;
border-radius: 8px;
display:flex;
align-items:center;
gap:8px;
}
.admin-sidenav a:hover { background: rgba(255,255,255,0.06); }
.admin-sidenav a.active { background: var(--admin-sb-accent); color: #fff; }
.admin-sidenav .spacer { flex: 1 1 auto; }
.admin-sidenav .footer { padding: 12px; color: var(--admin-sb-fg-muted); font-size: 12px; border-top: 1px solid var(--admin-border); }
/* Responsive: collapse sidebar on small screens */
@media (max-width: 900px){
body.admin-with-sidenav { padding-left: 0; }
.admin-sidenav { position: static; width: 100%; height: auto; flex-direction: row; align-items:center; }
.admin-sidenav .brand { border: 0; padding: 10px 12px; }
.admin-sidenav nav { flex-direction: row; flex-wrap: wrap; padding: 8px 8px; gap: 6px; }
.admin-sidenav .spacer, .admin-sidenav .footer { display:none; }
}
/* --- Admin forms: ensure editor does not overlap action buttons --- */
/* Create and Edit pages may use Quill or textareas. Prevent overlap by elevating buttons above editors */
#new-post button,
#form-edit .btn,
#form-new .btn,
#form-load .btn {
position: relative;
z-index: 5;
}
/* Quill editor stacking context adjustments (when used in new.html edit mode) */
.ql-container {
position: relative;
z-index: 1;
}
.ql-toolbar {
position: relative;
z-index: 2;
}
/* Ensure textareas dont create unexpected overlays */
textarea {
position: relative;
z-index: 1;
}
-5
View File
@@ -4823,10 +4823,6 @@
.lte-text-page dt {
font-weight: bold;
}
.comment-text p,
.lte-text-page p {
margin-bottom: 30px;
}
.comment-text p:last-child,
.lte-text-page p:last-child {
margin-bottom: 0;
@@ -11442,7 +11438,6 @@
margin-top: 25px;
}
.blog-post p {
margin-bottom: 30px;
font-size: 16px;
}
.blog-post > article > div > .blog-info-post-top {
+70
View File
@@ -0,0 +1,70 @@
/* Homepage 4-grid overrides: 15px left padding for the whole grid */
#latest-blog-items.row {
margin-left: 0 !important; /* neutralize negative margins if any */
padding-left: 15px !important;
padding-bottom: 24px; /* ensure space below grid */
}
/* If the secondary grid is used in the future, keep spacing consistent */
#other-blog-items.row {
padding-bottom: 24px;
}
/* Ensure hero carousel text does not sit behind the fixed nav */
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left {
padding-top: 90px; /* default desktop */
}
@media (max-width: 1199px) {
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left { padding-top: 100px; }
}
@media (max-width: 767px) {
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left { padding-top: 110px; }
}
/* Normalize heading/button spacing inside all hero slides so they align consistently */
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left h2.lte-header {
margin: 0 0 16px !important;
line-height: 1.1;
/* Keep heading block a consistent height to align buttons across slides */
min-height: 2.4em; /* ~2 lines */
display: -webkit-box;
line-clamp: 2; /* standard property for supporting linters */
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left .lte-btn-wrap {
margin-top: 16px !important;
}
/* Center the slide content (heading + button) vertically within the slide */
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left .elementor-widget-wrap {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 90vh; /* even taller hero on desktop */
}
/* Neutralize spacer widgets inside hero slides so they don't push content down */
.lte-slider-zoom .lte-zs-slider-inner .elementor-widget-spacer {
display: none !important;
}
@media (max-width: 1199px) {
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left .elementor-widget-wrap { min-height: 75vh; }
}
@media (max-width: 767px) {
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left .elementor-widget-wrap { min-height: 65vh; }
/* Slightly larger heading on small screens for readability */
.lte-slider-zoom .lte-zs-slider-inner .lte-col-slider-left h2.lte-header { font-size: 1.9rem; }
}
/* --- Blog page cleanups --- */
/* Hide tag hashtags and sharing block under post */
.blog-info-post-bottom,
.tags-line,
.lte-sharing,
.lte-related { display: none !important; }
/* Normalize paragraphs inside blog content: no bottom margin */
.text.lte-text-page.clearfix p { margin: 0 0 0; }