123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728 |
- /*--------------------------------------------------------------*/
- /* !## Archives */
- /*--------------------------------------------------------------*/
- .hfeed {
- .content-area {
- border-top: 1px solid $color__border-transparent;
- }
- .site-main {
- overflow: visible;
- padding: 0;
- position: relative;
- }
- // Page header
- .page-header {
- border-bottom: 1px solid $color__border-transparent;
- padding: ( $baseline ) 0;
- position: relative;
- .page-title {
- @include widget-title();
- @include font-size(1);
- color: $color__text-main;
- margin: 0;
- padding: 0 ( $gutter / 2 );
- }
- .taxonomy-description {
- @include body-copy-small();
- color: $color__link-hover;
- padding: 0 ( $gutter / 2 );
- }
- }
- .sticky-wrapper {
- position: relative;
- width: 100%;
- }
- // Posts
- .hentry {
- padding: #{ $gutter * .5 };
- @include non-border( 1px solid $color__border-transparent, bottom );
- &:before {
- width: calc(100% + #{ $gutter });
- left: #{ -$gutter * .5 };
- }
- .entry-header-wrap {
- span {
- display: block;
- width: 100%;
- }
- .entry-title {
- padding: 0 #{$gutter * .2};
- @include nav-title(1);
- }
- .posted-on {
- @include list-item();
- @include body-copy-small();
- padding: 0 #{$gutter * .2};
- }
- }
- .entry-header {
- .edit-link {
- padding: 0 5px;
- }
- }
- .post-thumbnail {
- img {
- margin: 1px auto;
- max-width: calc(100% - 2px);
- display: block;
- position: relative;
- }
- }
- }
- // Infinite Scroll
- .has-isotope #infinite-handle,
- .has-isotope .infinite-loader {
- margin-right: auto;
- overflow: visible;
- }
- // Navigation
- .posts-navigation,
- #infinite-handle,
- .infinite-loader {
- top: 100%;
- }
- // Navigation
- .posts-navigation {
- top: calc( 100% + #{$baseline} );
- margin: 0 #{(-$baseline * .75)};
- .nav-links {
- padding: 0 #{$baseline * .75};
- }
- }
- }
- @include breakpoint( mobileonly ) {
- .hfeed {
- // Posts
- .hentry {
- .entry-header-wrap .entry-title {
- @include font-size( 1.25 );
- }
- .post-thumbnail {
- margin-bottom: #{ $gutter * .5 };
- }
- &.grid-item-featured {
- background: $color__link;
- .entry-header-wrap {
- color: $color__background-body;
- .posted-on {
- color: $color__background-body;
- }
- }
- }
- }
- // Infinite Scroll
- .has-isotope .infinite-loader {
- padding-top: #{ $baseline * 2.75 };
- }
- #infinite-handle span {
- margin-top: inherit;
- }
- // Navigation
- .posts-navigation {
- top: calc( 100% );
- }
- }
- }
- @include breakpoint( phablet ) {
- .hfeed {
- .content-area {
- padding-top: $gutter;
- }
- .site-main {
- width: calc( 100% - #{ $gutter * 1.5 } );
- .grid-item-featured:not(.has-post-thumbnail) .entry-header .entry-title {
- @include nav-title();
- }
- .hentry {
- float: left;
- margin: 0;
- }
- }
- // Page header
- .page-header {
- border-bottom: none;
- display: block;
- margin: 0;
- padding: 0 #{ $gutter * 1.5 };
- position: relative;
- top: 0;
- width: 100%;
- .page-title {
- @include widget-title();
- @include font-size( 1.125 );
- margin-bottom: 0;
- }
- }
- .sticky-wrapper {
- position: absolute;
- width: 20%;
- }
- // Posts
- .hentry {
- float: left;
- margin: 0;
- padding: 0;
- position: relative;
- .entry-header {
- border: 1px solid $color__border-transparent;
- margin: ( $gutter * .75 );
- padding: ( $gutter * .75 ) ( $gutter * .5 );
- text-align: center;
- // Scale to normal on mouse out
- @include transition( all, 0.25s, cubic-bezier(0.175, 0.885, 0.32, 1.275) );
- }
- .entry-header-wrap {
- align-items: center;
- align-content: center;
- display: flex;
- flex-wrap: nowrap;
- flex-direction: column;
- height: 100%;
- justify-content: center;
- color: $color__link;
- &:focus,
- &:hover,
- &:active {
- opacity: 1;
- }
- .posted-on {
- color: $color__link;
- opacity: .66;
- }
- }
- .entry-title {
- margin: 0 0 ($gutter * .125);
- max-width: 90%;
- min-height: 2em;
- word-break: break-word;
- }
- .posted-on {
- margin: ($gutter * .125) 0 0;
- padding: 0;
- }
- &.has-post-thumbnail {
- .entry-header {
- border: 1px solid $color__border-transparent;
- margin: 0;
- opacity: 0;
- padding: 0;
- position: absolute;
- left: ( $gutter * .75 );
- top: ( $gutter * .75 );
- height: calc(100% - #{($gutter * 1.5)});
- width: calc(100% - #{($gutter * 1.5)});
- text-align: center;
- // Scale to normal on mouse out
- @include transition( all, 0.25s, cubic-bezier(0.175, 0.885, 0.32, 1.275) );
- }
- .post-thumbnail {
- // Scale to normal on mouse out
- @include transition( all, 0.25s, cubic-bezier(0.175, 0.885, 0.32, 1.275) );
- a {
- display: block;
- line-height: 0;
- padding: ($gutter * .75);
- }
- &:after {
- @include transition( opacity, 0.25s, ease-out );
- content: "";
- opacity: 0;
- position: absolute;
- left: ($gutter * .75);
- top: ($gutter * .75);
- height: calc( 100% - #{($gutter * 1.5)} );
- width: calc( 100% - #{($gutter * 1.5)} );
- background: $color__background-body;
- }
- }
- .edit-link {
- left: 50%;
- position: absolute;
- bottom: ($baseline * .5);
- transform: translate(-50%, 0);
- a {
- color: $color__link;
- }
- }
- &.grid-item-small {
- .entry-header {
- margin: ( $gutter * .75 );
- padding: ( $gutter * .75 ) ( $gutter * .5 );
- position: relative;
- left: 0;
- top: inherit;
- height: inherit;
- }
- .post-thumbnail {
- position: absolute;
- width: 100%;
- height: 100%;
- img {
- @include center-align( absolute );
- max-width: calc( 100% - #{( $gutter * 1.5 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 1.5 )} - 2px );
- }
- }
- &.grid-item-landscape {
- .post-thumbnail img {
- max-width: calc( 100% - #{( $gutter * 1.5 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 1.5 )} - 2px );
- }
- }
- &.grid-item-portrait {
- .post-thumbnail img {
- max-width: calc( 100% - #{( $gutter * 1.5 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 1.5 )} - 2px );
- width: auto;
- }
- }
- .edit-link {
- left: inherit;
- position: relative;
- bottom: inherit;
- transform: inherit;
- }
- }
- }
- // Featured post
- &.grid-item-featured {
- .entry-title {
- @include font-size( 1.5 );
- }
- .post-thumbnail:after {
- background: $color__link;
- }
- .entry-header-wrap {
- color: $color__background-body;
- .posted-on {
- color: $color__background-body;
- }
- }
- &.grid-item-small .entry-title {
- @include font-size( 1 );
- }
- }
- // Posts without featured images
- &:not(.has-post-thumbnail),
- &.grid-item-featured:not(.has-post-thumbnail) {
- .entry-header {
- background: $color__background-body;
- border-color: $color__border-transparent;
- opacity: 1;
- }
- .entry-header-wrap {
- color: $color__link;
- .posted-on {
- color: $color__link;
- }
- }
- &:hover {
- .entry-header {
- box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.25);
- }
- }
- &:after {
- content: "";
- display: none;
- }
- }
- // Scale up on hover
- &:hover {
- .entry-header {
- box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.25);
- opacity: 1;
- @include transform( scale, 1.125 );
- }
- .post-thumbnail {
- @include transform( scale, 1.125 );
- &:after {
- opacity: .92;
- }
- }
- &.has-post-thumbnail .edit-link a {
- color: $color__link;
- }
- }
- // Scale down on click
- &:active {
- .entry-header {
- box-shadow: 0 0 0 rgba(0, 0, 0, 0);
- }
- }
- &:before {
- display: none;
- }
- }
- }
- }
- @include breakpoint( tablet ) {
- .hfeed {
- // Posts
- .hentry {
- .entry-header {
- border: 1px solid $color__border-transparent;
- margin: ( $gutter );
- padding: ( $gutter ) ( $gutter * .5 );
- }
- &.has-post-thumbnail {
- .entry-header {
- left: ( $gutter );
- top: ( $gutter );
- height: calc( 100% - #{($gutter * 2)} );
- width: calc( 100% - #{($gutter * 2)} );
- }
- .post-thumbnail {
- a {
- padding: ( $gutter );
- }
- &:after {
- left: ( $gutter );
- top: ( $gutter );
- height: calc( 100% - #{($gutter * 2)} );
- width: calc( 100% - #{($gutter * 2)} );
- }
- }
- &.grid-item-small {
- .entry-header {
- margin: ( $gutter );
- padding: ( $gutter ) ( $gutter * .5 );
- position: relative;
- left: 0;
- top: 0;
- height: inherit;
- }
- .post-thumbnail img {
- max-width: calc( 100% - #{($gutter * 2)} );
- max-height: calc( 100% - #{( $gutter * 2 )});
- }
- &.grid-item-landscape {
- .post-thumbnail img {
- max-width: calc( 100% - #{( $gutter * 2 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 2 )} - 2px );
- }
- }
- &.grid-item-portrait {
- .post-thumbnail img {
- max-width: calc( 100% - #{( $gutter * 2 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 2 )} - 2px );
- width: auto;
- }
- }
- }
- }
- }
- }
- }
- @include breakpoint( laptop ) {
- .hfeed {
- .content-area {
- position: relative;
- .page-header {
- border-bottom: none;
- max-width: calc( 20% - #{ $gutter * 2.5 } );
- padding: ( $baseline * 2.5 ) 0 0;
- position: absolute;
- left: #{ $gutter * 2.5 };
- .page-title {
- @include font-size( 1.125 );
- margin-bottom: ( $baseline * .5 );
- }
- &.sticky {
- left: inherit;
- padding-top: calc( #{$baseline * 2.5} );
- position: fixed;
- right: calc( 80% );
- }
- }
- }
- .hentry {
- .entry-header {
- margin: ( $gutter * 1.5 );
- padding: ( $gutter * 1.5 ) ( $gutter * .5 );
- }
- &.has-post-thumbnail {
- .entry-header {
- left: ( $gutter * 1.5 );
- top: ( $gutter * 1.5 );
- height: calc( 100% - #{($gutter * 3)} );
- width: calc( 100% - #{($gutter * 3)} );
- }
- .post-thumbnail {
- a {
- padding: ( $gutter * 1.5 );
- }
- &:after {
- left: ($gutter * 1.5);
- top: ($gutter * 1.5);
- height: calc(100% - #{($gutter * 3)});
- width: calc(100% - #{($gutter * 3)});
- }
- }
- &.grid-item-small {
- .entry-header {
- margin: ( $gutter * 1.5 );
- padding: ( $gutter * 1.5 ) ( $gutter * .5 );
- }
- .post-thumbnail img {
- max-width: calc( 100% - #{($gutter * 3)} );
- max-height: calc( 100% - #{( $gutter * 3 )});
- }
- &.grid-item-landscape {
- .post-thumbnail img {
- max-width: calc( 100% - #{( $gutter * 3 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 3 )} - 2px );
- }
- }
- &.grid-item-portrait {
- .post-thumbnail img {
- max-width: calc( 100% - #{( $gutter * 3 )} - 2px );
- max-height: calc( 100% - #{( $gutter * 3 )} - 2px );
- width: auto;
- }
- }
- }
- }
- }
- .posts-navigation {
- margin: 0 #{ $gutter * 1.5 };
- }
- &.blog:not(.home),
- &:not(.home):not(.blog) {
- .site-main {
- margin-left: 25%;
- margin-right: auto;
- padding: 0;
- width: calc( 75% - #{ $gutter } );
- #infinite-handle,
- .infinite-loader {
- right: calc( 12.5% + #{ $gutter * 1.5 } );
- width: 100%;
- }
- }
- // Adjust sticky page header for admin bar
- &.admin-bar .page-header.sticky {
- padding-top: calc( #{ $baseline * 2.5 } + #{ $admin-bar-height } );
- }
- }
- }
- }
|