-
Notifications
You must be signed in to change notification settings - Fork 3
[Varya] Refine quote and pullquote block styles #32
Changes from 9 commits
0b2f1ee
e07915f
2e7f749
089166f
9632683
0a34475
1cd14d6
32e029b
8ae324d
22649b5
ec23d8a
6ff06e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ body { | |
/* 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; | ||
/* Colors */ | ||
--global--color-primary: #000000; | ||
--global--color-primary-hover: #A36265; | ||
|
@@ -125,16 +125,18 @@ body { | |
--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); | ||
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 added two variables here, not entirely sure if they're necessary. 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. Hmmm, I like the |
||
--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)); | ||
|
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)); | ||
|
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); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@mixin quote-variables() { | ||
--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); | ||
} |
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.
Does line-height need to be connected to a variable here?
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.
It should be.
I connected it to
--global--line-height-body
, which is 1.7 even though the comps suggest 1.6 for this specific element.We can revisit this after #37.