]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/small.scss
Remove height specification for sidebar in small screen mode
[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     }
107
108     .overlay-sidebar {
109       #sidebar {
110         width: 300px;
111       }
112
113       #map {
114         height: 100%;
115       }
116     }
117
118     #map-ui {
119       z-index: 9999;
120       width: 100%;
121       overflow-y: scroll;
122     }
123   }
124
125   #sidebar .welcome {
126     display: none !important;
127   }
128
129   .leaflet-top.leaflet-right {
130     top: 10px !important;
131     z-index: 0;
132   }
133
134   .content_map {
135     width: 100%;
136     border: none;
137     float: none;
138     height: 200px;
139     max-height: none;
140     min-height: auto;
141   }
142
143   /* Rules for the login form */
144
145   #login_login input#user_email {
146     width: 100%;
147     max-width: 18em;
148   }
149
150   #login_login input#user_password {
151     width: 100%;
152     max-width: 18em;
153   }
154
155   #login_login input#openid_url {
156     width: 100%;
157     max-width: 18em;
158   }
159
160   #login_openid_buttons td {
161     padding: 2px;
162   }
163
164   /* Rules for the user view */
165
166   .user_map {
167     width: 100% !important;
168     height: 300px !important;
169   }
170
171   #userinformation .deemphasize {
172     position: relative;
173     right: auto; left: auto;
174     margin-top: 10px;
175     top: auto;
176   }
177
178   /* Rules for the sign-up page */
179
180   &.user-new,
181   &.user-create {
182     .col6 {
183       width: 100%;
184     }
185
186     .aside {
187       display: none;
188     }
189   }
190
191   &.site-about #content .attr h1 {
192     font-size: 28px;
193   }
194
195 }