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