aboutsummaryrefslogtreecommitdiffstats
path: root/web/css/_main.scss
diff options
context:
space:
mode:
Diffstat (limited to 'web/css/_main.scss')
-rw-r--r--web/css/_main.scss62
1 files changed, 62 insertions, 0 deletions
diff --git a/web/css/_main.scss b/web/css/_main.scss
index b4e4a13f0..d74d70ceb 100644
--- a/web/css/_main.scss
+++ b/web/css/_main.scss
@@ -1,5 +1,17 @@
// Generics
+/* Thanks to normalize.css
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
+ * http://clagnut.com/blog/348/#c790
+ * 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
+ */
+html {
+ font-size: 100%; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 3 */
+ -ms-text-size-adjust: 100%; /* 3 */
+}
+
body {
font-family: "Gill Sans", "Gill Sans MT", Helvetica, Arial, sans-serif;
margin: 0;
@@ -17,6 +29,7 @@ h2 {
select, input, textarea {
font-size: 99%;
+ max-width: 99%;
}
#mysociety {
@@ -158,6 +171,20 @@ select, input, textarea {
right: 10px;
}
+.ie6 #logo {
+ display: none;
+}
+
+.ie6 #logoie {
+ width: 133px;
+ height: 26px;
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/i/mysociety-dark.png',sizingMethod='scale');
+ position: absolute;
+ top: 4em;
+ right: 10px;
+ cursor: pointer;
+}
+
#footer {
clear: both;
text-align: center;
@@ -180,3 +207,38 @@ select, input, textarea {
}
}
+@media all and (max-width: 50em) {
+ #logo {
+ display: none;
+ }
+ #header {
+ font-size: 150%;
+ }
+ #navigation {
+ position: static;
+ border-top: solid 2px $header_colour;
+ border-bottom: solid 2px $header_colour;
+ margin: 1em 0;
+ padding: 0.15em 0.5em;
+ text-align: center;
+ background-color: $header_back;
+ color: $header_colour;
+
+ a:hover, a:active {
+ background-color: $header_colour;
+ color: $header_back;
+ -moz-border-radius: 0.5em;
+ -webkit-border-radius: 0.5em;
+ border-radius: 0.5em;
+ }
+ }
+ #footer {
+ width: auto;
+ padding: 0 1em;
+ border-top: none;
+ }
+ #wrapper {
+ margin: 0em 1em;
+ }
+}
+