-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Convert stylesheets to use css custom properties #2755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
edwardloveall
wants to merge
40
commits into
thoughtbot:main
Choose a base branch
from
edwardloveall:el-css-vars
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
5fa19db
Convert $base-timing to css custom property
edwardloveall cbf37df
Convert $base-duration to css custom property
edwardloveall 5085fd7
Introduce base-border-color-hover to avoid scss' color.mix
edwardloveall e757e0a
Convert $grey-1 to css custom property
edwardloveall 5cb4c4d
Convert $base-border-color to css custom property
edwardloveall e5fad83
Convert $base-border to css custom property
edwardloveall 1284c92
Convert flash colors to css custom properties
edwardloveall 8c6e768
Convert $focus-outline-offset to css custom property
edwardloveall 53c1346
Convert $focus-outline-color to css custom property
edwardloveall f6e9f70
Convert $focus-outline-width to css custom property
edwardloveall 0bf1be9
Convert $focus-outline to css custom property
edwardloveall 9765fd1
Introduce base-background-color-alt
edwardloveall e893cd7
Convert $grey-0 to css custom property
edwardloveall e8eb385
Convert $base-background-color to css custom property
edwardloveall 7ed4836
Introduce --action-color-active to avoid color-mix
edwardloveall a922f5c
Convert $action-color to css custom property
edwardloveall c456ccb
Convert $grey-7 to css custom property
edwardloveall d1513bf
Convert $base-font-color to css custom property
edwardloveall c3b440c
Convert $hint-grey to css custom property
edwardloveall 036323c
Convert $grey-5 to css custom property
edwardloveall 18ad946
Remove unused $grey-2 sass variable
edwardloveall d112b96
Introduce --danger-color-active to avoid color-mix
edwardloveall 5960ae8
Convert $red to css custom property, introduce --danger-color
edwardloveall f4c935c
Convert $blue to css custom property
edwardloveall 35bf9e1
Introduce --main-content-shadow to work around sass
edwardloveall c2d1fae
Rename grey-1 to grey-2
edwardloveall 9b05d1c
Reintroduce grey-1 to avoid color-mix
edwardloveall 79c5df9
Remove $black sass var
edwardloveall eb7244d
Convert $white to css custom property
edwardloveall 9311fc4
Convert $base-font-family to css custom property
edwardloveall 8b98efc
Convert $heading-font-family to css custom property
edwardloveall d3ac48c
Convert $base-font-size to css custom property
edwardloveall f987fb9
Convert $bold-font-weight to css custom property
edwardloveall c55a182
Convert (most of) $base-spacing to css custom property
edwardloveall b1ef87e
Convert $small-spacing to css custom property
edwardloveall b8a78b7
Convert $base-line-height to css custom property
edwardloveall bb8ea91
Convert $base-border-radius to css custom property
edwardloveall ab3dee4
Convert $heading-line-height to css custom property
edwardloveall 3630491
Convert $search-icon-size to css custom property
edwardloveall d94ecf2
Convert $navigation-link-padding to css custom property
edwardloveall 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -5,5 +5,5 @@ | |
| margin-right: auto; | ||
| max-width: 100rem; | ||
| min-height: 100vh; | ||
| padding: $base-spacing; | ||
| padding: var(--base-spacing); | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
This changed ever so slightly. There were two selectors that used
$action-coloras their base. This one mixes in 25%$blackand&:not(.link):hoverinbuttons.scssmixes in 20%$black. I went with the 20% in both places so we only had one "it's like$action-colorbut tinted" variable because button backgrounds are more prominant than text hovers.