Skip to content

Commit 2f9d4c4

Browse files
committed
modify: markup style for Hotkey config modal
1 parent 84eb790 commit 2f9d4c4

4 files changed

Lines changed: 28 additions & 18 deletions

File tree

browser/main/modals/PreferencesModal/ConfigTab.styl

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,26 @@
1818
margin-bottom 15px
1919

2020
.group-section
21-
margin-bottom 15px
21+
margin-bottom 20px
2222
display flex
2323
line-height 30px
24+
2425
.group-section-label
2526
width 150px
26-
text-align right
27+
text-align left
2728
margin-right 10px
2829
font-size 14px
30+
2931
.group-section-control
3032
flex 1
33+
3134
.group-section-control-input
3235
height 30px
3336
vertical-align middle
34-
width 150px
35-
font-size 12px
37+
width 400px
38+
font-size $tab--button-font-size
3639
border solid 1px $border-color
37-
border-radius 2px
40+
border-radius $tab--input-border-radius
3841
padding 0 5px
3942
&:disabled
4043
background-color $ui-input--disabled-backgroundColor
@@ -46,7 +49,6 @@
4649
padding-left 15px
4750

4851
.group-control
49-
border-top $default-border
5052
padding-top 10px
5153
box-sizing border-box
5254
height 40px
@@ -57,22 +59,25 @@
5759
line-height 30px
5860
padding 0 5px
5961
float right
62+
6063
.group-control-leftButton
61-
float left
6264
colorDefaultButton()
63-
border $default-border
64-
border-radius 2px
65-
height 30px
65+
border none
66+
font-size $tab--button-font-size
67+
height $tab--button-height
6668
padding 0 15px
67-
margin-right 5px
69+
margin-right 10px
70+
6871
.group-control-rightButton
6972
float right
7073
colorPrimaryButton()
7174
border none
72-
border-radius 2px
73-
height 30px
75+
border-radius $tab--button-border-radius
76+
font-size $tab--button-font-size
77+
height $tab--button-height
7478
padding 0 15px
75-
margin-right 5px
79+
margin-right 10px
80+
7681
.group-hint
7782
border $ui-border
7883
padding 10px 15px

browser/main/modals/PreferencesModal/HotkeyTab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ class HotkeyTab extends React.Component {
112112
>
113113
{this.state.isHotkeyHintOpen
114114
? 'Hide Hint'
115-
: 'Show Hint'
115+
: 'Hint?'
116116
}
117117
</button>
118118
<button styleName='group-control-rightButton'
119-
onClick={(e) => this.handleSaveButtonClick(e)}>Save Hotkey
119+
onClick={(e) => this.handleSaveButtonClick(e)}>Save
120120
</button>
121121
{keymapAlertElement}
122122
</div>

browser/main/modals/PreferencesModal/PreferencesModal.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
absolute left right bottom
5151
top 50px
5252
left 140px
53-
margin-top 20px
53+
margin-top 10px
5454
overflow-y auto
5555

5656
body[data-theme="dark"]

browser/main/modals/PreferencesModal/Tab.styl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
* Common style for tabs on config modal.
33
*/
44

5+
$tab--input-border-radius = 5px
6+
$tab--button-border-radius = 5px
7+
$tab--button-height = 40px
8+
$tab--button-font-size = 14px
9+
510
.header
611
font-size 24px
7-
margin-bottom 20px
12+
margin-bottom 30px

0 commit comments

Comments
 (0)