Skip to content

Commit

Permalink
Merge pull request #2503 from Automattic/update/varia-pull-quote
Browse files Browse the repository at this point in the history
Varia: Simplify pullquote styles
  • Loading branch information
scruffian authored Sep 24, 2020
2 parents 068aa60 + 709fbc5 commit 47cd06b
Show file tree
Hide file tree
Showing 113 changed files with 764 additions and 2,987 deletions.
2 changes: 1 addition & 1 deletion alves/package-lock.json

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

2 changes: 1 addition & 1 deletion alves/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alves",
"version": "1.4.4",
"version": "1.4.5",
"description": "Alves",
"bugs": {
"url": "https://github.com/Automattic/themes/issues"
Expand Down
2 changes: 1 addition & 1 deletion alves/sass/style-child-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://automattic.com/
Description: Convincing design for your charity or organization’s online presence. Highlight your actions, causes and projects, Alves is versatile enough to be your personal site too.
Requires at least: WordPress 4.9.6
Version: 1.4.4
Version: 1.4.5
License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia
Expand Down
45 changes: 11 additions & 34 deletions alves/style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -837,32 +837,25 @@ p.has-background:not(.has-background-background-color) a {
}

.wp-block-pullquote {
padding: calc( 3 * 16px) 0;
margin-left: 0;
margin-right: 0;
text-align: center;
border-top-color: #3E7D98;
border-top-width: 4px;
border-bottom-color: #3E7D98;
border-bottom-width: 4px;
color: #394d55;
/**
* Block Options
*/
}

.wp-block-pullquote blockquote {
padding-left: 0;
}

.wp-block-pullquote p {
.wp-block-pullquote blockquote p {
font-family: "Lora", Georgia, sans-serif;
font-family: var(--font-headings, "Lora", Georgia, sans-serif);
font-size: 1.8em;
font-size: 1.8rem;
letter-spacing: normal;
line-height: 1.125;
}

.wp-block-pullquote.is-style-solid-color blockquote p {
font-size: 1.8rem;
}

.wp-block-pullquote a {
color: currentColor;
}
Expand All @@ -871,42 +864,26 @@ p.has-background:not(.has-background-background-color) a {
.wp-block-pullquote cite,
.wp-block-pullquote footer {
color: #4d6974;
font-size: 1.04167em;
font-size: 1.04167rem;
letter-spacing: normal;
}

.wp-block-pullquote:not(.is-style-solid-color) {
background: none;
.wp-block-pullquote blockquote {
padding-left: 0;
}

.wp-block-pullquote.is-style-solid-color {
background-color: #3E7D98;
color: #ffffff;
}

.wp-block-pullquote.is-style-solid-color.alignleft blockquote,
.wp-block-pullquote.is-style-solid-color.alignright blockquote {
padding-left: 16px;
padding-right: 16px;
max-width: inherit;
}

.wp-block-pullquote.is-style-solid-color blockquote {
padding-left: 0;
}

.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation,
.wp-block-pullquote.is-style-solid-color cite,
.wp-block-pullquote.is-style-solid-color footer {
color: currentColor;
}

.wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote {
margin-left: auto;
margin-right: auto;
.wp-block-pullquote.is-style-solid-color:not(.has-background) {
background-color: #3E7D98;
}

.wp-block-quote {
Expand Down
70 changes: 13 additions & 57 deletions alves/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Author: Automattic
Author URI: https://automattic.com/
Description: Convincing design for your charity or organization’s online presence. Highlight your actions, causes and projects, Alves is versatile enough to be your personal site too.
Requires at least: WordPress 4.9.6
Version: 1.4.4
Version: 1.4.5
License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia
Expand Down Expand Up @@ -2082,28 +2082,25 @@ p.has-background {
}

.wp-block-pullquote {
padding: calc( 3 * 16px) 0;
margin-right: 0;
margin-left: 0;
text-align: center;
border-top-color: #3E7D98;
border-top-width: 4px;
border-bottom-color: #3E7D98;
border-bottom-width: 4px;
color: #394d55;
/**
* Block Options
*/
}

.wp-block-pullquote p {
.wp-block-pullquote blockquote p {
font-family: "Lora", Georgia, sans-serif;
font-family: var(--font-headings, "Lora", Georgia, sans-serif);
font-size: 1.8rem;
letter-spacing: normal;
line-height: 1.125;
}

.wp-block-pullquote.is-style-solid-color blockquote p {
font-size: 1.8rem;
}

.wp-block-pullquote a {
color: currentColor;
}
Expand All @@ -2114,31 +2111,16 @@ p.has-background {
color: #4d6974;
font-size: 1.04167rem;
letter-spacing: normal;
display: block;
}

.wp-block-pullquote:not(.is-style-solid-color) {
background: none;
}

.wp-block-pullquote:not(.is-style-solid-color) blockquote {
.wp-block-pullquote blockquote {
padding-right: 0;
}

.wp-block-pullquote.is-style-default.alignleft blockquote > *, .wp-block-pullquote.is-style-default.aligncenter blockquote > *, .wp-block-pullquote.is-style-default.alignright blockquote > * {
text-align: center;
}

.wp-block-pullquote.is-style-solid-color {
color: #ffffff;
}

.wp-block-pullquote.is-style-solid-color blockquote {
padding-right: 16px;
padding-left: 16px;
max-width: inherit;
}

.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation,
.wp-block-pullquote.is-style-solid-color cite,
.wp-block-pullquote.is-style-solid-color footer {
Expand All @@ -2149,14 +2131,6 @@ p.has-background {
background-color: #3E7D98;
}

.wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote {
margin-right: auto;
margin-left: auto;
}

.wp-block-quote {
border-right-color: #3E7D98;
margin: 32px 0;
Expand Down Expand Up @@ -3610,10 +3584,7 @@ img#wpstats {
* Page Layout Styles & Repsonsive Styles
*/
/* Responsive width-content overrides */
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote, .wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.entry-content > *:not(.wp-block-button),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
max-width: 100%;
Expand All @@ -3622,54 +3593,39 @@ img#wpstats {
}

@media only screen and (min-width: 560px) {
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote, .wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.entry-content > *:not(.wp-block-button),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
max-width: calc( 560px - 32px);
}
}

@media only screen and (min-width: 640px) {
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote, .wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.entry-content > *:not(.wp-block-button),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
max-width: calc( 640px - 32px);
}
}

@media only screen and (min-width: 782px) {
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote, .wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.entry-content > *:not(.wp-block-button),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
max-width: calc( 782px - 32px);
}
}

@media only screen and (min-width: 1024px) {
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote, .wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.entry-content > *:not(.wp-block-button),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
max-width: calc( 782px - 32px);
}
}

@media only screen and (min-width: 1280px) {
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote, .wp-block-pullquote.alignwide > p,
.wp-block-pullquote.alignfull > p,
.wp-block-pullquote.alignwide blockquote,
.wp-block-pullquote.alignfull blockquote, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.responsive-max-width, .entry-content > .wp-block-button.aligncenter, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.wp-block-button):not(.entry-attachment),
.entry-content > *:not(.wp-block-button),
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
max-width: calc( 782px - 32px);
Expand Down
Loading

0 comments on commit 47cd06b

Please sign in to comment.