]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/small.scss
Use bootstrap text-muted in place of custom deemphasze class
[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   &.site-about #content .attr h1 {
146     font-size: 28px;
147   }
148
149 }
150
151 @media (max-width: 767.98px) {
152   body.map-layout {
153     #sidebar, #map {
154       position: relative;
155       overflow-x: hidden;
156       width: 100%;
157       height: 50%;
158     }
159
160     .overlay-sidebar {
161       #sidebar {
162         position: absolute;
163         width: 300px;
164         height: auto;
165         overflow: hidden;
166       }
167
168       #map {
169         height: 100%;
170       }
171     }
172
173     #map-ui {
174       z-index: 9999;
175       width: 100%;
176       overflow-y: scroll;
177     }
178   }
179 }