[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX][UI] Prevent unwanted ordered list numbering in such places as...
"Gary Cunningham-Lee \(--- via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68bad51b4e018_2cdd360273c2@gitlab-sidekiq-low-urgency-cpu-bound-v2-75889b4f96-v7mm5.mail> |
Gary Cunningham-Lee pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki Commits: b19d5d56 by Gary Cunningham-Lee at 2025-09-05T21:11:14+09:00 [FIX][UI] Prevent unwanted ordered list numbering in such places as... --- * [FIX][UI] Prevent unwanted ordered list numbering in such places as... --- * [FIX][UI] Prevent unwanted ordered list numbering in such places as breadcrumbs by expanding the exceptions from the media-list class to all classes (todo: monitor to check if this is too strong). See merge request tikiwiki/tiki!8517 (cherry picked from commit b769423189d5b8c0df44554d70bc9d53f5a37543) 41e05d11 [FIX][UI] Prevent unwanted ordered list numbering in such places as... Co-authored-by: Gary Cunningham-Lee <gary_c-39LOpZwlz1/[email protected]> See merge request tikiwiki/tiki!8518 - - - - - 1 changed file: - themes/base_files/scss/_tiki-miscellaneous_global.scss Changes: ===================================== themes/base_files/scss/_tiki-miscellaneous_global.scss ===================================== @@ -575,18 +575,18 @@ div.categbar { padding: 0.25rem 1.5rem; } -// Default style for unwrapped <ol> -ol:not(.media-list):not(.uol):not(.nouol ol):not(.uol ol), li > ol:not(.media-list):not(.uol):not(.nouol ol):not(.uol ol) { list-style: none; counter-reset: item; padding-left: 0; } -ol:not(.media-list):not(.uol):not(.nouol ol):not(.uol ol) li { position: relative; display: block; counter-increment: item; padding-left: 3rem; } -ol:not(.media-list):not(.uol):not(.nouol ol):not(.uol ol) li::before { content: counters(item, ".") ".\0000a0"; position: absolute; left: 0; width: 2.5rem; text-align: right; } -ol:not(.media-list):not(.uol):not(.nouol ol):not(.uol ol) > li ol > li::before { content: counters(item, ".") "\0000a0"; } +// Default style for unwrapped <ol> - ol class exceptions (should not have numbering applied) expanded from media-list to all in order to include breadcrumbs and similar cases. +ol:not([class]):not(.uol):not(.nouol ol):not(.uol ol), li > ol:not([class]):not(.uol):not(.nouol ol):not(.uol ol) { list-style: none; counter-reset: item; padding-left: 0; } +ol:not([class]):not(.uol):not(.nouol ol):not(.uol ol) li { position: relative; display: block; counter-increment: item; padding-left: 3rem; } +ol:not([class]):not(.uol):not(.nouol ol):not(.uol ol) li::before { content: counters(item, ".") ".\0000a0"; position: absolute; left: 0; width: 2.5rem; text-align: right; } +ol:not([class]):not(.uol):not(.nouol ol):not(.uol ol) > li ol > li::before { content: counters(item, ".") "\0000a0"; } // Auto unique-numbered ordered lists (for ordered lists wrapped in class="uol" wrapper (or when enabled globally) to generate unique "chapter like" numbering X.Y.Z) .uol { counter-reset: item; } .uol ol, ol.uol { list-style: none; padding-left: 0; } -.uol ol:not(.media-list) > li { position: relative; display: block; counter-increment: item; padding-left: 3rem; } -.uol ol:not(.media-list) > li::before { content: counters(item, ".") ".\0000a0"; position: absolute; left: 0; width: 2.5rem; text-align: right; } -.uol ol:not(.media-list) > li ol > li:before { content: counters(item, ".") "\0000a0"; } +.uol ol:not([class]) > li { position: relative; display: block; counter-increment: item; padding-left: 3rem; } +.uol ol:not([class]) > li::before { content: counters(item, ".") ".\0000a0"; position: absolute; left: 0; width: 2.5rem; text-align: right; } +.uol ol:not([class]) > li ol > li:before { content: counters(item, ".") "\0000a0"; } .uol li > ol { counter-reset: item; } // Style for .nouol View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b19d5d5681c440e5d2c113f594831e6e0eab296d -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b19d5d5681c440e5d2c113f594831e6e0eab296d You're receiving this email because of your account on gitlab.com. _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs