├── sass ├── forms │ ├── _forms.scss │ ├── _buttons.scss │ └── _fields.scss ├── variables-site │ ├── _variables-site.scss │ ├── _transitions.scss │ ├── _structure.scss │ ├── _columns.scss │ ├── _colors.scss │ └── _fonts.scss ├── layout │ └── _layout.scss ├── elements │ ├── _tables.scss │ ├── _lists.scss │ └── _elements.scss ├── navigation │ ├── _menu-footer-navigation.scss │ ├── _links.scss │ ├── _navigation.scss │ ├── _menu-social-navigation.scss │ ├── _next-previous.scss │ └── _menu-main-navigation.scss ├── modules │ ├── _clearings.scss │ ├── _alignments.scss │ └── _accessibility.scss ├── typography │ ├── _typography.scss │ ├── _copy.scss │ └── _headings.scss ├── media │ ├── _captions.scss │ ├── _media.scss │ └── _galleries.scss ├── site │ ├── footer │ │ └── _site-footer.scss │ ├── _site.scss │ ├── secondary │ │ └── _widgets.scss │ ├── primary │ │ ├── _archives.scss │ │ ├── _posts-and-pages.scss │ │ └── _comments.scss │ └── header │ │ ├── _site-header.scss │ │ └── _site-featured-image.scss ├── mixins │ ├── _utilities.scss │ └── _mixins-master.scss └── _normalize.scss ├── screenshot.png ├── fonts ├── NonBreakingSpaceOverride.woff └── NonBreakingSpaceOverride.woff2 ├── postcss.config.js ├── style-editor-customizer.scss ├── .github ├── issue_template.md └── pull_request_template.md ├── .editorconfig ├── template-parts ├── footer │ └── footer-widgets.php ├── post │ ├── author-bio.php │ └── discussion-meta.php ├── content │ ├── content-excerpt.php │ ├── content-page.php │ ├── content-single.php │ ├── content-none.php │ └── content.php └── header │ ├── entry-header.php │ └── site-branding.php ├── js ├── customize-controls.js ├── skip-link-focus-fix.js ├── customize-preview.js ├── priority-menu.js └── touch-keyboard-navigation.js ├── page.php ├── composer.json ├── 404.php ├── index.php ├── archive.php ├── search.php ├── readme.txt ├── package.json ├── inc ├── icon-functions.php ├── back-compat.php ├── customizer.php ├── template-tags.php └── color-patterns.php ├── footer.php ├── single.php ├── header.php ├── README.md ├── style.scss ├── style-editor-customizer.css ├── image.php ├── classes └── class-twentynineteen-walker-comment.php ├── comments.php ├── print.scss ├── print.css └── functions.php /sass/forms/_forms.scss: -------------------------------------------------------------------------------- 1 | @import "buttons"; 2 | 3 | @import "fields"; 4 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WordPress/twentynineteen/HEAD/screenshot.png -------------------------------------------------------------------------------- /fonts/NonBreakingSpaceOverride.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WordPress/twentynineteen/HEAD/fonts/NonBreakingSpaceOverride.woff -------------------------------------------------------------------------------- /fonts/NonBreakingSpaceOverride.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WordPress/twentynineteen/HEAD/fonts/NonBreakingSpaceOverride.woff2 -------------------------------------------------------------------------------- /sass/variables-site/_variables-site.scss: -------------------------------------------------------------------------------- 1 | @import "colors"; 2 | @import "fonts"; 3 | @import "structure"; 4 | @import "columns"; 5 | @import "transitions"; 6 | -------------------------------------------------------------------------------- /sass/layout/_layout.scss: -------------------------------------------------------------------------------- 1 | 2 | /** === Layout === */ 3 | 4 | #page { 5 | width: 100%; 6 | } 7 | 8 | .site-content { 9 | overflow: hidden; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /sass/variables-site/_transitions.scss: -------------------------------------------------------------------------------- 1 | // Transition timeouts. 2 | 3 | $link_transition: 110ms; 4 | $icon_transition: 120ms; 5 | $button_transition: 150ms; 6 | $background_transition: 200ms; -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | var postcssFocusWithin = require('postcss-focus-within'); 2 | 3 | module.exports = { 4 | plugins: { 5 | autoprefixer: {} 6 | } 7 | }; 8 | 9 | module.exports = { 10 | plugins: [ 11 | postcssFocusWithin(/* pluginOptions */) 12 | ] 13 | }; 14 | -------------------------------------------------------------------------------- /sass/elements/_tables.scss: -------------------------------------------------------------------------------- 1 | table { 2 | margin: 0 0 $size__spacing-unit; 3 | border-collapse: collapse; 4 | width: 100%; 5 | font-family: $font__heading; 6 | 7 | td, 8 | th { 9 | padding: 0.5em; 10 | border: 1px solid $color__text-light; 11 | word-break: break-all; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /sass/navigation/_menu-footer-navigation.scss: -------------------------------------------------------------------------------- 1 | /** === Footer menu === */ 2 | 3 | .footer-navigation { 4 | 5 | display: inline; 6 | 7 | & > div { 8 | display: inline; 9 | } 10 | 11 | .footer-menu { 12 | 13 | display: inline; 14 | padding-left: 0; 15 | 16 | li { 17 | display: inline; 18 | margin-right: 1rem; 19 | } 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /sass/navigation/_links.scss: -------------------------------------------------------------------------------- 1 | a { 2 | 3 | @include link-transition; 4 | color: $color__link; 5 | 6 | &:visited { 7 | color: $color__link-visited; 8 | } 9 | 10 | &:hover, 11 | &:active { 12 | color: $color__link-hover; 13 | outline: 0; 14 | text-decoration: none; 15 | } 16 | 17 | &:focus { 18 | outline: thin dotted; 19 | text-decoration: underline; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /style-editor-customizer.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | Twenty Nineteen Customizer Styles & Non-latin Font Fallbacks 3 | 4 | NOTE: This file is automatically populated with additional styles if the user selects a custom primary color in the customzier. 5 | */ 6 | 7 | /** === Includes === */ 8 | 9 | @import "sass/mixins/mixins-master"; 10 | 11 | /** === Non-Latin font fallbacks === */ 12 | 13 | @include non-latin-fonts( '.wp-block' ); -------------------------------------------------------------------------------- /sass/variables-site/_structure.scss: -------------------------------------------------------------------------------- 1 | // Responsive widths. 2 | 3 | $size__spacing-unit: 1rem; 4 | $size__site-main: 100%; 5 | $size__site-sidebar: 25%; 6 | $size__site-margins: calc(10% + 60px); 7 | $size__site-tablet-content: calc(8 * (100vw / 12) - 28px); 8 | $size__site-desktop-content: calc(6 * (100vw / 12) - 28px); 9 | 10 | // Responsive widths. 11 | 12 | $mobile_width: 600px; 13 | $tablet_width: 768px; 14 | $desktop_width: 1168px; 15 | $wide_width: 1379px; 16 | 17 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | Hi there! Thanks for contributing. In case you missed it in the main README, this repository will soon be archived. 2 | 3 | Moving forward, issues should be posted to Trac instead: 4 | 5 | https://core.trac.wordpress.org/newticket 6 | 7 | When you open an issue there, please begin your issue's title with "Twenty Nineteen: ", and select the "Bundled Theme" component. 8 | 9 | If you have any questions, feel free to ask in the #core-themes channel on WordPress.org slack. -------------------------------------------------------------------------------- /sass/variables-site/_columns.scss: -------------------------------------------------------------------------------- 1 | $columns: ( 2 | 1: calc(1 * (100vw / 12)), 3 | 2: calc(2 * (100vw / 12)), 4 | 3: calc(3 * (100vw / 12)), 5 | 4: calc(4 * (100vw / 12)), 6 | 5: calc(5 * (100vw / 12)), 7 | 6: calc(6 * (100vw / 12)), 8 | 7: calc(7 * (100vw / 12)), 9 | 8: calc(8 * (100vw / 12)), 10 | 9: calc(9 * (100vw / 12)), 11 | 10: calc(10 * (100vw / 12)), 12 | 11: calc(11 * (100vw / 12)), 13 | 12: calc(12 * (100vw / 12)) 14 | ); 15 | 16 | $columns__margin: $size__spacing-unit; 17 | -------------------------------------------------------------------------------- /sass/elements/_lists.scss: -------------------------------------------------------------------------------- 1 | ul, 2 | ol { 3 | padding-left: ( 1 * $size__spacing-unit ); 4 | } 5 | 6 | ul { 7 | list-style: disc; 8 | 9 | ul { 10 | list-style-type: circle; 11 | } 12 | } 13 | 14 | ol { 15 | list-style: decimal; 16 | } 17 | 18 | li { 19 | line-height: $font__line-height-body; 20 | } 21 | 22 | li > ul, 23 | li > ol { 24 | padding-left: ( 2 * $size__spacing-unit ); 25 | } 26 | 27 | dt { 28 | font-weight: bold; 29 | } 30 | 31 | dd { 32 | margin: 0 $size__spacing-unit $size__spacing-unit; 33 | } 34 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | 4 | # WordPress Coding Standards 5 | # https://make.wordpress.org/core/handbook/coding-standards/ 6 | 7 | root = true 8 | 9 | [*] 10 | charset = utf-8 11 | end_of_line = lf 12 | insert_final_newline = true 13 | trim_trailing_whitespace = true 14 | indent_style = tab 15 | 16 | [{package.json,*.yml}] 17 | indent_style = space 18 | indent_size = 2 19 | 20 | [{*.txt,wp-config-sample.php}] 21 | end_of_line = crlf 22 | -------------------------------------------------------------------------------- /sass/modules/_clearings.scss: -------------------------------------------------------------------------------- 1 | .clear:before, 2 | .clear:after, 3 | .entry-content:before, 4 | .entry-content:after, 5 | .comment-content:before, 6 | .comment-content:after, 7 | .site-header:before, 8 | .site-header:after, 9 | .site-content:before, 10 | .site-content:after, 11 | .site-footer:before, 12 | .site-footer:after { 13 | @include clearfix; 14 | } 15 | 16 | .clear:after, 17 | .entry-content:after, 18 | .comment-content:after, 19 | .site-header:after, 20 | .site-content:after, 21 | .site-footer:after { 22 | @include clearfix-after; 23 | } 24 | -------------------------------------------------------------------------------- /sass/modules/_alignments.scss: -------------------------------------------------------------------------------- 1 | .alignleft { 2 | /*rtl:ignore*/ 3 | float: left; 4 | /*rtl:ignore*/ 5 | margin-right: $size__spacing-unit; 6 | 7 | @include media(tablet) { 8 | /*rtl:ignore*/ 9 | margin-right: calc(2 * #{$size__spacing-unit}); 10 | } 11 | } 12 | 13 | .alignright { 14 | /*rtl:ignore*/ 15 | float: right; 16 | /*rtl:ignore*/ 17 | margin-left: $size__spacing-unit; 18 | 19 | @include media(tablet) { 20 | /*rtl:ignore*/ 21 | margin-left: calc(2 * #{$size__spacing-unit}); 22 | } 23 | } 24 | 25 | .aligncenter { 26 | clear: both; 27 | @include center-block; 28 | } 29 | -------------------------------------------------------------------------------- /template-parts/footer/footer-widgets.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /sass/navigation/_navigation.scss: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------------------------- 2 | ## Links 3 | --------------------------------------------------------------*/ 4 | @import "links"; 5 | 6 | /*-------------------------------------------------------------- 7 | ## Menus 8 | --------------------------------------------------------------*/ 9 | @import "menu-main-navigation"; 10 | @import "menu-social-navigation"; 11 | @import "menu-footer-navigation"; 12 | 13 | /*-------------------------------------------------------------- 14 | ## Next / Previous 15 | --------------------------------------------------------------*/ 16 | @import "next-previous"; 17 | -------------------------------------------------------------------------------- /sass/typography/_typography.scss: -------------------------------------------------------------------------------- 1 | 2 | html { 3 | font-size: $font__size_base; 4 | } 5 | 6 | body { 7 | -webkit-font-smoothing: antialiased; 8 | -moz-osx-font-smoothing: grayscale; 9 | color: $color__text-main; 10 | font-family: $font__body; 11 | font-weight: 400; 12 | font-size: 1em; 13 | line-height: $font__line-height-body; 14 | margin: 0; 15 | text-rendering: optimizeLegibility; 16 | } 17 | 18 | button, 19 | input, 20 | select, 21 | optgroup, 22 | textarea { 23 | color: $color__text-main; 24 | font-family: $font__body; 25 | font-weight: 400; 26 | line-height: $font__line-height-body; 27 | text-rendering: optimizeLegibility; 28 | } 29 | 30 | @import "headings"; 31 | 32 | @import "copy"; 33 | 34 | @include non-latin-fonts(); 35 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Hi there! Thanks for contributing. In case you missed it in the main README, this repository will soon be archived. 2 | 3 | Moving forward, PRs should be posted as patches to Trac: 4 | 5 | 1. Create an issue on Trac if one doesn't already exist there. Begin your issue's title with "Twenty Nineteen: ", and select the "Bundled Theme" component. You can create a new issue here: 6 | 7 | https://core.trac.wordpress.org/newticket 8 | 9 | 2. Submit your changes as a patch to Twenty Nineteen in WordPress core, and attach it to your issue. Instructions for making a patch are here: 10 | 11 | https://make.wordpress.org/core/handbook/tutorials/working-with-patches/ 12 | 13 | If you have any questions, feel free to ask in the #core-themes channel on WordPress.org slack. -------------------------------------------------------------------------------- /sass/media/_captions.scss: -------------------------------------------------------------------------------- 1 | .wp-caption { 2 | margin-bottom: calc(1.5 * #{$size__spacing-unit}); 3 | 4 | &.aligncenter { 5 | 6 | @include media(tablet) { 7 | position: relative; 8 | left: calc( #{$size__site-tablet-content} / 2 ); 9 | transform: translateX( -50% ); 10 | } 11 | 12 | @include media(desktop) { 13 | left: calc( #{$size__site-desktop-content} / 2 ); 14 | } 15 | } 16 | } 17 | 18 | .wp-caption img[class*="wp-image-"] { 19 | display: block; 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | .wp-caption-text { 25 | color: $color__text-light; 26 | font-size: $font__size-xs; 27 | font-family: $font__heading; 28 | line-height: $font__line-height-pre; 29 | margin: 0; 30 | padding: ( $size__spacing-unit * .5 ); 31 | text-align: center; 32 | } 33 | -------------------------------------------------------------------------------- /js/customize-controls.js: -------------------------------------------------------------------------------- 1 | /** 2 | * File customizer.js. 3 | * 4 | * Theme Customizer enhancements for a better user experience. 5 | * 6 | * Contains handlers to make Theme Customizer preview reload changes asynchronously. 7 | */ 8 | 9 | (function() { 10 | 11 | wp.customize.bind( 'ready', function() { 12 | 13 | // Only show the color hue control when there's a custom primary color. 14 | wp.customize( 'primary_color', function( setting ) { 15 | wp.customize.control( 'primary_color_hue', function( control ) { 16 | var visibility = function() { 17 | if ( 'custom' === setting.get() ) { 18 | control.container.slideDown( 180 ); 19 | } else { 20 | control.container.slideUp( 180 ); 21 | } 22 | }; 23 | 24 | visibility(); 25 | setting.bind( visibility ); 26 | }); 27 | }); 28 | }); 29 | 30 | })( jQuery ); 31 | -------------------------------------------------------------------------------- /sass/site/footer/_site-footer.scss: -------------------------------------------------------------------------------- 1 | /* Site footer */ 2 | 3 | #colophon { 4 | 5 | .widget-area, 6 | .site-info { 7 | margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit; 8 | 9 | @include media(tablet) { 10 | margin: calc(3 * #{$size__spacing-unit}) $size__site-margins; 11 | } 12 | } 13 | 14 | .widget-column { 15 | display: flex; 16 | flex-wrap: wrap; 17 | .widget { 18 | width: 100%; 19 | @include media(desktop) { 20 | margin-right: calc(3 * #{$size__spacing-unit}); 21 | width: calc(50% - (3 * #{$size__spacing-unit})); 22 | } 23 | } 24 | } 25 | 26 | .site-info { 27 | color: $color__text-light; 28 | 29 | a { 30 | color: inherit; 31 | 32 | &:hover { 33 | text-decoration: none; 34 | color: $color__link; 35 | } 36 | } 37 | 38 | .imprint, 39 | .privacy-policy-link { 40 | margin-right: $size__spacing-unit; 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /template-parts/post/author-bio.php: -------------------------------------------------------------------------------- 1 | 11 |
30 | 31 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |