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