1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00
Files
Boostnote/browser/main/TopBar/TopBar.styl
2016-07-30 19:17:09 +09:00

105 lines
2.0 KiB
Stylus

.root
position relative
background-color $ui-backgroundColor
height $topBar-height - 1
.root--expanded
@extend .root
$control-height = 34px
.control
position absolute
top 8px
left 8px
right 8px
height $control-height
border $ui-border
border-radius 20px
overflow hidden
.control-search
absolute top left bottom
right 40px
background-color white
.control-search-icon
absolute top bottom left
line-height 32px
width 35px
color $ui-inactive-text-color
.control-search-input
display block
absolute top bottom right
left 30px
input
width 100%
height 100%
outline none
border none
.control-search-optionList
position fixed
z-index 200
width 275px
height 175px
overflow-y auto
background-color $modal-background
border-radius 2px
box-shadow 2px 2px 10px gray
.control-search-optionList-item
height 50px
border-bottom $ui-border
transition background-color 0.15s
padding 5px
cursor pointer
overflow ellipsis
&:hover
background-color alpha($ui-active-color, 10%)
.control-search-optionList-item-folder
border-left 4px solid transparent
padding 2px 5px
color $ui-text-color
overflow ellipsis
font-size 12px
height 16px
margin-bottom 4px
.control-search-optionList-item-folder-surfix
font-size 10px
margin-left 5px
color $ui-inactive-text-color
.control-search-optionList-item-type
font-size 12px
color $ui-inactive-text-color
padding-right 3px
.control-search-optionList-empty
height 150px
color $ui-inactive-text-color
line-height 150px
text-align center
.control-newPostButton
display block
absolute top right bottom
width 40px
height $control-height - 2
navButtonColor()
border-left $ui-border
font-size 14px
line-height 28px
padding 0
&:active
border-color $ui-button--active-backgroundColor
&:hover .control-newPostButton-tooltip
opacity 1
.control-newPostButton-tooltip
tooltip()
position fixed
pointer-events none
top 45px
left 385px
z-index 10
padding 5px
line-height normal
opacity 0
transition 0.1s