This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
[Varya] Refine quote and pullquote block styles #32
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0b2f1ee
Adjust quote and pullquote variables and associated styles
jffng e07915f
Remove text transform from pullquote cite
jffng 2e7f749
Check in compiled stylesheets
jffng 089166f
Adjust pullquote padding
jffng 9632683
Merge branch 'master' into update/quote-styles
kjellr 0a34475
Match quote editor styles to frontend
jffng 1cd14d6
Merge branch 'master' into update/quote-styles
jffng 32e029b
Address pullquote editor and frontend inconsistency
jffng 8ae324d
Merge branch 'update/quote-styles' of github.com:Automattic/themes-wo…
jffng 22649b5
Update line heights in quote block
jffng ec23d8a
Restore right aligned border
jffng 6ff06e4
Change citations to use the xs font size.
kjellr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
/* Line Height */ | ||
--global--line-height-base: 1; | ||
--global--line-height-body: 1.7; | ||
--global--line-height-heading: 1.125; | ||
--global--line-height-heading: 1.3; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I adjusted the value of this global variable to match the H1 - H3 line height from the comps. The line heights for the headings overall need to be revisited in a follow-up PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Coool. Makes sense 👍 |
||
/* Colors */ | ||
--global--color-primary: #000000; | ||
--global--color-primary-hover: #A36265; | ||
|
@@ -125,16 +125,18 @@ | |
--list--font-family: var(--global--font-secondary); | ||
--definition-term--font-family: var(--global--font-primary); | ||
--pullquote--font-family: var(--global--font-primary); | ||
--pullquote--font-size: var(--heading--font-size-h4); | ||
--pullquote--border-width: 4px; | ||
--pullquote--color-border: var(--global--color-foreground); | ||
--pullquote--font-size: var(--heading--font-size-h2); | ||
--pullquote--font-style: italic; | ||
--pullquote--line-height: var(--global--line-height-heading); | ||
--pullquote--border-width: 0; | ||
--pullquote--color-border: transparent; | ||
--pullquote--color-foreground: var(--global--color-foreground); | ||
--pullquote--color-background: var(--global--color-background); | ||
--quote--border-color: var(--global--color-primary); | ||
--quote--border-width: 4px; | ||
--quote--font-family: var(--global--font-primary); | ||
--quote--font-size: var(--heading--font-size-h4); | ||
--quote--font-size-large: var(--heading--font-size-h3); | ||
--quote--border-color: var(--global--color-secondary); | ||
--quote--border-width: 1px; | ||
--quote--font-family: var(--global--font-secondary); | ||
--quote--font-size: var(--global--font-size-md); | ||
--quote--font-size-large: var(--global--font-size-lg); | ||
--separator--border-color: var(--global--color-border); | ||
--separator--height: 2px; | ||
--separator--width: calc(6 * var(--global--spacing-horizontal)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
@mixin pullquote-variables() { | ||
--pullquote--font-family: var(--global--font-primary); | ||
--pullquote--font-size: var(--heading--font-size-h4); | ||
--pullquote--border-width: 4px; // half of $baseline-unit (8px) | ||
--pullquote--color-border: var(--global--color-foreground); | ||
--pullquote--font-size: var(--heading--font-size-h2); | ||
--pullquote--font-style: italic; | ||
--pullquote--line-height: var(--global--line-height-heading); | ||
--pullquote--border-width: 0; | ||
--pullquote--color-border: transparent; | ||
--pullquote--color-foreground: var(--global--color-foreground); | ||
--pullquote--color-background: var(--global--color-background); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added two variables here, not entirely sure if they're necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I like the
line-height
variable. The italic one might be useful too, but just need to be careful that it doesn’t interfere with any inline-italic rules set by the users (which may be a problem already).