Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #916 from unimelb/fix-events
Browse files Browse the repository at this point in the history
Fix bugs with figures and embeds when used inside events
  • Loading branch information
axelboc authored Aug 16, 2017
2 parents 46602ce + 423d5a3 commit 274d5f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion assets/components/events/_events-detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
text-align: center;

@media screen and (--bp-desktop) {
margin-left: 18.75rem;
padding-left: 18.75rem;
text-align: left;
}

Expand Down Expand Up @@ -165,6 +165,12 @@
div {
border-top: 0 none;
}

/* HACK fix centring and width */
.figure {
margin-left: 0;
max-width: none;
}
}

.lower {
Expand Down
1 change: 1 addition & 0 deletions assets/components/events/_events.css
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@
position: absolute;
top: calc(1em * 2.25 / 2);
right: calc(1em * 2.25 / 2);
z-index: 1; /* on top of embed, if present in `.upper` */
display: block;
width: 100%;
font-size: 1em;
Expand Down
4 changes: 3 additions & 1 deletion assets/components/news/_article.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@
width: 100%;
}

/* HACK fix centring and width */
.figure {
margin-left: 0; /* HACK fix centring */
margin-left: 0;
max-width: none;
}
}

Expand Down

0 comments on commit 274d5f2

Please sign in to comment.