Skip to content

Commit

Permalink
Merge pull request unimelb#817 from unimelb/chore-update-static
Browse files Browse the repository at this point in the history
Prep static site
  • Loading branch information
waitingallday authored Feb 28, 2017
2 parents 40c528d + 3869915 commit 91c999f
Show file tree
Hide file tree
Showing 19 changed files with 8,782 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SECRET=0oAsRP76XrEe2jJ3Xi4Js0oJs0oAsRPAsR6XrEe2jJ3Xi4P7XrEe2jJ3Xi4Js0oAsRP76XrEe2jJ3Xi4Js76XrEe2jJ3Xi4Js0oAsRP76
VERSION=v5.0
VERSION=v6.0

# webpack
WEB_SERVER_HOST="localhost"
Expand Down
7 changes: 7 additions & 0 deletions assets/targets/components/headers/_headers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@
}
}

.uomcontent [role="main"] .fixed-bg {
background-attachment: fixed;
background-color: $black;
background-position: top center;
background-size: inherit;
}

.uomcontent .floating + [role="main"] {
header,
& > header:first-child {
Expand Down
2 changes: 2 additions & 0 deletions assets/targets/components/listings/07-logo-listing.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
p For specific dimension images that you want to keep unmodified (no cropping), eg. in sponsor logo grids. The markup will allow labels and links if required.

.logo-listing
figure.logo-listing__item
img alt="" src="http://placeimg.com/110/180/animals"
Expand Down
25 changes: 20 additions & 5 deletions assets/targets/components/listings/_listings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
&:first-child {
border-top: 0 none;
}

&.alt {
margin-left: 0;
margin-right: 0;
padding-left: 3%;
padding-right: 3%;
width: 100%;
}
}

a {
Expand All @@ -47,7 +55,7 @@
img {
display: block;
float: none;
margin: 0 auto;
margin: 0 auto 0 0;
max-width: 100%;
}

Expand All @@ -61,7 +69,6 @@

p {
@include adjust-font-size-to(13px);
// @include rem(margin-left, 115px);
color: $midgray;
padding: 0;
width: auto;
Expand All @@ -72,13 +79,13 @@

img {
@include rem(min-height, 200px);
max-width: none;
}
}

@include breakpoint(tablet) {
@include padding-leader(2);
img {
margin-left: 0;
max-width: 100%;
}

Expand All @@ -92,6 +99,12 @@
display: inline-block;
vertical-align: top;
width: 49.5%;

&.alt {
padding-left: 0;
padding-right: 0;
width: 49.5%;
}
}

li:nth-child(4n+1) {
Expand All @@ -109,12 +122,14 @@
}

@include breakpoint(desktop) {
li {
li,
li.alt {
width: 32.9%;
}
}
@include breakpoint(wide) {
li {
li,
li.alt {
width: 24.7%;
}
}
Expand Down
4 changes: 2 additions & 2 deletions assets/targets/components/listings/_nav_block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
@include padding-leader(3);
@include padding-trailer(3);
@include rem(max-width, 1400px);
@include rem(padding-left, 25px);
@include rem(padding-right, 25px);
margin: 0 auto;
padding-left: 3%;
padding-right: 3%;

h1.aligned-title {
@include rem(padding-bottom, 48px);
Expand Down
4 changes: 2 additions & 2 deletions assets/targets/components/listings/_nav_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
@include padding-leader(3);
@include padding-trailer(3);
@include rem(max-width, 1400px);
@include rem(padding-left, 27px);
@include rem(padding-right, 27px);
margin: 0 auto;
padding-left: 3%;
padding-right: 3%;

h1,
p,
Expand Down
2 changes: 1 addition & 1 deletion assets/targets/components/people/01-staff-listing.slim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ table.staff-listing
a href="#" Jason Smith
|,
'
em Coffee Expert
em Coffee Drinker
td.third
em University of Melbourne
tr
Expand Down
2 changes: 1 addition & 1 deletion assets/targets/components/people/02-staff-listing-min.slim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ul.staff-listing.min
a href="#" Jason Smith
|,
'
em Coffee Expert
em Coffee Drinker
li
.profile
.frame
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
p Images should be square dimensions (ie. equal width and height).

ul.staff-listing-detailed
li
a href=""
Expand All @@ -20,6 +22,6 @@ ul.staff-listing-detailed
.frame
img src="http://placeimg.com/200/200/animals?3" alt=""
strong Jason Smith
p Coffee Expert
p Coffee Drinker
p
em University of Melbourne
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
p Images should be square dimensions (ie. equal width and height).

ul.staff-listing-detailed.staff-listing-detailed--diamond
li
a href=""
Expand All @@ -20,6 +22,6 @@ ul.staff-listing-detailed.staff-listing-detailed--diamond
.diamond-mask
img src="http://placeimg.com/300/300/animals?3" alt=""
strong Jason Smith
p Coffee Expert
p Coffee Drinker
p
em University of Melbourne
10 changes: 5 additions & 5 deletions assets/targets/components/text/_two_columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
padding: 0;
}

svg {
@include rem(margin-left, 15px);
@include rem(margin-right, 15px);
}

& > section {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -59,6 +54,11 @@
@include breakpoint(desktop) {
@include rem(max-width, $w-lge);
display: table;

svg {
@include rem(margin-left, 15px);
@include rem(margin-right, 15px);
}
}
}

Expand Down
Loading

0 comments on commit 91c999f

Please sign in to comment.