-
Notifications
You must be signed in to change notification settings - Fork 13
fix: replace hardcoded css with vars #727
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
Changes from all commits
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| .announcement-bar { | ||
| width: 100%; | ||
| min-height: 40px; | ||
| min-height: var(--rs-space-10); | ||
| padding: var(--rs-space-3) var(--rs-space-7); | ||
| } | ||
|
|
||
|
|
@@ -36,8 +36,8 @@ | |
|
|
||
| .icon, | ||
| .icon > svg { | ||
| min-height: 16px; | ||
| min-width: 16px; | ||
| min-height: var(--rs-space-5); | ||
|
Member
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. it will be better to use font-size here
Contributor
Author
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. As discussed with design, we can keep this as it is for now. |
||
| min-width: var(--rs-space-5); | ||
| } | ||
|
|
||
| .action-btn { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,4 +68,4 @@ | |
| .icon { | ||
| width: var(--rs-space-5); | ||
| height: var(--rs-space-5); | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,46 +6,47 @@ | |
| user-select: none; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .sliderControl { | ||
| display: flex; | ||
| align-items: center; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .sliderRange { | ||
| position: absolute; | ||
| height: 100%; | ||
| border-radius: var(--rs-radius-full); | ||
| background: transparent; | ||
| } | ||
|
|
||
| .sliderTrack { | ||
| position: relative; | ||
| height: 12px; | ||
| height: var(--rs-space-4); | ||
| width: 100%; | ||
| flex-grow: 1; | ||
| border-radius: var(--rs-radius-3); | ||
| } | ||
|
|
||
| .hueTrack { | ||
| background: linear-gradient( | ||
| 90deg, | ||
| #ff0000, | ||
| #ffff00, | ||
| #00ff00, | ||
| #00ffff, | ||
| #0000ff, | ||
| #ff00ff, | ||
| #ff0000 | ||
| ); | ||
| background: linear-gradient(90deg, | ||
| #ff0000, | ||
| #ffff00, | ||
| #00ff00, | ||
| #00ffff, | ||
| #0000ff, | ||
| #ff00ff, | ||
| #ff0000); | ||
| } | ||
|
|
||
| .sliderThumb { | ||
| position: absolute; | ||
| display: block; | ||
| height: 12px; | ||
| width: 12px; | ||
| height: var(--rs-space-4); | ||
| width: var(--rs-space-4); | ||
| border-radius: var(--rs-radius-full); | ||
| border: 3px solid var(--rs-color-foreground-base-emphasis); | ||
| filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.02)) | ||
| drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.06)); | ||
| filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.02)) drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.06)); | ||
| } | ||
|
|
||
| .sliderThumb:focus-visible { | ||
|
|
@@ -58,21 +59,20 @@ | |
| } | ||
|
|
||
| .alphaTrack { | ||
| --track-checker-size: 12px; | ||
| --track-checker-size: var(--rs-space-4); | ||
| background-image: | ||
| linear-gradient(45deg, #ddd 25%, transparent 25%), | ||
paanSinghCoder marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| linear-gradient(-45deg, #ddd 25%, transparent 25%), | ||
| linear-gradient(45deg, transparent 75%, #ddd 75%), | ||
| linear-gradient(-45deg, transparent 75%, #ddd 75%); | ||
| background-size: var(--track-checker-size, 8px) | ||
| var(--track-checker-size, 12px); | ||
| background-size: var(--track-checker-size, 8px) var(--track-checker-size, 12px); | ||
| background-position: | ||
| 0 0, | ||
| 0 calc(var(--track-checker-size, 12px) / 2), | ||
| calc(var(--track-checker-size, 12px) / 2) | ||
| calc(var(--track-checker-size, 12px) / -2), | ||
| calc(var(--track-checker-size, 12px) / 2) calc(var(--track-checker-size, 12px) / -2), | ||
| calc(var(--track-checker-size, 12px) / -2) 0px; | ||
|
Comment on lines
+68
to
73
Contributor
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. Unify checker-size fallbacks to avoid distorted tiles. Line 68 uses Suggested fix .alphaTrack {
- --track-checker-size: var(--rs-space-4);
+ --track-checker-size: var(--rs-space-4, 12px);
@@
- background-size: var(--track-checker-size, 8px) var(--track-checker-size, 12px);
+ background-size: var(--track-checker-size) var(--track-checker-size);
@@
- 0 calc(var(--track-checker-size, 12px) / 2),
- calc(var(--track-checker-size, 12px) / 2) calc(var(--track-checker-size, 12px) / -2),
- calc(var(--track-checker-size, 12px) / -2) 0px;
+ 0 calc(var(--track-checker-size) / 2),
+ calc(var(--track-checker-size) / 2) calc(var(--track-checker-size) / -2),
+ calc(var(--track-checker-size) / -2) 0px;
}🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| .alphaTrackGradient { | ||
| position: absolute; | ||
| inset: 0; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.