Merge lp:~cjohnston/summit/mobile-use-summit into lp:summit

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
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

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 :

The prerequisite lp:~dooferlad/summit/linaro-small-theme has not yet been merged into lp:summit.

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 {% menu main_menu %}
6 <ul class="clearfix">
7 {% for item in menuitems %}
8- <li{% if item.current %} class='active'{% endif %}><a class="main-nav-item" href="{{ item.url }}" title="{{ item.title|escape }}">{{ item.title }}</a></li>
9+ <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 {% endfor %}
11 </ul>
12 {% endblock %}
13@@ -49,11 +49,11 @@
14
15
16 {% block messages %}
17- {% if messages %}
18- {% for message in messages %}
19- <div class = 'message' ><div class = 'content-shim' >{{ message }}</div></div>
20- {% endfor %}
21- {% endif %}
22+ {% if messages %}
23+ {% for message in messages %}
24+ <div class = 'message' ><div class = 'content-shim' >{{ message }}</div></div>
25+ {% endfor %}
26+ {% endif %}
27 {% endblock %}
28
29 {% block content %}
30
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 </article>
36 </div>
37 {% endblock %}
38+{% block closure %}
39+<style>
40+/* Mobile-friendly styles */
41+@media screen and (max-width: 960px) {
42+ .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary { display: none; }
43+ #page-header { text-align: center; }
44+ #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
45+ .span-8, .span-9, .span-3, .span-12 { width: 100%; }
46+ #fb-root * { width: auto; }
47+}
48+</style>
49+{% endblock %}
50+
51
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 font-size: 0.7pc;
57 }
58
59-
60-/* Mobile-friendly styles */
61-@media screen and (max-width: 481px) {
62- 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- width: auto;
64- margin: 0; padding: 0;
65- }
66- #page-header { text-align: center; }
67- #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
68- #top-logo { display: none; }
69- .minor-content { text-align: center; }
70- .double-side-content {
71- text-align: center;
72- }
73- .side-content { display: none; }
74- #top-login { display: block; }
75- aside#top-nav {
76- display: block;
77- text-align: center;
78- font-size: 16px;
79- min-height: 24px;
80- }
81- .schedule-head > a { display: none; } /* qr code */
82- div.schedule-head .schedule-date {
83- display: block;
84- overflow: auto;
85- font-size: 16px;
86- text-align: center;
87- margin: 0;
88- }
89- div.schedule-head .schedule-qrcode { display: none; }
90- div.schedule-head .schedule-date a {
91- display: block;
92- float: right;
93- background: #eee;
94- width: 33%;
95- text-align: center;
96- }
97- div.schedule-head .schedule-date a:nth-child(1) {
98- float: left;
99- }
100- table.basic {
101- margin-top: 0;
102- width: 100%;
103- }
104- table.basic span.main-agenda-item-tracks {
105- display: none;
106- }
107- table.column { width: 100%; }
108- table.column td { display: block; width: 100%; }
109- table.column td ul {
110- width: 100%;
111- }
112- article.main-content { width: 100%; }
113- table.column td ul li {
114- background: #efefef;
115- border-bottom: 1px solid black;
116- list-style: none;
117- text-align: center;
118- font-size: 24px;
119- line-height: 24px;
120- min-height: 24px;
121- width: 100%;
122- display: block;
123- padding: 4px 0;
124- }
125- div.agenda-details {
126- background-color: #eee;
127- border-width: 0;
128- color: black;
129- font-size: 1em;
130- position: static;
131- max-width: 100%;
132- min-width: 100%;
133- width: 100%;
134- padding: 5px;
135- margin: 0;
136- border-radius: 0;
137- }
138- div.agenda-details ul {
139- background: #101010;
140- padding-left: 4px;
141- }
142- .main-agenda-item-name {
143- display: block;
144- min-height: 24px;
145- }
146- .main-agenda-item-name img.icon {
147- height: 24px;
148- width: 24px;
149- float: left;
150- margin-right: 4px;
151- }
152-}
153-
154 .row-full-grey {
155 margin-left: -20px;
156 padding-left: 20px;
157@@ -220,3 +125,36 @@
158 font-size: 100% !important; /* Override Twitter's inline style */
159 float: none;
160 }
161+
162+/* Reset default unordered list display style to remove bulleting/spacing */
163+#column-schedule ul {
164+ list-style: none;
165+}
166+/* Stack LI elements horizontally instead of the default vertical orientation */
167+#column-schedule li {
168+ float: left;
169+ margin-right: 1em;
170+}
171+
172+/* Reset default unordered list display style to remove bulleting/spacing */
173+#column-schedule-inner ul {
174+ list-style: disc;
175+ /*border-right: dotted;
176+ border-right-width: 1px;*/
177+}
178+/* Stack LI elements horizontally instead of the default vertical orientation */
179+#column-schedule-inner li {
180+ float: none;
181+ margin-right: 1em;
182+ padding: 0em;
183+ line-height: 1.5em;
184+ margin-bottom: 0px;
185+ margin-top: 0px;
186+}
187+
188+/* Social widgets */
189+.social-widget {
190+ float: left;
191+ display: inline-block;
192+ margin-right: 2px;
193+}
194
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 {% endblock %}
200
201 {% block extrahead %}
202-
203-{% if linaro %}
204- <base target="_blank" />
205-{% endif %}
206 {{ block.super }}
207 {% endblock %}
208
209@@ -94,6 +90,45 @@
210 </div>
211
212 {% block closure %}
213+<style>
214+/* Mobile-friendly styles */
215+@media screen and (max-width: 960px) {
216+ .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary, .schedule-qrcode { display: none; }
217+ #page-header { text-align: center; }
218+ #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
219+ .span-8, .span-9, .span-3, .span-12 { width: 100%; }
220+ table.schedule { width: 100%; margin: 0; padding: 0; border-width: 0; }
221+ table.column { width: 100%; margin: 0; padding: 0; border-width: 0; }
222+ table.column td { display: block; width: 100%; margin: 0; padding: 0; border-width: 0; }
223+ table.column td ul {
224+ width: 100%;
225+ margin: 0;
226+ padding: 0;
227+ }
228+ table.column td ul li {
229+ background: #efefef;
230+ border-bottom: 1px solid black;
231+ list-style: none;
232+ text-align: center;
233+ font-size: 24px;
234+ line-height: 24px;
235+ min-height: 24px;
236+ width: 100%;
237+ display: block;
238+ padding: 4px 0;
239+ margin: 0;
240+ }
241+ #fb-root * { width: auto; }
242+ div.schedule-head .schedule-date {
243+ font-weight: normal;
244+ font-size: 36px;
245+ margin: 0;
246+ display: block;
247+ text-align: center;
248+ width: 100%;
249+ }
250+}
251+</style>
252 <script language="JavaScript">
253
254 function show_agenda_details(agenda_id, index_id) {
255
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 </div>
261
262 {% block closure %}
263+<style>
264+/* Mobile-friendly styles */
265+@media screen and (max-width: 960px) {
266+ .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary, .schedule-qrcode { display: none; }
267+ #page-header { text-align: center; }
268+ #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
269+ .span-8, .span-9, .span-3, .span-12 { width: 100%; }
270+ table.schedule { width: 100%; margin: 0; padding: 0; border-width: 0; }
271+ table.column { width: 100%; margin: 0; padding: 0; border-width: 0; }
272+ table.column td { display: block; width: 100%; margin: 0; padding: 0; border-width: 0; }
273+ table.column td ul {
274+ width: 100%;
275+ margin: 0;
276+ padding: 0;
277+ }
278+ table.column td ul li {
279+ background: #efefef;
280+ border-bottom: 1px solid black;
281+ list-style: none;
282+ text-align: center;
283+ font-size: 24px;
284+ line-height: 24px;
285+ min-height: 24px;
286+ width: 100%;
287+ display: block;
288+ padding: 4px 0;
289+ margin: 0;
290+ }
291+ #fb-root * { width: auto; }
292+ div.schedule-head .schedule-date {
293+ font-weight: normal;
294+ font-size: 36px;
295+ margin: 0;
296+ display: block;
297+ text-align: center;
298+ width: 100%;
299+ }
300+}
301+</style>
302 <script language="JavaScript">
303
304 function show_agenda_details(agenda_id, index_id) {
305
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 </div>
311
312 {% block closure %}
313+<style>
314+/* Mobile-friendly styles */
315+@media screen and (max-width: 960px) {
316+ .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary, .schedule-qrcode { display: none; }
317+ #page-header { text-align: center; }
318+ #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
319+ .span-8, .span-9, .span-3, .span-12 { width: 100%; }
320+ table.schedule { width: 100%; margin: 0; padding: 0; border-width: 0; }
321+ table.column { width: 100%; margin: 0; padding: 0; border-width: 0; }
322+ table.column td { display: block; width: 100%; margin: 0; padding: 0; border-width: 0; }
323+ table.column td ul {
324+ width: 100%;
325+ margin: 0;
326+ padding: 0;
327+ }
328+ table.column td ul li {
329+ background: #efefef;
330+ border-bottom: 1px solid black;
331+ list-style: none;
332+ text-align: center;
333+ font-size: 24px;
334+ line-height: 24px;
335+ min-height: 24px;
336+ width: 100%;
337+ display: block;
338+ padding: 4px 0;
339+ margin: 0;
340+ }
341+ #fb-root * { width: auto; }
342+ .schedule-head > a { display: none; } /* qr code */
343+ div.schedule-head .schedule-date a:nth-child(1) {
344+ float: left;
345+ }
346+ div.schedule-head .schedule-date {
347+ font-weight: normal;
348+ font-size: 36px;
349+ margin: 0;
350+ display: block;
351+ text-align: center;
352+ }
353+ div.schedule-head .schedule-date a {
354+ display: block;
355+ float: right;
356+ background: #eee;
357+ width: 25%;
358+ text-align: center;
359+ }
360+}
361+</style>
362+
363 <script language="JavaScript">
364
365 function show_agenda_details(agenda_id, index_id) {
366
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 </article>
372 </div>
373 {% endblock %}
374+{% block closure %}
375+<style>
376+/* Mobile-friendly styles */
377+@media screen and (max-width: 960px) {
378+ .span-4, footer, #main-nav, footer .logo-ubuntu, .nav-secondary { display: none; }
379+ #page-header { text-align: center; }
380+ #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
381+ .span-8, .span-9, .span-3, .span-12 { width: 100%; }
382+ #column-schedule ul li {
383+ background: #efefef;
384+ border-bottom: 1px dotted #cccccc;
385+ list-style: none;
386+ text-align: center;
387+ font-size: 24px;
388+ line-height: 24px;
389+ min-height: 24px;
390+ width: 100%;
391+ display: block;
392+ padding: 0;
393+ margin: 0;
394+ }
395+ #fb-root * { width: auto; }
396+}
397+</style>
398+{% endblock %}

Subscribers

People subscribed via source and target branches