mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Make the background darker only in specific cases
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
Darkswarm.directive "darkerBackground", ->
|
||||
restrict: "A"
|
||||
link: (scope, elm, attr)->
|
||||
elm.closest('.page-view').toggleClass("with-darker-background", true)
|
||||
@@ -77,7 +77,6 @@
|
||||
|
||||
.page-view {
|
||||
background: none;
|
||||
background-color: $grey-080;
|
||||
border: none;
|
||||
padding-bottom: 5em;
|
||||
|
||||
@@ -119,4 +118,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-view.with-darker-background {
|
||||
background-color: $grey-080;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.row.closed_shop_header
|
||||
.small-12.columns
|
||||
.content
|
||||
.content{ "darker-background" => true }
|
||||
%h4
|
||||
.warning_sign
|
||||
.rectangle
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
- if require_customer?
|
||||
.content
|
||||
.content{ "darker-background" => true }
|
||||
.row.footer-pad
|
||||
.small-12.columns
|
||||
.shopfront_hidden_message
|
||||
|
||||
Reference in New Issue
Block a user