Skip to content

Commit ec26d02

Browse files
committed
[spalenque] - #13221 * fix styles for mobile version of schedule
1 parent c738e06 commit ec26d02

7 files changed

Lines changed: 176 additions & 95 deletions

File tree

summit/css/schedule-grid.css

Lines changed: 116 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ i.collapse-nav {
2626
.schedule-title-wrapper {
2727
padding: 20px 0;
2828
}
29+
2930
.col-main-title h1
3031
{
3132
margin: 0;
@@ -136,6 +137,28 @@ i.collapse-nav {
136137
margin-top: 10px;
137138
}
138139

140+
@media (max-width: 767px) {
141+
.col-time { font-size: 0.9em !important; }
142+
.col-time .icon-clock { font-size: 1em !important; }
143+
.col-location { font-size: 0.9em !important; }
144+
.col-location .icon-map { font-size: 1em !important; }
145+
.event-title { font-size: 1.2em !important;}
146+
.track { font-size: 0.9em !important;}
147+
.track a { font-size: 0.9em !important;}
148+
.event-type-col { font-size: 0.8em !important;}
149+
}
150+
151+
@media (min-width: 768px) and (max-width: 1200px) {
152+
.col-time { font-size: 0.9em !important; }
153+
.col-time .icon-clock { font-size: 1em !important; }
154+
.col-location { font-size: 0.9em !important; }
155+
.col-location .icon-map { font-size: 1em !important; }
156+
.event-title { font-size: 1.2em !important;}
157+
.track { font-size: 0.9em !important;}
158+
.track a { font-size: 0.9em !important;}
159+
.event-type-col { font-size: 0.8em !important;}
160+
}
161+
139162
.event-results .col-level-title {
140163
height: 10px;
141164
}
@@ -251,7 +274,37 @@ i.collapse-nav {
251274
}
252275

253276
.view-select-container {
254-
padding: 1.1%;
277+
padding: 10px;
278+
}
279+
280+
.view-select-container #view-select {
281+
background-color: #edf2f7;
282+
margin-left: 10px;
283+
border-radius: 5px;
284+
height: 30px;
285+
width: 55px;
286+
cursor: pointer;
287+
288+
}
289+
290+
@media (max-width: 767px) {
291+
.view-select-container {
292+
width: 50%;
293+
float: left;
294+
}
295+
.view-days-container {
296+
width: 50%;
297+
float: left;
298+
padding-right: 5px;
299+
}
300+
.view-days-container .navbar-toggle {
301+
margin-right: 5px;
302+
padding: 9px 0;
303+
}
304+
.navbar-brand-month {
305+
padding: 15px 0 0 0;
306+
margin: 0;
307+
}
255308
}
256309

257310
.track-nav-container {
@@ -489,11 +542,9 @@ a.navbar-brand {
489542
font-weight: bold;
490543
}
491544

492-
@media all and (max-width: 700px) {
493-
.col-filter-title
494-
{
495-
padding-left: 3em;
496-
}
545+
@media all and (max-width: 767px) {
546+
.col-filter-title span { display: none; }
547+
.col-filter-title #clear-filters { font-size: 10px; }
497548
}
498549

499550
.all-events-filter-row
@@ -595,16 +646,43 @@ a.navbar-brand {
595646
float: right;
596647
}
597648

598-
@media (max-width: 600px) {
599-
.view-all-schedule {
649+
@media (max-width: 767px) {
650+
.all-events-filter-row .filter-button-col-left {
651+
position: relative;
652+
width: 50%;
653+
margin: 10px 0 0 0;
654+
padding: 0 10px 0 0;
600655
float: left;
601-
margin-top: 10px;
602656
}
657+
.all-events-filter-row .filter-button-col-right {
658+
position: relative;
659+
width: 50%;
660+
margin: 10px 0 0 0;
661+
padding: 0 0 0 10px;
662+
float: left;
663+
}
664+
.all-events-filter-row .filter-button-col-left button, .all-events-filter-row .filter-button-col-right button {
665+
width: 100%;
666+
}
667+
}
603668

604-
.col-switch-schedule {
669+
@media (min-width: 768px) and (max-width: 1200px) {
670+
.all-events-filter-row .filter-button-col-left {
671+
position: relative;
672+
width: 25%;
673+
margin: 10px 0 0 0;
674+
padding: 0 10px 0 0;
605675
float: left;
606-
margin-right: 20px;
607-
margin-top: 10px;
676+
}
677+
.all-events-filter-row .filter-button-col-right {
678+
position: relative;
679+
width: 25%;
680+
margin: 10px 0 0 0;
681+
padding: 0 10px 0 0;
682+
float: left;
683+
}
684+
.all-events-filter-row .filter-button-col-left button, .all-events-filter-row .filter-button-col-right button {
685+
width: 100%;
608686
}
609687
}
610688

@@ -642,24 +720,24 @@ form.all-events-search-form .all-events-search-wrapper i {
642720

643721
.login-container, .logout-container {
644722
position: relative;
645-
top: 116px;
723+
top: 117px;
646724
right: 0px;
647725
text-align: right;
648726
}
649727

650-
@media (max-width: 1200px) {
728+
@media (min-width: 768px) and (max-width: 1200px) {
651729
.login-container, .logout-container {
652730
position: relative;
653-
top: 165px;
731+
top: 120px;
654732
right: 0px;
655733
text-align: right;
656734
}
657735
}
658736

659-
@media (max-width: 600px) {
737+
@media (max-width: 767px) {
660738
.login-container, .logout-container {
661739
position: relative;
662-
top: -12px;
740+
top: -160px;
663741
right: 0px;
664742
text-align: right;
665743
}
@@ -873,7 +951,6 @@ h2.subtitle {
873951

874952
.col-log-in{
875953
margin:0;
876-
padding: 0;
877954
padding-top: 1%;
878955
}
879956

@@ -945,7 +1022,7 @@ span.caret-event-actions:before {
9451022
}
9461023

9471024
.dropdown-menu-event-actions{
948-
left: -8em !important;
1025+
left: -10em !important;
9491026
top: 40%;
9501027
}
9511028

@@ -962,10 +1039,19 @@ span.caret-event-actions:before {
9621039
vertical-align: middle;
9631040
position: absolute;
9641041
top: 45%;
1042+
font-size: 25px;
9651043
}
9661044

967-
.event-state .event-status{
968-
font-size: 25px;
1045+
@media (max-width: 768px) {
1046+
.event-state .event-status {
1047+
left: 0;
1048+
}
1049+
}
1050+
1051+
@media (min-width: 768px) and (max-width: 1200px) {
1052+
.event-state .event-status {
1053+
left: 50%;
1054+
}
9691055
}
9701056

9711057
.row-eq-height {
@@ -1003,7 +1089,8 @@ span.caret-event-actions {
10031089
background-size:contain;
10041090
background-repeat:no-repeat;
10051091
display:inline-block;
1006-
width:100px;height:70px;
1092+
width:100px;
1093+
height:70px;
10071094
-webkit-transition: all 100ms ease-in;
10081095
-moz-transition: all 100ms ease-in;
10091096
transition: all 100ms ease-in;
@@ -1012,6 +1099,13 @@ span.caret-event-actions {
10121099
filter: brightness(1.8) grayscale(1) opacity(.7);
10131100
}
10141101

1102+
@media (max-width: 768px) {
1103+
.cal_image {
1104+
width: 80px;
1105+
height: 50px;
1106+
}
1107+
}
1108+
10151109
.cal_image:hover{
10161110
-webkit-filter: brightness(1.2) grayscale(.5) opacity(.9);
10171111
-moz-filter: brightness(1.2) grayscale(.5) opacity(.9);

summit/templates/Layout/SummitAppSchedPage_sync_calendar.ss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="container-fluid">
22
<div class="container section1">
33
<div class="row schedule-title-wrapper">
4-
<div class="col-sm-10 col-main-title">
4+
<div class="col-md-10 col-xs-12 col-main-title">
55
<h1 style="text-align:left;">Synchronize Calendar</h1>
66
<% if $goback %>
77
<div class="go-back">
88
<a href="#" onclick="window.history.back(); return false;"><< Go back </a>
99
</div>
1010
<% end_if %>
1111
</div>
12-
<div class="col-sm-2 col-log-in">
12+
<div class="col-md-2 col-xs-12 col-log-in">
1313
<a class="action btn btn-default" id="login-button" href="/Security/logout/?BackURL={$Top.Link}"><i class="fa fa-sign-out" aria-hidden="true"></i>Log Out</a>
1414
</div>
1515
</div>

summit/ui/source/js/components/schedule/event-list/event/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ const EventContent = ({
2929
return (
3030
<div className="event-content col-sm-10 col-xs-10">
3131
<div className="row row_location">
32-
<div className="col-sm-3 col-time">
32+
<div className="col-sm-4 col-md-3 col-time">
3333
<i className="fa fa-clock-o icon-clock" />
3434
<span className="event-date">{event.date_nice}</span>
3535
,&nbsp;
3636
<span className="start-time">{event.start_time}</span>
3737
&nbsp;-&nbsp;
3838
<span className="end-time">{event.end_time}</span>
3939
</div>
40-
<div className="col-sm-8 col-location">
40+
<div className="col-sm-8 col-md-9 col-location">
4141
{summit.should_show_venues &&
4242
<div>
4343
<i className="fa fa-map-marker icon-map"></i>&nbsp;

summit/ui/source/js/components/schedule/main-filter/actions.js

Lines changed: 32 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const MainFilterActions = ({
1212
}) => {
1313
const { summit: { current_user }, base_url } = ScheduleProps;
1414
const { values, expanded, calSync } = filters;
15+
let full_view_url = (values.going) ? `${base_url}mine/` : `${base_url}full/`;
16+
1517
return (
1618
<div className="row all-events-filter-row">
1719
<div className="col-md-4 col-xs-12 all-events-filter-link">
@@ -31,50 +33,40 @@ const MainFilterActions = ({
3133
</div>
3234
</div>
3335
<div className="col-md-7 col-xs-12">
34-
<div className="col-view-all-schedule">
35-
{values.going &&
36-
<form action={`${base_url}mine/`} method="POST">
37-
<input type="hidden" name="goback" value="1" />
38-
<button type="submit" className="btn btn-default view-all-schedule">
39-
View&nbsp;/&nbsp;Print&nbsp;My&nbsp;Schedule
40-
</button>
41-
</form>
42-
}
43-
{!values.going &&
44-
<form action={`${base_url}full/`} method="POST">
36+
<div className="col-view-all-schedule filter-button-col-left">
37+
<form action={full_view_url} method="POST">
4538
<input type="hidden" name="goback" value="1" />
4639
<button type="submit" className="btn btn-default view-all-schedule">
47-
View&nbsp;/&nbsp;Print&nbsp;Full&nbsp;Schedule
40+
Full&nbsp;/&nbsp;Print&nbsp;View
4841
</button>
4942
</form>
50-
}
51-
</div>
52-
<div className="col-switch-schedule">
53-
{current_user && ! values.favorites &&
54-
<button type="button" className="btn btn-primary pull-right switch_schedule"
55-
onClick={() => setFilters({ going: ! values.going })}>
56-
<span className="glyphicon glyphicon-calendar"></span>
57-
&nbsp;
58-
<span className="content">
59-
{values.going ? 'Full Schedule' : 'My Schedule' }
60-
</span>
61-
</button>
62-
}
63-
</div>
64-
<div className="col-switch-watchlist">
65-
{current_user && ! values.going &&
66-
<button type="button" className="btn btn-primary pull-right switch_favorites"
67-
onClick={() => setFilters({ favorites: ! values.favorites })}>
68-
<span className="glyphicon glyphicon-bookmark"></span>
69-
&nbsp;
70-
<span className="content">
71-
{values.favorites ? 'Full Schedule' : 'Watch Later'}
72-
</span>
73-
</button>
74-
}
7543
</div>
76-
<div className="col-toggle-sync">
77-
{summit.should_show_venues && current_user &&
44+
{current_user && ! values.favorites &&
45+
<div className="col-switch-schedule filter-button-col-right">
46+
<button type="button" className="btn btn-primary pull-right switch_schedule"
47+
onClick={() => setFilters({ going: ! values.going })}>
48+
<span className="glyphicon glyphicon-calendar"></span>
49+
&nbsp;
50+
<span className="content">
51+
{values.going ? 'Full Schedule' : 'My Schedule' }
52+
</span>
53+
</button>
54+
</div>
55+
}
56+
{current_user && ! values.going &&
57+
<div className="col-switch-watchlist filter-button-col-left">
58+
<button type="button" className="btn btn-primary pull-right switch_favorites"
59+
onClick={() => setFilters({ favorites: ! values.favorites })}>
60+
<span className="glyphicon glyphicon-bookmark"></span>
61+
&nbsp;
62+
<span className="content">
63+
{values.favorites ? 'Full Schedule' : 'Watch Later'}
64+
</span>
65+
</button>
66+
</div>
67+
}
68+
{summit.should_show_venues && current_user &&
69+
<div className="col-toggle-sync filter-button-col-right">
7870
<ToggleButton
7971
onClick={ () => toggleCalSyncClick() }
8072
className="toggle_sync"
@@ -83,8 +75,8 @@ const MainFilterActions = ({
8375
offstyle="danger"
8476
active={calSync}
8577
/>
78+
</div>
8679
}
87-
</div>
8880
</div>
8981
</div>
9082
)}

summit/ui/source/js/components/schedule/main-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MainView extends Component {
1212
const { view } = this.props
1313
return (
1414
<div className="row navbar-container">
15-
<div className="col-md-3 view-select-container">
15+
<div className="col-md-3 col-sm-3 view-select-container">
1616
View by
1717
<select id="view-select" value={view.type}
1818
onChange={e => this.changeView(e, e.target.value)}>
@@ -21,7 +21,7 @@ class MainView extends Component {
2121
<option value={VIEW_LEVELS}>Level</option>
2222
</select>
2323
</div>
24-
<div className="col-md-9">
24+
<div className="col-md-9 col-sm-9 view-days-container">
2525
{view.type === VIEW_DAYS && this.renderDays()}
2626
{view.type === VIEW_TRACKS && this.renderTracks()}
2727
{view.type === VIEW_LEVELS && this.renderLevels()}

themes/openstack/css/navigation_menu.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ a.navbar-brand {
3535
width: 135px;
3636
}
3737
}
38-
@media (max-width: 767px), only screen and (max-device-width: 1024px) {
39-
a.navbar-brand {
40-
margin-left: 15px; } }
4138

4239
.navbar-default {
4340
border-radius: 0px;

0 commit comments

Comments
 (0)