This commit is contained in:
Tomas Dvorak
2026-01-26 08:13:18 +01:00
parent aa036b6550
commit dfc079288f
505 changed files with 95755 additions and 5712 deletions
+23
View File
@@ -0,0 +1,23 @@
/* Add this to prevent any automatic scroll-to-top behavior */
/* This should be added to admin-enhancements.css or similar */
/* Prevent scroll reset on navigation */
.admin-layout {
scroll-behavior: auto !important;
}
/* Prevent sidebar scroll reset */
[data-sidebar="true"] {
scroll-behavior: auto !important;
}
/* Prevent any scroll-to-top scripts */
html, body {
scroll-behavior: auto !important;
scroll-padding-top: 0 !important;
}
/* Override any smooth scroll that might interfere */
* {
scroll-behavior: auto !important;
}
+43 -5
View File
@@ -21,7 +21,8 @@
min-height: 42px !important;
height: auto !important;
position: relative !important;
z-index: 5000 !important;
/* Keep toolbar below AI model dropdown menus */
z-index: 1000 !important;
overflow: visible !important;
}
@@ -161,7 +162,8 @@
max-height: 300px;
overflow-y: auto;
position: absolute !important;
z-index: 6000 !important;
/* Dropdown below AI model dropdown menus */
z-index: 1100 !important;
}
/* Custom buttons: color/background reset */
@@ -278,16 +280,40 @@
.ql-editor ol {
padding-left: 1.5em;
margin: 0.5em 0;
list-style: none;
}
.ql-editor li {
margin: 0.25em 0;
}
.ql-editor li[data-list] {
position: relative;
}
.ql-editor li[data-list]::before {
display: inline-block;
width: 1.2em;
margin-left: -1.5em;
margin-right: 0.3em;
text-align: right;
color: inherit;
content: '';
}
.ql-editor li[data-list="bullet"]::before {
content: '\2022';
}
.ql-editor ul[data-bullets="disc"] li[data-list="bullet"]::before { content: '\2022'; }
.ql-editor ul[data-bullets="circle"] li[data-list="bullet"]::before { content: '\25E6' !important; }
.ql-editor ul[data-bullets="square"] li[data-list="bullet"]::before { content: '\25AA' !important; }
/* Quill v2 renders bullets via li[data-list=bullet] > .ql-ui::before. Allow switching marker type via parent UL[data-bullets] */
.ql-editor ul[data-bullets="disc"] li[data-list="bullet"] > .ql-ui::before { content: '\2022'; }
.ql-editor ul[data-bullets="circle"] li[data-list="bullet"] > .ql-ui::before { content: '\25E6'; }
.ql-editor ul[data-bullets="square"] li[data-list="bullet"] > .ql-ui::before { content: '\25AA'; }
.ql-editor ul[data-bullets="disc"] li[data-list="bullet"] > .ql-ui::before { content: '\2022' !important; }
.ql-editor ul[data-bullets="circle"] li[data-list="bullet"] > .ql-ui::before { content: '\25E6' !important; }
.ql-editor ul[data-bullets="square"] li[data-list="bullet"] > .ql-ui::before { content: '\25AA' !important; }
/* No bullets */
.ql-editor ul[data-bullets="none"] li[data-list="bullet"]::before { content: '' !important; display: none !important; }
.ql-editor ul[data-bullets="none"] li[data-list="bullet"] > .ql-ui::before { content: '' !important; display: none !important; }
/* Ensure our custom marker is visible and not overridden */
.ql-editor li[data-list] > .ql-ui::before {
@@ -319,6 +345,9 @@
.ql-editor li[data-list="ordered"] > .ql-ui::before {
content: counters(list-0, '.') '. ';
}
.ql-editor li[data-list="ordered"]::before {
content: counters(list-0, '.') '. ';
}
/* Nested ordered lists (basic support for a few levels) */
.ql-editor ol ol { counter-reset: list-1; }
@@ -327,6 +356,15 @@
.ql-editor ol ol ol { counter-reset: list-2; }
.ql-editor ol ol ol li { counter-increment: list-2; }
.ql-editor ol ol ol li[data-list="ordered"] > .ql-ui::before { content: counters(list-2, '.') '. '; }
.ql-editor ol ol li[data-list="ordered"]::before { content: counters(list-1, '.') '. '; }
.ql-editor ol ol ol li[data-list="ordered"]::before { content: counters(list-2, '.') '. '; }
.ql-editor li:not([data-list]) { position: relative; }
.ql-editor li:not([data-list])::before { display: inline-block; width: 1.2em; margin-left: -1.5em; margin-right: 0.3em; text-align: right; color: inherit; }
.ql-editor ul li:not([data-list])::before { content: '\2022'; }
.ql-editor ol { counter-reset: list-plain-0; }
.ql-editor ol li:not([data-list]) { counter-increment: list-plain-0; }
.ql-editor ol li:not([data-list])::before { content: counters(list-plain-0, '.') '. '; }
.ql-editor blockquote {
border-left: 4px solid #3182ce;
+24 -2
View File
@@ -98,6 +98,26 @@ body.style-pack-modern .section-head h3::after { width: 64px; }
grid-template-columns: 1fr 1fr;
}
}
[data-element="news"][data-variant="grid"] .blog-list {
display: grid;
grid-template-columns: 1fr;
gap: var(--pack-gap-md);
}
@media (min-width: 768px) {
[data-element="news"][data-variant="grid"] .blog-list {
grid-template-columns: 1fr 1fr;
}
}
@media (min-width: 1024px) {
[data-element="news"][data-variant="grid"] .blog-list {
grid-template-columns: 1fr 1fr 1fr;
}
}
[data-element="news"][data-variant="list"] .blog-list {
display: flex;
flex-direction: column;
gap: var(--pack-gap-md);
}
[data-element="news"] .blog-list .card {
display: grid;
grid-template-columns: 140px 1fr;
@@ -244,8 +264,10 @@ body.style-pack-modern [data-element="team"] .player-card {
[data-element="hero"][data-variant="scroller"] { scroll-margin-top: 72px; }
[data-element="hero"][data-variant="swiper"] { scroll-margin-top: 72px; }
[data-element="hero"][data-variant="swiper_full"] {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
scroll-margin-top: 72px;
max-width: min(80vw, 1200px);
margin-left: auto;
margin-right: auto;
}
/* Gallery */
@@ -0,0 +1,86 @@
/* Public rendering of rich text (mirror Quill .ql-editor semantics)
Applies to content rendered outside the admin editor where .ql-editor styles don't exist */
/* Alignment classes generated by Quill */
.article-content .ql-align-center,
.blog-content .ql-align-center,
.about-content .ql-align-center,
.about-timeline .ql-align-center,
.prose .ql-align-center { text-align: center; }
.article-content .ql-align-right,
.blog-content .ql-align-right,
.about-content .ql-align-right,
.about-timeline .ql-align-right,
.prose .ql-align-right { text-align: right; }
.article-content .ql-align-justify,
.blog-content .ql-align-justify,
.about-content .ql-align-justify,
.about-timeline .ql-align-justify,
.prose .ql-align-justify { text-align: justify; }
/* Core list layout: use custom markers like Quill v2 */
.article-content ul, .article-content ol,
.blog-content ul, .blog-content ol,
.about-content ul, .about-content ol,
.about-timeline ul, .about-timeline ol,
.prose ul, .prose ol {
padding-left: 1.5em;
margin: 0.5em 0;
/* use native list markers; bullet shape is controlled below via data-bullets */
}
/* Support custom bullet shapes via UL[data-bullets] using native markers */
.article-content ul { list-style-type: disc; }
.article-content ul[data-bullets="disc"] { list-style-type: disc; }
.article-content ul[data-bullets="circle"] { list-style-type: circle; }
.article-content ul[data-bullets="square"] { list-style-type: square; }
.article-content ul[data-bullets="none"] { list-style-type: none; }
.blog-content ul { list-style-type: disc; }
.blog-content ul[data-bullets="disc"] { list-style-type: disc; }
.blog-content ul[data-bullets="circle"] { list-style-type: circle; }
.blog-content ul[data-bullets="square"] { list-style-type: square; }
.blog-content ul[data-bullets="none"] { list-style-type: none; }
.about-content ul { list-style-type: disc; }
.about-content ul[data-bullets="disc"] { list-style-type: disc; }
.about-content ul[data-bullets="circle"] { list-style-type: circle; }
.about-content ul[data-bullets="square"] { list-style-type: square; }
.about-content ul[data-bullets="none"] { list-style-type: none; }
.about-timeline ul { list-style-type: disc; }
.about-timeline ul[data-bullets="disc"] { list-style-type: disc; }
.about-timeline ul[data-bullets="circle"] { list-style-type: circle; }
.about-timeline ul[data-bullets="square"] { list-style-type: square; }
.about-timeline ul[data-bullets="none"] { list-style-type: none; }
.prose ul { list-style-type: disc; }
.prose ul[data-bullets="disc"] { list-style-type: disc; }
.prose ul[data-bullets="circle"] { list-style-type: circle; }
.prose ul[data-bullets="square"] { list-style-type: square; }
.prose ul[data-bullets="none"] { list-style-type: none; }
/* Images inside content */
.article-content img,
.blog-content img,
.about-content img,
.about-timeline img,
.prose img {
display: block;
max-width: 100%;
height: auto;
}
/* Blockquote to match editor look (optional) */
.article-content blockquote,
.blog-content blockquote,
.about-content blockquote,
.about-timeline blockquote,
.prose blockquote {
border-left: 4px solid #3182ce;
padding-left: 16px;
margin: 1em 0;
}