diff options
author | Struan Donald <struan@exo.org.uk> | 2011-10-10 14:50:30 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-10-10 14:50:30 +0100 |
commit | 6e7276b843fde5e0490c3859f4beb92538004c0e (patch) | |
tree | 51bbf37602f6f3c6c83eae8a80e22a5a99c49194 /web/css | |
parent | a8b2d90c78103024b58b1760db72ab5c9397511b (diff) | |
parent | 5eb4f4e746283b4e945b52745503baa4da4f345f (diff) |
Merge remote branch 'origin/master' into open311-consumer
Diffstat (limited to 'web/css')
-rw-r--r-- | web/css/_main.scss | 8 | ||||
-rw-r--r-- | web/css/core.scss | 142 |
2 files changed, 125 insertions, 25 deletions
diff --git a/web/css/_main.scss b/web/css/_main.scss index d74d70ceb..383e099a1 100644 --- a/web/css/_main.scss +++ b/web/css/_main.scss @@ -29,7 +29,7 @@ h2 { select, input, textarea { font-size: 99%; - max-width: 99%; + max-width: 95%; } #mysociety { @@ -214,6 +214,12 @@ select, input, textarea { #header { font-size: 150%; } + h1 { + font-size: 140%; + } + h2 { + font-size: 130%; + } #navigation { position: static; border-top: solid 2px $header_colour; diff --git a/web/css/core.scss b/web/css/core.scss index f8a00a1f4..c1856a2c5 100644 --- a/web/css/core.scss +++ b/web/css/core.scss @@ -1,12 +1,5 @@ $map_width: 500px; -@mixin problem-banner { - margin: 0 $map_width + 30px 1em 0; - padding: 5px; - text-align: center; - position: relative; -} - // Generics #mysociety { @@ -95,6 +88,7 @@ $map_width: 500px; label { float: none; padding-right: 0; + margin-top: 0; } #submit { @@ -168,9 +162,9 @@ $map_width: 500px; width: 5em; } - fieldset, #fieldset { + fieldset, .fieldset { border: none; - padding: 0.5em; + margin: 0.5em; div { margin-top: 2px; clear: left; @@ -181,10 +175,10 @@ $map_width: 500px; display: none; } - #fieldset div.checkbox, #problem_submit { + .fieldset div.checkbox, #problem_submit { padding-left: 5.5em; } - #fieldset div.checkbox label, label.n { + .fieldset div.checkbox label, label.n { float: none; text-align: left; padding-right: 0; @@ -193,8 +187,11 @@ $map_width: 500px; cursor: hand; } + /* Lots of defaults to override small screen CSS */ #questionnaire label, #alerts label { float: none; + margin-top: 0; + display: inline; } .confirmed { @@ -212,7 +209,7 @@ $map_width: 500px; margin-bottom: 1em; } - #form_sign_in_no, #fieldset #form_sign_in_no { + #form_sign_in_no, .fieldset #form_sign_in_no { float: right; width: 47%; padding-left: 1%; @@ -256,12 +253,6 @@ $map_width: 500px; /* Drag is only present in noscript form */ #drag { - position: absolute; - width: $map_width; - height: $map_width; - right: 0; - top: 0; - input, img { position: absolute; border: none; @@ -291,8 +282,14 @@ $map_width: 500px; cursor: crosshair; } + .banner { + margin: 0 $map_width + 30px 1em 0; + padding: 5px; + text-align: center; + position: relative; + } + #text_map { - @include problem-banner; padding-left: 0.5em; text-align: left; margin-top: 0; @@ -334,25 +331,21 @@ $map_width: 500px; // Problem pages #fixed { - @include problem-banner; background-color: #ccffcc; border: solid 2px #009900; } #unknown { - @include problem-banner; background-color: #ffcccc; border: solid 2px #990000; } #closed { - @include problem-banner; background-color: #ccccff; border: solid 2px #000099; } #progress { - @include problem-banner; background-color: #ffffcc; border: solid 2px #999900; } @@ -551,6 +544,7 @@ $map_width: 500px; .olControlAttribution { bottom: 3px !important; left: 3px; + color: #222222; } .olControlPermalink { bottom: 3px !important; @@ -626,7 +620,7 @@ $map_width: 500px; margin-bottom: 1em; } - #form_sign_in_no, #fieldset #form_sign_in_no { + #form_sign_in_no, .fieldset #form_sign_in_no { float: none; width: auto; padding-left: 0; @@ -634,6 +628,106 @@ $map_width: 500px; margin-bottom: 1em; } + fieldset, .fieldset { + margin: 1em; + } + + label { + margin-top: 1em; + display: block; + float: none; + text-align: left; + padding-right: 0; + width: auto; + } + .fieldset div.checkbox, #problem_submit { + padding-left: 0; + } + .fieldset div.checkbox label, label.n { + display: inline; + } + + #rss_list { + float: none; + width: auto; + } + #rss_buttons { + float: none; + width: auto; + text-align: left; + } + } +} + +@media all and (max-width: 750px) { + $map_width: 365px; + #mysociety { + #map_box { + padding-left: 10px; + width: $map_width + 2px; + } + #map { + width: $map_width; + height: $map_width; + } + .banner { + margin-right: $map_width + 20px; + } + #text_map_arrow { + right: -18px; + border-width: 16px 9px; + } + } +} + +@media all and (max-width: 580px) { + $map_width: 235px; + #mysociety { + #map_box { + width: $map_width + 2px; + } + #map { + width: $map_width; + height: $map_width; + } + .banner { + margin-right: $map_width + 20px; + } + } +} + +@media all and (max-width: 320px) { + #mysociety { + #map_box { + padding-left: 0; + float: none; + width: 100%; + } + #map { + width: 99%; + } + + .banner { + margin-right: 0; + clear: both; + margin-top: 1em; + } + #text_map { + padding: 0.25em 0.5em; + font-size: 100%; + -moz-border-radius-topleft: 0; + -moz-border-radius-bottomleft: 1em; + -moz-border-radius-bottomright: 1em; + -webkit-border-top-left-radius: 0; + -webkit-border-bottom-left-radius: 1em; + -webkit-border-bottom-right-radius: 1em; + border-top-left-radius: 0; + border-bottom-left-radius: 1em; + border-bottom-right-radius: 1em; + } + #text_map_arrow { + display: none; + } } } |