123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- /*--------------------------------------------------------------*/
- /* !## Site Header */
- /*--------------------------------------------------------------*/
- .site-header {
- background: $color__background-body;
- }
- .site-header-wrap {
- position: relative;
- z-index: 2;
- }
- .custom-logo-link {
- display: block;
- line-height: 0;
- }
- .site-identity {
- padding-right: ( $gutter * 1.5 );
- }
- .site-branding {
- padding: 0 ( $gutter * .5 );
- .site-title {
- @include site-title();
- margin: 0;
- }
- .site-description {
- @include body-copy-small();
- margin-bottom: 0;
- }
- a {
- display: inline-block;
- }
- }
- @include breakpoint( mobileonly ) {
- .custom-logo-link {
- margin-bottom: ( $gutter * .6 );
- max-width: 50%;
- }
- .site-branding {
- text-align: left;
- margin-bottom: $mobile-baseline;
- .site-identity {
- padding-right: 100px;
- }
- .site-title {
- margin-bottom: ( $gutter * .4 );
- width: calc( 100% + 100px );
- &:last-child {
- width: inherit;
- }
- }
- .hide-site-title-description & .custom-logo-link,
- .site-identity > *:last-child {
- margin-bottom: 0;
- }
- }
- }
- @include breakpoint( phablet ) {
- .site-header {
- position: relative;
- overflow: visible;
- }
- .site-branding {
- display: inline-block;
- vertical-align: top;
- width: calc( 70% - #{$gutter} );
- }
- .admin-bar .site-branding-wrap {
- top: calc( #{ $baseline } + #{ $admin-bar-height } );
- }
- .site-header-wrap {
- padding: ( $baseline ) 0;
- }
- }
- @include breakpoint( tablet ) {
- .site-header-wrap {
- display: flex;
- flex-direction: row-reverse;
- justify-content: space-between;
- padding: ( $baseline * 2 ) 0;
- position: relative;
- align-items: center;
- overflow: visible;
- }
- .site-branding {
- align-content: center;
- clip: rect( 0, auto, auto, 0 );
- display: flex;
- flex-direction: column;
- height: 100%;
- justify-content: center;
- left: 0;
- padding: ( $baseline * 2 ) 30% ( $baseline * 2 ) 0;
- position: absolute;
- top: 0;
- width: 100%;
- z-index: 1;
- }
- .site-branding-wrap {
- align-items: center;
- display: flex;
- flex-direction: row;
- flex: 3 1 50%;
- flex-wrap: nowrap;
- justify-content: center;
- position: fixed;
- top: ( $baseline * 2 );
- .custom-logo-link {
- flex: 1 0 144px;
- padding: 0 ( $gutter * .5 ) 0 0;
- .custom-logo {
- max-width: 100%;
- }
- }
- .admin-bar & {
- top: calc( #{ $baseline * 2 } + #{ $admin-bar-height } );
- }
- .hide-site-title-description & {
- width: calc( 80% * .725 );
- .custom-logo-link {
- flex: 5 0 80%;
- padding: 0;
- .custom-logo {
- max-width: 50%;
- }
- }
- }
- .wp-custom-logo & {
- width: calc( 80% * .725 );
- }
- .site-identity {
- flex: 4 1 80%;
- padding: 0 ( $gutter * .5 ) 0 0;
- }
- .site-title {
- @include font-size( 2.1375 );
- }
- .site-description {
- @include font-size();
- margin-bottom: 0;
- max-width: 40em;
- }
- }
- }
|