Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display icons below room number on mobile layouts #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ more detailed documentation about the site organization:

download all dependencies including dev

note: currently, node v10.x is needed for gulp to work properly

```
$ npm install
```
Expand Down
13 changes: 10 additions & 3 deletions src/scss/pages/_schedule.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
.event,
.milestone {
display: grid;
grid-template-columns: 1fr 3fr 1fr 1fr;
grid-template-columns: 1fr 3fr 2fr;
grid-gap: 20px;
padding: 16px 0px;
border-top: 1px solid rgba($primary-text, 0.5);
Expand All @@ -115,6 +115,11 @@
.room {
color: rgba($primary-text, 0.5);
}
.room-res-container {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.lecturer {
font-size: 0.8em;
color: rgba($primary-text, 0.5);
Expand Down Expand Up @@ -185,9 +190,11 @@
display: inline-block;
}

.resources {
display: none;
.room-res-container {
flex-direction: column !important;
justify-content: flex-start !important;
}

.lec,
.oh,
.event,
Expand Down
23 changes: 12 additions & 11 deletions src/views/content/schedule.pug
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ mixin event_details(event)
span= event.name
if event.who
.lecturer Lecturer: #{event.who}
.room= event.where
if event.links
.resources
for resource in event.links
a(href=resource.link)
if resource.type == "youtube"
<i class="fab fa-youtube"></i>
else if resource.type == "slides"
<i class="far fa-file-pdf"></i>
else if resource.type == "info"
<i class="fas fa-info"></i>
.room-res-container
.room= event.where
if event.links
.resources
for resource in event.links
a(href=resource.link)
if resource.type == "youtube"
<i class="fab fa-youtube"></i>
else if resource.type == "slides"
<i class="far fa-file-pdf"></i>
else if resource.type == "info"
<i class="fas fa-info"></i>