From 64896669e2f25bee3ba1d3bf06bf8979d0cc8ece Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 1 Aug 2019 09:47:13 -0700 Subject: [PATCH] Empty subtitle elements should not have margin I considered not outputting the subtitle, but the PHP mustaching templating library requires truthy values and that seemed like overkill Bug: T217197 Change-Id: I3ebe550bad8b5eb0f24d742261ea696950c91a59 --- resources/skins.minerva.base.styles/ui.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/skins.minerva.base.styles/ui.less b/resources/skins.minerva.base.styles/ui.less index f108dd0..19292dd 100644 --- a/resources/skins.minerva.base.styles/ui.less +++ b/resources/skins.minerva.base.styles/ui.less @@ -324,6 +324,10 @@ input.search { .minerva__subtitle { margin-top: 10px; margin-bottom: 10px; + + &:empty { + margin: 0; + } } @media all and ( min-width: @width-breakpoint-tablet ) {