1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 03:06:27 +00:00

modify: markup style for Hotkey config modal

This commit is contained in:
sota1235
2016-12-30 14:25:10 +09:00
parent 84eb790d93
commit 2f9d4c447a
4 changed files with 28 additions and 18 deletions

View File

@@ -18,23 +18,26 @@
margin-bottom 15px margin-bottom 15px
.group-section .group-section
margin-bottom 15px margin-bottom 20px
display flex display flex
line-height 30px line-height 30px
.group-section-label .group-section-label
width 150px width 150px
text-align right text-align left
margin-right 10px margin-right 10px
font-size 14px font-size 14px
.group-section-control .group-section-control
flex 1 flex 1
.group-section-control-input .group-section-control-input
height 30px height 30px
vertical-align middle vertical-align middle
width 150px width 400px
font-size 12px font-size $tab--button-font-size
border solid 1px $border-color border solid 1px $border-color
border-radius 2px border-radius $tab--input-border-radius
padding 0 5px padding 0 5px
&:disabled &:disabled
background-color $ui-input--disabled-backgroundColor background-color $ui-input--disabled-backgroundColor
@@ -46,7 +49,6 @@
padding-left 15px padding-left 15px
.group-control .group-control
border-top $default-border
padding-top 10px padding-top 10px
box-sizing border-box box-sizing border-box
height 40px height 40px
@@ -57,22 +59,25 @@
line-height 30px line-height 30px
padding 0 5px padding 0 5px
float right float right
.group-control-leftButton .group-control-leftButton
float left
colorDefaultButton() colorDefaultButton()
border $default-border border none
border-radius 2px font-size $tab--button-font-size
height 30px height $tab--button-height
padding 0 15px padding 0 15px
margin-right 5px margin-right 10px
.group-control-rightButton .group-control-rightButton
float right float right
colorPrimaryButton() colorPrimaryButton()
border none border none
border-radius 2px border-radius $tab--button-border-radius
height 30px font-size $tab--button-font-size
height $tab--button-height
padding 0 15px padding 0 15px
margin-right 5px margin-right 10px
.group-hint .group-hint
border $ui-border border $ui-border
padding 10px 15px padding 10px 15px

View File

@@ -112,11 +112,11 @@ class HotkeyTab extends React.Component {
> >
{this.state.isHotkeyHintOpen {this.state.isHotkeyHintOpen
? 'Hide Hint' ? 'Hide Hint'
: 'Show Hint' : 'Hint?'
} }
</button> </button>
<button styleName='group-control-rightButton' <button styleName='group-control-rightButton'
onClick={(e) => this.handleSaveButtonClick(e)}>Save Hotkey onClick={(e) => this.handleSaveButtonClick(e)}>Save
</button> </button>
{keymapAlertElement} {keymapAlertElement}
</div> </div>

View File

@@ -50,7 +50,7 @@
absolute left right bottom absolute left right bottom
top 50px top 50px
left 140px left 140px
margin-top 20px margin-top 10px
overflow-y auto overflow-y auto
body[data-theme="dark"] body[data-theme="dark"]

View File

@@ -2,6 +2,11 @@
* Common style for tabs on config modal. * Common style for tabs on config modal.
*/ */
$tab--input-border-radius = 5px
$tab--button-border-radius = 5px
$tab--button-height = 40px
$tab--button-font-size = 14px
.header .header
font-size 24px font-size 24px
margin-bottom 20px margin-bottom 30px