mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
Move layout-related code to separate component files
This commit is contained in:
parent
3ebc219416
commit
b08effbe8b
|
@ -10,7 +10,6 @@ if ( ! have_posts() ) {
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<div id="primary" class="content-area">
|
|
||||||
<main id="main" class="site-main" role="main">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
@ -46,7 +45,6 @@ get_header(); ?>
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
</div><!-- #primary -->
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|
|
@ -22,4 +22,6 @@
|
||||||
@import "about";
|
@import "about";
|
||||||
@import "entry-content";
|
@import "entry-content";
|
||||||
@import "page";
|
@import "page";
|
||||||
|
@import "site-content";
|
||||||
|
@import "site-title";
|
||||||
@import "wporg-header";
|
@import "wporg-header";
|
||||||
|
|
|
@ -1,19 +1,4 @@
|
||||||
body.page:not(.home) {
|
body.page:not(.home) {
|
||||||
.site-title a {
|
|
||||||
color: #fff;
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:active {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-main {
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 0 ms( 2 );
|
|
||||||
max-width: calc( #{ $size__content-width } + #{ ms( 2 ) * 2 } );
|
|
||||||
}
|
|
||||||
|
|
||||||
.entry-header {
|
.entry-header {
|
||||||
background: none;
|
background: none;
|
||||||
|
|
14
themes/wporg-5ftf/css/components/_site-content.scss
Normal file
14
themes/wporg-5ftf/css/components/_site-content.scss
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
.site-content {
|
||||||
|
|
||||||
|
body:not(.home) & {
|
||||||
|
margin: auto;
|
||||||
|
max-width: none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.site-main {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 ms( 2 );
|
||||||
|
max-width: calc( #{ $size__content-width } + #{ ms( 2 ) * 2 } );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
15
themes/wporg-5ftf/css/components/_site-title.scss
Normal file
15
themes/wporg-5ftf/css/components/_site-title.scss
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
.site-title {
|
||||||
|
|
||||||
|
body:not(.home) & {
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:active {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue