Skip to content

Commit 114d4d8

Browse files
authored
Merge pull request #543 from gemini-testing/sp.fixCss
chore(css): polishing css styles
2 parents 4f40854 + 5f66225 commit 114d4d8

File tree

8 files changed

+58
-44
lines changed

8 files changed

+58
-44
lines changed

lib/static/components/controls/controls.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737

3838
.control-label {
39-
border-radius: 2px;
39+
border-radius: var(--button-border-radius);
4040
height: 25px;
4141
}
4242
}
@@ -67,11 +67,11 @@
6767
}
6868

6969
&.control-group__item:first-child {
70-
border-radius: 2px 0 0 2px;
70+
border-radius: var(--button-border-radius) 0 0 var(--button-border-radius);
7171
}
7272

7373
&.control-group__item:last-child {
74-
border-radius: 0 2px 2px 0;
74+
border-radius: 0 var(--button-border-radius) var(--button-border-radius) 0;
7575
}
7676

7777
&.control-group__item:not(:last-child) {
@@ -90,11 +90,11 @@
9090
}
9191

9292
&.control-group__item:first-child:after {
93-
border-radius: 2px 0 0 2px;
93+
border-radius: var(--button-border-radius) 0 0 var(--button-border-radius);
9494
}
9595

9696
&.control-group__item:last-child:after {
97-
border-radius: 0 2px 2px 0;
97+
border-radius: 0 var(--button-border-radius) var(--button-border-radius) 0;
9898
}
9999

