Use LESS to conditionally hide SL assets.

This commit is contained in:
Paulo Reis 2018-04-03 14:09:42 +01:00 committed by Jessica Lawshe
parent 4ee81b3b44
commit 2e898bcf13
3 changed files with 15 additions and 12 deletions

View file

@ -4,12 +4,11 @@ block content
.content .content
.container .container
.error-container .error-container
if (settings.brandPrefix !== 'ol-') .error-figure
.error-figure img.error-img(
img.error-img( src="/img/brand/404-visual.svg"
src="/img/brand/404-visual.svg" alt="Not found"
alt="Not found" )
)
.error-details .error-details
p.error-status Not found p.error-status Not found
p.error-description #{translate("cant_find_page")} p.error-description #{translate("cant_find_page")}

View file

@ -10,12 +10,11 @@ html.full-height(itemscope, itemtype='http://schema.org/Product')
.content.full-height .content.full-height
.container.full-height .container.full-height
.error-container.full-height .error-container.full-height
if (settings.brandPrefix !== 'ol-') .error-figure.error-figure-500
.error-figure.error-figure-500 img.error-img(
img.error-img( src="/img/brand/500-visual-socket.svg"
src="/img/brand/500-visual-socket.svg" alt="Error"
alt="Error" )
)
.error-details .error-details
p.error-status Something went wrong, sorry. p.error-status Something went wrong, sorry.
p.error-description Our staff are probably looking into this, but if it continues, please contact us at #{settings.adminEmail} p.error-description Our staff are probably looking into this, but if it continues, please contact us at #{settings.adminEmail}

View file

@ -20,6 +20,11 @@
display: block; display: block;
} }
} }
.error-figure when (@is-overleaf = true) {
display: none;
}
.error-figure-500 { .error-figure-500 {
&::before { &::before {
content: ''; content: '';