Coutoire: Removing unneeded overrides, recompile RTL styles
This commit is contained in:
parent
049be2fe60
commit
c384dcf18f
8 changed files with 9 additions and 319 deletions
|
@ -588,14 +588,14 @@ html {
|
|||
* HTML resets
|
||||
*/
|
||||
html {
|
||||
font-size: 15px;
|
||||
font-size: 14.16667px;
|
||||
font-family: "Work Sans", sans-serif;
|
||||
line-height: 1.78;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
html {
|
||||
font-size: 18px;
|
||||
font-size: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2959,7 +2959,7 @@ img#wpstats {
|
|||
|
||||
.wp-block-group.alignwide .alignwide,
|
||||
.wp-block-group.alignwide .alignfull,
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery {
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery, .entry-header {
|
||||
margin-right: calc( -0.25 * ( 100vw - 100% ));
|
||||
margin-left: calc( -0.25 * ( 100vw - 100% ));
|
||||
width: calc( 100% + (0.25 * 2) * ( 100vw - 100% ));
|
||||
|
@ -2969,7 +2969,7 @@ img#wpstats {
|
|||
@media only screen and (min-width: 560px) {
|
||||
.wp-block-group.alignwide .alignwide,
|
||||
.wp-block-group.alignwide .alignfull,
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery {
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery, .entry-header {
|
||||
margin-right: calc( -0.25 * ( 100vw - calc( 560px - 32px) ));
|
||||
margin-left: calc( -0.25 * ( 100vw - calc( 560px - 32px) ));
|
||||
width: calc( calc( 560px - 32px) + (0.25 * 2) * ( 100vw - calc( 560px - 32px) ));
|
||||
|
@ -2980,7 +2980,7 @@ img#wpstats {
|
|||
@media only screen and (min-width: 640px) {
|
||||
.wp-block-group.alignwide .alignwide,
|
||||
.wp-block-group.alignwide .alignfull,
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery {
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery, .entry-header {
|
||||
margin-right: calc( -0.25 * ( 100vw - calc( 640px - 32px) ));
|
||||
margin-left: calc( -0.25 * ( 100vw - calc( 640px - 32px) ));
|
||||
width: calc( calc( 640px - 32px) + (0.25 * 2) * ( 100vw - calc( 640px - 32px) ));
|
||||
|
@ -2991,7 +2991,7 @@ img#wpstats {
|
|||
@media only screen and (min-width: 782px) {
|
||||
.wp-block-group.alignwide .alignwide,
|
||||
.wp-block-group.alignwide .alignfull,
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery {
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery, .entry-header {
|
||||
margin-right: calc( -0.25 * ( 100vw - calc( 782px - 32px) ));
|
||||
margin-left: calc( -0.25 * ( 100vw - calc( 782px - 32px) ));
|
||||
width: calc( calc( 782px - 32px) + (0.25 * 2) * ( 100vw - calc( 782px - 32px) ));
|
||||
|
@ -3002,7 +3002,7 @@ img#wpstats {
|
|||
@media only screen and (min-width: 1024px) {
|
||||
.wp-block-group.alignwide .alignwide,
|
||||
.wp-block-group.alignwide .alignfull,
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery {
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery, .entry-header {
|
||||
margin-right: -128px;
|
||||
margin-left: -128px;
|
||||
width: calc(calc( 782px - 32px) + 256px);
|
||||
|
@ -3013,7 +3013,7 @@ img#wpstats {
|
|||
@media only screen and (min-width: 1280px) {
|
||||
.wp-block-group.alignwide .alignwide,
|
||||
.wp-block-group.alignwide .alignfull,
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery {
|
||||
.wp-block-group.alignfull .alignwide, .entry-content > .alignwide, .entry-content > .alignwide.wp-block-jetpack-gif, .entry-content > .alignwide.wp-block-jetpack-tiled-gallery, .entry-header {
|
||||
margin-right: -128px;
|
||||
margin-left: -128px;
|
||||
width: calc(calc( 782px - 32px) + 256px);
|
||||
|
@ -3215,7 +3215,7 @@ img#wpstats {
|
|||
* Elements
|
||||
*/
|
||||
html {
|
||||
font-size: 18px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
body {
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying post archives and search results
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header responsive-max-width">
|
||||
<?php
|
||||
if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'varia' ) );
|
||||
}
|
||||
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
|
||||
?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php varia_post_thumbnail(); ?>
|
||||
|
||||
<div class="entry-content responsive-max-width">
|
||||
<?php the_excerpt(); ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer responsive-max-width">
|
||||
<?php varia_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-${ID} -->
|
|
@ -1,53 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying a message that posts cannot be found
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<section class="no-results not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php _e( 'Nothing Found', 'varia' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<?php
|
||||
if ( is_home() && current_user_can( 'publish_posts' ) ) :
|
||||
|
||||
printf(
|
||||
'<p>' . wp_kses(
|
||||
/* translators: 1: link to WP admin new post page. */
|
||||
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'varia' ),
|
||||
array(
|
||||
'a' => array(
|
||||
'href' => array(),
|
||||
),
|
||||
)
|
||||
) . '</p>',
|
||||
esc_url( admin_url( 'post-new.php' ) )
|
||||
);
|
||||
|
||||
elseif ( is_search() ) :
|
||||
?>
|
||||
|
||||
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'varia' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
else :
|
||||
?>
|
||||
|
||||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'varia' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
endif;
|
||||
?>
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .no-results -->
|
|
@ -1,55 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying page content in page.php
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
|
||||
</header>
|
||||
|
||||
<div class="entry-content responsive-max-width">
|
||||
<?php
|
||||
the_content();
|
||||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'varia' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php if ( get_edit_post_link() ) : ?>
|
||||
<footer class="entry-footer responsive-max-width">
|
||||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'varia' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">',
|
||||
'</span>'
|
||||
);
|
||||
?>
|
||||
</footer><!-- .entry-footer -->
|
||||
<?php endif; ?>
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
|
@ -1,61 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying posts
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
<?php if ( ! is_page() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php varia_entry_meta(); ?>
|
||||
</div><!-- .meta-info -->
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
|
||||
<?php varia_post_thumbnail(); ?>
|
||||
|
||||
<div class="entry-content responsive-max-width">
|
||||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'varia' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
)
|
||||
);
|
||||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'varia' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer responsive-max-width">
|
||||
<?php varia_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
|
||||
<?php if ( ! is_singular( 'attachment' ) ) : ?>
|
||||
<?php get_template_part( 'template-parts/post/author', 'bio' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</article><!-- #post-${ID} -->
|
|
@ -1,59 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying posts
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header alignfull">
|
||||
<?php
|
||||
if ( is_sticky() && is_home() && ! is_paged() ) {
|
||||
printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'varia' ) );
|
||||
}
|
||||
if ( is_singular() ) :
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
else :
|
||||
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
|
||||
endif;
|
||||
?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php varia_post_thumbnail(); ?>
|
||||
|
||||
<div class="entry-content responsive-max-width">
|
||||
<?php
|
||||
the_content(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'varia' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
)
|
||||
);
|
||||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'varia' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer responsive-max-width">
|
||||
<?php varia_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-${ID} -->
|
|
@ -1,17 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Displays the post header
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
|
||||
<?php if ( ! is_page() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php varia_entry_footer(); ?>
|
||||
</div><!-- .meta-info -->
|
||||
<?php endif; ?>
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Displays header site branding
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Varia
|
||||
* @since 1.0.0
|
||||
*/
|
||||
?>
|
||||
<div class="site-branding">
|
||||
|
||||
<?php if ( has_custom_logo() ) : ?>
|
||||
<div class="site-logo"><?php the_custom_logo(); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php $blog_info = get_bloginfo( 'name' ); ?>
|
||||
<?php if ( ! empty( $blog_info ) ) : ?>
|
||||
<?php if ( is_front_page() && is_home() ) : ?>
|
||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<?php else : ?>
|
||||
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
if ( $description || is_customize_preview() ) :
|
||||
?>
|
||||
<p class="site-description">
|
||||
<?php echo $description; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-branding -->
|
Loading…
Reference in a new issue