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