Changeset 43842
- Timestamp:
- 10/30/2018 02:13:07 AM (6 years ago)
- Location:
- branches/5.0/src/wp-content/themes/twentynineteen
- Files:
-
- 12 added
- 4 deleted
- 50 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/404.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 12 13 ?> 13 14 14 < divid="primary" class="content-area">15 <section id="primary" class="content-area"> 15 16 <main id="main" class="site-main"> 16 17 17 < sectionclass="error-404 not-found">18 <div class="error-404 not-found"> 18 19 <header class="page-header"> 19 20 <h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'twentynineteen' ); ?></h1> … … 22 23 <div class="page-content"> 23 24 <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentynineteen' ); ?></p> 24 25 25 <?php get_search_form(); ?> 26 26 </div><!-- .page-content --> 27 </ section><!-- .error-404 -->27 </div><!-- .error-404 --> 28 28 29 29 </main><!-- #main --> 30 </ div><!-- #primary -->30 </section><!-- #primary --> 31 31 32 32 <?php -
branches/5.0/src/wp-content/themes/twentynineteen/archive.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 12 13 ?> 13 14 14 < divid="primary" class="content-area">15 <section id="primary" class="content-area"> 15 16 <main id="main" class="site-main"> 16 17 … … 20 21 <?php 21 22 the_archive_title( '<h1 class="page-title">', '</h1>' ); 22 the_archive_description( '<div class="page-description">', '</div>' ); 23 // Remove for now @TODO 24 // the_archive_description( '<div class="page-description">', '</div>' ); 23 25 ?> 24 26 </header><!-- .page-header --> … … 34 36 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 35 37 */ 36 get_template_part( 'template-parts/content/content' );38 get_template_part( 'template-parts/content/content', 'excerpt' ); 37 39 38 40 // End the loop. … … 50 52 51 53 </main><!-- .site-main --> 52 </ div><!-- .content-area -->54 </section><!-- .content-area --> 53 55 54 56 <?php -
branches/5.0/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
r43808 r43842 5 5 * @package WordPress 6 6 * @subpackage Twenty_Nineteen 7 * @since 1.0.0 7 8 */ 8 9 … … 33 34 } 34 35 if ( array_key_exists( $icon, $arr ) ) { 35 $repl = sprintf( '<svg id="%s-icon-%s" class="svg-icon" width="%d" height="%d" aria-hidden="true" role="img" ', $group, $icon, $size, $size );36 $repl = sprintf( '<svg class="svg-icon" width="%d" height="%d" aria-hidden="true" role="img" focusable="false" ', $size, $size ); 36 37 $svg = preg_replace( '/^<svg /', $repl, trim( $arr[ $icon ] ) ); // Add extra attributes to SVG code. 37 38 $svg = preg_replace( "/([\n\t]+)/", ' ', $svg ); // Remove newlines & tabs. … … 71 72 */ 72 73 static $ui_icons = array( 73 'link' => /* material-design – link */ '74 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">74 'link' => /* material-design – link */ ' 75 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 75 76 <path d="M0 0h24v24H0z" fill="none"/> 76 77 <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/> 77 78 </svg>', 78 79 79 'watch' => /* material-design – watch-later */ '80 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">80 'watch' => /* material-design – watch-later */ ' 81 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 81 82 <defs> 82 83 <path id="a" d="M0 0h24v24H0V0z"/> … … 88 89 </svg>', 89 90 90 'archive' => /* material-design – folder */ '91 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">91 'archive' => /* material-design – folder */ ' 92 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 92 93 <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/> 93 94 <path d="M0 0h24v24H0z" fill="none"/> 94 95 </svg>', 95 96 96 'tag' => /* material-design – local_offer */ '97 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">97 'tag' => /* material-design – local_offer */ ' 98 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 98 99 <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"/> 99 100 <path d="M0 0h24v24H0z" fill="none"/> 100 101 </svg>', 101 102 102 'comment' => /* material-design – comment */ '103 'comment' => /* material-design – comment */ ' 103 104 <svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 104 105 <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/> … … 106 107 </svg>', 107 108 108 'person' => /* material-design – person */ '109 'person' => /* material-design – person */ ' 109 110 <svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 110 111 <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> … … 112 113 </svg>', 113 114 114 'edit' => /* material-design – edit */ '115 'edit' => /* material-design – edit */ ' 115 116 <svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 116 117 <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/> … … 118 119 </svg>', 119 120 120 'chevron_left' => /* material-design – chevron_left */ '121 'chevron_left' => /* material-design – chevron_left */ ' 121 122 <svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 122 123 <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> … … 124 125 </svg>', 125 126 126 'chevron_right' => /* material-design – chevron_right */ '127 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">127 'chevron_right' => /* material-design – chevron_right */ ' 128 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 128 129 <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> 129 130 <path d="M0 0h24v24H0z" fill="none"/> 130 131 </svg>', 131 132 132 'check' => /* material-design – check */ '133 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">133 'check' => /* material-design – check */ ' 134 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 134 135 <path d="M0 0h24v24H0z" fill="none"/> 135 136 <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/> … … 137 138 138 139 'arrow_drop_down_circle' => /* material-design – arrow_drop_down_circle */ ' 139 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">140 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 140 141 <path d="M0 0h24v24H0z" fill="none"/> 141 142 <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> 142 143 </svg>', 143 144 144 'keyboard_arrow_down' => /* material-design – keyboard_arrow_down */ '145 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">145 'keyboard_arrow_down' => /* material-design – keyboard_arrow_down */ ' 146 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 146 147 <path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/> 147 148 <path fill="none" d="M0 0h24v24H0V0z"/> 148 149 </svg>', 149 150 150 'keyboard_arrow_right' => /* material-design – keyboard_arrow_right */ '151 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"viewBox="0 0 24 24">151 'keyboard_arrow_right' => /* material-design – keyboard_arrow_right */ ' 152 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 152 153 <path d="M10 17l5-5-5-5v10z"/> 153 154 <path fill="none" d="M0 24V0h24v24H0z"/> 155 </svg>', 156 157 'keyboard_arrow_left' => /* material-design – keyboard_arrow_left */ ' 158 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> 159 <path d="M14 7l-5 5 5 5V7z"/> 160 <path fill="none" d="M24 0v24H0V0h24z"/> 154 161 </svg>', 155 162 -
branches/5.0/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r43808 r43842 5 5 * @package WordPress 6 6 * @subpackage Twenty_Nineteen 7 * @since 1.0.0 7 8 */ 8 9 … … 55 56 /* translators: %s: comment author link */ 56 57 printf( 57 __( '%s <span class="screen-reader-text says">says:</span>' ),58 __( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ), 58 59 sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) ) 59 60 ); … … 70 71 <?php 71 72 $edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 ); 72 edit_comment_link( __( 'Edit' ), '<span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' );73 edit_comment_link( __( 'Edit', 'twentynineteen' ), '<span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' ); 73 74 ?> 74 75 </div><!-- .comment-metadata --> 75 76 76 77 <?php if ( '0' == $comment->comment_approved ) : ?> 77 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></p>78 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentynineteen' ); ?></p> 78 79 <?php endif; ?> 79 80 </footer><!-- .comment-meta --> -
branches/5.0/src/wp-content/themes/twentynineteen/comments.php
r43808 r43842 10 10 * @package WordPress 11 11 * @subpackage Twenty_Nineteen 12 * @since 1.0.0 12 13 */ 13 14 … … 29 30 if ( comments_open() ) { 30 31 if ( have_comments() ) { 31 e cho esc_html_e( 'Join the Conversation', 'twentynineteen' );32 esc_html_e( 'Join the Conversation', 'twentynineteen' ); 32 33 } else { 33 e cho esc_html_e( 'Leave a comment', 'twentynineteen' );34 esc_html_e( 'Leave a comment', 'twentynineteen' ); 34 35 } 35 36 } else { … … 85 86 <?php 86 87 87 // Show comment form at bottom if showing newest comments at the bottom.88 if ( comments_open() && 'asc' === strtolower( get_option( 'comment_order', 'asc' ) ) ) :89 ?>90 <div class="comment-form-flex">91 <span class="screen-reader-text"><?php esc_html_e( 'Leave a comment', 'twentynineteen' ); ?></span>92 <?php twentynineteen_comment_form( 'asc' ); ?>93 <h2 class="comments-title" aria-hidden="true"><?php esc_html_e( 'Leave a comment', 'twentynineteen' ); ?></h2>94 </div>95 <?php96 endif;97 98 88 // Show comment navigation 99 89 if ( have_comments() ) : … … 107 97 ) 108 98 ); 99 endif; 100 101 // Show comment form at bottom if showing newest comments at the bottom. 102 if ( comments_open() && 'asc' === strtolower( get_option( 'comment_order', 'asc' ) ) ) : 103 ?> 104 <div class="comment-form-flex"> 105 <span class="screen-reader-text"><?php esc_html_e( 'Leave a comment', 'twentynineteen' ); ?></span> 106 <?php twentynineteen_comment_form( 'asc' ); ?> 107 <h2 class="comments-title" aria-hidden="true"><?php esc_html_e( 'Leave a comment', 'twentynineteen' ); ?></h2> 108 </div> 109 <?php 109 110 endif; 110 111 -
branches/5.0/src/wp-content/themes/twentynineteen/footer.php
r43808 r43842 9 9 * @package WordPress 10 10 * @subpackage Twenty_Nineteen 11 * @since 1.0.0 11 12 */ 12 13 … … 16 17 17 18 <footer id="colophon" class="site-footer"> 19 <?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?> 18 20 <div class="site-info"> 19 <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>, 21 <?php if ( ! empty( get_bloginfo( 'name' ) ) ) : ?> 22 <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>, 23 <?php endif; ?> 20 24 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint"> 21 25 <?php printf( __( 'Proudly powered by %s', 'twentynineteen' ), 'WordPress' ); ?>. -
branches/5.0/src/wp-content/themes/twentynineteen/functions.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 68 69 ); 69 70 70 // Set up the WordPress core custom background feature.71 add_theme_support(72 'custom-background',73 apply_filters(74 'twentynineteen_custom_background_args',75 array(76 'default-color' => 'ffffff',77 'default-image' => '',78 )79 )80 );81 82 71 /** 83 72 * Add support for core custom logo. … … 107 96 add_editor_style( 'style-editor.css' ); 108 97 98 // Add custom color to the editor color palette 99 add_theme_support( 100 'editor-color-palette', 101 array( 102 array( 103 'name' => esc_html__( 'Primary Color', 'twentynineteen' ), 104 'slug' => 'primary', 105 'color' => twentynineteen_hsl_hex( absint( get_theme_mod( 'colorscheme_hue', 199 ) ), 100, 33 ), 106 ), 107 ) 108 ); 109 109 110 } 110 111 endif; 111 112 add_action( 'after_setup_theme', 'twentynineteen_setup' ); 113 114 /** 115 * Register widget area. 116 * 117 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar 118 */ 119 function twentynineteen_widgets_init() { 120 121 register_sidebar( 122 array( 123 'name' => __( 'Footer 1', 'twentynineteen' ), 124 'id' => 'sidebar-1', 125 'description' => __( 'Add widgets here to appear in your footer.', 'twentynineteen' ), 126 'before_widget' => '<section id="%1$s" class="widget %2$s">', 127 'after_widget' => '</section>', 128 'before_title' => '<h2 class="widget-title">', 129 'after_title' => '</h2>', 130 ) 131 ); 132 133 } 134 add_action( 'widgets_init', 'twentynineteen_widgets_init' ); 112 135 113 136 /** … … 136 159 wp_enqueue_script( 'twentynineteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); 137 160 161 if ( has_nav_menu( 'menu-1' ) ) { 162 wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-navigation.js' ), array(), '1.0', true ); 163 $twentynineteen_l10n['expand'] = __( 'Expand child menu', 'twentynineteen' ); 164 $twentynineteen_l10n['collapse'] = __( 'Collapse child menu', 'twentynineteen' ); 165 } 166 167 wp_localize_script( 'twentynineteen-skip-link-focus-fix', 'twentynineteenScreenReaderText', $twentynineteen_l10n ); 168 138 169 wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' ); 139 170 … … 152 183 */ 153 184 function twentynineteen_editor_frame_styles() { 185 186 // Include color patterns 187 require_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) ); 188 154 189 wp_enqueue_style( 'twentynineteen-editor-frame-styles', get_theme_file_uri( '/style-editor-frame.css' ), false, '1.0', 'all' ); 155 } 156 190 wp_add_inline_style( 'twentynineteen-editor-frame-styles', twentynineteen_custom_colors_css() ); 191 } 157 192 add_action( 'enqueue_block_editor_assets', 'twentynineteen_editor_frame_styles' ); 158 193 159 194 /** 195 * Display custom color CSS in customizer and on frontend. 196 */ 197 function twentynineteen_colors_css_wrap() { 198 if ( 'custom' !== get_theme_mod( 'colorscheme' ) && ! is_customize_preview() ) { 199 return; 200 } 201 202 require_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) ); 203 $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) ); 204 ?> 205 206 <style type="text/css" id="custom-theme-colors" <?php echo is_customize_preview() ? 'data-hue="' . $hue . '"' : ''; ?>> 207 <?php echo twentynineteen_custom_colors_css(); ?> 208 </style> 209 <?php 210 } 211 add_action( 'wp_head', 'twentynineteen_colors_css_wrap' ); 212 213 /** 160 214 * SVG Icons class. 161 215 */ -
branches/5.0/src/wp-content/themes/twentynineteen/header.php
r43808 r43842 9 9 * @package WordPress 10 10 * @subpackage Twenty_Nineteen 11 * @since 1.0.0 11 12 */ 12 13 ?><!doctype html> … … 24 25 25 26 <header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>"> 27 26 28 <div class="site-branding-container"> 27 29 <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> … … 29 31 30 32 <?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?> 31 <div class=" hentry">33 <div class="site-featured-image"> 32 34 <?php the_post(); ?> 33 <div class="entry-header"> 34 <?php if ( ! is_page() ) : ?> 35 <?php $discussion = twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> 36 <?php endif; ?> 37 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> 38 <?php if ( ! is_page() ) : ?> 39 <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->authors ) > 0 ) ? 'entry-meta has-discussion' : 'entry-meta'; ?>"> 40 <?php twentynineteen_posted_by(); ?> 41 <?php twentynineteen_posted_on(); ?> 42 <span class="comment-count"> 43 <?php 44 if ( ! empty( $discussion ) ) { 45 twentynineteen_discussion_avatars_list( $discussion->authors );} 46 ?> 47 <?php twentynineteen_comment_count(); ?> 48 </span> 49 <?php 50 // Edit post link. 51 edit_post_link( 52 sprintf( 53 wp_kses( 54 /* translators: %s: Name of current post. Only visible to screen readers. */ 55 __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ), 56 array( 57 'span' => array( 58 'class' => array(), 59 ), 60 ) 61 ), 62 get_the_title() 63 ), 64 '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ), 65 '</span>' 66 ); 67 ?> 68 </div><!-- .meta-info --> 69 <?php endif; ?> 35 <?php $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> 36 <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->authors ) > 0 ) ? 'entry-header has-discussion' : 'entry-header'; ?>"> 37 <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> 70 38 </div><!-- .entry-header --> 71 39 <?php rewind_posts(); ?> -
branches/5.0/src/wp-content/themes/twentynineteen/inc/customizer.php
r43808 r43842 5 5 * @package WordPress 6 6 * @subpackage Twenty_Nineteen 7 * @since 1.0.0 7 8 */ 8 9 … … 33 34 ); 34 35 } 36 37 /** 38 * Custom colors. 39 */ 40 $wp_customize->add_setting( 41 'colorscheme', 42 array( 43 'default' => 'default', 44 'transport' => 'postMessage', 45 'sanitize_callback' => 'twentynineteen_sanitize_color_option', 46 ) 47 ); 48 49 $wp_customize->add_control( 50 'colorscheme', 51 array( 52 'type' => 'radio', 53 'label' => __( 'Color Scheme', 'twentynineteen' ), 54 'choices' => array( 55 'default' => __( 'Default', 'twentynineteen' ), 56 'custom' => __( 'Custom', 'twentynineteen' ), 57 ), 58 'section' => 'colors', 59 'priority' => 5, 60 ) 61 ); 62 63 // Add primary color setting and control. 64 $wp_customize->add_setting( 65 'colorscheme_hue', 66 array( 67 'default' => 199, 68 'transport' => 'postMessage', 69 'sanitize_callback' => 'absint', 70 ) 71 ); 72 73 $wp_customize->add_control( 74 new WP_Customize_Color_Control( 75 $wp_customize, 76 'colorscheme_hue', 77 array( 78 'label' => __( 'Primary Color' ), 79 'description' => __( 'Changes the Color of the Featured Image overlay, Buttons, Links etc.' ), 80 'section' => 'colors', 81 'mode' => 'hue', 82 ) 83 ) 84 ); 85 86 $wp_customize->add_setting( 87 'image_filter', 88 array( 89 'default' => 'active', 90 'sanitize_callback' => 'twentynineteen_sanitize_image_filter', 91 'transport' => 'postMessage', 92 ) 93 ); 94 95 $wp_customize->add_control( 96 'image_filter', 97 array( 98 'label' => __( 'Featured Image Color Filter', 'twentynineteen' ), 99 'section' => 'colors', 100 'type' => 'radio', 101 'description' => __( "Twenty Nineteen adds a color filter to featured images using your site's primary color. If you disable this effect, the theme will use a black filter in individual posts to keep text readable when it appears on top of the featured image.", 'twentynineteen' ) . '<br/><span style="font-style: normal; display: block; margin-top: 16px;">' . __( 'On Featured Images, apply', 'twentynineteen' ) . '</span>', 102 'choices' => array( 103 'active' => __( 'A color filter', 'twentynineteen' ), 104 'inactive' => __( 'A black filter', 'twentynineteen' ), 105 ), 106 ) 107 ); 35 108 } 36 109 add_action( 'customize_register', 'twentynineteen_customize_register' ); … … 55 128 56 129 /** 57 * Bind s JS handlers to make Theme Customizer preview reload changes asynchronously.130 * Bind JS handlers to instantly live-preview changes. 58 131 */ 59 132 function twentynineteen_customize_preview_js() { 60 wp_enqueue_script( 'twentynineteen-customize r', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );133 wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20151215', true ); 61 134 } 62 135 add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' ); 136 137 /** 138 * Load dynamic logic for the customizer controls area. 139 */ 140 function twentynineteen_panels_js() { 141 wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '1.0', true ); 142 } 143 add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' ); 144 145 /** 146 * Sanitize image filter choice. 147 * 148 * @param string $choice Whether image filter is active. 149 * 150 * @return string 151 */ 152 function twentynineteen_sanitize_color_option( $choice ) { 153 $valid = array( 154 'default', 155 'custom', 156 ); 157 158 if ( in_array( $choice, $valid, true ) ) { 159 return $choice; 160 } 161 162 return 'default'; 163 } 164 /** 165 * Sanitize image filter choice. 166 * 167 * @param string $choice Whether image filter is active. 168 * 169 * @return string 170 */ 171 function twentynineteen_sanitize_image_filter( $choice ) { 172 $valid = array( 173 'active', 174 'inactive', 175 ); 176 177 if ( in_array( $choice, $valid, true ) ) { 178 return $choice; 179 } 180 181 return 'active'; 182 } -
branches/5.0/src/wp-content/themes/twentynineteen/inc/icon-functions.php
r43808 r43842 5 5 * @package WordPress 6 6 * @subpackage Twenty_Nineteen 7 * @since 1.0.0 7 8 */ 8 9 -
branches/5.0/src/wp-content/themes/twentynineteen/inc/template-functions.php
r43808 r43842 5 5 * @package WordPress 6 6 * @subpackage Twenty_Nineteen 7 * @since 1.0.0 7 8 */ 8 9 … … 33 34 34 35 /** 36 * Adds custom class to the array of posts classes. 37 */ 38 function twentynineteen_post_classes( $classes, $class, $post_id ) { 39 $classes[] = 'entry'; 40 41 return $classes; 42 } 43 add_filter( 'post_class', 'twentynineteen_post_classes', 10, 3 ); 44 45 46 /** 35 47 * Add a pingback url auto-discovery header for single posts, pages, or attachments. 36 48 */ … … 60 72 function twentynineteen_get_the_archive_title() { 61 73 if ( is_category() ) { 62 $title = esc_html__( 'Category Archives: ', 'twentynineteen' );74 $title = esc_html__( 'Category Archives: ', 'twentynineteen' ) . '<span class="page-description">' . single_term_title( '', false ) . '</span>'; 63 75 } elseif ( is_tag() ) { 64 $title = esc_html__( 'Tag Archives: ', 'twentynineteen' );76 $title = esc_html__( 'Tag Archives: ', 'twentynineteen' ) . '<span class="page-description">' . single_term_title( '', false ) . '</span>'; 65 77 } elseif ( is_author() ) { 66 $title = esc_html__( 'Author Archives: ', 'twentynineteen' );78 $title = esc_html__( 'Author Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_author_meta( 'display_name' ) . '</span>'; 67 79 } elseif ( is_year() ) { 68 $title = esc_html__( 'Yearly Archives: ', 'twentynineteen' );80 $title = esc_html__( 'Yearly Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentynineteen' ) ) . '</span>'; 69 81 } elseif ( is_month() ) { 70 $title = esc_html__( 'Monthly Archives: ', 'twentynineteen' );82 $title = esc_html__( 'Monthly Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentynineteen' ) ) . '</span>'; 71 83 } elseif ( is_day() ) { 72 $title = esc_html__( 'Daily Archives: ', 'twentynineteen' );84 $title = esc_html__( 'Daily Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_date() . '</span>'; 73 85 } elseif ( is_post_type_archive() ) { 74 $title = esc_html__( 'Post Type Archives: ', 'twentynineteen' );86 $title = esc_html__( 'Post Type Archives: ', 'twentynineteen' ) . '<span class="page-description">' . post_type_archive_title( '', false ) . '</span>'; 75 87 } elseif ( is_tax() ) { 76 88 $tax = get_taxonomy( get_queried_object()->taxonomy ); 77 /* translators: 1: Taxonomy singular name */78 $title = sprintf( __( '%s Archives:' ), $tax->labels->singular_name );89 /* translators: %s: Taxonomy singular name */ 90 $title = sprintf( esc_html__( '%s Archives:', 'twentynineteen' ), $tax->labels->singular_name ); 79 91 } else { 80 92 $title = esc_html__( 'Archives:', 'twentynineteen' ); … … 85 97 86 98 /** 87 * Filters the default archive descriptions.88 */89 function twentynineteen_get_the_archive_description() {90 if ( is_category() || is_tag() || is_tax() ) {91 $description = single_term_title( '', false );92 } elseif ( is_author() ) {93 $description = get_the_author_meta( 'display_name' );94 } elseif ( is_post_type_archive() ) {95 $description = post_type_archive_title( '', false );96 } elseif ( is_year() ) {97 $description = get_the_date( _x( 'Y', 'yearly archives date format', 'twentynineteen' ) );98 } elseif ( is_month() ) {99 $description = get_the_date( _x( 'F Y', 'monthly archives date format', 'twentynineteen' ) );100 } elseif ( is_day() ) {101 $description = get_the_date();102 } else {103 $description = null;104 }105 return $description;106 }107 add_filter( 'get_the_archive_description', 'twentynineteen_get_the_archive_description' );108 109 /**110 99 * Determines if post thumbnail can be displayed. 111 100 */ 112 101 function twentynineteen_can_show_post_thumbnail() { 113 return ! post_password_required() && ! is_attachment() && has_post_thumbnail();102 return apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() ); 114 103 } 115 104 … … 118 107 */ 119 108 function twentynineteen_image_filters_enabled() { 109 if ( 'inactive' === get_theme_mod( 'image_filter' ) ) { 110 return false; 111 } 120 112 return true; 121 113 } … … 155 147 $authors = array(); 156 148 $commenters = array(); 157 $user_id = is_user_logged_in() ? get_current_user_id() : -1;149 $user_id = -1; // is_user_logged_in() ? get_current_user_id() : -1; 158 150 $comments = get_comments( 159 151 array( … … 205 197 206 198 /** 199 * Add a dropdown icon to top-level menu items. 200 * 201 * @param string $output Nav menu item start element. 202 * @param object $item Nav menu item. 203 * @param int $depth Depth. 204 * @param object $args Nav menu args. 205 * @return string Nav menu item start element. 207 206 * Add a dropdown icon to top-level menu items 208 207 */ … … 210 209 211 210 // Only add class to 'top level' items on the 'primary' menu. 212 if ( 'menu-1' == $args->theme_location && 0 === $depth ) { 213 214 if ( in_array( 'menu-item-has-children', $item->classes ) ) { 215 $output .= twentynineteen_get_icon_svg( 'arrow_drop_down_circle', 16 ); 216 } 217 } else if ( 'menu-1' == $args->theme_location && $depth >= 1 ) { 218 219 if ( in_array( 'menu-item-has-children', $item->classes ) ) { 220 $output .= twentynineteen_get_icon_svg( 'keyboard_arrow_right', 24 ); 221 } 211 if ( ! isset( $args->theme_location ) || 'menu-1' !== $args->theme_location ) { 212 return $output; 213 } 214 215 if ( in_array( 'mobile-parent-nav-menu-item', $item->classes, true ) && isset( $item->original_id ) ) { 216 // Inject the keyboard_arrow_left SVG inside the parent nav menu item, and let the item link to the parent item. 217 // @todo Only do this for nested submenus? If on a first-level submenu, then really the link could be "#" since the desire is to remove the target entirely. 218 $link = sprintf( 219 '<a class="menu-item-link-return" id="%1$s" href="%2$s" onclick="%3$s" tabindex="-1">%4$s', 220 esc_attr( "menu-item-link-return-{$item->original_id}" ), 221 esc_attr( "#menu-item-link-{$item->original_id}" ), 222 esc_attr( 'event.preventDefault();' ), 223 twentynineteen_get_icon_svg( 'chevron_left', 24 ) 224 ); 225 226 $output = preg_replace( 227 '/<a\s.*?>/', 228 $link, 229 $output, 230 1 // Limit. 231 ); 232 } elseif ( in_array( 'menu-item-has-children', $item->classes, true ) ) { 233 // Add an ID to the link element itself to facilitate navigation from submenu back to parent. 234 $output = preg_replace( '/(?<=<a\s)/', sprintf( ' id="%s" ', esc_attr( "menu-item-link-{$item->ID}" ) ), $output ); 235 236 // Add SVG icon to parent items. 237 if ( 0 === $depth ) { 238 $icon = twentynineteen_get_icon_svg( 'keyboard_arrow_down', 24 ); 239 } else { 240 $icon = twentynineteen_get_icon_svg( 'chevron_right', 24 ); 241 } 242 243 // @todo We might as well just go back to using the SVG element if the link approach is not suitable for no-JS environments. 244 $link = sprintf( 245 '<a class="mobile-submenu-expand" href="%s" onclick="%s" tabindex="-1">%s</a>', 246 esc_attr( "#menu-item-link-return-{$item->ID}" ), 247 esc_attr( 'event.preventDefault();' ), 248 $icon 249 ); 250 251 $output .= $link; 252 $output .= "<span class='desktop-submenu-expand'>$icon</span>"; 222 253 } 223 254 … … 225 256 } 226 257 add_filter( 'walker_nav_menu_start_el', 'twentynineteen_add_dropdown_icons', 10, 4 ); 258 259 /** 260 * Create a nav menu item to be displayed on mobile to navigate from submenu back to the parent. 261 * 262 * This duplicates each parent nav menu item and makes it the first child of itself. 263 * 264 * @param array $sorted_menu_items Sorted nav menu items. 265 * @param object $args Nav menu args. 266 * @return array Amended nav menu items. 267 */ 268 function twentynineteen_add_mobile_parent_nav_menu_items( $sorted_menu_items, $args ) { 269 static $pseudo_id = 0; 270 if ( ! isset( $args->theme_location ) || 'menu-1' !== $args->theme_location ) { 271 return $sorted_menu_items; 272 } 273 274 $amended_menu_items = array(); 275 foreach ( $sorted_menu_items as $nav_menu_item ) { 276 $amended_menu_items[] = $nav_menu_item; 277 if ( in_array( 'menu-item-has-children', $nav_menu_item->classes, true ) ) { 278 $parent_menu_item = clone $nav_menu_item; 279 $parent_menu_item->original_id = $nav_menu_item->ID; 280 $parent_menu_item->ID = --$pseudo_id; 281 $parent_menu_item->db_id = $parent_menu_item->ID; 282 $parent_menu_item->object_id = $parent_menu_item->ID; 283 $parent_menu_item->classes = array( 'mobile-parent-nav-menu-item' ); 284 $parent_menu_item->menu_item_parent = $nav_menu_item->ID; 285 286 $amended_menu_items[] = $parent_menu_item; 287 } 288 } 289 290 return $amended_menu_items; 291 } 292 add_filter( 'wp_nav_menu_objects', 'twentynineteen_add_mobile_parent_nav_menu_items', 10, 2 ); 293 294 /** 295 * Convert HSL to HEX colors 296 */ 297 function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) { 298 299 $h /= 360; 300 $s /= 100; 301 $l /= 100; 302 303 $r = $l; 304 $g = $l; 305 $b = $l; 306 $v = ( $l <= 0.5 ) ? ( $l * ( 1.0 + $s ) ) : ( $l + $s - $l * $s ); 307 if ( $v > 0 ) { 308 $m; 309 $sv; 310 $sextant; 311 $fract; 312 $vsf; 313 $mid1; 314 $mid2; 315 316 $m = $l + $l - $v; 317 $sv = ( $v - $m ) / $v; 318 $h *= 6.0; 319 $sextant = floor( $h ); 320 $fract = $h - $sextant; 321 $vsf = $v * $sv * $fract; 322 $mid1 = $m + $vsf; 323 $mid2 = $v - $vsf; 324 325 switch ( $sextant ) { 326 case 0: 327 $r = $v; 328 $g = $mid1; 329 $b = $m; 330 break; 331 case 1: 332 $r = $mid2; 333 $g = $v; 334 $b = $m; 335 break; 336 case 2: 337 $r = $m; 338 $g = $v; 339 $b = $mid1; 340 break; 341 case 3: 342 $r = $m; 343 $g = $mid2; 344 $b = $v; 345 break; 346 case 4: 347 $r = $mid1; 348 $g = $m; 349 $b = $v; 350 break; 351 case 5: 352 $r = $v; 353 $g = $m; 354 $b = $mid2; 355 break; 356 } 357 } 358 $r = round( $r * 255, 0 ); 359 $g = round( $g * 255, 0 ); 360 $b = round( $b * 255, 0 ); 361 362 if ( $to_hex ) { 363 364 $r = ( $r < 15 ) ? '0' . dechex( $r ) : dechex( $r ); 365 $g = ( $g < 15 ) ? '0' . dechex( $g ) : dechex( $g ); 366 $b = ( $b < 15 ) ? '0' . dechex( $b ) : dechex( $b ); 367 368 return "#$r$g$b"; 369 370 } else { 371 372 return "rgb($r, $g, $b)"; 373 } 374 } -
branches/5.0/src/wp-content/themes/twentynineteen/inc/template-tags.php
r43808 r43842 5 5 * @package WordPress 6 6 * @subpackage Twenty_Nineteen 7 * @since 1.0.0 7 8 */ 8 9 … … 26 27 27 28 printf( 28 '<span class="posted-on">%1$s<a href="%2$s" rel="bookmark"> ' . $time_string . '</a></span>',29 '<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>', 29 30 twentynineteen_get_icon_svg( 'watch', 16 ), 30 31 esc_url( get_permalink() ), … … 75 76 // Posted by 76 77 twentynineteen_posted_by(); 78 79 // Posted on 80 twentynineteen_posted_on(); 77 81 78 82 // Hide category and tag text for pages. … … 186 190 */ 187 191 function twentynineteen_get_user_avatar_markup( $id_or_email = null ) { 192 188 193 if ( ! isset( $id_or_email ) ) { 189 194 $id_or_email = get_current_user_id(); 190 195 } 191 192 $classes = array( 'comment-author', 'vcard' );193 196 194 197 return sprintf( '<div class="comment-user-avatar comment-author vcard">%s</div>', get_avatar( $id_or_email, twentynineteen_get_avatar_size() ) ); … … 219 222 function twentynineteen_comment_form( $order ) { 220 223 if ( true === $order || strtolower( $order ) === strtolower( get_option( 'comment_order', 'asc' ) ) ) { 224 221 225 comment_form( 222 226 array( 223 'title_reply_before' => twentynineteen_get_user_avatar_markup(),224 227 'logged_in_as' => null, 225 228 'title_reply' => null, -
branches/5.0/src/wp-content/themes/twentynineteen/index.php
r43808 r43842 12 12 * @package WordPress 13 13 * @subpackage Twenty_Nineteen 14 * @since 1.0.0 14 15 */ 15 16 … … 17 18 ?> 18 19 19 < divid="primary" class="content-area">20 <section id="primary" class="content-area"> 20 21 <main id="main" class="site-main"> 21 22 … … 40 41 ?> 41 42 </main><!-- .site-main --> 42 </ div><!-- .content-area -->43 </section><!-- .content-area --> 43 44 44 45 <?php -
branches/5.0/src/wp-content/themes/twentynineteen/page.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 12 13 ?> 13 14 14 < divid="primary" class="content-area">15 <section id="primary" class="content-area"> 15 16 <main id="main" class="site-main"> 16 17 … … 32 33 33 34 </main><!-- #main --> 34 </ div><!-- #primary -->35 </section><!-- #primary --> 35 36 36 37 <?php -
branches/5.0/src/wp-content/themes/twentynineteen/print.css
r43808 r43842 20 20 margin: 2cm; 21 21 } 22 . hentry .entry-header, .site-footer .site-info {22 .entry .entry-header, .site-footer .site-info { 23 23 margin: 0; 24 24 } … … 97 97 .social-navigation, 98 98 .site-branding-container:before, 99 . hentry .entry-title:before,99 .entry .entry-title:before, 100 100 .entry-meta, .entry-footer, 101 101 .author-description:before, -
branches/5.0/src/wp-content/themes/twentynineteen/print.scss
r43808 r43842 24 24 } 25 25 26 . hentry .entry-header, .site-footer .site-info {26 .entry .entry-header, .site-footer .site-info { 27 27 margin: 0; 28 28 } … … 120 120 .social-navigation, 121 121 .site-branding-container:before, 122 . hentry .entry-title:before,122 .entry .entry-title:before, 123 123 .entry-meta, .entry-footer, 124 124 .author-description:before, -
branches/5.0/src/wp-content/themes/twentynineteen/readme.txt
r43808 r43842 24 24 5. Navigate to Appearance > Customize in your admin panel and customize to taste. 25 25 26 26 27 27 ## Copyright 28 28 29 29 Twenty Nineteen WordPress Theme, Copyright 2018 WordPress.org 30 Twenty Nineteen is distributed under the terms of the GNU GPL 30 Twenty Nineteen is distributed under the terms of the GNU GPL. 31 31 32 32 This program is free software: you can redistribute it and/or modify -
branches/5.0/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
r43808 r43842 42 42 43 43 @include media(tablet) { 44 margin-left: calc( 1* (100vw / 12));45 margin-right: calc( 1* (100vw / 12));46 max-width: calc( 10* (100vw / 12));44 margin-left: calc(2 * (100vw / 12)); 45 margin-right: calc(2 * (100vw / 12)); 46 max-width: calc(8 * (100vw / 12)); 47 47 } 48 48 } … … 82 82 margin-left: calc(2 * #{$size__spacing-unit}); 83 83 margin-right: calc(2 * (100vw / 12)); 84 } 85 } 86 &.aligncenter { 87 88 margin-left: auto; 89 margin-right: auto; 90 91 @include media(desktop) { 92 margin-left: calc(2 * (100vw / 12)); 93 margin-right: calc(2 * (100vw / 12)); 94 max-width: calc(10 * (100vw / 12)); 95 position: relative; 96 left: 25%; 97 transform: translate(-50%); 84 98 } 85 99 } … … 132 146 box-sizing: border-box; 133 147 font-weight: bold; 134 padding: ($size__spacing-unit * .66) $size__spacing-unit; 148 text-decoration: none; 149 padding: ($size__spacing-unit * .76) $size__spacing-unit; 135 150 outline: none; 136 151 color: white; … … 161 176 @include button-all-transition; 162 177 background: transparent; 163 border: 2px solid $color__background-button; 164 165 &:not(.has-text-color) { 166 color: $color__background-button; 167 } 178 border: 2px solid currentColor; 179 color: $color__background-button; 168 180 } 169 181 170 182 &.is-style-outline .wp-block-button__link:hover { 171 border-color: $color__background-button-hover;172 183 color: $color__background-button-hover; 173 184 } … … 187 198 font-weight: bold; 188 199 line-height: $font__line-height-heading; 189 190 a:after { 191 color: $color__text-light; 192 content: ","; 193 } 194 195 &:last-child a:after { 196 color: $color__text-light; 197 content: "."; 200 201 &:not(.menu-item-has-children) { 202 padding-bottom: ( .75 * $size__spacing-unit ); 203 } 204 205 a { 206 text-decoration: none; 207 } 208 209 ul { 210 padding-left: $size__spacing-unit; 198 211 } 199 212 } … … 234 247 } 235 248 236 // !Paragraphs249 //! Paragraphs 237 250 .has-drop-cap { 238 251 &:not(:focus):first-letter { … … 245 258 } 246 259 247 // !Pullquote260 //! Pullquote 248 261 .wp-block-pullquote { 249 262 border: none; … … 251 264 252 265 blockquote { 266 color: $color__text-main; 253 267 border: none; 254 268 padding-bottom: calc(2 * #{$size__spacing-unit}); … … 262 276 margin-bottom: 0.5em; 263 277 margin-top: 0.5em; 264 color: $color__text-main;265 278 266 279 em { … … 279 292 line-height: 1.6; 280 293 text-transform: none; 281 color: $color__text-light;282 294 } 283 295 … … 296 308 &.is-style-solid-color { 297 309 310 background-color: $color__link; 311 298 312 p { 299 313 font-size: $font__size-lg; … … 307 321 } 308 322 323 a { 324 color: $color__background-body; 325 } 326 309 327 blockquote { 328 color: $color__background-body; 310 329 margin: 0 auto; 311 330 } 312 331 313 blockquote:not(.has-text-color) p, 314 cite { 315 color: white; 316 } 317 318 &:not(.has-background-color) { 332 .has-primary-background-color { 319 333 background-color: $color__link; 320 334 } … … 406 420 407 421 //! Cover Image 408 .wp-block-cover-image { 422 .wp-block-cover-image, 423 .wp-block-cover { 409 424 410 425 .wp-block-cover-image-text, 426 .wp-block-cover-text, 411 427 h2 { 412 428 font-family: $font__heading; … … 433 449 &.aligncenter { 434 450 h2, 435 .wp-block-cover-image-text { 451 .wp-block-cover-image-text, 452 .wp-block-cover-text { 436 453 width: 100%; 437 454 z-index: 1; … … 447 464 448 465 h2, 449 .wp-block-cover-image-text { 466 .wp-block-cover-image-text, 467 .wp-block-cover-text { 450 468 padding: $size__spacing-unit; 451 469 } … … 456 474 457 475 h2, 458 .wp-block-cover-image-text { 476 .wp-block-cover-image-text, 477 .wp-block-cover-text { 459 478 padding: $size__spacing-unit; 460 479 } … … 629 648 } 630 649 } 650 651 //! Custom colors 652 .has-primary-background-color { 653 background-color: $color__link; 654 655 p, 656 h1, 657 h2, 658 h3, 659 h4, 660 h5, 661 h6, 662 a { 663 color: $color__background-body; 664 } 665 } 631 666 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/elements/_elements.scss
r43808 r43842 37 37 38 38 a:focus { 39 outline: 0; 39 outline: thin; 40 outline-style: dotted; 40 41 text-decoration: underline; 41 42 } … … 62 63 max-width: 100%; 63 64 position: relative; 64 &:before {65 background-color: $color__background-pre;66 border: 1px dashed $color__background-hr;67 border-radius: 3px;68 content: " ";69 display: block;70 height: 100%;71 left: 0;72 position: absolute;73 top: 0;74 width: 100%;75 }76 77 &:after {78 color: $color__text-input;79 content: "This image is broken :-/ ( "attr(alt)" )";80 display: block;81 left: 50%;82 position: absolute;83 text-align: center;84 top: 50%;85 transform: translate(-50%, -50%);86 width: 100%;87 }88 65 } 89 66 … … 93 70 94 71 blockquote { 95 96 72 border-left: 2px solid $color__link; 97 73 margin-left: -($size__spacing-unit * 2); 98 padding: $size__spacing-unit 0 ($size__spacing-unit * .5) ($size__spacing-unit * 2);74 padding: 0 0 0 $size__spacing-unit; 99 75 100 76 > p { -
branches/5.0/src/wp-content/themes/twentynineteen/sass/forms/_buttons.scss
r43808 r43842 16 16 line-height: $font__line-height-heading; 17 17 outline: none; 18 padding: ( $size__spacing-unit * .66 ) $size__spacing-unit; 18 padding: ( $size__spacing-unit * .76 ) $size__spacing-unit; 19 vertical-align: bottom; 19 20 20 21 &:hover { -
branches/5.0/src/wp-content/themes/twentynineteen/sass/forms/_fields.scss
r43808 r43842 20 20 box-sizing: border-box; 21 21 outline: none; 22 padding: #{. 5* $size__spacing-unit} #{.66 * $size__spacing-unit};22 padding: #{.36 * $size__spacing-unit} #{.66 * $size__spacing-unit}; 23 23 24 24 &:focus { -
branches/5.0/src/wp-content/themes/twentynineteen/sass/media/_galleries.scss
r43808 r43842 1 1 .gallery { 2 2 display: flex; 3 flex-flow: row wrap; 4 justify-content: center; 3 5 margin-bottom: calc(1.5 * #{$size__spacing-unit}); 4 6 } … … 6 8 .gallery-item { 7 9 display: inline-block; 8 margin-right: $size__spacing-unit;10 padding-right: $size__spacing-unit; 9 11 margin-bottom: $size__spacing-unit; 10 12 text-align: center; … … 20 22 21 23 &:last-of-type { 22 margin-right: 0;24 padding-right: 0; 23 25 } 24 26 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss
r43808 r43842 41 41 background: $color__link; 42 42 mix-blend-mode: multiply; 43 opacity: 1;43 opacity: .8; 44 44 z-index: 3; 45 46 /* Browsers supporting mix-blend-mode don't need opacity < 1 */ 47 @supports (mix-blend-mode: multiply) { 48 opacity: 1; 49 } 45 50 } 46 51 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/navigation/_links.scss
r43808 r43842 16 16 17 17 &:focus { 18 outline: 0;18 outline: thin dotted; 19 19 text-decoration: underline; 20 20 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/navigation/_navigation.scss
r43808 r43842 7 7 ## Menus 8 8 --------------------------------------------------------------*/ 9 @import "menus"; 9 @import "menu-main-navigation"; 10 @import "menu-social-navigation"; 10 11 11 12 /*-------------------------------------------------------------- -
branches/5.0/src/wp-content/themes/twentynineteen/sass/navigation/_next-previous.scss
r43808 r43842 5 5 6 6 margin: calc(3 * 1rem) 0; 7 8 @include media(tablet) { 9 margin: calc(3 * 1rem) calc(2 * (100vw / 12)); 10 max-width: calc(6 * (100vw / 12)); 11 } 12 13 @include media(desktop) { 14 margin: calc(3 * 1rem) 0; 15 max-width: 100%; 16 } 7 17 8 18 .nav-links { … … 12 22 display: flex; 13 23 flex-direction: column; 24 25 @include media(tablet) { 26 margin: 0; 27 } 14 28 15 29 @include media(desktop) { … … 74 88 @include media(desktop) { 75 89 order: 2; 90 padding-left: $size__spacing-unit; 76 91 } 77 92 … … 139 154 140 155 .nav-links { 141 142 156 display: flex; 143 157 flex-direction: row; 158 margin: 0 $size__spacing-unit; 159 160 @include media(desktop) { 161 margin: 0 calc(2 * (100vw / 12)); 162 max-width: calc(8 * (100vw / 12)); 163 } 144 164 } 145 165 … … 148 168 min-width: 50%; 149 169 width: 100%; 170 font-family: $font__heading; 171 font-weight: bold; 150 172 151 173 .secondary-text { -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/footer/_site-footer.scss
r43808 r43842 1 1 /* Site footer */ 2 2 3 .site-footer{3 #colophon { 4 4 5 color: $color__text-light; 6 5 .widget-area, 7 6 .site-info { 8 7 … … 19 18 } 20 19 21 a {20 .site-info a { 22 21 color: inherit; 23 22 … … 27 26 } 28 27 } 28 29 .widget-column { 30 display: flex; 31 flex-wrap: wrap; 32 .widget { 33 width: 100%; 34 @include media(desktop) { 35 margin-right: calc(3 * #{$size__spacing-unit}); 36 width: calc(50% - (3 * #{$size__spacing-unit})); 37 } 38 } 39 } 40 41 .site-info { 42 color: $color__text-light; 43 } 29 44 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss
r43808 r43842 18 18 .entry-meta, 19 19 .entry-title { 20 color: white;20 color: $color__background-body; 21 21 } 22 22 23 23 .main-navigation a, 24 .main-navigation a + svg, 24 25 .social-navigation a, 25 26 .site-title a, 26 . hentrya {27 color: white;27 .site-featured-image a { 28 color: $color__background-body; 28 29 transition: opacity $link_transition ease-in-out; 29 30 30 31 &:hover, 31 &:active { 32 color: white; 32 &:active, 33 &:hover + svg, 34 &:active + svg { 35 color: $color__background-body; 33 36 opacity: 0.6; 34 37 } 35 38 36 &:focus { 37 color: white; 38 } 39 } 40 41 // add focus state to social media icons 39 &:focus, 40 &:focus + svg { 41 color: $color__background-body; 42 } 43 } 44 45 /* add focus state to social media icons */ 42 46 .social-navigation a { 43 47 &:focus { 44 color: white;48 color: $color__background-body; 45 49 opacity: 1; 46 border-bottom: 1px solid white;50 border-bottom: 1px solid $color__background-body; 47 51 } 48 52 } 49 53 50 54 .social-navigation svg, 51 . hentrysvg {55 .site-featured-image svg { 52 56 /* Use -webkit- only if supporting: Chrome < 54, iOS < 9.3, Android < 4.4.4 */ 53 57 -webkit-filter: drop-shadow(0 1px 2px rgba(black, 0.35) ); 54 filter: drop-shadow(0 1px 2px rgba(black, 0.35) ); 55 } 56 57 /* Post header styles */ 58 .hentry .entry-header { 59 58 filter: drop-shadow(0 1px 2px rgba(black, 0.35) ); 59 } 60 61 /* Entry header */ 62 63 .site-featured-image .entry-header { 64 65 margin-bottom: 0; 60 66 margin-left: 0; 61 67 margin-right: 0; … … 70 76 71 77 &:before { 72 background: white; 78 background: $color__background-body; 79 } 80 } 81 82 /* Entry meta */ 83 84 .entry-meta { 85 86 font-weight: 500; 87 88 > span { 89 90 margin-right: $size__spacing-unit; 91 display: inline-block; 92 93 &:last-child { 94 margin-right: 0; 95 } 96 } 97 98 a { 99 100 @include link-transition; 101 color: currentColor; 102 103 &:hover { 104 text-decoration: none; 105 } 106 } 107 108 .svg-icon { 109 position: relative; 110 display: inline-block; 111 vertical-align: middle; 112 margin-right: 0.5em; 113 } 114 115 .discussion-avatar-list { 116 display: none; 117 } 118 } 119 120 &.has-discussion { 121 122 @include media (tablet) { 123 124 .entry-meta { 125 display: flex; 126 position: relative; 127 } 128 129 .entry-title { 130 padding-right: calc(1 * (100vw / 12) + #{$size__spacing-unit}); 131 } 132 133 .entry-meta .comment-count { 134 position: absolute; 135 right: 0; 136 } 137 138 .entry-meta .discussion-avatar-list { 139 display: block; 140 position: absolute; 141 bottom: 100%; 142 } 73 143 } 74 144 } … … 79 149 .custom-logo-link { 80 150 81 background: white;82 box-shadow: 0 0 0 0 rgba( white, 0);151 background: $color__background-body; 152 box-shadow: 0 0 0 0 rgba($color__background-body, 0); 83 153 84 154 &:hover, 85 155 &:active, 86 156 &:focus { 87 box-shadow: 0 0 0 2px rgba( white, 1);157 box-shadow: 0 0 0 2px rgba($color__background-body, 1); 88 158 } 89 159 } 90 160 91 161 /* Make sure important elements are above pseudo elements used for effects. */ 92 .site-branding ,93 .hentry .entry-header {162 .site-branding { 163 position: relative; 94 164 z-index: 10; 165 } 166 167 .site-featured-image .entry-header { 168 position: relative; 169 z-index: 9; 95 170 } 96 171 … … 98 173 .site-branding-container:before, 99 174 .site-branding-container:after, 100 . hentry:before,101 . hentry:after,175 .site-featured-image:before, 176 .site-featured-image:after, 102 177 &:after { 103 178 display: block; … … 118 193 119 194 /* First layer: grayscale. */ 120 .site-branding-container:before {195 .site-branding-container:before { 121 196 background-position: center; 122 197 background-repeat: no-repeat; 123 198 background-size: cover; 124 filter: grayscale(100%);125 199 z-index: 1; 200 201 /* When image filters are active, make it grayscale to colorize it blue. */ 202 .image-filters-enabled & { 203 filter: grayscale(100%); 204 } 126 205 } 127 206 128 207 /* Second layer: screen. */ 129 . hentry:before {208 .image-filters-enabled & .site-featured-image:before { 130 209 background: $color__link; 131 210 mix-blend-mode: screen; 132 211 opacity: 0.1; 133 z-index: 2;134 212 } 135 213 136 214 /* Third layer: multiply. */ 137 .hentry:after { 138 background: $color__link; 215 /* When image filters are inactive, a black overlay is added. */ 216 .site-featured-image:after { 217 background: #000; 139 218 mix-blend-mode: multiply; 140 opacity: 1; 141 z-index: 3; 219 opacity: .7; 220 221 /* When image filters are active, a blue overlay is added. */ 222 .image-filters-enabled & { 223 background: $color__link; 224 opacity: .8; 225 z-index: 3; 226 227 /* Browsers supporting mix-blend-mode don't need opacity < 1 */ 228 @supports (mix-blend-mode: multiply) { 229 opacity: 1; 230 } 231 } 142 232 } 143 233 144 234 /* Fourth layer: overlay. */ 145 146 background: rgba( white, 0.35);235 .image-filters-enabled & .site-branding-container:after { 236 background: rgba(#000, 0.35); 147 237 mix-blend-mode: overlay; 148 238 opacity: 0.5; 149 239 z-index: 4; 240 241 /* Browsers supporting mix-blend-mode can have a light overlay */ 242 @supports (mix-blend-mode: overlay) { 243 background: rgba($color__background-body, 0.35); 244 } 150 245 } 151 246 152 247 /* Fifth layer: readability overlay */ 153 248 &:after { 154 background: mix($color__link, black, 12%); 155 249 background: #000; 156 250 /** 157 251 * Add a transition to the readability overlay, to add a subtle … … 159 253 */ 160 254 transition: opacity 1200ms ease-in-out; 161 255 opacity: 0.7; 162 256 z-index: 5; 163 opacity: 0.38; 164 165 @include media(tablet) { 166 opacity: 0.18; 167 } 168 169 @include media(desktop) { 170 opacity: 0.1; 171 } 172 } 257 258 /* When image filters are active, a blue overlay is added. */ 259 .image-filters-enabled & { 260 background: mix($color__link, black, 12%); 261 opacity: 0.38; 262 263 @include media(tablet) { 264 opacity: 0.18; 265 } 266 } 267 } 268 173 269 174 270 ::-moz-selection { 175 background: rgba( white, 0.17);271 background: rgba($color__background-body, 0.17); 176 272 } 177 273 178 274 ::selection { 179 background: rgba( white, 0.17);275 background: rgba($color__background-body, 0.17); 180 276 } 181 277 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/header/_site-header.scss
r43808 r43842 32 32 @include media(tablet) { 33 33 margin: 0 calc(2 * (100vw / 12)); 34 max-width: 22em;35 34 } 36 35 } … … 47 46 margin-bottom: 0; 48 47 position: absolute; 49 right: calc(100% + (0.5 * calc(100vw / 12)));48 right: calc(100% + (0.5 * 100vw / 12)); 50 49 top: 4px; // Accounts for box-shadow widths 51 50 z-index: 999; … … 82 81 83 82 .site-title { 84 85 83 margin: auto; 86 84 display: inline; 87 color: $color__text-main; 85 86 87 a:link, 88 a:visited { 89 color: $color__text-main; 90 } 88 91 89 92 .featured-image & { … … 111 114 display: inline; 112 115 } 116 117 &:not(:empty) + .site-description:not(:empty):before { 118 content: "\2014"; 119 margin: 0 .2em; 120 } 113 121 } 114 122 … … 121 129 font-weight: normal; 122 130 margin: 0; 123 124 &:not(:empty):before {125 content: "\2014";126 margin: 0 .2em;127 }128 131 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_archives.scss
r43808 r43842 34 34 } 35 35 36 .hfeed .hentry .entry-header { 36 .archive .page-header .page-description { 37 display: block; 38 color: $color__text-main; 39 font-size: 1em; 40 } 41 42 .hfeed .entry .entry-header { 37 43 38 44 @include media(tablet) { -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
r43808 r43842 10 10 11 11 /* Add extra margin when the comments section is located immediately after the 12 * post itself (this happens on pages). 12 * post itself (this happens on pages). 13 13 */ 14 . hentry + & {14 .entry + & { 15 15 margin-top: calc(3 * #{$size__spacing-unit}); 16 16 } 17 17 18 .comments-title-wrap,19 18 .comment-list, 19 .comment-navigation, 20 20 > .comment-respond, 21 21 .comment-form-flex, 22 22 .no-comments { 23 24 23 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit; 25 24 … … 32 31 .comments-title-wrap { 33 32 34 align-items: baseline; 35 display: flex; 36 justify-content: space-between; 33 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit; 34 35 @include media(tablet) { 36 align-items: baseline; 37 display: flex; 38 justify-content: space-between; 39 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12)); 40 max-width: calc(8 * (100vw / 12)); 41 } 37 42 38 43 .comments-title { 39 44 @include post-section-dash; 40 45 margin: 0; 46 47 @include media(tablet) { 48 flex: 1 0 calc(3 * (100vw / 12)); 49 } 50 } 51 52 .discussion-meta { 53 @include media(tablet) { 54 flex: 0 0 calc(2 * (100vw / 12)); 55 margin-left: #{$size__spacing-unit}; 56 } 41 57 } 42 58 } … … 49 65 50 66 #respond { 51 52 67 position: relative; 53 68 54 69 .comment-user-avatar { 55 display: none;70 margin: $size__spacing-unit 0 -#{$size__spacing-unit}; 56 71 } 57 72 … … 75 90 display: none; 76 91 } 77 78 > #respond {79 @include media(desktop) {80 81 .comment-user-avatar {82 position: absolute;83 display: block;84 top: 0;85 left: 0;86 87 .avatar {88 display: block;89 }90 }91 }92 }93 92 } 94 93 95 94 .comment-form-flex { 96 97 95 display: flex; 98 96 flex-direction: column; … … 105 103 106 104 #respond { 107 108 105 order: 2; 106 109 107 + .comments-title { 110 108 display: block; … … 114 112 115 113 .comment-list { 116 117 114 list-style: none; 118 115 padding: 0; … … 126 123 margin-top: 0; 127 124 } 128 129 125 } 130 126 131 127 .comment-reply { 132 133 128 left: calc(#{$size__spacing-unit} + 100%); 134 129 bottom: 0; … … 145 140 146 141 .comment { 147 148 142 list-style: none; 149 143 position: relative; 150 144 151 145 @include media(tablet) { 152 153 146 padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 ))); 154 147 … … 218 211 position: absolute; 219 212 background: lighten( $color__link, 8% ); 220 right: calc(100% + #{$size__spacing-unit * .25});213 right: calc(100% - #{$size__spacing-unit * 2.5}); 221 214 top: -3px; 222 215 width: 18px; 216 217 @include media(tablet) { 218 right: calc(100% + #{$size__spacing-unit * .75}); 219 } 223 220 224 221 svg { … … 283 280 284 281 .comment-edit-link { 285 286 282 position: relative; 287 283 padding-left: $size__spacing-unit; … … 346 342 width: calc(1.5 * #{$size__spacing-unit}); 347 343 } 348 349 @include media(tablet) {350 351 }352 344 } 353 345 } 354 346 355 347 .discussion-meta { 356 357 .discussion-avatar-list {358 display: inline-block;359 margin-right: 8px;360 }361 348 362 349 .discussion-meta-info { -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
r43808 r43842 25 25 } 26 26 27 . hentry {27 .entry { 28 28 29 29 margin-top: calc(6 * #{$size__spacing-unit}); … … 40 40 @include media(tablet) { 41 41 margin: calc(3 * #{ $size__spacing-unit}) calc(2 * (100vw / 12 ) ) $size__spacing-unit; 42 43 .featured-image & {44 margin-bottom: 0;45 }46 42 } 47 43 } … … 70 66 71 67 margin-right: $size__spacing-unit; 68 display: inline-block; 72 69 73 70 &:last-child { … … 96 93 97 94 .entry-meta { 98 99 95 margin: $size__spacing-unit 0; 100 101 &.has-discussion .comment-count {102 103 @include media(desktop) {104 float: right;105 position: relative;106 }107 108 .discussion-avatar-list {109 display: none;110 111 @include media(desktop) {112 bottom: 100%;113 display: block;114 position: absolute;115 }116 }117 }118 96 } 119 97 … … 123 101 124 102 @include media(tablet) { 125 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12));103 margin: $size__spacing-unit calc(2 * (100vw / 12)) calc(3 * #{$size__spacing-unit}); 126 104 max-width: calc(8 * (100vw / 12)); 127 105 } … … 163 141 164 142 .post-thumbnail-inner { 165 @include filter-grayscale; 143 filter: grayscale(100%); 144 145 &:after { 146 background: rgba(#000, 0.35); 147 content: ""; 148 display: block; 149 height: 100%; 150 opacity: .5; 151 pointer-events: none; 152 position: absolute; 153 top: 0; 154 width: 100%; 155 z-index: 4; 156 157 @supports (mix-blend-mode: multiply) { 158 display: none; 159 } 160 } 166 161 } 167 162 … … 173 168 top: 0; left: 0; 174 169 content: "\020"; 175 display: block;176 170 pointer-events: none; 177 171 } 178 172 179 173 @include filter-duotone; 180 181 } 182 174 175 } 183 176 } 184 177 185 178 .entry-content { 179 180 p { 181 word-wrap: break-word; 182 } 186 183 187 184 .more-link { … … 191 188 192 189 &:after { 193 content: " »";190 content: "\02192"; 194 191 margin-left: 0.5em; 195 192 } … … 239 236 } 240 237 } 238 239 /* Author description */ 240 241 .author-bio { 242 243 margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit; 244 245 @include media(tablet) { 246 margin: calc(3 * #{$size__spacing-unit}) calc(2 * (100vw / 12)); 247 max-width: calc(8 * (100vw / 12)); 248 } 249 250 @include media(tablet) { 251 max-width: calc(6 * (100vw / 12)); 252 } 253 254 .author-title { 255 @include post-section-dash; 256 display: inline; 257 } 258 259 .author-description { 260 261 display: inline; 262 color: $color__text-light; 263 font-size: $font__size-md; 264 line-height: $font__line-height-heading; 265 266 .author-link { 267 display: inline-block; 268 269 &:hover { 270 color: $color__link-hover; 271 text-decoration: none; 272 } 273 } 274 } 275 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/secondary/_widgets.scss
r43808 r43842 6 6 max-width: 100%; 7 7 } 8 9 a { 10 color: $color__link; 11 12 &:hover { 13 color: $color__link-hover; 14 } 15 } 8 16 } 17 18 .widget_archive, 19 .widget_nav_menu, 20 .widget_meta, 21 .widget_recent_entries, 22 .widget_rss { 23 24 ul { 25 padding: 0; 26 list-style: none; 27 28 li { 29 color: $color__text-light; 30 font-family: $font__heading; 31 font-size: calc(#{$font__size_base} * #{$font__size-lg / 1em} ); 32 font-weight: bold; 33 line-height: $font__line-height-heading; 34 35 &:not(.menu-item-has-children) { 36 padding-bottom: ( .75 * $size__spacing-unit ); 37 } 38 39 ul { 40 padding-left: $size__spacing-unit; 41 } 42 } 43 44 &.sub-menu { 45 padding-top: ( .75 * $size__spacing-unit ); 46 } 47 } 48 } 49 50 .widget_search { 51 52 .search-submit { 53 display: block; 54 margin-top: $size__spacing-unit; 55 } 56 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/typography/_copy.scss
r43808 r43842 10 10 blockquote { 11 11 12 > p {13 font-size: $font__size-lg;14 font-style: italic;15 line-height: $font__line-height-heading;16 }17 18 12 cite { 19 font-size: $font__size- sm;13 font-size: $font__size-xs; 20 14 font-style: normal; 21 15 font-family: $font__heading; -
branches/5.0/src/wp-content/themes/twentynineteen/sass/typography/_headings.scss
r43808 r43842 2 2 .page-description, 3 3 h2.author-title, 4 .author-description .author-link, 4 5 .not-found .page-title, 5 6 .error-404 .page-title, … … 41 42 .main-navigation ul.main-menu > li, 42 43 .social-navigation, 43 .author-description p.author-bio,44 .author-description .author-bio, 44 45 .nav-links { 45 46 line-height: 1.25; -
branches/5.0/src/wp-content/themes/twentynineteen/search.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 21 22 <?php esc_html_e( 'Search results for:', 'twentynineteen' ); ?> 22 23 </h1> 23 <div class="page-description"> 24 <?php echo get_search_query(); ?> 25 </div> 24 <div class="page-description"><?php echo get_search_query(); ?></div> 26 25 </header><!-- .page-header --> 27 26 … … 36 35 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 37 36 */ 38 get_template_part( 'template-parts/content/content' );37 get_template_part( 'template-parts/content/content', 'excerpt' ); 39 38 40 39 // End the loop. -
branches/5.0/src/wp-content/themes/twentynineteen/single.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 12 13 ?> 13 14 14 < divid="primary" class="content-area">15 <section id="primary" class="content-area"> 15 16 <main id="main" class="site-main"> 16 17 … … 27 28 the_post_navigation( 28 29 array( 29 'prev_text' => _x( '<span class="meta-nav">Published in</span>< span class="post-title">%title</span>', 'Parent post link', 'twentynineteen' ),30 'prev_text' => _x( '<span class="meta-nav">Published in</span><br/><span class="post-title">%title</span>', 'Parent post link', 'twentynineteen' ), 30 31 ) 31 32 ); … … 53 54 54 55 </main><!-- #main --> 55 </ div><!-- #primary -->56 </section><!-- #primary --> 56 57 57 58 <?php get_template_part( 'template-parts/post/post', 'navigation' ); ?> -
branches/5.0/src/wp-content/themes/twentynineteen/style-editor-frame.css
r43808 r43842 9 9 * layers of box-shadow to add the border visually, which will render the border smoother. */ 10 10 /** === Title === */ 11 body. gutenberg-editor-page .gutenberg.editor-post-title__block:before {11 body.block-editor-page .block-editor .editor-post-title__block:before { 12 12 background: #767676; 13 13 content: "\020"; … … 18 18 } 19 19 20 body. gutenberg-editor-page .gutenberg.editor-post-title__block:before {20 body.block-editor-page .block-editor .editor-post-title__block:before { 21 21 width: 2.8125em; 22 22 margin-top: 0; … … 27 27 } 28 28 29 body. gutenberg-editor-page .gutenberg.editor-post-title__block .editor-post-title__input {29 body.block-editor-page .block-editor .editor-post-title__block .editor-post-title__input { 30 30 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 31 31 font-size: 2.8125em; … … 33 33 34 34 /** === Default Appender === */ 35 body. gutenberg-editor-page .gutenberg.editor-default-block-appender__content {35 body.block-editor-page .block-editor .editor-default-block-appender__content { 36 36 font-family: "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 37 37 font-size: 22px; … … 40 40 /** === Off-Center Content === */ 41 41 @media only screen and (min-width: 768px) { 42 body. gutenberg-editor-page .gutenberg.edit-post-layout .editor-writing-flow {42 body.block-editor-page .block-editor .edit-post-layout .editor-writing-flow { 43 43 max-width: 80%; 44 44 margin: 0 10%; 45 45 } 46 body. gutenberg-editor-page .gutenberg.edit-post-layout .editor-post-title__block,47 body. gutenberg-editor-page .gutenberg.edit-post-layout .editor-default-block-appender,48 body. gutenberg-editor-page .gutenberg.edit-post-layout .editor-block-list__block {46 body.block-editor-page .block-editor .edit-post-layout .editor-post-title__block, 47 body.block-editor-page .block-editor .edit-post-layout .editor-default-block-appender, 48 body.block-editor-page .block-editor .edit-post-layout .editor-block-list__block { 49 49 margin-left: 0; 50 50 margin-right: 0; 51 51 } 52 body. gutenberg-editor-page .gutenberg.edit-post-layout .editor-block-list__block[data-align="full"] {52 body.block-editor-page .block-editor .edit-post-layout .editor-block-list__block[data-align="full"] { 53 53 width: calc( 125% + 88px + 28px); 54 54 position: relative; 55 55 left: calc( -12.5% - 46px - 14px); 56 56 } 57 body. gutenberg-editor-page .gutenberg.edit-post-layout .editor-block-list__block[data-align="right"] {57 body.block-editor-page .block-editor .edit-post-layout .editor-block-list__block[data-align="right"] { 58 58 max-width: 125%; 59 59 } -
branches/5.0/src/wp-content/themes/twentynineteen/style-editor-frame.scss
r43808 r43842 13 13 /** === Title === */ 14 14 15 body. gutenberg-editor-page .gutenberg.editor-post-title__block {15 body.block-editor-page .block-editor .editor-post-title__block { 16 16 @include post-section-dash; 17 17 … … 33 33 /** === Default Appender === */ 34 34 35 body. gutenberg-editor-page .gutenberg.editor-default-block-appender__content {35 body.block-editor-page .block-editor .editor-default-block-appender__content { 36 36 font-family: $font__body; 37 37 font-size: $font__size_base; … … 40 40 /** === Off-Center Content === */ 41 41 42 body. gutenberg-editor-page .gutenberg.edit-post-layout {42 body.block-editor-page .block-editor .edit-post-layout { 43 43 44 44 @include media(tablet) { -
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.css
r43808 r43842 117 117 } 118 118 119 .has-primary-background-color p, 120 .has-primary-background-color h1, 121 .has-primary-background-color h2, 122 .has-primary-background-color h3, 123 .has-primary-background-color h4, 124 .has-primary-background-color h5, 125 .has-primary-background-color h6, 126 .has-primary-background-color a, 127 .has-primary-background-color a:hover { 128 color: #fff; 129 } 130 119 131 figcaption, 120 132 .gallery-caption { … … 134 146 } 135 147 136 /** === Cover Image=== */137 .wp-block-cover -imageh2,138 .wp-block-cover -image .wp-block-cover-image-text {148 /** === Cover === */ 149 .wp-block-cover h2, 150 .wp-block-cover .wp-block-cover-text { 139 151 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 140 152 font-size: 2.25em; … … 143 155 } 144 156 145 .wp-block-cover -image.has-left-content {157 .wp-block-cover.has-left-content { 146 158 justify-content: center; 147 159 } 148 160 149 .wp-block-cover -image.has-left-content h2,150 .wp-block-cover -image.has-left-content .wp-block-cover-image-text {161 .wp-block-cover.has-left-content h2, 162 .wp-block-cover.has-left-content .wp-block-cover-text { 151 163 padding: 1em; 152 164 } 153 165 154 .wp-block-cover -image.has-right-content {166 .wp-block-cover.has-right-content { 155 167 justify-content: center; 156 168 } 157 169 158 .wp-block-cover -image.has-right-content h2,159 .wp-block-cover -image.has-right-content .wp-block-cover-image-text {170 .wp-block-cover.has-right-content h2, 171 .wp-block-cover.has-right-content .wp-block-cover-text { 160 172 padding: 1em; 161 173 } 162 174 163 body[data-type="core/cover -image"][data-align="left"] h2,164 body[data-type="core/cover -image"][data-align="left"] .wp-block-cover-image-text,165 body[data-type="core/cover -image"][data-align="right"] h2,166 body[data-type="core/cover -image"][data-align="right"] .wp-block-cover-image-text {175 body[data-type="core/cover"][data-align="left"] h2, 176 body[data-type="core/cover"][data-align="left"] .wp-block-cover-text, 177 body[data-type="core/cover"][data-align="right"] h2, 178 body[data-type="core/cover"][data-align="right"] .wp-block-cover-text { 167 179 width: 100%; 168 180 max-width: 305px; … … 170 182 171 183 @media only screen and (min-width: 1168px) { 172 body[data-type="core/cover -image"][data-align="wide"] h2,173 body[data-type="core/cover -image"][data-align="wide"] .wp-block-cover-image-text,174 body[data-type="core/cover -image"][data-align="full"] h2,175 body[data-type="core/cover -image"][data-align="full"] .wp-block-cover-image-text {184 body[data-type="core/cover"][data-align="wide"] h2, 185 body[data-type="core/cover"][data-align="wide"] .wp-block-cover-text, 186 body[data-type="core/cover"][data-align="full"] h2, 187 body[data-type="core/cover"][data-align="full"] .wp-block-cover-text { 176 188 padding: 0; 177 189 width: calc(6 * (100vw / 12)); … … 196 208 } 197 209 198 .wp-block-button .wp-block-button__link:not(.has-background), 199 .wp-block-button .wp-block-button__link:not(.has-background) { 210 .wp-block-button:not(.is-style-outline) .wp-block-button__link { 200 211 background: #0073aa; 201 212 } … … 205 216 } 206 217 207 .wp-block-button.is-style-outline .wp-block-button__link, 208 .wp-block-button.is-style-outline .wp-block-button__link:hover, 209 .wp-block-button.is-style-outline .wp-block-button__link:focus, 210 .wp-block-button.is-style-outline .wp-block-button__link:active { 218 .wp-block-button.is-style-outline, .wp-block-button.is-style-outline:hover, .wp-block-button.is-style-outline:focus, .wp-block-button.is-style-outline:active { 211 219 background: transparent; 212 border-color: #0073aa; 213 } 214 215 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), 216 .wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-text-color), 217 .wp-block-button.is-style-outline .wp-block-button__link:focus:not(.has-text-color), 218 .wp-block-button.is-style-outline .wp-block-button__link:active:not(.has-text-color) { 220 color: #0073aa; 221 } 222 223 .wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline:hover .wp-block-button__link, .wp-block-button.is-style-outline:focus .wp-block-button__link, .wp-block-button.is-style-outline:active .wp-block-button__link { 224 background: transparent; 225 } 226 227 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color) { 219 228 color: #0073aa; 220 229 } … … 269 278 } 270 279 271 .wp-block-pullquote.is-style-solid-color blockquote:not(.has-text-color) p, 272 .wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation { 273 color: white; 280 .wp-block-pullquote.is-style-solid-color blockquote:not(.has-text-color) { 281 color: #fff; 274 282 } 275 283 … … 299 307 margin-bottom: 0.5em; 300 308 margin-top: 0.5em; 301 color: #111;302 309 } 303 310 … … 323 330 line-height: 1.6; 324 331 text-transform: none; 325 color: #767676;326 332 } 327 333 … … 345 351 body[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color { 346 352 padding: 1em; 347 }348 349 body[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color p,350 body[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation,351 body[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color p,352 body[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation {353 color: white;354 353 } 355 354 … … 434 433 } 435 434 435 ul.wp-block-archives li:not(.menu-item-has-children), 436 .wp-block-categories li:not(.menu-item-has-children), 437 .wp-block-latest-posts li:not(.menu-item-has-children) { 438 padding-bottom: 0.75rem; 439 } 440 436 441 ul.wp-block-archives li a, 437 442 .wp-block-categories li a, … … 440 445 } 441 446 442 ul.wp-block-archives li a:after, 443 .wp-block-categories li a:after, 444 .wp-block-latest-posts li a:after { 445 color: #767676; 446 content: ","; 447 } 448 449 ul.wp-block-archives li:last-child a:after, 450 .wp-block-categories li:last-child a:after, 451 .wp-block-latest-posts li:last-child a:after { 452 color: #767676; 453 content: "."; 447 ul.wp-block-archives li ul, 448 .wp-block-categories li ul, 449 .wp-block-latest-posts li ul { 450 padding-left: 1rem; 454 451 } 455 452 … … 503 500 .wp-block-freeform { 504 501 /* Add style for galleries in classic-editor block */ 502 /* Add style for galleries in classic-editor block */ 503 } 504 505 .wp-block-freeform blockquote { 506 border-left: 2px solid #0073aa; 507 } 508 509 .wp-block-freeform blockquote cite { 510 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 511 font-size: 0.71111em; 512 font-style: normal; 513 line-height: 1.6; 514 color: #767676; 505 515 } 506 516 -
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.scss
r43808 r43842 103 103 } 104 104 105 .has-primary-background-color { 106 107 p, 108 h1, 109 h2, 110 h3, 111 h4, 112 h5, 113 h6, 114 a, 115 a:hover { 116 color: $color__background-body; 117 } 118 } 119 105 120 figcaption, 106 121 .gallery-caption { … … 124 139 } 125 140 126 /** === Cover Image=== */127 128 .wp-block-cover -image{141 /** === Cover === */ 142 143 .wp-block-cover { 129 144 130 145 h2, 131 .wp-block-cover- image-text {146 .wp-block-cover-text { 132 147 font-family: $font__heading; 133 148 font-size: $font__size-xl; … … 140 155 141 156 h2, 142 .wp-block-cover- image-text {157 .wp-block-cover-text { 143 158 padding: 1em; 144 159 } … … 149 164 150 165 h2, 151 .wp-block-cover- image-text {166 .wp-block-cover-text { 152 167 padding: 1em; 153 168 } … … 155 170 } 156 171 157 body[data-type="core/cover -image"][data-align="left"],158 body[data-type="core/cover -image"][data-align="right"] {172 body[data-type="core/cover"][data-align="left"], 173 body[data-type="core/cover"][data-align="right"] { 159 174 160 175 h2, 161 .wp-block-cover- image-text {176 .wp-block-cover-text { 162 177 width: 100%; 163 178 max-width: 305px; … … 165 180 } 166 181 167 body[data-type="core/cover -image"][data-align="wide"],168 body[data-type="core/cover -image"][data-align="full"] {182 body[data-type="core/cover"][data-align="wide"], 183 body[data-type="core/cover"][data-align="full"] { 169 184 170 185 @include media(desktop) { 171 186 h2, 172 .wp-block-cover- image-text {187 .wp-block-cover-text { 173 188 padding: 0; 174 189 width: calc(6 * (100vw / 12)); … … 201 216 } 202 217 203 .wp-block-button__link:not(.has-background), 204 .wp-block-button__link:not(.has-background) { 218 &:not(.is-style-outline) .wp-block-button__link { 205 219 background: $color__background-button; 206 220 } … … 210 224 } 211 225 212 &.is-style-outline .wp-block-button__link,213 &.is-style-outline .wp-block-button__link:hover,214 &.is-style-outline .wp-block-button__link:focus,215 &.is-style-outline .wp-block-button__link:active {226 &.is-style-outline, 227 &.is-style-outline:hover, 228 &.is-style-outline:focus, 229 &.is-style-outline:active { 216 230 background: transparent; 217 border-color: $color__background-button; 218 219 &:not(.has-text-color) { 220 color: $color__background-button; 231 color: $color__background-button; 232 233 .wp-block-button__link { 234 background: transparent; 235 236 &:not(.has-text-color) { 237 color: $color__background-button; 238 } 221 239 } 222 240 } … … 275 293 } 276 294 277 blockquote:not(.has-text-color) p, 278 .wp-block-pullquote__citation { 279 color: white; 295 blockquote:not(.has-text-color) { 296 color: $color__background-body; 280 297 } 281 298 … … 303 320 margin-bottom: 0.5em; 304 321 margin-top: 0.5em; 305 color: $color__text-main;306 322 307 323 @include media(tablet) { … … 315 331 line-height: 1.6; 316 332 text-transform: none; 317 color: $color__text-light;318 333 } 319 334 … … 335 350 .wp-block-pullquote.is-style-solid-color { 336 351 padding: 1em; 337 338 p,339 .wp-block-pullquote__citation {340 color: white;341 }342 352 } 343 353 } … … 426 436 line-height: $font__line-height-heading; 427 437 438 &:not(.menu-item-has-children) { 439 padding-bottom: ( .75 * $size__spacing-unit ); 440 } 441 428 442 a { 429 443 text-decoration: none; 430 431 &:after { 432 color: $color__text-light; 433 content: ","; 434 } 435 } 436 437 &:last-child a:after { 438 color: $color__text-light; 439 content: "."; 444 } 445 446 ul { 447 padding-left: $size__spacing-unit; 440 448 } 441 449 } … … 500 508 501 509 /* Add style for galleries in classic-editor block */ 510 blockquote { 511 border-left: 2px solid $color__link; 512 513 cite { 514 font-family: $font__heading; 515 font-size: $font__size-xs; 516 font-style: normal; 517 line-height: 1.6; 518 color: $color__text-light; 519 } 520 } 521 522 /* Add style for galleries in classic-editor block */ 502 523 .gallery { 503 524 -
branches/5.0/src/wp-content/themes/twentynineteen/style-rtl.css
r43808 r43842 423 423 .page-description, 424 424 h2.author-title, 425 .author-description .author-link, 425 426 .not-found .page-title, 426 427 .error-404 .page-title, … … 462 463 .main-navigation ul.main-menu > li, 463 464 .social-navigation, 464 .author-description p.author-bio,465 .author-description .author-bio, 465 466 .nav-links { 466 467 line-height: 1.25; … … 581 582 } 582 583 583 blockquote > p {584 font-size: 1.6875em;585 font-style: italic;586 line-height: 1.2;587 }588 589 584 blockquote cite { 590 font-size: 0. 88889em;585 font-size: 0.71111em; 591 586 font-style: normal; 592 587 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; … … 667 662 668 663 a:focus { 669 outline: 0; 664 outline: thin; 665 outline-style: dotted; 670 666 text-decoration: underline; 671 667 } … … 731 727 } 732 728 733 img:before {734 background-color: #eee;735 border: 1px dashed #ccc;736 border-radius: 3px;737 content: " ";738 display: block;739 height: 100%;740 right: 0;741 position: absolute;742 top: 0;743 width: 100%;744 }745 746 img:after {747 color: #666;748 content: "This image is broken :-/ ( " attr(alt) " )";749 display: block;750 right: 50%;751 position: absolute;752 text-align: center;753 top: 50%;754 transform: translate(50%, -50%);755 width: 100%;756 }757 758 729 figure { 759 730 margin: 0; … … 763 734 border-right: 2px solid #0073aa; 764 735 margin-right: -2rem; 765 padding: 1rem 2rem 0.5rem0;736 padding: 0 1rem 0 0; 766 737 } 767 738 … … 800 771 line-height: 1.2; 801 772 outline: none; 802 padding: 0.66rem 1rem; 773 padding: 0.76rem 1rem; 774 vertical-align: bottom; 803 775 } 804 776 … … 853 825 box-sizing: border-box; 854 826 outline: none; 855 padding: 0. 5rem 0.66rem;827 padding: 0.36rem 0.66rem; 856 828 } 857 829 … … 909 881 910 882 a:focus { 911 outline: 0;883 outline: thin dotted; 912 884 text-decoration: underline; 913 885 } … … 918 890 /** === Main menu === */ 919 891 .main-navigation { 920 display: inline; 892 display: block; 893 margin-top: 0.25rem; 921 894 /* 922 895 * :focus-within needs its own selector so other similar 923 896 * selectors don’t get ignored if a browser doesn’t recognize it 924 897 */ 925 } 926 927 @media only screen and (min-width: 768px) { 928 .main-navigation { 929 display: block; 930 } 898 /* Only show one submenu expand button at a time (desktop vs mobile) */ 931 899 } 932 900 … … 946 914 947 915 .main-navigation .main-menu > li { 916 color: #0073aa; 948 917 display: inline; 918 } 919 920 @media only screen and (min-width: 768px) { 921 .main-navigation .main-menu > li { 922 position: relative; 923 } 949 924 } 950 925 … … 952 927 font-weight: 700; 953 928 color: #0073aa; 929 margin-left: 0.5rem; 954 930 } 955 931 956 932 .main-navigation .main-menu > li > a + svg { 957 color: #0073aa; 958 margin-left: -0.25rem; 959 } 960 961 .main-navigation .main-menu > li > a:hover { 962 color: #005177; 963 } 964 933 margin-left: 0.5rem; 934 } 935 936 .main-navigation .main-menu > li > a:hover, 965 937 .main-navigation .main-menu > li > a:hover + svg { 966 938 color: #005177; 967 939 } 968 940 969 .main-navigation .main-menu > li > a:after { 970 content: ","; 971 display: inline; 972 color: #767676; 973 } 974 975 .main-navigation .main-menu > li.menu-item-has-children:after { 976 content: ","; 977 display: inline; 978 color: #767676; 941 .main-navigation .main-menu > li.menu-item-has-children { 942 display: inline-block; 943 } 944 945 .main-navigation .main-menu > li.menu-item-has-children > a { 946 margin-left: 0.125rem; 979 947 } 980 948 … … 985 953 } 986 954 987 .main-navigation .main-menu > li:last-child > a:after { 988 content: "."; 955 .main-navigation .main-menu > li.menu-item-has-children .mobile-submenu-expand svg, 956 .main-navigation .main-menu > li.menu-item-has-children .desktop-submenu-expand svg { 957 position: relative; 958 top: 0.2rem; 959 } 960 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 { 963 margin-left: 0.5rem; 989 964 } 990 965 … … 1000 975 display: none; 1001 976 float: right; 1002 width: 100%;1003 977 position: absolute; 1004 978 opacity: 0; 1005 right: -999 em;979 right: -999px; 1006 980 z-index: 99999; 1007 transition: opacity 0.5s ease-in-out;1008 981 } 1009 982 1010 983 @media only screen and (min-width: 768px) { 1011 984 .main-navigation .sub-menu { 985 width: -webkit-max-content; 986 width: -moz-max-content; 987 width: max-content; 1012 988 max-width: calc(3 * (100vw / 12)); 1013 989 } … … 1022 998 } 1023 999 1024 .main-navigation .sub-menu > li.menu-item-has-children svg { 1000 .main-navigation .sub-menu > li.menu-item-has-children .mobile-submenu-expand, 1001 .main-navigation .sub-menu > li.menu-item-has-children .desktop-submenu-expand { 1025 1002 position: absolute; 1026 left: 0.5rem; 1027 top: 0.65rem; 1003 width: calc( 24px + 1rem); 1004 left: 0; 1005 top: calc( .125 * 1rem); 1006 bottom: 0; 1007 color: white; 1008 line-height: 1; 1009 padding: calc( .5 * 1rem); 1010 } 1011 1012 .main-navigation .sub-menu > li.menu-item-has-children .mobile-submenu-expand svg, 1013 .main-navigation .sub-menu > li.menu-item-has-children .desktop-submenu-expand svg { 1014 top: 0; 1015 } 1016 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 { 1019 margin-left: 0; 1028 1020 } 1029 1021 … … 1034 1026 } 1035 1027 1036 .main-navigation .sub-menu > li > a {1028 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand) { 1037 1029 color: #fff; 1038 1030 display: block; 1039 1031 line-height: 1.2; 1040 padding: calc( .5 * 1rem) 1rem ;1041 } 1042 1043 .main-navigation .sub-menu > li > a: hover, .main-navigation .sub-menu > li > a:focus {1032 padding: calc( .5 * 1rem) 1rem calc( .5 * 1rem) calc( 24px + 1rem); 1033 } 1034 1035 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):hover, .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):focus { 1044 1036 background: #005177; 1045 1037 } 1046 1038 1047 .main-navigation .sub-menu > li > a: hover:after, .main-navigation .sub-menu > li > a:focus:after {1039 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):hover:after, .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):focus:after { 1048 1040 background: #005177; 1049 1041 } 1050 1042 1051 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu, 1052 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover { 1053 display: block; 1054 right: inherit; 1055 margin-top: -2px; 1043 .main-navigation .sub-menu > li.mobile-parent-nav-menu-item { 1044 display: none; 1045 font-size: 0.88889em; 1046 font-weight: normal; 1047 } 1048 1049 .main-navigation .sub-menu > li.mobile-parent-nav-menu-item svg { 1050 position: relative; 1051 top: 0.2rem; 1052 margin-left: calc( .25 * 1rem); 1053 } 1054 1055 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu { 1056 display: block; 1057 right: 0; 1058 margin-top: 0; 1056 1059 opacity: 1; 1057 } 1058 1059 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu .sub-menu, 1060 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover.sub-menu {1060 width: calc( 100vw - 2rem); 1061 } 1062 1063 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1061 1064 margin-top: inherit; 1062 1065 position: relative; … … 1065 1068 1066 1069 @media only screen and (min-width: 768px) { 1070 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1071 padding-right: 0; 1072 position: absolute; 1073 right: 100%; 1074 width: -webkit-max-content; 1075 width: -moz-max-content; 1076 width: max-content; 1077 top: 0; 1078 } 1079 } 1080 1081 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu, 1082 .main-navigation .main-menu .menu-item-has-children:focus > .sub-menu, 1083 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover, 1084 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus { 1085 display: table; 1086 margin-top: 0; 1087 opacity: 1; 1088 /* Non-mobile position */ 1089 } 1090 1091 @media only screen and (min-width: 768px) { 1092 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu, 1093 .main-navigation .main-menu .menu-item-has-children:focus > .sub-menu, 1094 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover, 1095 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus { 1096 position: absolute; 1097 right: 0; 1098 left: auto; 1099 top: auto; 1100 bottom: auto; 1101 height: auto; 1102 width: -webkit-max-content; 1103 width: -moz-max-content; 1104 width: max-content; 1105 transform: none; 1106 animation: fade_in 0.1s forwards; 1107 } 1108 } 1109 1110 @media only screen and (min-width: 768px) { 1067 1111 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu .sub-menu, 1068 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover .sub-menu { 1112 .main-navigation .main-menu .menu-item-has-children:focus > .sub-menu .sub-menu, 1113 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover .sub-menu, 1114 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus .sub-menu { 1115 margin-top: inherit; 1069 1116 padding-right: 0; 1070 1117 position: absolute; … … 1074 1121 } 1075 1122 1076 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu { 1077 display: block; 1078 right: inherit; 1079 margin-top: -2px; 1123 .main-navigation .main-menu .menu-item-has-children.focus .sub-menu.expanded-true { 1124 display: table; 1125 margin-top: 0; 1080 1126 opacity: 1; 1081 } 1082 1083 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1084 margin-top: inherit; 1085 position: relative; 1086 padding-right: 1rem; 1087 } 1088 1089 @media only screen and (min-width: 768px) { 1090 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1091 padding-right: 0; 1092 position: absolute; 1093 right: 100%; 1094 top: 0; 1127 padding-right: 0; 1128 /* Mobile position */ 1129 right: 0; 1130 top: 0; 1131 left: 0; 1132 bottom: 0; 1133 position: fixed; 1134 z-index: 100000; 1135 /* Make sure appears above mobile admin bar */ 1136 width: 100%; 1137 height: 100%; 1138 transform: translateX(-100%); 1139 animation: slide_in_right 0.3s forwards; 1140 } 1141 1142 .main-navigation .main-menu .menu-item-has-children.focus .sub-menu.expanded-true > .mobile-parent-nav-menu-item { 1143 display: inline-block; 1144 } 1145 1146 .main-navigation .desktop-submenu-expand { 1147 display: none; 1148 } 1149 1150 @media only screen and (min-width: 768px) { 1151 .main-navigation .desktop-submenu-expand { 1152 display: inline-block; 1153 } 1154 } 1155 1156 .main-navigation .mobile-submenu-expand { 1157 display: inline-block; 1158 } 1159 1160 @media only screen and (min-width: 768px) { 1161 .main-navigation .mobile-submenu-expand { 1162 display: none; 1163 } 1164 } 1165 1166 /* Menu Animation */ 1167 @keyframes slide_in_right { 1168 100% { 1169 transform: translateX(0%); 1170 } 1171 } 1172 1173 @keyframes fade_in { 1174 from { 1175 opacity: 0; 1176 } 1177 to { 1178 opacity: 1; 1095 1179 } 1096 1180 } … … 1159 1243 } 1160 1244 1245 @media only screen and (min-width: 768px) { 1246 .post-navigation { 1247 margin: calc(3 * 1rem) calc(2 * (100vw / 12)); 1248 max-width: calc(6 * (100vw / 12)); 1249 } 1250 } 1251 1252 @media only screen and (min-width: 1168px) { 1253 .post-navigation { 1254 margin: calc(3 * 1rem) 0; 1255 max-width: 100%; 1256 } 1257 } 1258 1161 1259 .post-navigation .nav-links { 1162 1260 margin: 0 1rem; … … 1164 1262 display: flex; 1165 1263 flex-direction: column; 1264 } 1265 1266 @media only screen and (min-width: 768px) { 1267 .post-navigation .nav-links { 1268 margin: 0; 1269 } 1166 1270 } 1167 1271 … … 1232 1336 .post-navigation .nav-links .nav-next { 1233 1337 order: 2; 1338 padding-right: 1rem; 1234 1339 } 1235 1340 } … … 1280 1385 display: flex; 1281 1386 flex-direction: row; 1387 margin: 0 1rem; 1388 } 1389 1390 @media only screen and (min-width: 1168px) { 1391 .comment-navigation .nav-links { 1392 margin: 0 calc(2 * (100vw / 12)); 1393 max-width: calc(8 * (100vw / 12)); 1394 } 1282 1395 } 1283 1396 … … 1286 1399 min-width: 50%; 1287 1400 width: 100%; 1401 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 1402 font-weight: bold; 1288 1403 } 1289 1404 … … 1450 1565 .site-branding { 1451 1566 margin: 0 calc(2 * (100vw / 12)); 1452 max-width: 22em;1453 1567 } 1454 1568 } … … 1464 1578 margin-bottom: 0; 1465 1579 position: absolute; 1466 left: calc(100% + (0.5 * calc(100vw / 12)));1580 left: calc(100% + (0.5 * 100vw / 12)); 1467 1581 top: 4px; 1468 1582 z-index: 999; … … 1499 1613 margin: auto; 1500 1614 display: inline; 1615 /* When there is no description set, make sure navigation appears below title. */ 1616 } 1617 1618 .site-title a:link, 1619 .site-title a:visited { 1501 1620 color: #111; 1502 /* When there is no description set, make sure navigation appears below title. */1503 1621 } 1504 1622 … … 1529 1647 display: inline; 1530 1648 } 1649 } 1650 1651 .site-title:not(:empty) + .site-description:not(:empty):before { 1652 content: "\2014"; 1653 margin: 0 .2em; 1531 1654 } 1532 1655 … … 1536 1659 font-weight: normal; 1537 1660 margin: 0; 1538 }1539 1540 .site-description:not(:empty):before {1541 content: "\2014";1542 margin: 0 .2em;1543 1661 } 1544 1662 … … 1549 1667 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); 1550 1668 /* Set white text color when featured image is set. */ 1551 /* Post header styles */ 1669 /* add focus state to social media icons */ 1670 /* Entry header */ 1552 1671 /* Custom Logo Link */ 1553 1672 /* Make sure important elements are above pseudo elements used for effects. */ … … 1562 1681 /* Second layer: screen. */ 1563 1682 /* Third layer: multiply. */ 1683 /* When image filters are inactive, a black overlay is added. */ 1564 1684 /* Fourth layer: overlay. */ 1565 1685 /* Fifth layer: readability overlay */ … … 1574 1694 .site-header.featured-image .entry-meta, 1575 1695 .site-header.featured-image .entry-title { 1576 color: white;1696 color: #fff; 1577 1697 } 1578 1698 1579 1699 .site-header.featured-image .main-navigation a, 1700 .site-header.featured-image .main-navigation a + svg, 1580 1701 .site-header.featured-image .social-navigation a, 1581 1702 .site-header.featured-image .site-title a, 1582 .site-header.featured-image . hentrya {1583 color: white;1703 .site-header.featured-image .site-featured-image a { 1704 color: #fff; 1584 1705 transition: opacity 110ms ease-in-out; 1585 1706 } 1586 1707 1587 1708 .site-header.featured-image .main-navigation a:hover, .site-header.featured-image .main-navigation a:active, 1709 .site-header.featured-image .main-navigation a:hover + svg, 1710 .site-header.featured-image .main-navigation a:active + svg, 1711 .site-header.featured-image .main-navigation a + svg:hover, 1712 .site-header.featured-image .main-navigation a + svg:active, 1713 .site-header.featured-image .main-navigation a + svg:hover + svg, 1714 .site-header.featured-image .main-navigation a + svg:active + svg, 1588 1715 .site-header.featured-image .social-navigation a:hover, 1589 1716 .site-header.featured-image .social-navigation a:active, 1717 .site-header.featured-image .social-navigation a:hover + svg, 1718 .site-header.featured-image .social-navigation a:active + svg, 1590 1719 .site-header.featured-image .site-title a:hover, 1591 1720 .site-header.featured-image .site-title a:active, 1592 .site-header.featured-image .hentry a:hover, 1593 .site-header.featured-image .hentry a:active { 1594 color: white; 1721 .site-header.featured-image .site-title a:hover + svg, 1722 .site-header.featured-image .site-title a:active + svg, 1723 .site-header.featured-image .site-featured-image a:hover, 1724 .site-header.featured-image .site-featured-image a:active, 1725 .site-header.featured-image .site-featured-image a:hover + svg, 1726 .site-header.featured-image .site-featured-image a:active + svg { 1727 color: #fff; 1595 1728 opacity: 0.6; 1596 1729 } 1597 1730 1598 1731 .site-header.featured-image .main-navigation a:focus, 1732 .site-header.featured-image .main-navigation a:focus + svg, 1733 .site-header.featured-image .main-navigation a + svg:focus, 1734 .site-header.featured-image .main-navigation a + svg:focus + svg, 1599 1735 .site-header.featured-image .social-navigation a:focus, 1736 .site-header.featured-image .social-navigation a:focus + svg, 1600 1737 .site-header.featured-image .site-title a:focus, 1601 .site-header.featured-image .hentry a:focus { 1602 color: white; 1738 .site-header.featured-image .site-title a:focus + svg, 1739 .site-header.featured-image .site-featured-image a:focus, 1740 .site-header.featured-image .site-featured-image a:focus + svg { 1741 color: #fff; 1603 1742 } 1604 1743 1605 1744 .site-header.featured-image .social-navigation a:focus { 1606 color: white;1745 color: #fff; 1607 1746 opacity: 1; 1608 border-bottom: 1px solid white;1747 border-bottom: 1px solid #fff; 1609 1748 } 1610 1749 1611 1750 .site-header.featured-image .social-navigation svg, 1612 .site-header.featured-image . hentrysvg {1751 .site-header.featured-image .site-featured-image svg { 1613 1752 /* Use -webkit- only if supporting: Chrome < 54, iOS < 9.3, Android < 4.4.4 */ 1614 1753 filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); 1615 1754 } 1616 1755 1617 .site-header.featured-image .hentry .entry-header { 1756 .site-header.featured-image .site-featured-image .entry-header { 1757 margin-bottom: 0; 1618 1758 margin-right: 0; 1619 1759 margin-left: 0; 1620 } 1621 1622 @media only screen and (min-width: 768px) { 1623 .site-header.featured-image .hentry .entry-header { 1760 /* Entry meta */ 1761 } 1762 1763 @media only screen and (min-width: 768px) { 1764 .site-header.featured-image .site-featured-image .entry-header { 1624 1765 margin-right: calc(2 * (100vw / 12)); 1625 1766 margin-left: calc(2 * (100vw / 12)); … … 1627 1768 } 1628 1769 1629 .site-header.featured-image .hentry .entry-header .entry-title:before { 1630 background: white; 1770 .site-header.featured-image .site-featured-image .entry-header .entry-title:before { 1771 background: #fff; 1772 } 1773 1774 .site-header.featured-image .site-featured-image .entry-header .entry-meta { 1775 font-weight: 500; 1776 } 1777 1778 .site-header.featured-image .site-featured-image .entry-header .entry-meta > span { 1779 margin-left: 1rem; 1780 display: inline-block; 1781 } 1782 1783 .site-header.featured-image .site-featured-image .entry-header .entry-meta > span:last-child { 1784 margin-left: 0; 1785 } 1786 1787 .site-header.featured-image .site-featured-image .entry-header .entry-meta a { 1788 transition: color 110ms ease-in-out; 1789 color: currentColor; 1790 } 1791 1792 .site-header.featured-image .site-featured-image .entry-header .entry-meta a:hover { 1793 text-decoration: none; 1794 } 1795 1796 .site-header.featured-image .site-featured-image .entry-header .entry-meta .svg-icon { 1797 position: relative; 1798 display: inline-block; 1799 vertical-align: middle; 1800 margin-left: 0.5em; 1801 } 1802 1803 .site-header.featured-image .site-featured-image .entry-header .entry-meta .discussion-avatar-list { 1804 display: none; 1805 } 1806 1807 @media only screen and (min-width: 768px) { 1808 .site-header.featured-image .site-featured-image .entry-header.has-discussion .entry-meta { 1809 display: flex; 1810 position: relative; 1811 } 1812 .site-header.featured-image .site-featured-image .entry-header.has-discussion .entry-title { 1813 padding-left: calc(1 * (100vw / 12) + 1rem); 1814 } 1815 .site-header.featured-image .site-featured-image .entry-header.has-discussion .entry-meta .comment-count { 1816 position: absolute; 1817 left: 0; 1818 } 1819 .site-header.featured-image .site-featured-image .entry-header.has-discussion .entry-meta .discussion-avatar-list { 1820 display: block; 1821 position: absolute; 1822 bottom: 100%; 1823 } 1631 1824 } 1632 1825 1633 1826 .site-header.featured-image .custom-logo-link { 1634 background: white;1827 background: #fff; 1635 1828 box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); 1636 1829 } … … 1640 1833 } 1641 1834 1642 .site-header.featured-image .site-branding ,1643 .site-header.featured-image .hentry .entry-header { 1835 .site-header.featured-image .site-branding { 1836 position: relative; 1644 1837 z-index: 10; 1838 } 1839 1840 .site-header.featured-image .site-featured-image .entry-header { 1841 position: relative; 1842 z-index: 9; 1645 1843 } 1646 1844 1647 1845 .site-header.featured-image .site-branding-container:before, 1648 1846 .site-header.featured-image .site-branding-container:after, 1649 .site-header.featured-image . hentry:before,1650 .site-header.featured-image . hentry:after, .site-header.featured-image:after {1847 .site-header.featured-image .site-featured-image:before, 1848 .site-header.featured-image .site-featured-image:after, .site-header.featured-image:after { 1651 1849 display: block; 1652 1850 position: absolute; … … 1662 1860 background-repeat: no-repeat; 1663 1861 background-size: cover; 1862 z-index: 1; 1863 /* When image filters are active, make it grayscale to colorize it blue. */ 1864 } 1865 1866 .image-filters-enabled .site-header.featured-image .site-branding-container:before { 1664 1867 filter: grayscale(100%); 1665 z-index: 1; 1666 } 1667 1668 .site-header.featured-image .hentry:before { 1868 } 1869 1870 .image-filters-enabled .site-header.featured-image .site-featured-image:before { 1669 1871 background: #0073aa; 1670 1872 mix-blend-mode: screen; 1671 1873 opacity: 0.1; 1672 z-index: 2; 1673 } 1674 1675 .site-header.featured-image .hentry:after { 1874 } 1875 1876 .site-header.featured-image .site-featured-image:after { 1877 background: #000; 1878 mix-blend-mode: multiply; 1879 opacity: .7; 1880 /* When image filters are active, a blue overlay is added. */ 1881 } 1882 1883 .image-filters-enabled .site-header.featured-image .site-featured-image:after { 1676 1884 background: #0073aa; 1677 mix-blend-mode: multiply; 1678 opacity: 1; 1885 opacity: .8; 1679 1886 z-index: 3; 1680 } 1681 1682 .site-header.featured-image .site-branding-container:after { 1683 background: rgba(255, 255, 255, 0.35); 1887 /* Browsers supporting mix-blend-mode don't need opacity < 1 */ 1888 } 1889 1890 @supports (mix-blend-mode: multiply) { 1891 .image-filters-enabled .site-header.featured-image .site-featured-image:after { 1892 opacity: 1; 1893 } 1894 } 1895 1896 .image-filters-enabled .site-header.featured-image .site-branding-container:after { 1897 background: rgba(0, 0, 0, 0.35); 1684 1898 mix-blend-mode: overlay; 1685 1899 opacity: 0.5; 1686 1900 z-index: 4; 1901 /* Browsers supporting mix-blend-mode can have a light overlay */ 1902 } 1903 1904 @supports (mix-blend-mode: overlay) { 1905 .image-filters-enabled .site-header.featured-image .site-branding-container:after { 1906 background: rgba(255, 255, 255, 0.35); 1907 } 1687 1908 } 1688 1909 1689 1910 .site-header.featured-image:after { 1690 background: #000 e14;1911 background: #000; 1691 1912 /** 1692 1913 * Add a transition to the readability overlay, to add a subtle … … 1694 1915 */ 1695 1916 transition: opacity 1200ms ease-in-out; 1917 opacity: 0.7; 1696 1918 z-index: 5; 1919 /* When image filters are active, a blue overlay is added. */ 1920 } 1921 1922 .image-filters-enabled .site-header.featured-image:after { 1923 background: #000e14; 1697 1924 opacity: 0.38; 1698 1925 } 1699 1926 1700 1927 @media only screen and (min-width: 768px) { 1701 . site-header.featured-image:after {1928 .image-filters-enabled .site-header.featured-image:after { 1702 1929 opacity: 0.18; 1703 }1704 }1705 1706 @media only screen and (min-width: 1168px) {1707 .site-header.featured-image:after {1708 opacity: 0.1;1709 1930 } 1710 1931 } … … 1747 1968 } 1748 1969 1749 . hentry {1970 .entry { 1750 1971 margin-top: calc(6 * 1rem); 1751 1972 } 1752 1973 1753 . hentry:first-of-type {1974 .entry:first-of-type { 1754 1975 margin-top: 0; 1755 1976 } 1756 1977 1757 . hentry .entry-header {1978 .entry .entry-header { 1758 1979 margin: calc(3 * 1rem) 1rem 1rem; 1759 1980 position: relative; … … 1761 1982 1762 1983 @media only screen and (min-width: 768px) { 1763 . hentry .entry-header {1984 .entry .entry-header { 1764 1985 margin: calc(3 * 1rem) calc(2 * (100vw / 12 )) 1rem; 1765 1986 } 1766 .featured-image .hentry .entry-header { 1767 margin-bottom: 0; 1768 } 1769 } 1770 1771 .hentry .entry-title { 1987 } 1988 1989 .entry .entry-title { 1772 1990 margin: 0; 1773 1991 } 1774 1992 1775 . hentry .entry-title:before {1993 .entry .entry-title:before { 1776 1994 background: #767676; 1777 1995 content: "\020"; … … 1782 2000 } 1783 2001 1784 . hentry .entry-title a {2002 .entry .entry-title a { 1785 2003 color: inherit; 1786 2004 } 1787 2005 1788 . hentry .entry-title a:hover {2006 .entry .entry-title a:hover { 1789 2007 color: #4a4a4a; 1790 2008 } 1791 2009 1792 . hentry .entry-meta,1793 . hentry .entry-footer {2010 .entry .entry-meta, 2011 .entry .entry-footer { 1794 2012 color: #767676; 1795 2013 font-weight: 500; 1796 2014 } 1797 2015 1798 . hentry .entry-meta > span,1799 . hentry .entry-footer > span {2016 .entry .entry-meta > span, 2017 .entry .entry-footer > span { 1800 2018 margin-left: 1rem; 1801 } 1802 1803 .hentry .entry-meta > span:last-child, 1804 .hentry .entry-footer > span:last-child { 2019 display: inline-block; 2020 } 2021 2022 .entry .entry-meta > span:last-child, 2023 .entry .entry-footer > span:last-child { 1805 2024 margin-left: 0; 1806 2025 } 1807 2026 1808 . hentry .entry-meta a,1809 . hentry .entry-footer a {2027 .entry .entry-meta a, 2028 .entry .entry-footer a { 1810 2029 transition: color 110ms ease-in-out; 1811 2030 color: currentColor; 1812 2031 } 1813 2032 1814 . hentry .entry-meta a:hover,1815 . hentry .entry-footer a:hover {2033 .entry .entry-meta a:hover, 2034 .entry .entry-footer a:hover { 1816 2035 text-decoration: none; 1817 2036 color: #0073aa; 1818 2037 } 1819 2038 1820 . hentry .entry-meta .svg-icon,1821 . hentry .entry-footer .svg-icon {2039 .entry .entry-meta .svg-icon, 2040 .entry .entry-footer .svg-icon { 1822 2041 position: relative; 1823 2042 display: inline-block; … … 1826 2045 } 1827 2046 1828 . hentry .entry-meta {2047 .entry .entry-meta { 1829 2048 margin: 1rem 0; 1830 2049 } 1831 2050 1832 @media only screen and (min-width: 1168px) { 1833 .hentry .entry-meta.has-discussion .comment-count { 1834 float: left; 1835 position: relative; 1836 } 1837 } 1838 1839 .hentry .entry-meta.has-discussion .comment-count .discussion-avatar-list { 1840 display: none; 1841 } 1842 1843 @media only screen and (min-width: 1168px) { 1844 .hentry .entry-meta.has-discussion .comment-count .discussion-avatar-list { 1845 bottom: 100%; 1846 display: block; 1847 position: absolute; 1848 } 1849 } 1850 1851 .hentry .entry-footer { 2051 .entry .entry-footer { 1852 2052 margin: calc(2 * 1rem) 1rem 1rem; 1853 2053 } 1854 2054 1855 2055 @media only screen and (min-width: 768px) { 1856 . hentry .entry-footer {1857 margin: calc(3 * 1rem) calc(2 * (100vw / 12));2056 .entry .entry-footer { 2057 margin: 1rem calc(2 * (100vw / 12)) calc(3 * 1rem); 1858 2058 max-width: calc(8 * (100vw / 12)); 1859 2059 } … … 1861 2061 1862 2062 @media only screen and (min-width: 768px) { 1863 . hentry .entry-footer {2063 .entry .entry-footer { 1864 2064 max-width: calc(6 * (100vw / 12)); 1865 2065 } 1866 2066 } 1867 2067 1868 . hentry .post-thumbnail {2068 .entry .post-thumbnail { 1869 2069 margin: 1rem; 1870 2070 } 1871 2071 1872 2072 @media only screen and (min-width: 768px) { 1873 . hentry .post-thumbnail {2073 .entry .post-thumbnail { 1874 2074 margin: 1rem calc(2 * (100vw / 12)); 1875 2075 } 1876 2076 } 1877 2077 1878 . hentry .post-thumbnail:focus {2078 .entry .post-thumbnail:focus { 1879 2079 outline: none; 1880 2080 } 1881 2081 1882 . hentry .post-thumbnail .post-thumbnail-inner {1883 display: block; 1884 } 1885 1886 . hentry .post-thumbnail .post-thumbnail-inner img {2082 .entry .post-thumbnail .post-thumbnail-inner { 2083 display: block; 2084 } 2085 2086 .entry .post-thumbnail .post-thumbnail-inner img { 1887 2087 position: relative; 1888 2088 display: block; … … 1890 2090 } 1891 2091 1892 .image-filters-enabled . hentry .post-thumbnail {2092 .image-filters-enabled .entry .post-thumbnail { 1893 2093 position: relative; 1894 2094 display: block; 1895 2095 } 1896 2096 1897 .image-filters-enabled .hentry .post-thumbnail .post-thumbnail-inner { 1898 position: relative; 2097 .image-filters-enabled .entry .post-thumbnail .post-thumbnail-inner { 1899 2098 filter: grayscale(100%); 1900 z-index: 1; 1901 } 1902 1903 .image-filters-enabled .hentry .post-thumbnail .post-thumbnail-inner:after { 1904 display: block; 2099 } 2100 2101 .image-filters-enabled .entry .post-thumbnail .post-thumbnail-inner:after { 2102 background: rgba(0, 0, 0, 0.35); 2103 content: ""; 2104 display: block; 2105 height: 100%; 2106 opacity: .5; 2107 pointer-events: none; 2108 position: absolute; 2109 top: 0; 1905 2110 width: 100%; 1906 height: 100%; 1907 z-index: 10; 1908 } 1909 1910 .image-filters-enabled .hentry .post-thumbnail:before, .image-filters-enabled .hentry .post-thumbnail:after { 2111 z-index: 4; 2112 } 2113 2114 @supports (mix-blend-mode: multiply) { 2115 .image-filters-enabled .entry .post-thumbnail .post-thumbnail-inner:after { 2116 display: none; 2117 } 2118 } 2119 2120 .image-filters-enabled .entry .post-thumbnail:before, .image-filters-enabled .entry .post-thumbnail:after { 1911 2121 position: absolute; 1912 2122 display: block; … … 1916 2126 right: 0; 1917 2127 content: "\020"; 1918 display: block;1919 2128 pointer-events: none; 1920 2129 } 1921 2130 1922 .image-filters-enabled . hentry .post-thumbnail:before {2131 .image-filters-enabled .entry .post-thumbnail:before { 1923 2132 background: #0073aa; 1924 2133 mix-blend-mode: screen; … … 1927 2136 } 1928 2137 1929 .image-filters-enabled . hentry .post-thumbnail:after {2138 .image-filters-enabled .entry .post-thumbnail:after { 1930 2139 background: #0073aa; 1931 2140 mix-blend-mode: multiply; 1932 opacity: 1;2141 opacity: .8; 1933 2142 z-index: 3; 1934 } 1935 1936 .hentry .entry-content .more-link { 2143 /* Browsers supporting mix-blend-mode don't need opacity < 1 */ 2144 } 2145 2146 @supports (mix-blend-mode: multiply) { 2147 .image-filters-enabled .entry .post-thumbnail:after { 2148 opacity: 1; 2149 } 2150 } 2151 2152 .entry .entry-content p { 2153 word-wrap: break-word; 2154 } 2155 2156 .entry .entry-content .more-link { 1937 2157 transition: color 110ms ease-in-out; 1938 2158 display: inline; … … 1940 2160 } 1941 2161 1942 . hentry .entry-content .more-link:after {1943 content: " »";2162 .entry .entry-content .more-link:after { 2163 content: "\02192"; 1944 2164 margin-right: 0.5em; 1945 2165 } 1946 2166 1947 . hentry .entry-content .more-link:hover {2167 .entry .entry-content .more-link:hover { 1948 2168 color: #0073aa; 1949 2169 text-decoration: none; 1950 2170 } 1951 2171 1952 . hentry .entry-content a {2172 .entry .entry-content a { 1953 2173 text-decoration: underline; 1954 2174 } 1955 2175 1956 . hentry .entry-content a:hover {2176 .entry .entry-content a:hover { 1957 2177 text-decoration: none; 1958 2178 } 1959 2179 1960 . hentry .entry-content > iframe[style] {2180 .entry .entry-content > iframe[style] { 1961 2181 margin: 32px 1rem !important; 1962 2182 max-width: calc(100vw - (2 * 1rem)) !important; … … 1964 2184 1965 2185 @media only screen and (min-width: 768px) { 1966 . hentry .entry-content > iframe[style] {2186 .entry .entry-content > iframe[style] { 1967 2187 margin: 32px calc(2 * (100vw / 12)) !important; 1968 2188 max-width: calc(8 * (100vw / 12)) !important; … … 1971 2191 1972 2192 @media only screen and (min-width: 1168px) { 1973 . hentry .entry-content > iframe[style] {2193 .entry .entry-content > iframe[style] { 1974 2194 max-width: calc(6 * (100vw / 12)) !important; 1975 2195 } 1976 2196 } 1977 2197 1978 . hentry .entry-content .wp-audio-shortcode {2198 .entry .entry-content .wp-audio-shortcode { 1979 2199 max-width: calc(100vw - (2 * 1rem)); 1980 2200 } 1981 2201 1982 2202 @media only screen and (min-width: 768px) { 1983 . hentry .entry-content .wp-audio-shortcode {2203 .entry .entry-content .wp-audio-shortcode { 1984 2204 max-width: calc(8 * (100vw / 12)); 1985 2205 } … … 1987 2207 1988 2208 @media only screen and (min-width: 1168px) { 1989 . hentry .entry-content .wp-audio-shortcode {2209 .entry .entry-content .wp-audio-shortcode { 1990 2210 max-width: calc(6 * (100vw / 12)); 1991 2211 } 2212 } 2213 2214 /* Author description */ 2215 .author-bio { 2216 margin: calc(2 * 1rem) 1rem 1rem; 2217 } 2218 2219 @media only screen and (min-width: 768px) { 2220 .author-bio { 2221 margin: calc(3 * 1rem) calc(2 * (100vw / 12)); 2222 max-width: calc(8 * (100vw / 12)); 2223 } 2224 } 2225 2226 @media only screen and (min-width: 768px) { 2227 .author-bio { 2228 max-width: calc(6 * (100vw / 12)); 2229 } 2230 } 2231 2232 .author-bio .author-title { 2233 display: inline; 2234 } 2235 2236 .author-bio .author-title:before { 2237 background: #767676; 2238 content: "\020"; 2239 display: block; 2240 height: 2px; 2241 margin: 1rem 0; 2242 width: 1em; 2243 } 2244 2245 .author-bio .author-description { 2246 display: inline; 2247 color: #767676; 2248 font-size: 1.125em; 2249 line-height: 1.2; 2250 } 2251 2252 .author-bio .author-description .author-link { 2253 display: inline-block; 2254 } 2255 2256 .author-bio .author-description .author-link:hover { 2257 color: #005177; 2258 text-decoration: none; 1992 2259 } 1993 2260 … … 2005 2272 .comments-area { 2006 2273 /* Add extra margin when the comments section is located immediately after the 2007 * post itself (this happens on pages). 2274 * post itself (this happens on pages). 2008 2275 */ 2009 2276 } 2010 2277 2011 . hentry + .comments-area {2278 .entry + .comments-area { 2012 2279 margin-top: calc(3 * 1rem); 2013 2280 } 2014 2281 2015 .comments-area .comments-title-wrap,2016 2282 .comments-area .comment-list, 2283 .comments-area .comment-navigation, 2017 2284 .comments-area > .comment-respond, 2018 2285 .comments-area .comment-form-flex, … … 2022 2289 2023 2290 @media only screen and (min-width: 768px) { 2024 .comments-area .comments-title-wrap,2025 2291 .comments-area .comment-list, 2292 .comments-area .comment-navigation, 2026 2293 .comments-area > .comment-respond, 2027 2294 .comments-area .comment-form-flex, … … 2033 2300 2034 2301 .comments-area .comments-title-wrap { 2035 align-items: baseline; 2036 display: flex; 2037 justify-content: space-between; 2302 margin: calc(2 * 1rem) 1rem; 2303 } 2304 2305 @media only screen and (min-width: 768px) { 2306 .comments-area .comments-title-wrap { 2307 align-items: baseline; 2308 display: flex; 2309 justify-content: space-between; 2310 margin: calc(3 * 1rem) calc(2 * (100vw / 12)); 2311 max-width: calc(8 * (100vw / 12)); 2312 } 2038 2313 } 2039 2314 … … 2051 2326 } 2052 2327 2328 @media only screen and (min-width: 768px) { 2329 .comments-area .comments-title-wrap .comments-title { 2330 flex: 1 0 calc(3 * (100vw / 12)); 2331 } 2332 } 2333 2334 @media only screen and (min-width: 768px) { 2335 .comments-area .comments-title-wrap .discussion-meta { 2336 flex: 0 0 calc(2 * (100vw / 12)); 2337 margin-right: 1rem; 2338 } 2339 } 2340 2053 2341 #comment { 2054 2342 max-width: 100%; … … 2061 2349 2062 2350 #respond .comment-user-avatar { 2063 display: none;2351 margin: 1rem 0 -1rem; 2064 2352 } 2065 2353 … … 2079 2367 #comments > .comments-title:last-child { 2080 2368 display: none; 2081 }2082 2083 @media only screen and (min-width: 1168px) {2084 #comments > #respond .comment-user-avatar {2085 position: absolute;2086 display: block;2087 top: 0;2088 right: 0;2089 }2090 #comments > #respond .comment-user-avatar .avatar {2091 display: block;2092 }2093 2369 } 2094 2370 … … 2216 2492 position: absolute; 2217 2493 background: #008fd3; 2218 left: calc(100% + 0.25rem);2494 left: calc(100% - 2.5rem); 2219 2495 top: -3px; 2220 2496 width: 18px; 2497 } 2498 2499 @media only screen and (min-width: 768px) { 2500 .comment .comment-author .post-author-badge { 2501 left: calc(100% + 0.75rem); 2502 } 2221 2503 } 2222 2504 … … 2341 2623 height: calc(1.5 * 1rem); 2342 2624 width: calc(1.5 * 1rem); 2343 }2344 2345 .discussion-meta .discussion-avatar-list {2346 display: inline-block;2347 margin-left: 8px;2348 2625 } 2349 2626 … … 2440 2717 } 2441 2718 2442 @media only screen and (min-width: 768px) { 2443 .hfeed .hentry .entry-header { 2719 .archive .page-header .page-description { 2720 display: block; 2721 color: #111; 2722 font-size: 1em; 2723 } 2724 2725 @media only screen and (min-width: 768px) { 2726 .hfeed .entry .entry-header { 2444 2727 margin: calc(3 * 1rem) calc(2 * (100vw / 12)) calc(1rem / 2); 2445 2728 } … … 2474 2757 --------------------------------------------------------------*/ 2475 2758 /* Site footer */ 2476 .site-footer { 2477 color: #767676; 2478 } 2479 2480 .site-footer .site-info { 2759 #colophon .widget-area, 2760 #colophon .site-info { 2481 2761 margin: calc(2 * 1rem) 1rem; 2482 2762 } 2483 2763 2484 2764 @media only screen and (min-width: 768px) { 2485 .site-footer .site-info { 2765 #colophon .widget-area, 2766 #colophon .site-info { 2486 2767 margin: calc(3 * 1rem) calc(2 * (100vw / 12)); 2487 2768 max-width: calc(8 * (100vw / 12)); … … 2489 2770 } 2490 2771 2491 .site-footer .site-info .imprint { 2772 #colophon .widget-area .imprint, 2773 #colophon .site-info .imprint { 2492 2774 margin-left: 1rem; 2493 2775 } 2494 2776 2495 .site-footera {2777 #colophon .site-info a { 2496 2778 color: inherit; 2497 2779 } 2498 2780 2499 .site-footera:hover {2781 #colophon .site-info a:hover { 2500 2782 text-decoration: none; 2501 2783 color: #0073aa; 2784 } 2785 2786 #colophon .widget-column { 2787 display: flex; 2788 flex-wrap: wrap; 2789 } 2790 2791 #colophon .widget-column .widget { 2792 width: 100%; 2793 } 2794 2795 @media only screen and (min-width: 1168px) { 2796 #colophon .widget-column .widget { 2797 margin-left: calc(3 * 1rem); 2798 width: calc(50% - (3 * 1rem)); 2799 } 2800 } 2801 2802 #colophon .site-info { 2803 color: #767676; 2502 2804 } 2503 2805 … … 2510 2812 .widget select { 2511 2813 max-width: 100%; 2814 } 2815 2816 .widget a { 2817 color: #0073aa; 2818 } 2819 2820 .widget a:hover { 2821 color: #005177; 2822 } 2823 2824 .widget_archive ul, 2825 .widget_nav_menu ul, 2826 .widget_meta ul, 2827 .widget_recent_entries ul, 2828 .widget_rss ul { 2829 padding: 0; 2830 list-style: none; 2831 } 2832 2833 .widget_archive ul li, 2834 .widget_nav_menu ul li, 2835 .widget_meta ul li, 2836 .widget_recent_entries ul li, 2837 .widget_rss ul li { 2838 color: #767676; 2839 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); 2841 font-weight: bold; 2842 line-height: 1.2; 2843 } 2844 2845 .widget_archive ul li:not(.menu-item-has-children), 2846 .widget_nav_menu ul li:not(.menu-item-has-children), 2847 .widget_meta ul li:not(.menu-item-has-children), 2848 .widget_recent_entries ul li:not(.menu-item-has-children), 2849 .widget_rss ul li:not(.menu-item-has-children) { 2850 padding-bottom: 0.75rem; 2851 } 2852 2853 .widget_archive ul li ul, 2854 .widget_nav_menu ul li ul, 2855 .widget_meta ul li ul, 2856 .widget_recent_entries ul li ul, 2857 .widget_rss ul li ul { 2858 padding-right: 1rem; 2859 } 2860 2861 .widget_archive ul.sub-menu, 2862 .widget_nav_menu ul.sub-menu, 2863 .widget_meta ul.sub-menu, 2864 .widget_recent_entries ul.sub-menu, 2865 .widget_rss ul.sub-menu { 2866 padding-top: 0.75rem; 2867 } 2868 2869 .widget_search .search-submit { 2870 display: block; 2871 margin-top: 1rem; 2512 2872 } 2513 2873 … … 2565 2925 .entry-content > *.alignwide, 2566 2926 .entry-summary > *.alignwide { 2567 margin-right: calc( 1* (100vw / 12));2568 margin-left: calc( 1* (100vw / 12));2569 max-width: calc( 10* (100vw / 12));2927 margin-right: calc(2 * (100vw / 12)); 2928 margin-left: calc(2 * (100vw / 12)); 2929 max-width: calc(8 * (100vw / 12)); 2570 2930 } 2571 2931 } … … 2617 2977 margin-right: calc(2 * 1rem); 2618 2978 margin-left: calc(2 * (100vw / 12)); 2979 } 2980 } 2981 2982 .entry-content > *.aligncenter, 2983 .entry-summary > *.aligncenter { 2984 margin-right: auto; 2985 margin-left: auto; 2986 } 2987 2988 @media only screen and (min-width: 1168px) { 2989 .entry-content > *.aligncenter, 2990 .entry-summary > *.aligncenter { 2991 margin-right: calc(2 * (100vw / 12)); 2992 margin-left: calc(2 * (100vw / 12)); 2993 max-width: calc(10 * (100vw / 12)); 2994 position: relative; 2995 right: 25%; 2996 transform: translate(50%); 2619 2997 } 2620 2998 } … … 2660 3038 box-sizing: border-box; 2661 3039 font-weight: bold; 2662 padding: 0.66rem 1rem; 3040 text-decoration: none; 3041 padding: 0.76rem 1rem; 2663 3042 outline: none; 2664 3043 color: white; … … 2688 3067 transition: all 150ms ease-in-out; 2689 3068 background: transparent; 2690 border: 2px solid #0073aa; 2691 } 2692 2693 .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), 2694 .entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus:not(.has-text-color), 2695 .entry-content .wp-block-button.is-style-outline .wp-block-button__link:active:not(.has-text-color) { 3069 border: 2px solid currentColor; 2696 3070 color: #0073aa; 2697 3071 } 2698 3072 2699 3073 .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { 2700 border-color: #111;2701 3074 color: #111; 2702 3075 } … … 2719 3092 } 2720 3093 2721 .entry-content .wp-block-archives li a:after, 2722 .entry-content .wp-block-categories li a:after, 2723 .entry-content .wp-block-latest-posts li a:after { 2724 color: #767676; 2725 content: ","; 2726 } 2727 2728 .entry-content .wp-block-archives li:last-child a:after, 2729 .entry-content .wp-block-categories li:last-child a:after, 2730 .entry-content .wp-block-latest-posts li:last-child a:after { 2731 color: #767676; 2732 content: "."; 3094 .entry-content .wp-block-archives li:not(.menu-item-has-children), 3095 .entry-content .wp-block-categories li:not(.menu-item-has-children), 3096 .entry-content .wp-block-latest-posts li:not(.menu-item-has-children) { 3097 padding-bottom: 0.75rem; 3098 } 3099 3100 .entry-content .wp-block-archives li a, 3101 .entry-content .wp-block-categories li a, 3102 .entry-content .wp-block-latest-posts li a { 3103 text-decoration: none; 3104 } 3105 3106 .entry-content .wp-block-archives li ul, 3107 .entry-content .wp-block-categories li ul, 3108 .entry-content .wp-block-latest-posts li ul { 3109 padding-right: 1rem; 2733 3110 } 2734 3111 … … 2777 3154 2778 3155 .entry-content .wp-block-pullquote blockquote { 3156 color: #111; 2779 3157 border: none; 2780 3158 padding-bottom: calc(2 * 1rem); … … 2788 3166 margin-bottom: 0.5em; 2789 3167 margin-top: 0.5em; 2790 color: #111;2791 3168 } 2792 3169 … … 2807 3184 line-height: 1.6; 2808 3185 text-transform: none; 2809 color: #767676;2810 3186 } 2811 3187 … … 2821 3197 } 2822 3198 3199 .entry-content .wp-block-pullquote.is-style-solid-color { 3200 background-color: #0073aa; 3201 } 3202 2823 3203 .entry-content .wp-block-pullquote.is-style-solid-color p { 2824 3204 font-size: 1.6875em; … … 2834 3214 } 2835 3215 3216 .entry-content .wp-block-pullquote.is-style-solid-color a { 3217 color: #fff; 3218 } 3219 2836 3220 .entry-content .wp-block-pullquote.is-style-solid-color blockquote { 3221 color: #fff; 2837 3222 margin: 0 auto; 2838 3223 } 2839 3224 2840 .entry-content .wp-block-pullquote.is-style-solid-color blockquote:not(.has-text-color) p, 2841 .entry-content .wp-block-pullquote.is-style-solid-color cite { 2842 color: white; 2843 } 2844 2845 .entry-content .wp-block-pullquote.is-style-solid-color:not(.has-background-color) { 3225 .entry-content .wp-block-pullquote.is-style-solid-color .has-primary-background-color { 2846 3226 background-color: #0073aa; 2847 3227 } … … 2922 3302 2923 3303 .entry-content .wp-block-cover-image .wp-block-cover-image-text, 2924 .entry-content .wp-block-cover-image h2 { 3304 .entry-content .wp-block-cover-image .wp-block-cover-text, 3305 .entry-content .wp-block-cover-image h2, 3306 .entry-content .wp-block-cover .wp-block-cover-image-text, 3307 .entry-content .wp-block-cover .wp-block-cover-text, 3308 .entry-content .wp-block-cover h2 { 2925 3309 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 2926 3310 font-size: 1.6875em; … … 2932 3316 @media only screen and (min-width: 768px) { 2933 3317 .entry-content .wp-block-cover-image .wp-block-cover-image-text, 2934 .entry-content .wp-block-cover-image h2 { 3318 .entry-content .wp-block-cover-image .wp-block-cover-text, 3319 .entry-content .wp-block-cover-image h2, 3320 .entry-content .wp-block-cover .wp-block-cover-image-text, 3321 .entry-content .wp-block-cover .wp-block-cover-text, 3322 .entry-content .wp-block-cover h2 { 2935 3323 font-size: 2.25em; 2936 3324 width: calc(8 * (100vw / 12)); … … 2941 3329 @media only screen and (min-width: 1168px) { 2942 3330 .entry-content .wp-block-cover-image .wp-block-cover-image-text, 2943 .entry-content .wp-block-cover-image h2 { 3331 .entry-content .wp-block-cover-image .wp-block-cover-text, 3332 .entry-content .wp-block-cover-image h2, 3333 .entry-content .wp-block-cover .wp-block-cover-image-text, 3334 .entry-content .wp-block-cover .wp-block-cover-text, 3335 .entry-content .wp-block-cover h2 { 2944 3336 width: calc(6 * (100vw / 12 )); 2945 3337 max-width: calc(6 * (100vw / 12 )); … … 2948 3340 2949 3341 .entry-content .wp-block-cover-image.alignleft h2, 2950 .entry-content .wp-block-cover-image.alignleft .wp-block-cover-image-text, .entry-content .wp-block-cover-image.alignright h2, 2951 .entry-content .wp-block-cover-image.alignright .wp-block-cover-image-text, .entry-content .wp-block-cover-image.aligncenter h2, 2952 .entry-content .wp-block-cover-image.aligncenter .wp-block-cover-image-text { 3342 .entry-content .wp-block-cover-image.alignleft .wp-block-cover-image-text, 3343 .entry-content .wp-block-cover-image.alignleft .wp-block-cover-text, .entry-content .wp-block-cover-image.alignright h2, 3344 .entry-content .wp-block-cover-image.alignright .wp-block-cover-image-text, 3345 .entry-content .wp-block-cover-image.alignright .wp-block-cover-text, .entry-content .wp-block-cover-image.aligncenter h2, 3346 .entry-content .wp-block-cover-image.aligncenter .wp-block-cover-image-text, 3347 .entry-content .wp-block-cover-image.aligncenter .wp-block-cover-text, 3348 .entry-content .wp-block-cover.alignleft h2, 3349 .entry-content .wp-block-cover.alignleft .wp-block-cover-image-text, 3350 .entry-content .wp-block-cover.alignleft .wp-block-cover-text, 3351 .entry-content .wp-block-cover.alignright h2, 3352 .entry-content .wp-block-cover.alignright .wp-block-cover-image-text, 3353 .entry-content .wp-block-cover.alignright .wp-block-cover-text, 3354 .entry-content .wp-block-cover.aligncenter h2, 3355 .entry-content .wp-block-cover.aligncenter .wp-block-cover-image-text, 3356 .entry-content .wp-block-cover.aligncenter .wp-block-cover-text { 2953 3357 width: 100%; 2954 3358 z-index: 1; … … 2959 3363 } 2960 3364 2961 .entry-content .wp-block-cover-image.has-left-content { 3365 .entry-content .wp-block-cover-image.has-left-content, 3366 .entry-content .wp-block-cover.has-left-content { 2962 3367 justify-content: center; 2963 3368 } 2964 3369 2965 3370 .entry-content .wp-block-cover-image.has-left-content h2, 2966 .entry-content .wp-block-cover-image.has-left-content .wp-block-cover-image-text { 3371 .entry-content .wp-block-cover-image.has-left-content .wp-block-cover-image-text, 3372 .entry-content .wp-block-cover-image.has-left-content .wp-block-cover-text, 3373 .entry-content .wp-block-cover.has-left-content h2, 3374 .entry-content .wp-block-cover.has-left-content .wp-block-cover-image-text, 3375 .entry-content .wp-block-cover.has-left-content .wp-block-cover-text { 2967 3376 padding: 1rem; 2968 3377 } 2969 3378 2970 .entry-content .wp-block-cover-image.has-right-content { 3379 .entry-content .wp-block-cover-image.has-right-content, 3380 .entry-content .wp-block-cover.has-right-content { 2971 3381 justify-content: center; 2972 3382 } 2973 3383 2974 3384 .entry-content .wp-block-cover-image.has-right-content h2, 2975 .entry-content .wp-block-cover-image.has-right-content .wp-block-cover-image-text { 3385 .entry-content .wp-block-cover-image.has-right-content .wp-block-cover-image-text, 3386 .entry-content .wp-block-cover-image.has-right-content .wp-block-cover-text, 3387 .entry-content .wp-block-cover.has-right-content h2, 3388 .entry-content .wp-block-cover.has-right-content .wp-block-cover-image-text, 3389 .entry-content .wp-block-cover.has-right-content .wp-block-cover-text { 2976 3390 padding: 1rem; 2977 3391 } … … 3117 3531 } 3118 3532 3533 .entry-content .has-primary-background-color { 3534 background-color: #0073aa; 3535 } 3536 3537 .entry-content .has-primary-background-color p, 3538 .entry-content .has-primary-background-color h1, 3539 .entry-content .has-primary-background-color h2, 3540 .entry-content .has-primary-background-color h3, 3541 .entry-content .has-primary-background-color h4, 3542 .entry-content .has-primary-background-color h5, 3543 .entry-content .has-primary-background-color h6, 3544 .entry-content .has-primary-background-color a { 3545 color: #fff; 3546 } 3547 3119 3548 /* Media */ 3120 3549 .page-content .wp-smiley, … … 3176 3605 .gallery { 3177 3606 display: flex; 3607 flex-flow: row wrap; 3608 justify-content: center; 3178 3609 margin-bottom: calc(1.5 * 1rem); 3179 3610 } … … 3181 3612 .gallery-item { 3182 3613 display: inline-block; 3183 margin-left: 1rem;3614 padding-left: 1rem; 3184 3615 margin-bottom: 1rem; 3185 3616 text-align: center; … … 3221 3652 3222 3653 .gallery-item:last-of-type { 3223 margin-left: 0;3654 padding-left: 0; 3224 3655 } 3225 3656 -
branches/5.0/src/wp-content/themes/twentynineteen/style.css
r43808 r43842 423 423 .page-description, 424 424 h2.author-title, 425 .author-description .author-link, 425 426 .not-found .page-title, 426 427 .error-404 .page-title, … … 462 463 .main-navigation ul.main-menu > li, 463 464 .social-navigation, 464 .author-description p.author-bio,465 .author-description .author-bio, 465 466 .nav-links { 466 467 line-height: 1.25; … … 581 582 } 582 583 583 blockquote > p {584 font-size: 1.6875em;585 font-style: italic;586 line-height: 1.2;587 }588 589 584 blockquote cite { 590 font-size: 0. 88889em;585 font-size: 0.71111em; 591 586 font-style: normal; 592 587 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; … … 667 662 668 663 a:focus { 669 outline: 0; 664 outline: thin; 665 outline-style: dotted; 670 666 text-decoration: underline; 671 667 } … … 731 727 } 732 728 733 img:before {734 background-color: #eee;735 border: 1px dashed #ccc;736 border-radius: 3px;737 content: " ";738 display: block;739 height: 100%;740 left: 0;741 position: absolute;742 top: 0;743 width: 100%;744 }745 746 img:after {747 color: #666;748 content: "This image is broken :-/ ( " attr(alt) " )";749 display: block;750 left: 50%;751 position: absolute;752 text-align: center;753 top: 50%;754 transform: translate(-50%, -50%);755 width: 100%;756 }757 758 729 figure { 759 730 margin: 0; … … 763 734 border-left: 2px solid #0073aa; 764 735 margin-left: -2rem; 765 padding: 1rem 0 0.5rem 2rem;736 padding: 0 0 0 1rem; 766 737 } 767 738 … … 800 771 line-height: 1.2; 801 772 outline: none; 802 padding: 0.66rem 1rem; 773 padding: 0.76rem 1rem; 774 vertical-align: bottom; 803 775 } 804 776 … … 853 825 box-sizing: border-box; 854 826 outline: none; 855 padding: 0. 5rem 0.66rem;827 padding: 0.36rem 0.66rem; 856 828 } 857 829 … … 909 881 910 882 a:focus { 911 outline: 0;883 outline: thin dotted; 912 884 text-decoration: underline; 913 885 } … … 918 890 /** === Main menu === */ 919 891 .main-navigation { 920 display: inline; 892 display: block; 893 margin-top: 0.25rem; 921 894 /* 922 895 * :focus-within needs its own selector so other similar 923 896 * selectors don’t get ignored if a browser doesn’t recognize it 924 897 */ 925 } 926 927 @media only screen and (min-width: 768px) { 928 .main-navigation { 929 display: block; 930 } 898 /* Only show one submenu expand button at a time (desktop vs mobile) */ 931 899 } 932 900 … … 946 914 947 915 .main-navigation .main-menu > li { 916 color: #0073aa; 948 917 display: inline; 918 } 919 920 @media only screen and (min-width: 768px) { 921 .main-navigation .main-menu > li { 922 position: relative; 923 } 949 924 } 950 925 … … 952 927 font-weight: 700; 953 928 color: #0073aa; 929 margin-right: 0.5rem; 954 930 } 955 931 956 932 .main-navigation .main-menu > li > a + svg { 957 color: #0073aa; 958 margin-right: -0.25rem; 959 } 960 961 .main-navigation .main-menu > li > a:hover { 962 color: #005177; 963 } 964 933 margin-right: 0.5rem; 934 } 935 936 .main-navigation .main-menu > li > a:hover, 965 937 .main-navigation .main-menu > li > a:hover + svg { 966 938 color: #005177; 967 939 } 968 940 969 .main-navigation .main-menu > li > a:after { 970 content: ","; 971 display: inline; 972 color: #767676; 973 } 974 975 .main-navigation .main-menu > li.menu-item-has-children:after { 976 content: ","; 977 display: inline; 978 color: #767676; 941 .main-navigation .main-menu > li.menu-item-has-children { 942 display: inline-block; 943 } 944 945 .main-navigation .main-menu > li.menu-item-has-children > a { 946 margin-right: 0.125rem; 979 947 } 980 948 … … 985 953 } 986 954 987 .main-navigation .main-menu > li:last-child > a:after { 988 content: "."; 955 .main-navigation .main-menu > li.menu-item-has-children .mobile-submenu-expand svg, 956 .main-navigation .main-menu > li.menu-item-has-children .desktop-submenu-expand svg { 957 position: relative; 958 top: 0.2rem; 959 } 960 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 { 963 margin-right: 0.5rem; 989 964 } 990 965 … … 1000 975 display: none; 1001 976 float: left; 1002 width: 100%;1003 977 position: absolute; 1004 978 opacity: 0; 1005 left: -999 em;979 left: -999px; 1006 980 z-index: 99999; 1007 transition: opacity 0.5s ease-in-out;1008 981 } 1009 982 1010 983 @media only screen and (min-width: 768px) { 1011 984 .main-navigation .sub-menu { 985 width: -webkit-max-content; 986 width: -moz-max-content; 987 width: max-content; 1012 988 max-width: calc(3 * (100vw / 12)); 1013 989 } … … 1022 998 } 1023 999 1024 .main-navigation .sub-menu > li.menu-item-has-children svg { 1000 .main-navigation .sub-menu > li.menu-item-has-children .mobile-submenu-expand, 1001 .main-navigation .sub-menu > li.menu-item-has-children .desktop-submenu-expand { 1025 1002 position: absolute; 1026 right: 0.5rem; 1027 top: 0.65rem; 1003 width: calc( 24px + 1rem); 1004 right: 0; 1005 top: calc( .125 * 1rem); 1006 bottom: 0; 1007 color: white; 1008 line-height: 1; 1009 padding: calc( .5 * 1rem); 1010 } 1011 1012 .main-navigation .sub-menu > li.menu-item-has-children .mobile-submenu-expand svg, 1013 .main-navigation .sub-menu > li.menu-item-has-children .desktop-submenu-expand svg { 1014 top: 0; 1015 } 1016 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 { 1019 margin-right: 0; 1028 1020 } 1029 1021 … … 1034 1026 } 1035 1027 1036 .main-navigation .sub-menu > li > a {1028 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand) { 1037 1029 color: #fff; 1038 1030 display: block; 1039 1031 line-height: 1.2; 1040 padding: calc( .5 * 1rem) 1rem;1041 } 1042 1043 .main-navigation .sub-menu > li > a: hover, .main-navigation .sub-menu > li > a:focus {1032 padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem; 1033 } 1034 1035 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):hover, .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):focus { 1044 1036 background: #005177; 1045 1037 } 1046 1038 1047 .main-navigation .sub-menu > li > a: hover:after, .main-navigation .sub-menu > li > a:focus:after {1039 .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):hover:after, .main-navigation .sub-menu > li > a:not(.mobile-submenu-expand):focus:after { 1048 1040 background: #005177; 1049 1041 } 1050 1042 1051 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu, 1052 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover { 1053 display: block; 1054 left: inherit; 1055 margin-top: -2px; 1043 .main-navigation .sub-menu > li.mobile-parent-nav-menu-item { 1044 display: none; 1045 font-size: 0.88889em; 1046 font-weight: normal; 1047 } 1048 1049 .main-navigation .sub-menu > li.mobile-parent-nav-menu-item svg { 1050 position: relative; 1051 top: 0.2rem; 1052 margin-right: calc( .25 * 1rem); 1053 } 1054 1055 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu { 1056 display: block; 1057 left: 0; 1058 margin-top: 0; 1056 1059 opacity: 1; 1057 } 1058 1059 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu .sub-menu, 1060 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover.sub-menu {1060 width: calc( 100vw - 2rem); 1061 } 1062 1063 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1061 1064 margin-top: inherit; 1062 1065 position: relative; … … 1065 1068 1066 1069 @media only screen and (min-width: 768px) { 1070 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1071 padding-left: 0; 1072 position: absolute; 1073 left: 100%; 1074 width: -webkit-max-content; 1075 width: -moz-max-content; 1076 width: max-content; 1077 top: 0; 1078 } 1079 } 1080 1081 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu, 1082 .main-navigation .main-menu .menu-item-has-children:focus > .sub-menu, 1083 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover, 1084 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus { 1085 display: table; 1086 margin-top: 0; 1087 opacity: 1; 1088 /* Non-mobile position */ 1089 } 1090 1091 @media only screen and (min-width: 768px) { 1092 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu, 1093 .main-navigation .main-menu .menu-item-has-children:focus > .sub-menu, 1094 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover, 1095 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus { 1096 position: absolute; 1097 left: 0; 1098 right: auto; 1099 top: auto; 1100 bottom: auto; 1101 height: auto; 1102 width: -webkit-max-content; 1103 width: -moz-max-content; 1104 width: max-content; 1105 transform: none; 1106 animation: fade_in 0.1s forwards; 1107 } 1108 } 1109 1110 @media only screen and (min-width: 768px) { 1067 1111 .main-navigation .main-menu .menu-item-has-children:hover > .sub-menu .sub-menu, 1068 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover .sub-menu { 1112 .main-navigation .main-menu .menu-item-has-children:focus > .sub-menu .sub-menu, 1113 .main-navigation .main-menu .menu-item-has-children .sub-menu:hover .sub-menu, 1114 .main-navigation .main-menu .menu-item-has-children .sub-menu:focus .sub-menu { 1115 margin-top: inherit; 1069 1116 padding-left: 0; 1070 1117 position: absolute; … … 1074 1121 } 1075 1122 1076 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu { 1077 display: block; 1078 left: inherit; 1079 margin-top: -2px; 1123 .main-navigation .main-menu .menu-item-has-children.focus .sub-menu.expanded-true { 1124 display: table; 1125 margin-top: 0; 1080 1126 opacity: 1; 1081 } 1082 1083 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1084 margin-top: inherit; 1085 position: relative; 1086 padding-left: 1rem; 1087 } 1088 1089 @media only screen and (min-width: 768px) { 1090 .main-navigation .main-menu .menu-item-has-children:focus-within > .sub-menu .sub-menu { 1091 padding-left: 0; 1092 position: absolute; 1093 left: 100%; 1094 top: 0; 1127 padding-left: 0; 1128 /* Mobile position */ 1129 left: 0; 1130 top: 0; 1131 right: 0; 1132 bottom: 0; 1133 position: fixed; 1134 z-index: 100000; 1135 /* Make sure appears above mobile admin bar */ 1136 width: 100%; 1137 height: 100%; 1138 transform: translateX(100%); 1139 animation: slide_in_right 0.3s forwards; 1140 } 1141 1142 .main-navigation .main-menu .menu-item-has-children.focus .sub-menu.expanded-true > .mobile-parent-nav-menu-item { 1143 display: inline-block; 1144 } 1145 1146 .main-navigation .desktop-submenu-expand { 1147 display: none; 1148 } 1149 1150 @media only screen and (min-width: 768px) { 1151 .main-navigation .desktop-submenu-expand { 1152 display: inline-block; 1153 } 1154 } 1155 1156 .main-navigation .mobile-submenu-expand { 1157 display: inline-block; 1158 } 1159 1160 @media only screen and (min-width: 768px) { 1161 .main-navigation .mobile-submenu-expand { 1162 display: none; 1163 } 1164 } 1165 1166 /* Menu Animation */ 1167 @keyframes slide_in_right { 1168 100% { 1169 transform: translateX(0%); 1170 } 1171 } 1172 1173 @keyframes fade_in { 1174 from { 1175 opacity: 0; 1176 } 1177 to { 1178 opacity: 1; 1095 1179 } 1096 1180 } … … 1159 1243 } 1160 1244 1245 @media only screen and (min-width: 768px) { 1246 .post-navigation { 1247 margin: calc(3 * 1rem) calc(2 * (100vw / 12)); 1248 max-width: calc(6 * (100vw / 12)); 1249 } 1250 } 1251 1252 @media only screen and (min-width: 1168px) { 1253 .post-navigation { 1254 margin: calc(3 * 1rem) 0; 1255 max-width: 100%; 1256 } 1257 } 1258 1161 1259 .post-navigation .nav-links { 1162 1260 margin: 0 1rem; … … 1164 1262 display: flex; 1165 1263 flex-direction: column; 1264 } 1265