Skip to content

Commit

Permalink
Sophisticated Business: Update quote block border styles, to work bet…
Browse files Browse the repository at this point in the history
…ter with the new styles planned for Gutenberg 5.2. See #594.
  • Loading branch information
laurelfulford committed Feb 14, 2019
1 parent 61843b5 commit 89c1782
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 73 deletions.
3 changes: 2 additions & 1 deletion sophisticated-business/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@

&:not(.is-large),
&:not(.is-style-large) {
border-left: 2px solid $color__link;
border-color: $color__link;
border-width: 2px;
padding-top: 0;
padding-bottom: 0;
}
Expand Down
3 changes: 2 additions & 1 deletion sophisticated-business/style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ figcaption,

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

.wp-block-quote.is-large, .wp-block-quote.is-style-large {
Expand Down
3 changes: 2 additions & 1 deletion sophisticated-business/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ figcaption,
.wp-block-quote {

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

&.is-large,
Expand Down
71 changes: 2 additions & 69 deletions sophisticated-business/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1239,17 +1239,6 @@ body.page .main-navigation {
margin-left: calc( .25 * 1rem);
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu {
display: block;
right: 0;
margin-top: 0;
opacity: 1;
width: auto;
min-width: 100%;
/* Non-mobile position */
/* Nested sub-menu dashes */
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu {
display: block;
right: 0;
Expand All @@ -1262,21 +1251,6 @@ body.page .main-navigation {
}

@media only screen and (min-width: 768px) {
.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu {
display: block;
margin-top: 0;
opacity: 1;
position: absolute;
right: 0;
left: auto;
top: auto;
bottom: auto;
height: auto;
min-width: -moz-max-content;
min-width: -webkit-max-content;
min-width: max-content;
transform: none;
}
.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu {
display: block;
margin-top: 0;
Expand All @@ -1294,13 +1268,6 @@ body.page .main-navigation {
}
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu.hidden-links {
right: 0;
width: 100%;
display: table;
position: absolute;
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu.hidden-links {
right: 0;
width: 100%;
Expand All @@ -1309,12 +1276,6 @@ body.page .main-navigation {
}

@media only screen and (min-width: 768px) {
.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu.hidden-links {
left: 0;
right: auto;
display: block;
width: max-content;
}
.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu.hidden-links {
left: 0;
right: auto;
Expand All @@ -1323,24 +1284,10 @@ body.page .main-navigation {
}
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .submenu-expand {
display: none;
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .submenu-expand {
display: none;
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .sub-menu {
display: block;
margin-top: inherit;
position: relative;
width: 100%;
right: 0;
opacity: 1;
/* Non-mobile position */
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .sub-menu {
display: block;
margin-top: inherit;
Expand All @@ -1352,31 +1299,16 @@ body.page .main-navigation {
}

@media only screen and (min-width: 768px) {
.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .sub-menu {
float: none;
max-width: 100%;
}
.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .sub-menu {
float: none;
max-width: 100%;
}
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .sub-menu {
counter-reset: submenu;
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .sub-menu {
counter-reset: submenu;
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .sub-menu > li > a::before {
font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-weight: normal;
content: "– " counters(submenu, "– ", none);
counter-increment: submenu;
}

.main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .sub-menu > li > a::before {
font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-weight: normal;
Expand Down Expand Up @@ -3850,7 +3782,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 #caab57;
border-color: #caab57;
border-width: 2px;
padding-top: 0;
padding-bottom: 0;
}
Expand Down
3 changes: 2 additions & 1 deletion sophisticated-business/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3862,7 +3862,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-left: 2px solid #caab57;
border-color: #caab57;
border-width: 2px;
padding-top: 0;
padding-bottom: 0;
}
Expand Down

0 comments on commit 89c1782

Please sign in to comment.