[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 <68baccf76df64_2cdd3107247b@gitlab-sidekiq-low-urgency-cpu-bound-v2-75889b4f96-nrn77.mail>

Gary Cunningham-Lee pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b7694231 by Gary Cunningham-Lee at 2025-09-05T20:35:50+09:00
[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

- - - - -


1 changed file:

- themes/base_files/scss/_tiki-miscellaneous_global.scss


Changes:

=====================================
themes/base_files/scss/_tiki-miscellaneous_global.scss
=====================================
@@ -610,18 +610,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/b769423189d5b8c0df44554d70bc9d53f5a37543

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b769423189d5b8c0df44554d70bc9d53f5a37543
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.