Only apply vertical margin to #siteNotice content when non-empty

Bug: T325219
Change-Id: I7fd7600172e72707d1d8065ed2be235841a401be
This commit is contained in:
Ed Sanders 2023-02-20 16:22:30 +00:00 committed by Jdlrobson
parent 659aee4559
commit ff8a5bc034

View file

@ -8,7 +8,11 @@
/* Site Notice (includes notices from CentralNotice extension) */ /* Site Notice (includes notices from CentralNotice extension) */
#siteNotice { #siteNotice {
font-size: @font-size-site-notice; font-size: @font-size-site-notice;
margin: @grid-row-gap 0;
position: relative; position: relative;
text-align: center; text-align: center;
// e.g. #centralNotice, #localNotice, when not empty (T325219)
> div:not( :empty ) {
margin: @grid-row-gap 0;
}
} }