1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix style

This commit is contained in:
Rokt33r
2015-11-15 20:40:43 +09:00
parent 26a08fac06
commit bbc3c85212
2 changed files with 22 additions and 22 deletions

View File

@@ -34,26 +34,27 @@ iptFocusBorderColor = #369DCD
border-radius 5px border-radius 5px
border solid 1px borderColor border solid 1px borderColor
outline none outline none
margin 100px auto 15px margin 75px auto 20px
&:focus &:focus
border-color iptFocusBorderColor border-color iptFocusBorderColor
.colorSelect .colorSelect
text-align center text-align center
.option .option
cursor pointer cursor pointer
.FolderMark
padding 5px
font-size 22px font-size 22px
height 33px height 48px
width 33px width 48px
overflow hidden margin 0 2px
line-height 33px
transition 0.1s
border 1px solid transparent border 1px solid transparent
border-radius 5px border-radius 5px
margin 0 2px overflow hidden
line-height 45px
text-align center
transition 0.1s
display inline-block
&:hover &:hover
border-color borderColor border-color borderColor
font-size 28px
&.active &.active
font-size 28px font-size 28px
border-color iptFocusBorderColor border-color iptFocusBorderColor

View File

@@ -62,13 +62,12 @@ export default class CreateNewFolder extends React.Component {
colorIndexes.push(i) colorIndexes.push(i)
} }
let colorElements = colorIndexes.map(index => { let colorElements = colorIndexes.map(index => {
let className = index === this.state.color let className = 'option'
? 'active' if (index === this.state.color) className += ' active'
: null
return ( return (
<span className='option' key={index} onClick={e => this.handleColorClick(index)(e)}> <span className={className} key={index} onClick={e => this.handleColorClick(index)(e)}>
<FolderMark className={className} color={index}/> <FolderMark color={index}/>
</span> </span>
) )
}) })