mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-08 17:19:55 +00:00
feat: Started moving texts to the new CSS variable ones
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
66ee86cfd2
commit
d985ffc1c1
@ -15,7 +15,7 @@
|
|||||||
border none
|
border none
|
||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
color white
|
color var(--theme-500-text)
|
||||||
background-color nativeRGB(var(--theme-500))
|
background-color nativeRGB(var(--theme-500))
|
||||||
|
|
||||||
// Chrome Specific
|
// Chrome Specific
|
||||||
@ -33,7 +33,7 @@
|
|||||||
&:active
|
&:active
|
||||||
&:focus
|
&:focus
|
||||||
background-color nativeRGB(var(--theme-500))
|
background-color nativeRGB(var(--theme-500))
|
||||||
color white
|
color var(--theme-500-text)
|
||||||
|
|
||||||
&.outline
|
&.outline
|
||||||
border 2px solid @background-color
|
border 2px solid @background-color
|
||||||
@ -44,7 +44,7 @@
|
|||||||
&:not(:disabled)
|
&:not(:disabled)
|
||||||
&:active
|
&:active
|
||||||
&:focus
|
&:focus
|
||||||
color white
|
color var(--theme-500-text)
|
||||||
|
|
||||||
|
|
||||||
&.ghost
|
&.ghost
|
||||||
@ -90,7 +90,7 @@
|
|||||||
|
|
||||||
&:disabled
|
&:disabled
|
||||||
background nativeRGB(var(--gray-500))
|
background nativeRGB(var(--gray-500))
|
||||||
color nativeRGB(var(--gray-500--text))
|
color var(--gray-500--text)
|
||||||
transform none
|
transform none
|
||||||
box-shadow none
|
box-shadow none
|
||||||
cursor initial
|
cursor initial
|
||||||
@ -132,66 +132,6 @@ svg + .textInner
|
|||||||
.textInner + svg
|
.textInner + svg
|
||||||
margin-left 8px
|
margin-left 8px
|
||||||
|
|
||||||
/**
|
|
||||||
* $color: the color to use
|
|
||||||
* $theme: the theme used ('lighten' | 'darken')
|
|
||||||
*/
|
|
||||||
btn($color, $theme)
|
|
||||||
background-color $color
|
|
||||||
|
|
||||||
// Get Text Color
|
|
||||||
$textColor = white
|
|
||||||
if $theme is 'darken'
|
|
||||||
$textColor = black
|
|
||||||
else
|
|
||||||
$textColor = white
|
|
||||||
|
|
||||||
color $textColor
|
|
||||||
|
|
||||||
&.outline
|
|
||||||
color @background-color
|
|
||||||
border-color @background-color
|
|
||||||
// background none
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
&:active
|
|
||||||
&:focus
|
|
||||||
color $textColor
|
|
||||||
|
|
||||||
if $theme is 'darken'
|
|
||||||
&:active
|
|
||||||
&:focus
|
|
||||||
background-color nativeRGB(var(--theme-700))
|
|
||||||
|
|
||||||
|
|
||||||
&.ghost
|
|
||||||
background transparent
|
|
||||||
color $textColor
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
box-shadow none
|
|
||||||
background-color nativeRGBA($color, .25)
|
|
||||||
|
|
||||||
&:active
|
|
||||||
&:focus
|
|
||||||
background-color $color
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
background-color @background-color
|
|
||||||
box-shadow 0 4px 4px nativeRGBA(@background-color,.2)
|
|
||||||
|
|
||||||
&:active
|
|
||||||
&:focus
|
|
||||||
if $theme is 'darken'
|
|
||||||
background-color nativeRGB(var(--theme-700))
|
|
||||||
else
|
|
||||||
background-color nativeRGB(var(--theme-300))
|
|
||||||
|
|
||||||
&.loading
|
|
||||||
color transparent
|
|
||||||
&::after
|
|
||||||
border-color transparent transparent $textColor $textColor
|
|
||||||
|
|
||||||
@keyframes ButtonLoading
|
@keyframes ButtonLoading
|
||||||
0%
|
0%
|
||||||
transform rotate(0)
|
transform rotate(0)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
border-radius 8px
|
border-radius 8px
|
||||||
@media (prefers-color-scheme dark)
|
@media (prefers-color-scheme dark)
|
||||||
background nativeRGB(var(--gray-700))
|
background nativeRGB(var(--gray-700))
|
||||||
color white
|
color var(--gray-700-text)
|
||||||
|
|
||||||
.pre
|
.pre
|
||||||
display block
|
display block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user