1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

fix style tagList

This commit is contained in:
Sosuke Suzuki
2017-09-30 18:13:21 +09:00
parent 59e5c547e9
commit 95e237d4a3
4 changed files with 50 additions and 4 deletions

View File

@@ -12,8 +12,10 @@ import CSSModules from 'browser/lib/CSSModules'
const TagListItem = (({name, handleClickTagButton}) => {
return (
<button onClick={(e) => handleClickTagButton(e, name)}>
<button styleName='tagList-item' onClick={(e) => handleClickTagButton(e, name)}>
<span styleName='tagList-item-name'>
{`# ${name}`}
</span>
</button>
)
})

View File

@@ -0,0 +1,34 @@
.tagList-item
display flex
width 100%
height 26px
background-color transparent
color $ui-inactive-text-color
padding 0
margin-bottom 5px
text-align left
border none
overflow ellipsis
font-size 12px
&:first-child
margin-top 0
&:hover
color $ui-text-color
background-color alpha($ui-button--active-backgroundColor, 20%)
transition background-color 0.15s
&:active
color $ui-text-color
background-color $ui-button--active-backgroundColor
.tagList-item-name
display block
flex 1
padding 0 25px
height 26px
line-height 26px
border-width 0 0 0 2px
border-style solid
border-color transparent
overflow hidden
text-overflow ellipsis

View File

@@ -46,6 +46,12 @@
line-height 24px
color $ui-inactive-text-color
.tagList
absolute left right
bottom 37px
top 80px
overflow-y auto
.navToggle
navButtonColor()
display block

View File

@@ -83,9 +83,13 @@ class SideNav extends React.Component {
} else {
component = (
<div>
<div styleName='tag-title'>
<p>Tags</p>
</div>
<div styleName='tagList'>
{this.folderListComponent(data)}
</div>
</div>
)
}