-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mantine): remove a lot of custom style to get a vanilla style
- Loading branch information
1 parent
34f8056
commit 25cedec
Showing
30 changed files
with
210 additions
and
379 deletions.
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
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 was deleted.
Oops, something went wrong.
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,35 +1,10 @@ | ||
.root { | ||
padding: var(--mantine-spacing-sm); | ||
|
||
&:not(&[data-variant]) { | ||
/* TODO: Plasma Reset, validate if we need the border */ | ||
border-color: color-mix(in srgb, var(--alert-color), var(--alert-bg) 85%); | ||
} | ||
} | ||
|
||
.wrapper { | ||
gap: var(--mantine-spacing-sm); | ||
} | ||
|
||
.title { | ||
font-weight: 500; | ||
} | ||
|
||
.icon { | ||
width: 16px; | ||
height: 16px; | ||
margin-right: 0; | ||
} | ||
|
||
.message { | ||
@mixin light { | ||
color: var(--mantine-color-gray-7); | ||
|
||
&:where([data-variant='filled']) { | ||
color: var(--alert-color); | ||
} | ||
} | ||
|
||
&:where([data-variant='white']) { | ||
color: var(--mantine-color-black); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 +1,3 @@ | ||
.root { | ||
text-transform: none; | ||
padding: var(--mantine-spacing-xxs) var(--mantine-spacing-xs); | ||
font-weight: 500; | ||
} |
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,20 +1,3 @@ | ||
.label { | ||
font-size: var(--mantine-font-size-sm); | ||
font-weight: 300; | ||
} | ||
|
||
.input { | ||
&[data-indeterminate] { | ||
background-color: var(--mantine-color-pureWhite); | ||
border-color: var(--mantine-color-gray-4); | ||
|
||
& + svg { | ||
color: var(--mantine-color-gray-6); | ||
} | ||
} | ||
|
||
&[readonly] { | ||
background-color: var(--mantine-color-gray-2); | ||
border-color: var(--mantine-color-gray-2); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,10 +1,4 @@ | ||
.labelWrapper { | ||
display: flex; | ||
align-items: flex-start; | ||
|
||
&:not([data-disabled]) { | ||
.label { | ||
color: var(--mantine-color-gray-7); | ||
} | ||
} | ||
} |
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,35 +1,3 @@ | ||
.root { | ||
background-color: var(--mantine-color-gray-2); | ||
} | ||
|
||
.indicator { | ||
border-radius: var(--sc-radius, var(--mantine-radius-sm)); | ||
} | ||
|
||
.label { | ||
font-weight: 300; | ||
|
||
@mixin light { | ||
color: var(--mantine-color-gray-6); | ||
} | ||
|
||
&:where([data-disabled]) { | ||
@mixin light { | ||
color: var(--mantine-color-gray-5); | ||
} | ||
} | ||
|
||
&:where([data-active]) { | ||
@mixin light { | ||
color: var(--sc-label-color, var(--mantine-color-black)); | ||
} | ||
} | ||
|
||
&:where(:not([data-disabled], [data-active], [data-read-only])) { | ||
@mixin hover { | ||
@mixin light { | ||
color: var(--mantine-color-black); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.