X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3bbdb004477a21e736f3613788356b12ba7f564f..89a132d31c8ca3b446c716860e55bf31bc811bd0:/app/assets/stylesheets/small.css.scss diff --git a/app/assets/stylesheets/small.css.scss b/app/assets/stylesheets/small.css.scss index e6d2c92d4..de1b44bb5 100644 --- a/app/assets/stylesheets/small.css.scss +++ b/app/assets/stylesheets/small.css.scss @@ -1,5 +1,7 @@ /* Styles specific to a small screen, such as iPhone, Android, etc... */ +* { -webkit-appearance: none; } + /* Default rules for the body of every page */ .column-1 { @@ -8,10 +10,113 @@ /* Rules for the whole left sidebar, including the logo */ +#menu-icon { + display: inline-block !important; +} + + nav.primary, -nav.secondary, -#sidebar { - display: none; +nav.secondary { + float: none !important; + position: relative; + display: block; + clear: both; +} + +header { + min-height: 54px; + height: auto; + background: #fff; + border-bottom: 1px solid #ddd; + clear: both; + position: fixed; + width: 100%; + top: 0; + h1 { padding-bottom: 15px; } + &.closed { + nav.primary, + nav.secondary { + display: none; + } + } +} + +.mobile-hide { display: none !important; } + +nav.primary { + padding: 0; + ul, li { + border: none; + border-radius: 0; + width: 100%; + } + ul { + border-top: 1px solid #eee; + li { + border-bottom: 1px solid #eee; + border-right: none; + > a { + border-radius: 0; + width: 100%; + text-align: center; + font-size: 15px; + } + } + } +} + +nav.secondary { + .user-menu { + display: block; + width: 100%; + margin-left: 0; + > li { + width: 49%; + > a { + width: 100%; + text-align: center; + } + } + } +} + +#content { margin-top: 58px; } + +.map-layout { + #sidebar { + width: 100%; + position: fixed; + top: 58px; + height: 370px; + overflow-x: hidden; + z-index: 1; + background: #fff; + p.large-text { + font-size: 1.2em; + line-height: 1.4em; + } + &.minimized { + background: none; + } + } + #content { + position: fixed; + top: 0; + display: block; + height: 100%; + margin-top: 0; + padding-top: 58px; + } + #map { + width: 100%; + // height: 100%; + // position: fixed; + } +} + +.leaflet-top.leaflet-right { + top: 10px !important; + z-index: 0; } .content_map { @@ -95,3 +200,7 @@ nav.secondary, display: none; } } + +.site-about #content .attr h1 { + font-size: 28px; +}