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,29 +34,30 @@ 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 font-size 22px
padding 5px height 48px
font-size 22px width 48px
height 33px margin 0 2px
width 33px border 1px solid transparent
overflow hidden border-radius 5px
line-height 33px overflow hidden
transition 0.1s line-height 45px
border 1px solid transparent text-align center
border-radius 5px transition 0.1s
margin 0 2px display inline-block
&:hover &:hover
border-color borderColor border-color borderColor
&.active font-size 28px
font-size 28px &.active
border-color iptFocusBorderColor font-size 28px
border-color iptFocusBorderColor
.alert .alert
color infoTextColor color infoTextColor
background-color infoBackgroundColor background-color infoBackgroundColor

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>
) )
}) })