-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #468 from unepwcmc/ticket-128
Ticket 128
- Loading branch information
Showing
48 changed files
with
977 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
//-------------------------------------------------- | ||
// shared mixins | ||
//-------------------------------------------------- | ||
@mixin card-news { | ||
.card { | ||
background-color: $grey-xlight; | ||
margin-bottom: rem-calc(20); | ||
text-decoration: none; | ||
width: 100%; | ||
|
||
@include breakpoint($small) { | ||
margin-bottom: rem-calc(30); | ||
width: 48.5%; | ||
} | ||
} | ||
|
||
.card__content { | ||
@include responsive(padding, rem-calc(26 20), rem-calc(28 20), rem-calc(30 20)); | ||
} | ||
|
||
.card__date { | ||
font-size: rem-calc(14); | ||
margin: 0; | ||
} | ||
|
||
.card__h3 { margin: .5em 0; } | ||
|
||
.card__icon { @include image-placeholder(); } | ||
|
||
.card__image { | ||
@include flex-center; | ||
background-color: $grey-light; | ||
background-position: center; | ||
background-size: cover; | ||
width: 100%; height: rem-calc(265); | ||
} | ||
|
||
.card__summary { margin: 0 } | ||
} | ||
|
||
@mixin card-resource($per-row: 4) { | ||
.card { | ||
margin-bottom: rem-calc(20); | ||
padding: rem-calc(12 10); | ||
width: 100%; | ||
|
||
@include breakpoint($small) { | ||
margin-bottom: rem-calc(50); | ||
width: 50%; | ||
} | ||
|
||
@include breakpoint($medium) { | ||
@if $per-row == 3 { width: 33%; } | ||
@if $per-row == 4 { width: 25%; } | ||
min-height: rem-calc(200); | ||
} | ||
} | ||
|
||
.card--link { | ||
border: solid 1px $white; | ||
cursor: pointer; | ||
|
||
&:hover { border-color: $grey-dark; } | ||
} | ||
|
||
.card__date { | ||
@include text-small; | ||
margin-top: 0; | ||
} | ||
|
||
.card__link { text-decoration: none; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
//-------------------------------------------------- | ||
// variables | ||
//-------------------------------------------------- | ||
|
||
//-------------------------------------------------- | ||
// mixins | ||
//-------------------------------------------------- | ||
|
||
//-------------------------------------------------- | ||
// classes | ||
//-------------------------------------------------- | ||
.listing { | ||
&__bar { | ||
@include box-shadow-bottom-grey; | ||
background-color: $white; | ||
border-bottom: solid 1px $grey; | ||
padding: rem-calc(12 0); | ||
} | ||
|
||
&__bar-content { | ||
@include container; | ||
@include site-width; | ||
@include flex; | ||
@include flex-v-center; | ||
} | ||
|
||
&__cards-news { | ||
@include card-news; | ||
@include flex; | ||
@include flex-h-between; | ||
@include flex-wrap; | ||
} | ||
|
||
&__cards-resources { | ||
@include card-resource($per-row: 3); | ||
@include flex; | ||
@include flex-wrap; | ||
} | ||
|
||
&__filters { | ||
@include flex-no-shrink; | ||
|
||
@include breakpoint($small) { | ||
padding-right: rem-calc(24); | ||
width: 33%; | ||
} | ||
|
||
@include breakpoint($medium) { width: 25%; } | ||
} | ||
|
||
&__filters-trigger { @include button-filter-trigger; } | ||
|
||
&__main { | ||
@include container; | ||
@include site-width; | ||
|
||
@include breakpoint($small) { display: flex; } | ||
} | ||
|
||
&__results { | ||
margin-top: rem-calc(24); | ||
min-height: rem-calc(300); | ||
|
||
@include breakpoint($small) { min-height: rem-calc(600); } | ||
} | ||
|
||
&__results-wrapper { | ||
@include flex-grow; | ||
} | ||
|
||
&__spinner { | ||
margin-top: rem-calc(55); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//-------------------------------------------------- | ||
// classes | ||
//-------------------------------------------------- | ||
&--small { | ||
@include hero-padding; | ||
min-height: rem-calc(150); | ||
|
||
@include breakpoint($small) { min-height: rem-calc(210); } | ||
@include breakpoint($medium) { min-height: rem-calc(315); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.