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

modify: change layout for config modal

This commit is contained in:
sota1235
2016-12-30 13:35:35 +09:00
parent d19ff3ff17
commit fb4dfbadf3
2 changed files with 23 additions and 7 deletions

View File

@@ -1,20 +1,35 @@
.root .root
modal() modal()
max-width 540px max-width 800px
min-height 400px min-height 500px
height 80% height 80%
overflow hidden overflow hidden
position relative position relative
.nav .top-bar
absolute top left right absolute top left right
height 50px height 50px
background-color $ui-backgroundColor background-color $ui-backgroundColor
border-bottom solid 1px $ui-borderColor border-bottom solid 1px $ui-borderColor
p
text-align center
font-size 18px
line-height 50px
.nav
absolute top left right
top 50px
left 0
width 140px
margin-left 30px
margin-top 20px
background-color $ui-backgroundColor
.nav-button .nav-button
font-size 14px
text-align left
width 80px width 80px
height 50px padding 7px 0
border none border none
background-color transparent background-color transparent
color #939395 color #939395
@@ -34,6 +49,7 @@
.content .content
absolute left right bottom absolute left right bottom
top 50px top 50px
left 140px
overflow-y auto overflow-y auto
body[data-theme="dark"] body[data-theme="dark"]

View File

@@ -88,9 +88,6 @@ class Preferences extends React.Component {
key={tab.target} key={tab.target}
onClick={(e) => this.handleNavButtonClick(tab.target)(e)} onClick={(e) => this.handleNavButtonClick(tab.target)(e)}
> >
<i styleName='nav-button-icon'
className={'fa fa-' + tab.icon}
/>
<span styleName='nav-button-label'> <span styleName='nav-button-label'>
{tab.label} {tab.label}
</span> </span>
@@ -104,6 +101,9 @@ class Preferences extends React.Component {
tabIndex='-1' tabIndex='-1'
onKeyDown={(e) => this.handleKeyDown(e)} onKeyDown={(e) => this.handleKeyDown(e)}
> >
<div styleName='top-bar'>
<p>Your menu for Boostnote</p>
</div>
<div styleName='nav'> <div styleName='nav'>
{navButtons} {navButtons}
</div> </div>