Modern Business: Add styling for the Header block

This commit is contained in:
Danny Dudzic 2019-03-22 02:00:58 +01:00
parent 6ff51bdefe
commit 78aeb9f872
4 changed files with 157 additions and 0 deletions

View file

@ -0,0 +1,57 @@
/* !Site Builder styles */
.entry .entry-content {
.site-builder__header {
color: $color__text-light;
display: flex;
flex-direction: column;
max-width: 100%;
text-align: center;
}
// Site title
.site-builder__title {
color: $color__text-main;
font-family: $font__heading;
font-weight: 700;
font-size: $font__size-md;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0;
line-height: $font__line-height-heading;
margin: 0;
order: 2;
a {
color: $color__text-main;
text-decoration: none;
&:link,
&:visited {
color: $color__text-main;
}
&:hover {
color: $color__text-hover;
}
}
@include media(tablet) {}
&:not(:empty) + .site-description:not(:empty):before {
margin: 0 0.2em;
}
}
// Site description
.site-builder__description {
color: $color__text-main;
font-size: $font__size-xs;
font-weight: 300;
margin: 0 0 calc(0.5 * #{$size__spacing-unit});
order: 1;
}
}

View file

@ -4511,6 +4511,54 @@ body.page .main-navigation {
color: #FFF;
}
/* Site Builder */
/* !Site Builder styles */
.entry .entry-content .site-builder__header {
color: #686868;
display: flex;
flex-direction: column;
max-width: 100%;
text-align: center;
}
.entry .entry-content .site-builder__title {
color: #181818;
font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-weight: 700;
font-size: 1.125em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0;
line-height: 1.2;
margin: 0;
order: 2;
}
.entry .entry-content .site-builder__title a {
color: #181818;
text-decoration: none;
}
.entry .entry-content .site-builder__title a:link, .entry .entry-content .site-builder__title a:visited {
color: #181818;
}
.entry .entry-content .site-builder__title a:hover {
color: #4a4a4a;
}
.entry .entry-content .site-builder__title:not(:empty) + .site-description:not(:empty):before {
margin: 0 0.2em;
}
.entry .entry-content .site-builder__description {
color: #181818;
font-size: 0.71111em;
font-weight: 300;
margin: 0 0 calc(0.5 * 1rem);
order: 1;
}
/* Media */
.page-content .wp-smiley,
.entry-content .wp-smiley,

View file

@ -4523,6 +4523,54 @@ body.page .main-navigation {
color: #FFF;
}
/* Site Builder */
/* !Site Builder styles */
.entry .entry-content .site-builder__header {
color: #686868;
display: flex;
flex-direction: column;
max-width: 100%;
text-align: center;
}
.entry .entry-content .site-builder__title {
color: #181818;
font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-weight: 700;
font-size: 1.125em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0;
line-height: 1.2;
margin: 0;
order: 2;
}
.entry .entry-content .site-builder__title a {
color: #181818;
text-decoration: none;
}
.entry .entry-content .site-builder__title a:link, .entry .entry-content .site-builder__title a:visited {
color: #181818;
}
.entry .entry-content .site-builder__title a:hover {
color: #4a4a4a;
}
.entry .entry-content .site-builder__title:not(:empty) + .site-description:not(:empty):before {
margin: 0 0.2em;
}
.entry .entry-content .site-builder__description {
color: #181818;
font-size: 0.71111em;
font-weight: 300;
margin: 0 0 calc(0.5 * 1rem);
order: 1;
}
/* Media */
.page-content .wp-smiley,
.entry-content .wp-smiley,

View file

@ -105,6 +105,10 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
@import "sass/blocks/blocks";
/* Site Builder */
@import "sass/blocks/site-builder";
/* Media */
@import "sass/media/media";