]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/small.scss
Update to iD v2.3.0
[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
76   nav.secondary {
77     border-bottom: 1px solid #eee;
78
79     .user-menu {
80       display: block;
81       width: 100%;
82       margin-left: 0;
83       > li {
84         width: 49%;
85         > a {
86           width: 100%;
87           text-align: center;
88         }
89       }
90     }
91   }
92
93   #compact-secondary-nav {
94     display: none;
95   }
96
97   .compact-hide {
98     display: inline-block;
99   }
100
101   &.map-layout {
102     #sidebar, #map {
103       position: relative;
104       overflow-x: hidden;
105       width: 100%;
106       height: 50%;
107     }
108
109     .overlay-sidebar {
110       #sidebar {
111         position: absolute;
112         width: 300px;
113         height: auto;
114         overflow: hidden;
115       }
116
117       #map {
118         height: 100%;
119       }
120     }
121
122     #map-ui {
123       z-index: 9999;
124       width: 100%;
125       overflow-y: scroll;
126     }
127   }
128
129   #sidebar .welcome,
130   #sidebar #banner {
131     display: none !important;
132   }
133
134   .leaflet-top.leaflet-right {
135     top: 10px !important;
136   }
137
138   .content_map {
139     width: 100%;
140     border: none;
141     float: none;
142     height: 200px;
143     max-height: none;
144     min-height: auto;
145   }
146
147   /* Rules for the login form */
148
149   #login_login input#user_email {
150     width: 100%;
151     max-width: 18em;
152   }
153
154   #login_login input#user_password {
155     width: 100%;
156     max-width: 18em;
157   }
158
159   #login_login input#openid_url {
160     width: 100%;
161     max-width: 18em;
162   }
163
164   #login_openid_buttons td {
165     padding: 2px;
166   }
167
168   /* Rules for the user view */
169
170   .user_map {
171     width: 100% !important;
172     height: 300px !important;
173   }
174
175   #userinformation .deemphasize {
176     position: relative;
177     right: auto; left: auto;
178     margin-top: 10px;
179     top: auto;
180   }
181
182   /* Rules for the sign-up page */
183
184   &.user-new,
185   &.user-create {
186     .col6 {
187       width: 100%;
188     }
189
190     .aside {
191       display: none;
192     }
193   }
194
195   &.site-about #content .attr h1 {
196     font-size: 28px;
197   }
198
199 }