]> git.openstreetmap.org Git - rails.git/commitdiff
Fix small screen header on interior pages
authorJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 11 Nov 2013 22:56:33 +0000 (14:56 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 11 Nov 2013 22:56:33 +0000 (14:56 -0800)
app/assets/stylesheets/common.css.scss
app/assets/stylesheets/parameters.scss [new file with mode: 0644]
app/assets/stylesheets/small.css.scss

index de0bad969d75d06c0c06cfecc1efa89fce2f29de..4c23a3c0d124ae908e50ced1ab7352e4237ad7d6 100644 (file)
@@ -1,20 +1,4 @@
-/* Parameters */
-$lineheight: 20px;
-$typeheight: 14px;
-
-$offwhite: #f4f4ff;
-$blue: #7092FF;
-$lightblue: #B8C5F0;
-$green: #7ebc6f;
-$grey: #CCC;
-$red: red;
-$lightgrey: #EEE;
-$darkgrey: #AAA;
-$hovercolor: 20%;
-$headerHeight: 54px;
-$sidebarWidth: 300px;
-$keyline: 1px solid $lightgrey;
-$border-radius: 3px;
+@import "parameters";
 
 /* Styles common to large and small screens */
 
 
 /* Styles common to large and small screens */
 
diff --git a/app/assets/stylesheets/parameters.scss b/app/assets/stylesheets/parameters.scss
new file mode 100644 (file)
index 0000000..013c7ae
--- /dev/null
@@ -0,0 +1,17 @@
+/* Parameters */
+$lineheight: 20px;
+$typeheight: 14px;
+
+$offwhite: #f4f4ff;
+$blue: #7092FF;
+$lightblue: #B8C5F0;
+$green: #7ebc6f;
+$grey: #CCC;
+$red: red;
+$lightgrey: #EEE;
+$darkgrey: #AAA;
+$hovercolor: 20%;
+$headerHeight: 54px;
+$sidebarWidth: 300px;
+$keyline: 1px solid $lightgrey;
+$border-radius: 3px;
index 5e8edc28c78988ce4856172e080af8a86d3397ac..39b946af06d93c96eacf54d691bb6fbb02c54c27 100644 (file)
@@ -1,3 +1,5 @@
+@import "parameters";
+
 /* Styles specific to a small screen, such as iPhone, Android, etc... */
 
 input[type="submit"],
 /* Styles specific to a small screen, such as iPhone, Android, etc... */
 
 input[type="submit"],
@@ -23,6 +25,7 @@ nav.secondary {
 
 header {
   height: auto;
 
 header {
   height: auto;
+  min-height: $headerHeight;
   background: #fff;
 
   h1 {
   background: #fff;
 
   h1 {