Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:32:33 AM (8 years ago)
Author:
pento
Message:

Default Themes: Import Twenty Nineteen from the 5.0 branch.

Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.

Fixes #45424.

Location:
trunk
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentynineteen/sass/site/header/_site-header.scss

    r43808 r44149  
    22
    33.site-header {
     4        padding: 1em;
    45
    5         padding: 1em;
     6        &.featured-image {
     7                display: flex;
     8                flex-direction: column;
     9                justify-content: space-between;
     10                min-height: 90vh;
     11
     12                .site-branding-container {
     13                        margin-bottom: auto;
     14                }
     15        }
    616
    717        @include media(tablet) {
    … …  
    1020
    1121                &.featured-image {
    12                         display: flex;
    1322                        min-height: 100vh;
    14                         flex-direction: column;
    15                         justify-content: space-between;
    1623                        margin-bottom: 3rem;
    17 
    18                         .site-branding-container {
    19                                 margin-bottom: auto;
    20                         }
    2124                }
    2225        }
    … …  
    3134
    3235        @include media(tablet) {
    33                 margin: 0 calc(2 * (100vw / 12));
    34                 max-width: 22em;
     36                margin: 0 $size__site-margins;
    3537        }
    3638}
    … …  
    4749                margin-bottom: 0;
    4850                position: absolute;
    49                 right: calc(100% + (0.5 * calc(100vw / 12)));
     51                right: calc(100% + (1.25 * #{$size__spacing-unit}));
    5052                top: 4px; // Accounts for box-shadow widths
    5153                z-index: 999;
    … …  
    5557                border-radius: 100%;
    5658                box-sizing: content-box;
    57                 box-shadow: 0 0 0 0 rgba(black, 0);
     59                box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    5860                display: block;
    59                 width: 32px;
    60                 height: 32px;
     61                width: 50px;
     62                height: 50px;
    6163                overflow: hidden;
    6264                transition: box-shadow $background_transition ease-in-out;
    … …  
    6971                &:active,
    7072                &:focus {
    71                         box-shadow: 0 0 0 2px rgba(black, 1);
     73                        box-shadow: 0 0 0 2px rgba(0, 0, 0, 1);
    7274                }
    7375
    … …  
    8284
    8385.site-title {
    84 
    8586        margin: auto;
    8687        display: inline;
    8788        color: $color__text-main;
     89
     90        a {
     91                color: $color__text-main;
     92
     93                &:link,
     94                &:visited {
     95                        color: $color__text-main;
     96                }
     97
     98                &:hover {
     99                        color: $color__text-hover;
     100                }
     101        }
    88102
    89103        .featured-image & {
    … …  
    100114        }
    101115
    102         a {
    103                 color: inherit;
    104 
    105                 &:hover {
    106                         color: $color__text-hover;
    107                 }
     116        @include media(tablet) {
     117                display: inline;
    108118        }
    109119
    110         @include media(tablet) {
    111                 display: inline;
     120        &:not(:empty) + .site-description:not(:empty):before {
     121                content: "\2014";
     122                margin: 0 .2em;
    112123        }
    113124}
    … …  
    121132        font-weight: normal;
    122133        margin: 0;
    123 
    124         &:not(:empty):before {
    125                 content: "\2014";
    126                 margin: 0 .2em;
    127         }
    128134}
Note: See TracChangeset for help on using the changeset viewer.