]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/small.scss
Merge pull request #2547 from bezdna/mobile-layout
[rails.git] / app / assets / stylesheets / small.scss
1 @import "parameters";
2
3 /* Styles specific to a small screen, such as iPhone, Android, etc... */
4
5 body.small {
6
7   input[type="submit"],
8   input[type="text"] {
9     -webkit-appearance: none;
10   }
11
12   .column-1 {
13     width: 100%;
14   }
15
16   #menu-icon {
17     display: inline-block !important;
18   }
19
20   nav.primary,
21   nav.secondary {
22     float: none !important;
23     position: relative;
24     display: block;
25     clear: both;
26   }
27
28   header {
29     height: auto;
30     min-height: $headerHeight;
31     background: #fff;
32
33     h1 {
34       padding-bottom: 15px;
35     }
36
37     &.closed nav {
38       display: none;
39     }
40
41     .search_forms {
42       display: block;
43     }
44   }
45
46   #sidebar .search_forms,
47   #edit_tab,
48   #export_tab {
49     display: none;
50   }
51
52   nav.primary {
53     padding: 0;
54
55     ul, li {
56       border: none;
57       border-radius: 0;
58       width: 100%;
59     }
60
61     ul {
62       border-top: 1px solid #eee;
63       li {
64         border-bottom: 1px solid #eee;
65         border-right: none;
66         > a {
67           border-radius: 0;
68           width: 100%;
69           text-align: center;
70           font-size: 15px;
71         }
72       }
73     }
74
75     .btn-group {
76       width: 100%;
77       padding: 10px;
78     }
79   }
80
81   nav.secondary {
82     .user-menu {
83       width: 100%;
84     }
85   }
86
87   #compact-secondary-nav {
88     display: none;
89   }
90
91   .compact-hide {
92     display: inline-block;
93   }
94   
95
96   .overlay-sidebar #sidebar .welcome.visible {
97     display: none;
98   }
99
100   .overlay-sidebar #sidebar #banner {
101     display: none;
102   }
103
104   .leaflet-top.leaflet-right {
105     top: 10px !important;
106   }
107
108   .content_map {
109     width: 100%;
110     border: none;
111     float: none;
112     height: 200px;
113     max-height: none;
114     min-height: auto;
115   }
116
117   /* Rules for the login form */
118
119   #login_login input#user_email {
120     width: 100%;
121     max-width: 18em;
122   }
123
124   #login_login input#user_password {
125     width: 100%;
126     max-width: 18em;
127   }
128
129   #login_login input#openid_url {
130     width: 100%;
131     max-width: 18em;
132   }
133
134   #login_openid_buttons td {
135     padding: 2px;
136   }
137
138   /* Rules for the user view */
139
140   .user_map {
141     width: 100% !important;
142     height: 300px !important;
143   }
144
145   #userinformation .deemphasize {
146     position: relative;
147     right: auto; left: auto;
148     margin-top: 10px;
149     top: auto;
150   }
151
152   &.site-about #content .attr h1 {
153     font-size: 28px;
154   }
155
156 }
157
158 @media (max-width: 767.98px) {
159   body.map-layout {
160     #sidebar, #map {
161       position: relative;
162       overflow-x: hidden;
163       width: 100%;
164       height: 50%;
165     }
166
167     .overlay-sidebar {
168       #sidebar {
169         position: absolute;
170         width: 300px;
171         height: auto;
172         overflow: hidden;
173       }
174
175       #map {
176         height: 100%;
177       }
178     }
179
180     #map-ui {
181       z-index: 9999;
182       width: 100%;
183       overflow-y: scroll;
184     }
185   }
186 }