mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Refactor the styles of the buttons
This commit is contained in:
@@ -13,22 +13,7 @@
|
|||||||
padding-bottom 3px
|
padding-bottom 3px
|
||||||
|
|
||||||
.control-lockButton
|
.control-lockButton
|
||||||
width 34px
|
topBarButtonLight()
|
||||||
height 34px
|
|
||||||
border-radius 17px
|
|
||||||
font-size 14px
|
|
||||||
margin 13px 7px
|
|
||||||
padding-top 7px
|
|
||||||
border none
|
|
||||||
color $ui-button-color
|
|
||||||
fill $ui-button-color
|
|
||||||
background-color transparent
|
|
||||||
&:active
|
|
||||||
border-color $ui-button--active-backgroundColor
|
|
||||||
&:hover
|
|
||||||
background-color $ui-button--hover-backgroundColor
|
|
||||||
.control-lockButton-tooltip
|
|
||||||
opacity 1
|
|
||||||
|
|
||||||
.control-lockButton-tooltip
|
.control-lockButton-tooltip
|
||||||
tooltip()
|
tooltip()
|
||||||
@@ -44,19 +29,7 @@
|
|||||||
|
|
||||||
.control-trashButton
|
.control-trashButton
|
||||||
float right
|
float right
|
||||||
width 34px
|
topBarButtonLight()
|
||||||
height 34px
|
|
||||||
border-radius 17px
|
|
||||||
font-size 14px
|
|
||||||
margin 13px 7px
|
|
||||||
padding-top 7px
|
|
||||||
border none
|
|
||||||
color $ui-button-color
|
|
||||||
fill $ui-button-color
|
|
||||||
background-color transparent
|
|
||||||
&:hover
|
|
||||||
opacity 1
|
|
||||||
background-color $ui-button--hover-backgroundColor
|
|
||||||
|
|
||||||
.body
|
.body
|
||||||
absolute left right
|
absolute left right
|
||||||
@@ -75,10 +48,10 @@ body[data-theme="dark"]
|
|||||||
box-shadow none
|
box-shadow none
|
||||||
|
|
||||||
.control-lockButton
|
.control-lockButton
|
||||||
colorDarkTopBarButton()
|
topBarButtonDark()
|
||||||
|
|
||||||
.control-lockButton-tooltip
|
.control-lockButton-tooltip
|
||||||
darkTooltip()
|
darkTooltip()
|
||||||
|
|
||||||
.control-trashButton
|
.control-trashButton
|
||||||
colorDarkTopBarButton()
|
topBarButtonDark()
|
||||||
|
|||||||
@@ -70,19 +70,7 @@
|
|||||||
|
|
||||||
.control-trashButton
|
.control-trashButton
|
||||||
float right
|
float right
|
||||||
width 34px
|
topBarButtonLight()
|
||||||
height 34px
|
|
||||||
border-radius 17px
|
|
||||||
font-size 14px
|
|
||||||
margin 13px 7px
|
|
||||||
padding-top 7px
|
|
||||||
border none
|
|
||||||
color $ui-button-color
|
|
||||||
fill $ui-button-color
|
|
||||||
background-color transparent
|
|
||||||
&:hover
|
|
||||||
opacity 1
|
|
||||||
background-color $ui-button--hover-backgroundColor
|
|
||||||
|
|
||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.root
|
.root
|
||||||
@@ -111,4 +99,4 @@ body[data-theme="dark"]
|
|||||||
border-color $ui-dark-borderColor
|
border-color $ui-dark-borderColor
|
||||||
|
|
||||||
.control-trashButton
|
.control-trashButton
|
||||||
colorDarkTopBarButton()
|
topBarButtonDark()
|
||||||
|
|||||||
@@ -139,6 +139,24 @@ modal()
|
|||||||
border-radius $modal-border-radius
|
border-radius $modal-border-radius
|
||||||
box-shadow 2px 2px 10px gray
|
box-shadow 2px 2px 10px gray
|
||||||
|
|
||||||
|
topBarButtonLight()
|
||||||
|
width 34px
|
||||||
|
height 34px
|
||||||
|
border-radius 17px
|
||||||
|
font-size 14px
|
||||||
|
margin 13px 7px
|
||||||
|
padding-top 7px
|
||||||
|
border none
|
||||||
|
color $ui-button-color
|
||||||
|
fill $ui-button-color
|
||||||
|
background-color transparent
|
||||||
|
&:active
|
||||||
|
border-color $ui-button--active-backgroundColor
|
||||||
|
&:hover
|
||||||
|
background-color $ui-button--hover-backgroundColor
|
||||||
|
.control-lockButton-tooltip
|
||||||
|
opacity 1
|
||||||
|
|
||||||
// Dark theme
|
// Dark theme
|
||||||
$ui-dark-borderColor = lighten(#21252B, 20%)
|
$ui-dark-borderColor = lighten(#21252B, 20%)
|
||||||
$ui-dark-backgroundColor = #1D1D1D
|
$ui-dark-backgroundColor = #1D1D1D
|
||||||
@@ -191,7 +209,7 @@ navDarkButtonColor()
|
|||||||
background-color $ui-dark-button--active-backgroundColor
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
color $ui-dark-button--active-color
|
color $ui-dark-button--active-color
|
||||||
|
|
||||||
colorDarkTopBarButton()
|
topBarButtonDark()
|
||||||
border-color $ui-dark-borderColor
|
border-color $ui-dark-borderColor
|
||||||
color $ui-dark-topbar-button-color
|
color $ui-dark-topbar-button-color
|
||||||
&:hover
|
&:hover
|
||||||
|
|||||||
Reference in New Issue
Block a user