Merge lp:~cjohnston/summit/mobile-use-summit into lp:summit
- mobile-use-summit
- Merge into trunk
Proposed by
Chris Johnston
Status: | Merged |
---|---|
Approved by: | Chris Johnston |
Approved revision: | 364 |
Merged at revision: | 365 |
Proposed branch: | lp:~cjohnston/summit/mobile-use-summit |
Merge into: | lp:summit |
Prerequisite: | lp:~dooferlad/summit/linaro-small-theme |
Diff against target: |
398 lines (+205/-105) 7 files modified
summit/common/templates/base.html (+6/-6) summit/common/templates/common/index.html (+13/-0) summit/media/css/site.css (+33/-95) summit/schedule/templates/schedule/by_room.html (+39/-4) summit/schedule/templates/schedule/by_track.html (+39/-0) summit/schedule/templates/schedule/daily.html (+50/-0) summit/schedule/templates/schedule/summit.html (+25/-0) |
To merge this branch: | bzr merge lp:~cjohnston/summit/mobile-use-summit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Johnston | Approve | ||
Review via email: mp+103105@code.launchpad.net |
Commit message
This updates Summit for mobile browsing
Description of the change
To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) : | # |
review:
Approve
Revision history for this message
Tarmac WebDev (tarmac-webdev) wrote : | # |
Revision history for this message
Tarmac WebDev (tarmac-webdev) wrote : | # |
No proposals found for merge of lp:~dooferlad/summit/linaro-small-theme into lp:summit.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'summit/common/templates/base.html' | |||
2 | --- summit/common/templates/base.html 2012-04-22 20:12:19 +0000 | |||
3 | +++ summit/common/templates/base.html 2012-04-23 14:24:21 +0000 | |||
4 | @@ -37,7 +37,7 @@ | |||
5 | 37 | {% menu main_menu %} | 37 | {% menu main_menu %} |
6 | 38 | <ul class="clearfix"> | 38 | <ul class="clearfix"> |
7 | 39 | {% for item in menuitems %} | 39 | {% for item in menuitems %} |
9 | 40 | <li{% if item.current %} class='active'{% endif %}><a class="main-nav-item" href="{{ item.url }}" title="{{ item.title|escape }}">{{ item.title }}</a></li> | 40 | <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item" href="{{ item.url }}" title="{{ item.title|escape }}">{{ item.title }}</a></li> |
10 | 41 | {% endfor %} | 41 | {% endfor %} |
11 | 42 | </ul> | 42 | </ul> |
12 | 43 | {% endblock %} | 43 | {% endblock %} |
13 | @@ -49,11 +49,11 @@ | |||
14 | 49 | 49 | ||
15 | 50 | 50 | ||
16 | 51 | {% block messages %} | 51 | {% block messages %} |
22 | 52 | {% if messages %} | 52 | {% if messages %} |
23 | 53 | {% for message in messages %} | 53 | {% for message in messages %} |
24 | 54 | <div class = 'message' ><div class = 'content-shim' >{{ message }}</div></div> | 54 | <div class = 'message' ><div class = 'content-shim' >{{ message }}</div></div> |
25 | 55 | {% endfor %} | 55 | {% endfor %} |
26 | 56 | {% endif %} | 56 | {% endif %} |
27 | 57 | {% endblock %} | 57 | {% endblock %} |
28 | 58 | 58 | ||
29 | 59 | {% block content %} | 59 | {% block content %} |
30 | 60 | 60 | ||
31 | === modified file 'summit/common/templates/common/index.html' | |||
32 | --- summit/common/templates/common/index.html 2012-03-31 03:30:20 +0000 | |||
33 | +++ summit/common/templates/common/index.html 2012-04-23 14:24:21 +0000 | |||
34 | @@ -20,3 +20,16 @@ | |||
35 | 20 | </article> | 20 | </article> |
36 | 21 | </div> | 21 | </div> |
37 | 22 | {% endblock %} | 22 | {% endblock %} |
38 | 23 | {% block closure %} | ||
39 | 24 | <style> | ||
40 | 25 | /* Mobile-friendly styles */ | ||
41 | 26 | @media screen and (max-width: 960px) { | ||
42 | 27 | .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary { display: none; } | ||
43 | 28 | #page-header { text-align: center; } | ||
44 | 29 | #page-header a { height: 24px; line-height: 1; float: none; display: inline; } | ||
45 | 30 | .span-8, .span-9, .span-3, .span-12 { width: 100%; } | ||
46 | 31 | #fb-root * { width: auto; } | ||
47 | 32 | } | ||
48 | 33 | </style> | ||
49 | 34 | {% endblock %} | ||
50 | 35 | |||
51 | 23 | 36 | ||
52 | === modified file 'summit/media/css/site.css' | |||
53 | --- summit/media/css/site.css 2012-04-22 19:55:59 +0000 | |||
54 | +++ summit/media/css/site.css 2012-04-23 14:24:21 +0000 | |||
55 | @@ -82,101 +82,6 @@ | |||
56 | 82 | font-size: 0.7pc; | 82 | font-size: 0.7pc; |
57 | 83 | } | 83 | } |
58 | 84 | 84 | ||
59 | 85 | |||
60 | 86 | /* Mobile-friendly styles */ | ||
61 | 87 | @media screen and (max-width: 481px) { | ||
62 | 88 | aside#top-nav, header#page-header, aside#page-related, footer#page-footer, section#main-section .container, article.main-content, .container, #main-nav, .minor-content, #page-footer div.container { | ||
63 | 89 | width: auto; | ||
64 | 90 | margin: 0; padding: 0; | ||
65 | 91 | } | ||
66 | 92 | #page-header { text-align: center; } | ||
67 | 93 | #page-header a { height: 24px; line-height: 1; float: none; display: inline; } | ||
68 | 94 | #top-logo { display: none; } | ||
69 | 95 | .minor-content { text-align: center; } | ||
70 | 96 | .double-side-content { | ||
71 | 97 | text-align: center; | ||
72 | 98 | } | ||
73 | 99 | .side-content { display: none; } | ||
74 | 100 | #top-login { display: block; } | ||
75 | 101 | aside#top-nav { | ||
76 | 102 | display: block; | ||
77 | 103 | text-align: center; | ||
78 | 104 | font-size: 16px; | ||
79 | 105 | min-height: 24px; | ||
80 | 106 | } | ||
81 | 107 | .schedule-head > a { display: none; } /* qr code */ | ||
82 | 108 | div.schedule-head .schedule-date { | ||
83 | 109 | display: block; | ||
84 | 110 | overflow: auto; | ||
85 | 111 | font-size: 16px; | ||
86 | 112 | text-align: center; | ||
87 | 113 | margin: 0; | ||
88 | 114 | } | ||
89 | 115 | div.schedule-head .schedule-qrcode { display: none; } | ||
90 | 116 | div.schedule-head .schedule-date a { | ||
91 | 117 | display: block; | ||
92 | 118 | float: right; | ||
93 | 119 | background: #eee; | ||
94 | 120 | width: 33%; | ||
95 | 121 | text-align: center; | ||
96 | 122 | } | ||
97 | 123 | div.schedule-head .schedule-date a:nth-child(1) { | ||
98 | 124 | float: left; | ||
99 | 125 | } | ||
100 | 126 | table.basic { | ||
101 | 127 | margin-top: 0; | ||
102 | 128 | width: 100%; | ||
103 | 129 | } | ||
104 | 130 | table.basic span.main-agenda-item-tracks { | ||
105 | 131 | display: none; | ||
106 | 132 | } | ||
107 | 133 | table.column { width: 100%; } | ||
108 | 134 | table.column td { display: block; width: 100%; } | ||
109 | 135 | table.column td ul { | ||
110 | 136 | width: 100%; | ||
111 | 137 | } | ||
112 | 138 | article.main-content { width: 100%; } | ||
113 | 139 | table.column td ul li { | ||
114 | 140 | background: #efefef; | ||
115 | 141 | border-bottom: 1px solid black; | ||
116 | 142 | list-style: none; | ||
117 | 143 | text-align: center; | ||
118 | 144 | font-size: 24px; | ||
119 | 145 | line-height: 24px; | ||
120 | 146 | min-height: 24px; | ||
121 | 147 | width: 100%; | ||
122 | 148 | display: block; | ||
123 | 149 | padding: 4px 0; | ||
124 | 150 | } | ||
125 | 151 | div.agenda-details { | ||
126 | 152 | background-color: #eee; | ||
127 | 153 | border-width: 0; | ||
128 | 154 | color: black; | ||
129 | 155 | font-size: 1em; | ||
130 | 156 | position: static; | ||
131 | 157 | max-width: 100%; | ||
132 | 158 | min-width: 100%; | ||
133 | 159 | width: 100%; | ||
134 | 160 | padding: 5px; | ||
135 | 161 | margin: 0; | ||
136 | 162 | border-radius: 0; | ||
137 | 163 | } | ||
138 | 164 | div.agenda-details ul { | ||
139 | 165 | background: #101010; | ||
140 | 166 | padding-left: 4px; | ||
141 | 167 | } | ||
142 | 168 | .main-agenda-item-name { | ||
143 | 169 | display: block; | ||
144 | 170 | min-height: 24px; | ||
145 | 171 | } | ||
146 | 172 | .main-agenda-item-name img.icon { | ||
147 | 173 | height: 24px; | ||
148 | 174 | width: 24px; | ||
149 | 175 | float: left; | ||
150 | 176 | margin-right: 4px; | ||
151 | 177 | } | ||
152 | 178 | } | ||
153 | 179 | |||
154 | 180 | .row-full-grey { | 85 | .row-full-grey { |
155 | 181 | margin-left: -20px; | 86 | margin-left: -20px; |
156 | 182 | padding-left: 20px; | 87 | padding-left: 20px; |
157 | @@ -220,3 +125,36 @@ | |||
158 | 220 | font-size: 100% !important; /* Override Twitter's inline style */ | 125 | font-size: 100% !important; /* Override Twitter's inline style */ |
159 | 221 | float: none; | 126 | float: none; |
160 | 222 | } | 127 | } |
161 | 128 | |||
162 | 129 | /* Reset default unordered list display style to remove bulleting/spacing */ | ||
163 | 130 | #column-schedule ul { | ||
164 | 131 | list-style: none; | ||
165 | 132 | } | ||
166 | 133 | /* Stack LI elements horizontally instead of the default vertical orientation */ | ||
167 | 134 | #column-schedule li { | ||
168 | 135 | float: left; | ||
169 | 136 | margin-right: 1em; | ||
170 | 137 | } | ||
171 | 138 | |||
172 | 139 | /* Reset default unordered list display style to remove bulleting/spacing */ | ||
173 | 140 | #column-schedule-inner ul { | ||
174 | 141 | list-style: disc; | ||
175 | 142 | /*border-right: dotted; | ||
176 | 143 | border-right-width: 1px;*/ | ||
177 | 144 | } | ||
178 | 145 | /* Stack LI elements horizontally instead of the default vertical orientation */ | ||
179 | 146 | #column-schedule-inner li { | ||
180 | 147 | float: none; | ||
181 | 148 | margin-right: 1em; | ||
182 | 149 | padding: 0em; | ||
183 | 150 | line-height: 1.5em; | ||
184 | 151 | margin-bottom: 0px; | ||
185 | 152 | margin-top: 0px; | ||
186 | 153 | } | ||
187 | 154 | |||
188 | 155 | /* Social widgets */ | ||
189 | 156 | .social-widget { | ||
190 | 157 | float: left; | ||
191 | 158 | display: inline-block; | ||
192 | 159 | margin-right: 2px; | ||
193 | 160 | } | ||
194 | 223 | 161 | ||
195 | === modified file 'summit/schedule/templates/schedule/by_room.html' | |||
196 | --- summit/schedule/templates/schedule/by_room.html 2012-04-22 00:39:32 +0000 | |||
197 | +++ summit/schedule/templates/schedule/by_room.html 2012-04-23 14:24:21 +0000 | |||
198 | @@ -6,10 +6,6 @@ | |||
199 | 6 | {% endblock %} | 6 | {% endblock %} |
200 | 7 | 7 | ||
201 | 8 | {% block extrahead %} | 8 | {% block extrahead %} |
202 | 9 | |||
203 | 10 | {% if linaro %} | ||
204 | 11 | <base target="_blank" /> | ||
205 | 12 | {% endif %} | ||
206 | 13 | {{ block.super }} | 9 | {{ block.super }} |
207 | 14 | {% endblock %} | 10 | {% endblock %} |
208 | 15 | 11 | ||
209 | @@ -94,6 +90,45 @@ | |||
210 | 94 | </div> | 90 | </div> |
211 | 95 | 91 | ||
212 | 96 | {% block closure %} | 92 | {% block closure %} |
213 | 93 | <style> | ||
214 | 94 | /* Mobile-friendly styles */ | ||
215 | 95 | @media screen and (max-width: 960px) { | ||
216 | 96 | .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary, .schedule-qrcode { display: none; } | ||
217 | 97 | #page-header { text-align: center; } | ||
218 | 98 | #page-header a { height: 24px; line-height: 1; float: none; display: inline; } | ||
219 | 99 | .span-8, .span-9, .span-3, .span-12 { width: 100%; } | ||
220 | 100 | table.schedule { width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
221 | 101 | table.column { width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
222 | 102 | table.column td { display: block; width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
223 | 103 | table.column td ul { | ||
224 | 104 | width: 100%; | ||
225 | 105 | margin: 0; | ||
226 | 106 | padding: 0; | ||
227 | 107 | } | ||
228 | 108 | table.column td ul li { | ||
229 | 109 | background: #efefef; | ||
230 | 110 | border-bottom: 1px solid black; | ||
231 | 111 | list-style: none; | ||
232 | 112 | text-align: center; | ||
233 | 113 | font-size: 24px; | ||
234 | 114 | line-height: 24px; | ||
235 | 115 | min-height: 24px; | ||
236 | 116 | width: 100%; | ||
237 | 117 | display: block; | ||
238 | 118 | padding: 4px 0; | ||
239 | 119 | margin: 0; | ||
240 | 120 | } | ||
241 | 121 | #fb-root * { width: auto; } | ||
242 | 122 | div.schedule-head .schedule-date { | ||
243 | 123 | font-weight: normal; | ||
244 | 124 | font-size: 36px; | ||
245 | 125 | margin: 0; | ||
246 | 126 | display: block; | ||
247 | 127 | text-align: center; | ||
248 | 128 | width: 100%; | ||
249 | 129 | } | ||
250 | 130 | } | ||
251 | 131 | </style> | ||
252 | 97 | <script language="JavaScript"> | 132 | <script language="JavaScript"> |
253 | 98 | 133 | ||
254 | 99 | function show_agenda_details(agenda_id, index_id) { | 134 | function show_agenda_details(agenda_id, index_id) { |
255 | 100 | 135 | ||
256 | === modified file 'summit/schedule/templates/schedule/by_track.html' | |||
257 | --- summit/schedule/templates/schedule/by_track.html 2012-04-22 00:04:51 +0000 | |||
258 | +++ summit/schedule/templates/schedule/by_track.html 2012-04-23 14:24:21 +0000 | |||
259 | @@ -86,6 +86,45 @@ | |||
260 | 86 | </div> | 86 | </div> |
261 | 87 | 87 | ||
262 | 88 | {% block closure %} | 88 | {% block closure %} |
263 | 89 | <style> | ||
264 | 90 | /* Mobile-friendly styles */ | ||
265 | 91 | @media screen and (max-width: 960px) { | ||
266 | 92 | .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary, .schedule-qrcode { display: none; } | ||
267 | 93 | #page-header { text-align: center; } | ||
268 | 94 | #page-header a { height: 24px; line-height: 1; float: none; display: inline; } | ||
269 | 95 | .span-8, .span-9, .span-3, .span-12 { width: 100%; } | ||
270 | 96 | table.schedule { width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
271 | 97 | table.column { width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
272 | 98 | table.column td { display: block; width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
273 | 99 | table.column td ul { | ||
274 | 100 | width: 100%; | ||
275 | 101 | margin: 0; | ||
276 | 102 | padding: 0; | ||
277 | 103 | } | ||
278 | 104 | table.column td ul li { | ||
279 | 105 | background: #efefef; | ||
280 | 106 | border-bottom: 1px solid black; | ||
281 | 107 | list-style: none; | ||
282 | 108 | text-align: center; | ||
283 | 109 | font-size: 24px; | ||
284 | 110 | line-height: 24px; | ||
285 | 111 | min-height: 24px; | ||
286 | 112 | width: 100%; | ||
287 | 113 | display: block; | ||
288 | 114 | padding: 4px 0; | ||
289 | 115 | margin: 0; | ||
290 | 116 | } | ||
291 | 117 | #fb-root * { width: auto; } | ||
292 | 118 | div.schedule-head .schedule-date { | ||
293 | 119 | font-weight: normal; | ||
294 | 120 | font-size: 36px; | ||
295 | 121 | margin: 0; | ||
296 | 122 | display: block; | ||
297 | 123 | text-align: center; | ||
298 | 124 | width: 100%; | ||
299 | 125 | } | ||
300 | 126 | } | ||
301 | 127 | </style> | ||
302 | 89 | <script language="JavaScript"> | 128 | <script language="JavaScript"> |
303 | 90 | 129 | ||
304 | 91 | function show_agenda_details(agenda_id, index_id) { | 130 | function show_agenda_details(agenda_id, index_id) { |
305 | 92 | 131 | ||
306 | === modified file 'summit/schedule/templates/schedule/daily.html' | |||
307 | --- summit/schedule/templates/schedule/daily.html 2012-04-22 00:39:32 +0000 | |||
308 | +++ summit/schedule/templates/schedule/daily.html 2012-04-23 14:24:21 +0000 | |||
309 | @@ -108,6 +108,56 @@ | |||
310 | 108 | </div> | 108 | </div> |
311 | 109 | 109 | ||
312 | 110 | {% block closure %} | 110 | {% block closure %} |
313 | 111 | <style> | ||
314 | 112 | /* Mobile-friendly styles */ | ||
315 | 113 | @media screen and (max-width: 960px) { | ||
316 | 114 | .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary, .schedule-qrcode { display: none; } | ||
317 | 115 | #page-header { text-align: center; } | ||
318 | 116 | #page-header a { height: 24px; line-height: 1; float: none; display: inline; } | ||
319 | 117 | .span-8, .span-9, .span-3, .span-12 { width: 100%; } | ||
320 | 118 | table.schedule { width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
321 | 119 | table.column { width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
322 | 120 | table.column td { display: block; width: 100%; margin: 0; padding: 0; border-width: 0; } | ||
323 | 121 | table.column td ul { | ||
324 | 122 | width: 100%; | ||
325 | 123 | margin: 0; | ||
326 | 124 | padding: 0; | ||
327 | 125 | } | ||
328 | 126 | table.column td ul li { | ||
329 | 127 | background: #efefef; | ||
330 | 128 | border-bottom: 1px solid black; | ||
331 | 129 | list-style: none; | ||
332 | 130 | text-align: center; | ||
333 | 131 | font-size: 24px; | ||
334 | 132 | line-height: 24px; | ||
335 | 133 | min-height: 24px; | ||
336 | 134 | width: 100%; | ||
337 | 135 | display: block; | ||
338 | 136 | padding: 4px 0; | ||
339 | 137 | margin: 0; | ||
340 | 138 | } | ||
341 | 139 | #fb-root * { width: auto; } | ||
342 | 140 | .schedule-head > a { display: none; } /* qr code */ | ||
343 | 141 | div.schedule-head .schedule-date a:nth-child(1) { | ||
344 | 142 | float: left; | ||
345 | 143 | } | ||
346 | 144 | div.schedule-head .schedule-date { | ||
347 | 145 | font-weight: normal; | ||
348 | 146 | font-size: 36px; | ||
349 | 147 | margin: 0; | ||
350 | 148 | display: block; | ||
351 | 149 | text-align: center; | ||
352 | 150 | } | ||
353 | 151 | div.schedule-head .schedule-date a { | ||
354 | 152 | display: block; | ||
355 | 153 | float: right; | ||
356 | 154 | background: #eee; | ||
357 | 155 | width: 25%; | ||
358 | 156 | text-align: center; | ||
359 | 157 | } | ||
360 | 158 | } | ||
361 | 159 | </style> | ||
362 | 160 | |||
363 | 111 | <script language="JavaScript"> | 161 | <script language="JavaScript"> |
364 | 112 | 162 | ||
365 | 113 | function show_agenda_details(agenda_id, index_id) { | 163 | function show_agenda_details(agenda_id, index_id) { |
366 | 114 | 164 | ||
367 | === modified file 'summit/schedule/templates/schedule/summit.html' | |||
368 | --- summit/schedule/templates/schedule/summit.html 2012-04-23 14:24:21 +0000 | |||
369 | +++ summit/schedule/templates/schedule/summit.html 2012-04-23 14:24:21 +0000 | |||
370 | @@ -101,3 +101,28 @@ | |||
371 | 101 | </article> | 101 | </article> |
372 | 102 | </div> | 102 | </div> |
373 | 103 | {% endblock %} | 103 | {% endblock %} |
374 | 104 | {% block closure %} | ||
375 | 105 | <style> | ||
376 | 106 | /* Mobile-friendly styles */ | ||
377 | 107 | @media screen and (max-width: 960px) { | ||
378 | 108 | .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary { display: none; } | ||
379 | 109 | #page-header { text-align: center; } | ||
380 | 110 | #page-header a { height: 24px; line-height: 1; float: none; display: inline; } | ||
381 | 111 | .span-8, .span-9, .span-3, .span-12 { width: 100%; } | ||
382 | 112 | #column-schedule ul li { | ||
383 | 113 | background: #efefef; | ||
384 | 114 | border-bottom: 1px dotted #cccccc; | ||
385 | 115 | list-style: none; | ||
386 | 116 | text-align: center; | ||
387 | 117 | font-size: 24px; | ||
388 | 118 | line-height: 24px; | ||
389 | 119 | min-height: 24px; | ||
390 | 120 | width: 100%; | ||
391 | 121 | display: block; | ||
392 | 122 | padding: 0; | ||
393 | 123 | margin: 0; | ||
394 | 124 | } | ||
395 | 125 | #fb-root * { width: auto; } | ||
396 | 126 | } | ||
397 | 127 | </style> | ||
398 | 128 | {% endblock %} |
The prerequisite lp:~dooferlad/summit/linaro-small-theme has not yet been merged into lp:summit.