-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make CSS module .Feature for featured libraries
- Loading branch information
Marc Altmann
committed
Dec 9, 2014
1 parent
02094a3
commit 9e3a293
Showing
6 changed files
with
114 additions
and
218 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 was deleted.
Oops, something went wrong.
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,77 @@ | ||
/* | ||
* Featured libraries for category and filter landing pages | ||
* like books, fair, eco, small, used | ||
*/ | ||
|
||
|
||
.Feature { margin-bottom: 1em; } | ||
|
||
.Feature-inner { | ||
@include whitebox; | ||
@include clearfix; | ||
} | ||
|
||
.Feature-inner > h2 { margin: em(6) 0 em(11) 0; } | ||
|
||
.Feature--double { clear: both; } | ||
|
||
|
||
/* Responsive CSS */ | ||
|
||
@include at-breakpoint($bp-mobile) { | ||
.Feature--double .Grid > .Grid-item { | ||
@include grid-with-columns(2); | ||
} | ||
} | ||
|
||
@include between-breakpoints($bp-mobile, $bp-tablet) { | ||
.Feature--collapsible .Grid > .Grid-item { | ||
@include grid-with-columns(2); | ||
} | ||
} | ||
|
||
@include till-breakpoint($bp-tablet) { | ||
.Feature--quadruple .Grid-item:nth-last-child(2) { | ||
display: none; | ||
} | ||
} | ||
|
||
@include between-breakpoints($bp-tablet, $bp-desktop) { | ||
.Feature--double { | ||
@include span(2 of 3 0.05); | ||
} | ||
|
||
.Feature--collapsible { | ||
@include span(1 of 3 0.05); | ||
@include omega; | ||
} | ||
|
||
.Feature--collapsible .Grid > .Grid-item { | ||
@include grid-with-columns(1); | ||
} | ||
|
||
.Feature--collapsible .Grid > .Grid-item:last-child { | ||
display: none | ||
} | ||
} | ||
|
||
@include till-breakpoint($bp-desktop) { | ||
.Feature--quadruple .Grid-item:last-child { | ||
display: none; | ||
} | ||
} | ||
|
||
@include at-breakpoint($bp-desktop) { | ||
.Feature--double { | ||
@include span(1 of 2 0.05); | ||
} | ||
|
||
.Feature--collapsible { | ||
@include span(1 of 2 0.05); | ||
@include omega; | ||
} | ||
|
||
.Feature--collapsible .Grid > .Grid-item { | ||
@include grid-with-columns(2); | ||
} | ||
} |
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