X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3bbdb004477a21e736f3613788356b12ba7f564f..373b932717a16e4d3aebf807739b39e4db2f83e1:/app/assets/stylesheets/small.css.scss diff --git a/app/assets/stylesheets/small.css.scss b/app/assets/stylesheets/small.css.scss index e6d2c92d4..e9d0a4779 100644 --- a/app/assets/stylesheets/small.css.scss +++ b/app/assets/stylesheets/small.css.scss @@ -1,53 +1,144 @@ +@import "parameters"; + /* Styles specific to a small screen, such as iPhone, Android, etc... */ -/* Default rules for the body of every page */ +input[type="submit"], +input[type="text"] { + -webkit-appearance: none; +} .column-1 { width: 100%; } -/* 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; } -.content_map { - width: 100%; - border: none; - float: none; - height: 200px; - max-height: none; - min-height: auto; -} +header { + height: auto; + min-height: $headerHeight; + background: #fff; -/* Rules for the map UI */ + h1 { + padding-bottom: 15px; + } -.layers-ui { - .leaflet-container { + &.closed nav { display: none; } - li { + .search_form { + display: block; + } +} + +#sidebar .search_form, +#edit_tab, +#export_tab { + display: none; +} + +nav.primary { + padding: 0; + + ul, li { + border: none; border-radius: 0; - margin-bottom: 0; + width: 100%; + } - &:first-child { - border-radius: 4px 4px 0 0; + 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 { + border-bottom: 1px solid #eee; - &:last-child { - border-radius: 0 0 4px 4px; + .user-menu { + display: block; + width: 100%; + margin-left: 0; + > li { + width: 49%; + > a { + width: 100%; + text-align: center; + } } } +} - .overlay-layers p { - display: none; +#compact-secondary-nav { + display: none; +} + +.compact-hide { + display: inline-block; +} + +.map-layout { + #sidebar, #map { + position: relative; + overflow-x: hidden; + width: 100%; + height: 50%; + } + + .overlay-sidebar { + #sidebar { + width: 300px; + } + + #map { + height: 100%; + } + } + + #map-ui { + z-index: 9999; + width: 100%; + overflow-y: scroll; } } +#sidebar .welcome { + display: none !important; +} + +.leaflet-top.leaflet-right { + top: 10px !important; + z-index: 0; +} + +.content_map { + width: 100%; + border: none; + float: none; + height: 200px; + max-height: none; + min-height: auto; +} + /* Rules for the login form */ #login_login input#user_email { @@ -95,3 +186,7 @@ nav.secondary, display: none; } } + +.site-about #content .attr h1 { + font-size: 28px; +}