Make WordPress Core


Ignore:
Timestamp:
11/02/2018 11:52:16 PM (5 years ago)
Author:
allancole
Message:

Importing Twenty Nineteen, our new default theme for 2019, set for 5.0.

Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/style.css

    r43842 r43860  
    5757 * since its edges can look jagged due to lack of antialiasing. In this case, we are several
    5858 * layers of box-shadow to add the border visually, which will render the border smoother. */
     59/* Calculates maximum width for post content */
    5960/* Normalize */
    6061/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
     
    959960}
    960961
    961 .main-navigation .main-menu > li.menu-item-has-children:not(:last-child) .mobile-submenu-expand,
    962 .main-navigation .main-menu > li.menu-item-has-children:not(:last-child) .desktop-submenu-expand {
     962.main-navigation .main-menu > li.menu-item-has-children .mobile-submenu-expand,
     963.main-navigation .main-menu > li.menu-item-has-children .desktop-submenu-expand {
    963964  margin-right: 0.5rem;
    964965}
     
    10151016}
    10161017
    1017 .main-navigation .sub-menu > li.menu-item-has-children:not(:last-child) .mobile-submenu-expand,
    1018 .main-navigation .sub-menu > li.menu-item-has-children:not(:last-child) .desktop-submenu-expand {
     1018.main-navigation .sub-menu > li.menu-item-has-children .mobile-submenu-expand,
     1019.main-navigation .sub-menu > li.menu-item-has-children .desktop-submenu-expand {
    10191020  margin-right: 0;
    10201021}
     
    10831084.main-navigation .main-menu .menu-item-has-children .sub-menu:hover,
    10841085.main-navigation .main-menu .menu-item-has-children .sub-menu:focus {
    1085   display: table;
    1086   margin-top: 0;
    1087   opacity: 1;
    10881086  /* Non-mobile position */
    10891087}
     
    10941092  .main-navigation .main-menu .menu-item-has-children .sub-menu:hover,
    10951093  .main-navigation .main-menu .menu-item-has-children .sub-menu:focus {
     1094    display: table;
     1095    margin-top: 0;
     1096    opacity: 1;
    10961097    position: absolute;
    10971098    left: 0;
     
    14791480/* Alignments */
    14801481.alignleft {
     1482  /*rtl:ignore*/
    14811483  float: left;
    14821484  margin-right: 1rem;
     
    14841486
    14851487.alignright {
     1488  /*rtl:ignore*/
    14861489  float: right;
    14871490  margin-left: 1rem;
     
    15401543}
    15411544
     1545.site-header.featured-image {
     1546  display: flex;
     1547  flex-direction: column;
     1548  justify-content: space-between;
     1549  min-height: 90vh;
     1550}
     1551
     1552.site-header.featured-image .site-branding-container {
     1553  margin-bottom: auto;
     1554}
     1555
    15421556@media only screen and (min-width: 768px) {
    15431557  .site-header {
     
    15461560  }
    15471561  .site-header.featured-image {
    1548     display: flex;
    15491562    min-height: 100vh;
    1550     flex-direction: column;
    1551     justify-content: space-between;
    15521563    margin-bottom: 3rem;
    1553   }
    1554   .site-header.featured-image .site-branding-container {
    1555     margin-bottom: auto;
    15561564  }
    15571565}
     
    17551763
    17561764.site-header.featured-image .site-featured-image .entry-header {
     1765  margin-top: calc( 4 * 1rem);
    17571766  margin-bottom: 0;
    17581767  margin-left: 0;
     
    24022411}
    24032412
     2413.comment-list .pingback .comment-body {
     2414  color: #767676;
     2415  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
     2416  font-size: 0.71111em;
     2417  font-weight: 500;
     2418  margin-bottom: 1rem;
     2419}
     2420
     2421.comment-list .pingback .comment-body a:not(.comment-edit-link) {
     2422  font-weight: bold;
     2423  font-size: 19.55556px;
     2424  line-height: 1.5;
     2425  padding-right: 0.5rem;
     2426  display: block;
     2427}
     2428
     2429.comment-list .pingback .comment-body .comment-edit-link {
     2430  color: #767676;
     2431  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
     2432  font-weight: 500;
     2433}
     2434
    24042435.comment-reply {
    24052436  left: calc(1rem + 100%);
     
    24302461}
    24312462
    2432 .comment:hover > .comment-body > .comment-meta > .comment-metadata > .edit-link-sep,
    2433 .comment:hover > .comment-body > .comment-meta > .comment-metadata > .edit-link {
    2434   opacity: 1;
    2435 }
    2436 
    24372463.comment .comment-body {
    24382464  margin: calc(2 * 1rem) 0;
     
    24442470
    24452471@media only screen and (min-width: 768px) {
     2472  .comment .comment-meta {
     2473    display: flex;
     2474  }
     2475}
     2476
     2477@media only screen and (min-width: 768px) {
    24462478  .comment .comment-author {
    2447     display: inline-block;
     2479    flex: 0 0 auto;
    24482480    vertical-align: baseline;
    24492481  }
     
    25132545@media only screen and (min-width: 768px) {
    25142546  .comment .comment-metadata {
    2515     display: inline-block;
     2547    flex: 1 0 auto;
    25162548    margin-left: 1rem;
    25172549    position: relative;
     
    25462578  color: #767676;
    25472579  margin: 0 0.2em;
    2548   opacity: 0;
    2549   transition: opacity 200ms ease-in-out;
    25502580  vertical-align: baseline;
    25512581}
     
    25532583.comment .comment-metadata .edit-link {
    25542584  color: #767676;
    2555   transition: opacity 200ms ease-in-out;
    2556   opacity: 0;
    25572585}
    25582586
     
    28382866  color: #767676;
    28392867  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    2840   font-size: calc(22px * 1.6875);
     2868  font-size: calc(22px * 1.125);
    28412869  font-weight: bold;
    28422870  line-height: 1.2;
     
    28762904.entry-content > *,
    28772905.entry-summary > * {
     2906  max-width: calc(100vw - (2 * 1rem));
    28782907  margin: 32px 1rem;
    2879   max-width: calc(100vw - (2 * 1rem));
    28802908  /*
    28812909    // Set top margins for headings
     
    28942922  .entry-content > *,
    28952923  .entry-summary > * {
    2896     margin: 32px calc(2 * (100vw / 12));
    28972924    max-width: calc(8 * (100vw / 12));
    28982925  }
     
    29032930  .entry-summary > * {
    29042931    max-width: calc(6 * (100vw / 12));
     2932  }
     2933}
     2934
     2935@media only screen and (min-width: 768px) {
     2936  .entry-content > *,
     2937  .entry-summary > * {
     2938    margin: 32px calc(2 * (100vw / 12));
    29052939  }
    29062940}
     
    30233057    max-width: 385.44px;
    30243058  }
     3059}
     3060
     3061.entry-content .wp-block-audio.aligncenter {
     3062  margin: 32px calc(2 * (100vw / 12));
     3063  max-width: calc(6 * (100vw / 12));
    30253064}
    30263065
     
    30873126  color: #767676;
    30883127  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    3089   font-size: calc(22px * 1.6875);
     3128  font-size: calc(22px * 1.125);
    30903129  font-weight: bold;
    30913130  line-height: 1.2;
     
    33633402}
    33643403
     3404.entry-content .wp-block-cover-image.aligncenter,
     3405.entry-content .wp-block-cover.aligncenter {
     3406  margin: 32px calc(2 * (100vw / 12));
     3407  max-width: calc(6 * (100vw / 12));
     3408}
     3409
    33653410.entry-content .wp-block-cover-image.has-left-content,
    33663411.entry-content .wp-block-cover.has-left-content {
     
    34063451  margin: 0;
    34073452  padding: 0.5rem;
    3408   text-align: left;
     3453  text-align: center;
    34093454}
    34103455
     
    34133458  margin-bottom: 2rem;
    34143459  margin-top: 2rem;
     3460  text-align: left;
    34153461  /* Remove duplicate rule-line when a separator
    34163462         * is followed by an H1, or H2 */
     
    34343480.entry-content hr + h2:before {
    34353481  display: none;
     3482}
     3483
     3484.entry-content .wp-block-separator.is-style-dots,
     3485.entry-content hr.is-style-dots {
     3486  max-width: calc(100vw - (2 * 1rem));
     3487  text-align: center;
     3488}
     3489
     3490@media only screen and (min-width: 768px) {
     3491  .entry-content .wp-block-separator.is-style-dots,
     3492  .entry-content hr.is-style-dots {
     3493    max-width: calc(8 * (100vw / 12));
     3494  }
     3495}
     3496
     3497@media only screen and (min-width: 1168px) {
     3498  .entry-content .wp-block-separator.is-style-dots,
     3499  .entry-content hr.is-style-dots {
     3500    max-width: calc(6 * (100vw / 12));
     3501  }
    34363502}
    34373503
     
    34943560.entry-content .wp-block-code code {
    34953561  font-size: 1.125em;
     3562  white-space: pre-wrap;
     3563  word-break: break-word;
    34963564}
    34973565
     
    35923660}
    35933661
    3594 .wp-caption .wp-caption-text {
    3595   margin: calc(0.875 * 1rem) 0;
    3596 }
    3597 
    35983662.wp-caption-text {
     3663  color: #767676;
     3664  font-size: 0.71111em;
     3665  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
     3666  line-height: 1.6;
     3667  margin: 0;
     3668  padding: 0.5rem;
    35993669  text-align: center;
    36003670}
Note: See TracChangeset for help on using the changeset viewer.