X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/582ab35ecd0b0cfacaedf8cbe1d6eadff302973b..3f26761a26f1ebd8746db166be2d30fd9b7ff7d6:/app/assets/stylesheets/small.css.scss diff --git a/app/assets/stylesheets/small.css.scss b/app/assets/stylesheets/small.css.scss index fb35aa6ac..d6fb6f758 100644 --- a/app/assets/stylesheets/small.css.scss +++ b/app/assets/stylesheets/small.css.scss @@ -1,6 +1,7 @@ /* Styles specific to a small screen, such as iPhone, Android, etc... */ -* { -webkit-appearance: none; } +input[type="submit"], +input[type="text"] { -webkit-appearance: none; } /* Default rules for the body of every page */ @@ -11,7 +12,7 @@ /* Rules for the whole left sidebar, including the logo */ #menu-icon { - display: inline-block; + display: inline-block !important; } @@ -25,10 +26,14 @@ nav.secondary { header { min-height: 54px; - height: 100%; + height: auto; background: #fff; + border-bottom: 1px solid #ddd; clear: both; - h1 { padding-bottom: 17px; } + position: fixed; + width: 100%; + top: 0; + h1 { padding-bottom: 15px; } &.closed { nav.primary, nav.secondary { @@ -66,18 +71,65 @@ nav.secondary { display: block; width: 100%; margin-left: 0; + > li { + width: 49%; + > a { + width: 100%; + text-align: center; + } + } } } +#compact-secondary-nav { + display: none; +} +.compact-hide { + display: inline-block; +} + +#content { margin-top: 58px; } + .map-layout { #sidebar { - width: 60%; + width: 100%; + position: fixed; + top: 58px; + height: 240px; + overflow-x: hidden; + z-index: 1; + background: #fff; + p.large-text { + font-size: 1.2em; + line-height: 1.4em; + } + &.minimized { + background: none; + } } #content { - position: static; + position: fixed; + top: 0; display: block; - height: 600px; + height: 100%; + margin-top: 0; + padding-top: 58px; } + #map { + width: 100%; + // height: 100%; + // position: fixed; + } + #map-ui { + z-index: 9999; + width: 100%; + overflow-y: scroll; + } +} + +.leaflet-top.leaflet-right { + top: 10px !important; + z-index: 0; } .content_map { @@ -89,31 +141,6 @@ nav.secondary { min-height: auto; } -/* Rules for the map UI */ - -.layers-ui { - .leaflet-container { - display: none; - } - - li { - border-radius: 0; - margin-bottom: 0; - - &:first-child { - border-radius: 4px 4px 0 0; - } - - &:last-child { - border-radius: 0 0 4px 4px; - } - } - - .overlay-layers p { - display: none; - } -} - /* Rules for the login form */ #login_login input#user_email { @@ -161,3 +188,7 @@ nav.secondary { display: none; } } + +.site-about #content .attr h1 { + font-size: 28px; +}