Step 2 of move bullets from HTML to CSS

This change is a follow-up to Ibfb0cb28f0086fb1b7d0997be2246bc120eea85e.

Do not deploy this change before the HTML caches have expired or purged.

Bug: T288910
Change-Id: Ia9b7b1a6d46029acfeb407a0933ffeec203d12b2
This commit is contained in:
Fomafix 2019-02-06 18:02:19 +01:00
parent a1e1c983e5
commit f37cd36f13

View file

@ -108,20 +108,16 @@
color: #0645ad;
}
/* The :empty selector in the following selectors prevents the cached HTML
* that includes a bullet in the HTML from showing two bullets. After the cache
* has expired the :empty selectors can be removed.
*/
.CategoryTreeEmptyBullet:empty,
.CategoryTreeToggle:empty,
.CategoryTreeEmptyBullet,
.CategoryTreeToggle,
.CategoryTreePageBullet {
display: inline-block;
width: 0;
height: 0;
}
.CategoryTreeEmptyBullet:empty,
.CategoryTreeToggle[ data-ct-state='collapsed' ]:empty {
.CategoryTreeEmptyBullet,
.CategoryTreeToggle[ data-ct-state='collapsed' ] {
border-top: 5px solid transparent;
border-left: 10px solid;
border-bottom: 5px solid transparent;
@ -129,24 +125,24 @@
}
/* @noflip */
.mw-content-ltr .CategoryTreeEmptyBullet:empty,
.mw-content-ltr .CategoryTreeToggle[ data-ct-state='collapsed' ]:empty,
.mw-content-rtl .mw-content-ltr .CategoryTreeEmptyBullet:empty,
.mw-content-rtl .mw-content-ltr .CategoryTreeToggle[ data-ct-state='collapsed' ]:empty {
.mw-content-ltr .CategoryTreeEmptyBullet,
.mw-content-ltr .CategoryTreeToggle[ data-ct-state='collapsed' ],
.mw-content-rtl .mw-content-ltr .CategoryTreeEmptyBullet,
.mw-content-rtl .mw-content-ltr .CategoryTreeToggle[ data-ct-state='collapsed' ] {
border-left: 10px solid;
border-right: 0 none;
}
/* @noflip */
.mw-content-rtl .CategoryTreeEmptyBullet:empty,
.mw-content-rtl .CategoryTreeToggle[ data-ct-state='collapsed' ]:empty,
.mw-content-ltr .mw-content-rtl .CategoryTreeEmptyBullet:empty,
.mw-content-ltr .mw-content-rtl .CategoryTreeToggle[ data-ct-state='collapsed' ]:empty {
.mw-content-rtl .CategoryTreeEmptyBullet,
.mw-content-rtl .CategoryTreeToggle[ data-ct-state='collapsed' ],
.mw-content-ltr .mw-content-rtl .CategoryTreeEmptyBullet,
.mw-content-ltr .mw-content-rtl .CategoryTreeToggle[ data-ct-state='collapsed' ] {
border-right: 10px solid;
border-left: 0 none;
}
.CategoryTreeToggle[ data-ct-state='expanded' ]:empty {
.CategoryTreeToggle[ data-ct-state='expanded' ] {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 10px solid;