mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Fix the layout of NoteItem at SideNav
This commit is contained in:
@@ -8,41 +8,37 @@
|
|||||||
width 100%
|
width 100%
|
||||||
margin-bottom 5px
|
margin-bottom 5px
|
||||||
transition 0.15s
|
transition 0.15s
|
||||||
&:hover
|
|
||||||
color $ui-text-color
|
|
||||||
background-color alpha($ui-button--hover-backgroundColor, 20%)
|
|
||||||
&:active
|
|
||||||
.header-info
|
|
||||||
.header-toggleButton
|
|
||||||
.header-addFolderButton
|
|
||||||
color $ui-text-color
|
|
||||||
background-color $ui-button--hover-backgroundColor
|
|
||||||
|
|
||||||
.header--active
|
.header--active
|
||||||
@extend .header
|
background-color $ui-button--active-backgroundColor
|
||||||
|
transition color background-color 0.15s
|
||||||
|
|
||||||
|
.header--active
|
||||||
|
.header-toggleButton
|
||||||
|
color $ui-text-color
|
||||||
|
|
||||||
|
.header--active
|
||||||
.header-info
|
.header-info
|
||||||
color $ui-text-color
|
color $ui-text-color
|
||||||
background-color $ui-button--hover-backgroundColor
|
|
||||||
.header-toggleButton
|
.header--active
|
||||||
.header-addFolderButton
|
.header-addFolderButton
|
||||||
color $ui-text-color
|
color $ui-text-color
|
||||||
&:active
|
|
||||||
.header-toggleButton
|
|
||||||
.header-addFolderButton
|
|
||||||
&:active
|
|
||||||
color $ui-text-color
|
|
||||||
|
|
||||||
.header-toggleButton
|
.header-toggleButton
|
||||||
|
navButtonColor()
|
||||||
position absolute
|
position absolute
|
||||||
left 0
|
left 0
|
||||||
width 25px
|
width 25px
|
||||||
height 26px
|
height 26px
|
||||||
padding 0
|
padding 0
|
||||||
border none
|
border none
|
||||||
color $ui-inactive-text-color
|
&:hover
|
||||||
background-color transparent
|
background-color transparent
|
||||||
|
color $ui-text-color
|
||||||
|
|
||||||
.header-info
|
.header-info
|
||||||
|
navButtonColor()
|
||||||
display block
|
display block
|
||||||
width 100%
|
width 100%
|
||||||
height 30px
|
height 30px
|
||||||
@@ -54,28 +50,22 @@
|
|||||||
border none
|
border none
|
||||||
overflow ellipsis
|
overflow ellipsis
|
||||||
text-align left
|
text-align left
|
||||||
background-color transparent
|
|
||||||
color $ui-inactive-text-color
|
|
||||||
&:hover
|
|
||||||
background-color alpha($ui-button--hover-backgroundColor, 20%)
|
|
||||||
&:active
|
|
||||||
.header-toggleButton
|
|
||||||
.header-addFolderButton
|
|
||||||
color $ui-text-color
|
|
||||||
|
|
||||||
.header-info-path
|
.header-info-path
|
||||||
font-size 10px
|
font-size 10px
|
||||||
margin 0 5px
|
margin 0 5px
|
||||||
|
|
||||||
.header-addFolderButton
|
.header-addFolderButton
|
||||||
|
navButtonColor()
|
||||||
position absolute
|
position absolute
|
||||||
right 0
|
right 0
|
||||||
width 25px
|
width 25px
|
||||||
height 26px
|
height 26px
|
||||||
padding 0
|
padding 0
|
||||||
border none
|
border none
|
||||||
color $ui-inactive-text-color
|
&:hover
|
||||||
background-color transparent
|
background-color transparent
|
||||||
|
color $ui-text-color
|
||||||
|
|
||||||
.root--folded
|
.root--folded
|
||||||
@extend .root
|
@extend .root
|
||||||
@@ -105,30 +95,38 @@
|
|||||||
margin 0 5px
|
margin 0 5px
|
||||||
|
|
||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.header
|
.header--active
|
||||||
&:active
|
|
||||||
color $ui-dark-text-color
|
|
||||||
background-color $ui-dark-button--active-backgroundColor
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
|
transition color background-color 0.15s
|
||||||
|
|
||||||
.header
|
.header--active
|
||||||
&:hover
|
|
||||||
.header-info
|
|
||||||
.header-toggleButton
|
.header-toggleButton
|
||||||
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
.header--active
|
||||||
|
.header-info
|
||||||
|
color $ui-dark-text-color
|
||||||
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
|
&:active
|
||||||
|
color $ui-dark-text-color
|
||||||
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
|
|
||||||
|
.header--active
|
||||||
.header-addFolderButton
|
.header-addFolderButton
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
.header-toggleButton
|
||||||
|
&:hover
|
||||||
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
.header-info
|
||||||
|
&:hover
|
||||||
|
color $ui-dark-text-color
|
||||||
|
background-color alpha($ui-dark-button--active-backgroundColor, 20%)
|
||||||
|
&:active, &:active:hover
|
||||||
|
color $ui-dark-text-color
|
||||||
background-color $ui-dark-button--active-backgroundColor
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
|
|
||||||
.header--active
|
|
||||||
.header-info
|
|
||||||
.header-toggleButton
|
|
||||||
.header-addFolderButton
|
.header-addFolderButton
|
||||||
color $ui-dark-text-color
|
&:hover
|
||||||
background-color $ui-dark-button--active-backgroundColor
|
color $ui-dark-text-color
|
||||||
|
|
||||||
.header--active
|
|
||||||
&:active
|
|
||||||
.header-info
|
|
||||||
.header-toggleButton
|
|
||||||
.header-addFolderButton
|
|
||||||
color $ui-dark-text-color
|
|
||||||
background-color $ui-dark-button--active-backgroundColor
|
|
||||||
@@ -135,7 +135,7 @@ navButtonColor()
|
|||||||
&:active, &:active:hover
|
&:active, &:active:hover
|
||||||
background-color $ui-button--active-backgroundColor
|
background-color $ui-button--active-backgroundColor
|
||||||
color $ui-text-color
|
color $ui-text-color
|
||||||
transition color background-color 0.15s
|
transition color background-color 0.15s
|
||||||
/**
|
/**
|
||||||
* # Modal Stuff
|
* # Modal Stuff
|
||||||
* These will be moved lib/modal
|
* These will be moved lib/modal
|
||||||
|
|||||||
Reference in New Issue
Block a user