123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- /*--------------------------------------------------------------
- ## Isotope Grid
- --------------------------------------------------------------*/
- /* center container with CSS */
- .home .content-area,
- .blog .content-area {
- border-top: 1px solid $color__border-transparent;
- }
- /**
- * Disabling Isotope CSS3 transitions
- */
- .isotope.no-transition,
- .isotope.no-transition .isotope-item,
- .isotope .isotope-item.no-transition {
- -webkit-transition-duration: 0s;
- -moz-transition-duration: 0s;
- -ms-transition-duration: 0s;
- -o-transition-duration: 0s;
- transition-duration: 0s;
- }
- /**
- * Isotope
- */
- .hfeed {
- .site-main {
- display: block;
- margin: 0 auto ($baseline * 4);
- opacity: 0;
- overflow: visible;
- padding: $gutter 0;
- width: calc( 100% - #{($gutter)} );
- @include transition( opacity, .33s, ease-in );
- /* fluid 5 columns */
- .grid-sizer,
- .grid-item,
- .grid-item-featured:not(.has-post-thumbnail),
- .grid-item-featured.grid-item-small {
- width: 100%; // calc(20% - #{$gutter});
- }
- /* 2 columns wide */
- .grid-item--width2,
- .grid-item-featured {
- width: 100%; // calc(40% - #{$gutter * 2});
- }
- .gutter-sizer {
- width: 0;
- }
- }
- }
- .no-js .hfeed .site-main,
- .hfeed.error404 .site-main,
- .hfeed.search-no-results .site-main,
- .hfeed .site-main.has-isotope {
- opacity: 1;
- }
- @include breakpoint( mobileonly ) {
- .hfeed {
- .site-main {
- width: calc( 100% );
- }
- }
- }
- @include breakpoint( phablet ) {
- .hfeed {
- .site-main {
- margin: 0 auto calc(#{ $baseline * 4 } + #{ $gutter * 1.5 });
- /* fluid 5 columns */
- .grid-sizer,
- .grid-item,
- .grid-item-featured:not(.has-post-thumbnail),
- .grid-item-featured.grid-item-small {
- width: 50%;
- }
- /* 2 columns wide */
- .grid-item--width2,
- .grid-item-featured {
- width: 50%;
- }
- .gutter-sizer {
- width: 0;
- }
- }
- }
- }
- @include breakpoint( tablet ) {
- .hfeed {
- .site-main {
- /* fluid 5 columns */
- .grid-sizer,
- .grid-item,
- .grid-item-featured:not(.has-post-thumbnail),
- .grid-item-featured.grid-item-small {
- width: 33%;
- }
- /* 2 columns wide */
- .grid-item--width2,
- .grid-item-featured {
- width: 66%;
- }
- .gutter-sizer {
- width: 0;
- }
- }
- }
- // Archives
- .hfeed:not(.home):not(.blog) {
- .site-main {
- /* fluid 5 columns */
- .grid-sizer,
- .grid-item,
- .grid-item-featured:not(.has-post-thumbnail),
- .grid-item-featured.grid-item-small {
- width: 50%;
- }
- /* 2 columns wide */
- .grid-item--width2,
- .grid-item-featured {
- width: 50%;
- }
- }
- }
- }
- @include breakpoint(laptop) {
- .hfeed {
- .site-main {
- /* fluid 5 columns */
- .grid-sizer,
- .grid-item,
- .grid-item-featured:not(.has-post-thumbnail),
- .grid-item-featured.grid-item-small {
- width: 25%; // calc(20% - #{$gutter});
- }
- /* 2 columns wide */
- .grid-item--width2,
- .grid-item-featured {
- width: 50%; // calc(40% - #{$gutter * 2});
- }
- .gutter-sizer {
- width: 0;
- }
- }
- // Archives
- &.blog:not(.home),
- &:not(.home):not(.blog) {
- .site-main {
- /* fluid 5 columns */
- .grid-sizer,
- .grid-item,
- .grid-item-featured:not(.has-post-thumbnail),
- .grid-item-featured.grid-item-small {
- width: 33.333%;
- }
- /* 2 columns wide */
- .grid-item--width2,
- .grid-item-featured {
- width: 66.667%;
- }
- }
- }
- }
- }
|