Skip to content

Commit

Permalink
Calm Business: Update quote block border styles, to work better with …
Browse files Browse the repository at this point in the history
…the new styles planned for Gutenberg 5.2. See #594.
  • Loading branch information
laurelfulford committed Feb 14, 2019
1 parent cf54b2b commit aa993af
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion calm-business/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,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;
}
Expand Down
3 changes: 2 additions & 1 deletion calm-business/style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ figcaption,

/** === Blockquote === */
.wp-block-quote:not(.is-large):not(.is-style-large) {
border-left: 2px solid #8D6708;
border-width: 2px;
border-color: #8D6708;
}

.wp-block-quote.is-large, .wp-block-quote.is-style-large {
Expand Down
15 changes: 8 additions & 7 deletions calm-business/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ body {
background-color: $color__background-body;
font-weight: $font__weight_standard;
font-size: 1em;

.wp-block[data-align="full"] {
width: 100%;
}
Expand All @@ -32,7 +32,7 @@ body {
max-width: 80%;
margin: 0 10%;
}

.wp-block[data-align="wide"] {
width: 100%;
}
Expand Down Expand Up @@ -193,7 +193,7 @@ figcaption,
/** === Post Title === */

.editor-post-title__block {

margin: 0;
&:before {
width: $font__size-xxl;
Expand Down Expand Up @@ -391,7 +391,8 @@ figcaption,
.wp-block-quote {

&:not(.is-large):not(.is-style-large) {
border-left: 2px solid $color__link;
border-width: 2px;
border-color: $color__link;
}

&.is-large,
Expand Down Expand Up @@ -774,7 +775,7 @@ ul.wp-block-archives,
.wp-block-media-text {
background-color: $color__background-body-dark;
color: $color__text-light;

.editor-inner-blocks {
align-self: start;
padding-top: 32px;
Expand Down Expand Up @@ -809,7 +810,7 @@ ul.wp-block-archives,
display: block;
height: 2px;
margin: 1.46rem 0 1rem;
width: 20px;
width: 20px;
}
}
}
Expand Down Expand Up @@ -856,4 +857,4 @@ ul.wp-block-archives,
a {
color: inherit;
}
}
}
3 changes: 2 additions & 1 deletion calm-business/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3975,7 +3975,8 @@ body.page .main-navigation {
}

.entry .entry-content .wp-block-quote:not(.is-large), .entry .entry-content .wp-block-quote:not(.is-style-large) {
border-right: 2px solid #8D6708;
border-width: 2px;
border-color: #8D6708;
padding-top: 0;
padding-bottom: 0;
}
Expand Down
3 changes: 2 additions & 1 deletion calm-business/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa993af

Please sign in to comment.