]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/small.css.scss
a955017757f6cb675d4fc0642672d6c6c766489b
[rails.git] / app / assets / stylesheets / small.css.scss
1 /* Styles specific to a small screen, such as iPhone, Android, etc... */
2
3 /* Default rules for the body of every page */
4
5 body {
6   font-size: 12px;
7 }
8
9 h1 {
10   font-size: 14px;
11 }
12
13 /* Rules for the whole left sidebar, including the logo */
14
15 #left {
16   display: none;
17 }
18
19 /* Rules for tabbed navigation bar */
20
21 #top-bar {
22   margin: 0px;
23   height: 39px;
24   padding: 0;
25 }
26
27 #tabnav {
28   height: 14px;
29   margin: 0px;
30   padding-top: 5px;
31   margin-top: 20px;
32   font-size: 10px;
33   line-height: 10px;
34 }
35
36 #tabnav a, #tabnav a:link, #tabnav a:visited {
37   font-size: 10px;
38   line-height: 10px;
39   padding: 2px 5px;
40   margin-right: 1px;
41 }
42
43 /* Rules for the site name - shown when left sidebar is hidden */
44
45 #small-title {
46   font-size: 12px;
47   line-height: 14px;
48   height: 16px;
49   display: block;
50   position: absolute;
51   top: 5px;
52   padding: 2px;
53   width: 110px; /* TODO: find better fix for overlap */
54   background-color: #fff;
55   z-index: 100;
56 }
57
58 #small-title img {
59   position: absolute;
60 }
61
62 #small-title h1 {
63   position: absolute;
64   left: 18px;
65   font-size: 12px;
66   margin: 0;
67 }
68
69 /* Rules for greeting bar in the top right corner */
70
71 #greeting {
72   position: absolute;
73   top: 5px;
74   height: 14px;
75   font-size: 12px;
76   line-height: 12px;
77   white-space: nowrap;
78   background: none;
79 }
80
81 #full-greeting {
82   display: none;
83 }
84
85 #small-greeting {
86   display: inline;
87 }
88
89 /* Rules for OpenLayers maps */
90
91 #map {
92   border: 0;
93 }
94
95 .olControlSimplePanZoom {
96   display: none;
97 }
98
99 .site-index #map .olControlZoom,
100 .site-index #map .SimpleLayerSwitcher,
101 .site-export #map .olControlZoom,
102 .site-export #map .SimpleLayerSwitcher {
103   top: 8px !important;
104 }
105
106 /* Rules for the main content area */
107
108 #content {
109   margin-left: 0px;
110   margin-right: 0px;
111   border-left: 0px;
112   border-right: 0px;
113 }
114
115 .site-index #content {
116   margin-top: 40px;
117 }
118
119 /* Rules for search sidebar when shown */
120
121 #sidebar {
122   border: 0px;
123   border-right: 1px solid #ccccdd;
124   margin: 0px;
125 }
126
127 .sidebar_title, #sidebar_content {
128   font-size: 10px !important;
129 }
130
131 p.search_results_entry {
132   padding: 2px 0px;
133 }
134
135 /* Rules for the signup form */
136
137 #signupForm input[type="text"], #signupForm input[type="password"] {
138   width: 100%;
139 }
140
141 #signupForm input#user_email {
142   max-width: 30em;
143 }
144
145 #signupForm input#user_email_confirmation {
146   max-width: 30em;
147 }
148
149 #signupForm input#user_display_name {
150   max-width: 20em;
151 }
152
153 #signupForm input#user_pass_crypt {
154   max-width: 20em;
155 }
156
157 #signupForm input#user_pass_crypt_confirmation {
158   max-width: 20em;
159 }
160
161 /* Rules for the login form */
162
163 #login_login input#user_email {
164   width: 100%;
165   max-width: 18em;
166 }
167
168 #login_login input#user_password {
169   width: 100%;
170   max-width: 18em;
171 }
172
173 #login_login input#openid_url {
174   width: 100%;
175   max-width: 18em;
176 }
177
178 #login_openid_buttons td {
179   padding-left: 2px;
180   padding-right: 2px;
181   padding-top: 2px;
182   padding-bottom: 2px;
183 }
184
185 /* Rules for the profile page */
186
187 .user_map {
188   width: 100% !important;
189   height: 300px !important;
190 }
191
192 /* Rules for the user settings page */
193
194 #user_new_email {
195   width: 60% !important;
196 }
197
198 #user_description, #user_preferred_editor {
199   width: 90% !important;
200 }
201
202 .minorNote {
203   display: block;
204 }
205
206 /* Rules for the browse pages */
207
208 #browse_navigation {
209   width: 100% !important;
210   margin-top: 0 !important;
211 }
212
213 #small_map, #browse_map {
214   width: 100% !important;
215 }
216
217 #changeset_list tr {
218   display: block;
219   clear: left;
220   width: 100%;
221 }
222
223 #changeset_list th {
224   display: none;
225 }
226
227 #changeset_list td {
228   display: block;
229   float: left;
230   padding-right: 10px;
231 }
232
233 #changeset_list td.comment, #changeset_list td.area {
234   width: 96%;
235   clear: left;
236 }
237
238 /* Rules for the diary entries pages */
239
240 #diary_entry_title, #diary_entry_body, #diary_entry_language_code, #diary_comment_body {
241   width: 100% !important;
242 }
243
244 #usemap {
245   display: block;
246 }
247
248 /* Rules for the messaging pages */
249
250 #message_title, #message_body {
251   width: 100% !important;
252 }