100100
&.control-group__item:hover:after {

lib/static/components/controls/run-button/index.styl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
font-size: 11px;
77
line-height: 11px;
88
border: 1px solid #ccc;
9-
border-radius: 2px;
10-
background-color: #ffeba0;
9+
border-radius: var(--button-border-radius);
10+
background-color: var(--button-action-color);
1111

1212
.btn {
1313
flex-grow: 1;
1414
height: 100%;
15-
background-color: #ffeba0;
15+
background-color: var(--button-action-color);
1616
cursor: pointer;
1717
border: none;
18+
border-radius: var(--button-border-radius);
1819
}
1920

2021
.run-button__dropdown {

lib/static/components/controls/selects/index.styl

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
.select__label
66
font-size: 11px
7+
color: var(--text-color)
78
margin: 0
8-
padding: 0 5px
9+
padding: 0 8px
910
line-height: 25px
1011
background-color: #e7e7e7
11-
border-radius: 2px
12+
border-radius: var(--button-border-radius)
1213
border-top-right-radius: 0
1314
border-bottom-right-radius: 0
1415

@@ -17,20 +18,23 @@
1718
min-width: 70px
1819
font-size: 11px
1920
line-height: 13px
20-
padding: 5px
21+
padding: 5px 8px
2122
padding-right: 25px
2223
border: 1px solid #ccc
23-
border-radius: 2px
24+
border-radius: var(--button-border-radius)
2425
border-top-left-radius: 0
2526
border-bottom-left-radius: 0
2627

2728
&:hover
28-
border: 1px solid #555;
29+
border: 1px solid var(--button-hover-color);
2930

3031
&.active
32+
.menu
33+
border-radius: 0 0 var(--button-border-radius) var(--button-border-radius)
3134
&:hover
35+
border-radius: 0 var(--button-border-radius) 0 0
3236
.menu
33-
border-color: #ffd947
37+
border-color: var(--button-hover-color)
3438

3539
.icon.dropdown
3640
padding: 0

lib/static/components/suites.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Suites extends Component {
2020

2121
_suitesMeasurementCache = new CellMeasurerCache({
2222
fixedWidth: true,
23-
defaultHeight: 40
23+
defaultHeight: 30
2424
});
2525

2626
_renderRow = ({index, key, style, parent}) => {

lib/static/containers/array/array.styl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
height 25px
44
font-size 11px
55
border 1px solid #ccc
6-
border-radius 2px
6+
border-radius var(--button-border-radius)
77
user-select none
88

99
&:hover
10-
border-color #555
10+
border-color var(--button-hover-color)
1111

1212
.array__container
1313
display inherit
@@ -21,10 +21,10 @@
2121

2222
.array__item
2323
flex-shrink 0
24-
background #ffeb9f
24+
background var(--button-action-color)
2525
border 1px solid #cebe7d
26-
border-radius 3px
27-
padding 4px
26+
border-radius 5px
27+
padding 4px 5px
2828
margin 1px
2929
line-height 11px
3030

lib/static/gui.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
}
106106

107107
.button_type_suite-controls {
108-
padding: 2px 10px;
109-
border-radius: 5px;
108+
padding: 2px 8px;
109+
border-radius: var(--button-border-radius);
110110
font-size: 13px;
111111
line-height: 18px;
112112
margin-right: 10px;
@@ -139,7 +139,7 @@
139139
}
140140

141141
.ui.buttons {
142-
border-radius: 4px;
142+
border-radius: var(--button-border-radius);
143143
}
144144

145145
.ui.buttons:after {

lib/static/styles.css

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ main.container {
7777

7878
.ui.dropdown .menu>.item,
7979
.ui.selection.dropdown .menu>.item {
80-
padding: 8px 5px !important;
80+
padding: 8px 8px !important;
8181
font-size: 11px;
8282
}
8383

@@ -125,17 +125,17 @@ main.container {
125125
cursor: pointer;
126126
background: #fff;
127127
border: 1px solid #ccc;
128-
border-radius: 2px;
128+
border-radius: var(--button-border-radius);
129129
line-height: 11px;
130130
height: 23px;
131-
padding: 0 5px;
131+
padding: 0 8px;
132132
outline: 0;
133133
box-sizing: content-box;
134134
transition: border-color 200ms, background-color 200ms;
135135
}
136136

137137
.button:hover {
138-
border-color: #4b4c5a;
138+
border-color: var(--button-hover-color);
139139
}
140140

141141
.button:disabled {
@@ -284,12 +284,16 @@ main.container {
284284
line-height: 24px;
285285
font-weight: bold;
286286
cursor: pointer;
287-
color: #000;
287+
color: var(--text-color);
288288
margin-bottom: 5px;
289289

290290
user-select: none;
291291
}
292292

293+
.section__title:hover {
294+
opacity: 0.7;
295+
}
296+
293297
.ui.checkbox.indeterminate label:after {
294298
margin-top: 0.5px;
295299
}
@@ -298,11 +302,23 @@ main.container {
298302
.tests-group__title .ui.checkbox {
299303
vertical-align: bottom;
300304
margin-right: 5px;
301-
305+
bottom: 2px;
302306
width: 18px;
303307
height: 18px;
304308
}
305309

310+
.tests-group__title .ui.checkbox {
311+
bottom: -2px;
312+
}
313+
314+
.section__body .ui.checkbox {
315+
bottom: 1px;
316+
}
317+
318+
.section__title_type_browser .ui.checkbox {
319+
bottom: 0;
320+
}
321+
306322
.section__title .ui.checkbox label:before,
307323
.tests-group__title .ui.checkbox label:before {
308324
width: 14px;
@@ -442,12 +458,6 @@ details[open] > .details__summary:before {
442458
border-color: var(--report-color-success) !important;
443459
}
444460

445-
.section_status_success > .section__title:hover,
446-
.state-title_success:hover,
447-
.state-title_updated:hover {
448-
color: #5ed15e;
449-
}
450-
451461
.section_status_fail > .section__title,
452462
.section_status_error > .section__title,
453463
.state-title_fail,
@@ -463,13 +473,6 @@ details[open] > .details__summary:before {
463473
border-color: var(--report-color-fail) !important;
464474
}
465475

466-
.section_status_fail > .section__title:hover,
467-
.section_status_error > .section__title:hover,
468-
.state-title_fail:hover,
469-
.state-title_error:hover {
470-
color: #e66767;
471-
}
472-
473476
.section__body,
474477
.tests-group__body {
475478
padding-left: 10px;
@@ -775,9 +778,9 @@ a:active {
775778
line-height: 25px;
776779
font-family: inherit;
777780
outline: 0;
778-
padding: 3px 5px;
781+
padding: 3px 8px;
779782
border: 1px solid #ccc;
780-
border-radius: 2px;
783+
border-radius: var(--button-border-radius);
781784
height: 25px;
782785
}
783786

lib/static/variables.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
--report-color-fail: #d00;
33
--report-color-skip: #8c8c8c;
44
--report-color-success: #169737;
5+
6+
--button-border-radius: 6px;
7+
--button-action-color: #ffeba0;
8+
--button-hover-color: #9a9999;
9+
10+
--text-color: rgba(0, 0, 0, .65)
511
}

0 commit comments

Comments
 (0)