diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2015-03-10 17:37:50 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-10-06 09:09:25 +0100 |
commit | d46284114fcd1b2038bc6da5b6477d6a293b1699 (patch) | |
tree | 7cc3e4b3aa9abe300d024ab03dd9f5d77d56284a | |
parent | 8f24e7b30a104085664d30011fb540b310d269db (diff) |
[Zurich] Refactory admin note styling so it can be used in print mode
See mysociety/FixMyStreet-Commercial#677
-rw-r--r-- | web/cobrands/zurich/base.scss | 46 | ||||
-rw-r--r-- | web/cobrands/zurich/layout.scss | 46 |
2 files changed, 46 insertions, 46 deletions
diff --git a/web/cobrands/zurich/base.scss b/web/cobrands/zurich/base.scss index 356757716..131036229 100644 --- a/web/cobrands/zurich/base.scss +++ b/web/cobrands/zurich/base.scss @@ -179,6 +179,52 @@ h4.static-with-rule { } } +.admin-note__text { + background-color: #eee; + padding: 0.5em 1em; + border-radius: 4px; + position: relative; + margin-bottom: 0.5em; + + // add a little speech bubble triangle to the bottom left corner + &:after { + content: ""; + display: block; + position: absolute; + bottom: -10px; + left: 10px; + border-top: 10px solid #eee; + border-left: 10px solid transparent; + } + + .admininternal & { + background-color: #eef; + + &:after { + border-top-color: #eef; + } + } +} + +.admin-note__creator { + padding-left: 30px; +} + +.admin-official-answer { + background-color: #1F52A3; // official Zurich blue colour + color: #fff; + padding: 0.8em 1em; + border-radius: 4px; + + p { + margin-bottom: 0.5em; + + &:last-child { + margin-bottom: 0; + } + } +} + .ui-spinner input { // stop jQuery UI spinner inputs from inheriting FMS input styles padding: 1px; diff --git a/web/cobrands/zurich/layout.scss b/web/cobrands/zurich/layout.scss index 8df633d0b..07e6c1c85 100644 --- a/web/cobrands/zurich/layout.scss +++ b/web/cobrands/zurich/layout.scss @@ -285,52 +285,6 @@ body.mappage.admin { } } -.admin-note__text { - background-color: #eee; - padding: 0.5em 1em; - border-radius: 4px; - position: relative; - margin-bottom: 0.5em; - - // add a little speech bubble triangle to the bottom left corner - &:after { - content: ""; - display: block; - position: absolute; - bottom: -10px; - left: 10px; - border-top: 10px solid #eee; - border-left: 10px solid transparent; - } - - .admininternal & { - background-color: #eef; - - &:after { - border-top-color: #eef; - } - } -} - -.admin-note__creator { - padding-left: 30px; -} - -.admin-official-answer { - background-color: #1F52A3; // official Zurich blue colour - color: #fff; - padding: 0.8em 1em; - border-radius: 4px; - - p { - margin-bottom: 0.5em; - - &:last-child { - margin-bottom: 0; - } - } -} - .admin { .content { margin: 2em 0 1em; |