Skip to content

Commit bbc3c85

Browse files
committed
fix style
1 parent 26a08fa commit bbc3c85

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

browser/styles/main/HomeContainer/lib/CreateNewFolder.styl

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,30 @@ iptFocusBorderColor = #369DCD
3434
border-radius 5px
3535
border solid 1px borderColor
3636
outline none
37-
margin 100px auto 15px
37+
margin 75px auto 20px
3838
&:focus
3939
border-color iptFocusBorderColor
4040
.colorSelect
4141
text-align center
4242
.option
4343
cursor pointer
44-
.FolderMark
45-
padding 5px
46-
font-size 22px
47-
height 33px
48-
width 33px
49-
overflow hidden
50-
line-height 33px
51-
transition 0.1s
52-
border 1px solid transparent
53-
border-radius 5px
54-
margin 0 2px
55-
&:hover
56-
border-color borderColor
57-
&.active
58-
font-size 28px
59-
border-color iptFocusBorderColor
44+
font-size 22px
45+
height 48px
46+
width 48px
47+
margin 0 2px
48+
border 1px solid transparent
49+
border-radius 5px
50+
overflow hidden
51+
line-height 45px
52+
text-align center
53+
transition 0.1s
54+
display inline-block
55+
&:hover
56+
border-color borderColor
57+
font-size 28px
58+
&.active
59+
font-size 28px
60+
border-color iptFocusBorderColor
6061
.alert
6162
color infoTextColor
6263
background-color infoBackgroundColor

lib/components/modal/CreateNewFolder.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ export default class CreateNewFolder extends React.Component {
6262
colorIndexes.push(i)
6363
}
6464
let colorElements = colorIndexes.map(index => {
65-
let className = index === this.state.color
66-
? 'active'
67-
: null
65+
let className = 'option'
66+
if (index === this.state.color) className += ' active'
6867

6968
return (
70-
<span className='option' key={index} onClick={e => this.handleColorClick(index)(e)}>
71-
<FolderMark className={className} color={index}/>
69+
<span className={className} key={index} onClick={e => this.handleColorClick(index)(e)}>
70+
<FolderMark color={index}/>
7271
</span>
7372
)
7473
})

0 commit comments

Comments
 (0)