Update themes

This commit is contained in:
Oliver Davies 2019-05-08 08:07:01 +01:00
parent e00f87f2f5
commit 168d1a5ee7
98 changed files with 6532 additions and 2223 deletions

View file

@ -160,7 +160,7 @@
@include button-transition;
border: none;
font-size: $font__size-sm;
font-family: $font__heading;
@include font-family( $font__heading );
line-height: $font__line-height-heading;
box-sizing: border-box;
font-weight: bold;
@ -230,7 +230,7 @@
li {
color: $color__text-light;
font-family: $font__heading;
@include font-family( $font__heading );
font-size: calc(#{$font__size_base} * #{$font__size-ratio});
font-weight: bold;
line-height: $font__line-height-heading;
@ -299,7 +299,7 @@
//! Verse
.wp-block-verse {
font-family: $font__body;
@include font-family( $font__body );
font-size: $font__size_base;
line-height: 1.8;
}
@ -307,7 +307,7 @@
//! Paragraphs
.has-drop-cap {
&:not(:focus):first-letter {
font-family: $font__heading;
@include font-family( $font__heading );
font-size: $font__size-xxxl;
line-height: 1;
font-weight: bold;
@ -348,7 +348,7 @@
cite {
display: inline-block;
font-family: $font__heading;
@include font-family( $font__heading );
line-height: 1.6;
text-transform: none;
color: $color__text-light;
@ -452,7 +452,8 @@
&:not(.is-large),
&:not(.is-style-large) {
border-left: 2px solid $color__link;
border-width: 2px;
border-color: $color__link;
padding-top: 0;
padding-bottom: 0;
}
@ -512,7 +513,7 @@
}
.aligncenter {
@include postContentMaxWidth();
@include media(tablet) {
@ -559,7 +560,7 @@
.wp-block-cover-image-text,
.wp-block-cover-text,
h2 {
font-family: $font__heading;
@include font-family( $font__heading );
font-size: $font__size-lg;
font-weight: bold;
line-height: 1.25;
@ -624,7 +625,7 @@
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
font-size: $font__size-xs;
font-family: $font__heading;
@include font-family( $font__heading );
line-height: $font__line-height-pre;
margin: 0;
padding: ( $size__spacing-unit * .5 );
@ -690,7 +691,7 @@
//! File
.wp-block-file {
font-family: $font__heading;
@include font-family( $font__heading );
.wp-block-file__button {
display: table;
@ -699,7 +700,7 @@
border-radius: 5px;
background: $color__background-button;
font-size: $font__size-base;
font-family: $font__heading;
@include font-family( $font__heading );
line-height: $font__line-height-heading;
text-decoration: none;
font-weight: bold;
@ -733,46 +734,29 @@
code {
font-size: $font__size-md;
white-space: pre-wrap;
word-break: break-word;
word-break: break-word;
}
}
//! Columns
.wp-block-columns {
&.alignfull {
padding-left: $size__spacing-unit;
padding-right: $size__spacing-unit;
}
.wp-block-column > * {
@include media(mobile) {
flex-wrap: nowrap;
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
@include media(tablet) {
.wp-block-column > * {
flex-wrap: nowrap;
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
&[class*='has-'] > * {
margin-right: $size__spacing-unit;
&:last-child {
margin-right: 0;
}
}
&.alignfull,
&.alignfull .wp-block-column {
padding-left: calc(2 * #{$size__spacing-unit});
padding-right: calc(2 * #{$size__spacing-unit});
.wp-block-column:not(:first-child) {
margin-left: 32px;
}
}
}
@ -781,7 +765,7 @@
.wp-block-latest-comments {
.wp-block-latest-comments__comment-meta {
font-family: $font__heading;
@include font-family( $font__heading );
font-weight: bold;
.wp-block-latest-comments__comment-date {
@ -837,14 +821,14 @@
// Use white text against these backgrounds by default.
color: $color__background-body;
p,
h1,
h2,
h3,
h4,
h5,
h6,
a {
> p,
> h1,
> h2,
> h3,
> h4,
> h5,
> h6,
> a {
color: $color__background-body;
}
}
@ -853,14 +837,14 @@
color: $color__text-main;
// Use dark gray text against this background by default.
p,
h1,
h2,
h3,
h4,
h5,
h6,
a {
> p,
> h1,
> h2,
> h3,
> h4,
> h5,
> h6,
> a {
color: $color__text-main;
}
}
@ -893,25 +877,25 @@
//! Custom foreground colors
.has-primary-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-primary-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-primary-color p {
.wp-block-pullquote.is-style-solid-color blockquote.has-primary-color > p {
color: $color__link;
}
.has-secondary-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color p {
.wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color > p {
color: $color__border-link-hover;
}
.has-dark-gray-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color p {
.wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color > p {
color: $color__text-main;
}
.has-light-gray-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color,
.wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color p {
.wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color > p {
color: $color__text-light;
}