Skip to content

Commit 7ab6054

Browse files
committed
stylinting now
1 parent 7ce15c2 commit 7ab6054

File tree

44 files changed

+1064
-442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1064
-442
lines changed

.stylelintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
}
5+
};

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"pack:runner": "cd packages/selenium-side-runner && yarn pkg",
1515
"test": "jest",
1616
"test:webdriver": "cd tests/examples && node ../../packages/selenium-side-runner/dist/index.js *.side",
17-
"lint": "eslint packages/selenium-ide/src/{neo,selianize,plugin,router,api}/ packages/selenium-side-runner/src/ packages/selianize/{__tests__,src}/ --ext .js --ext .jsx",
17+
"lint": "yarn lint:scripts && yarn lint:styles",
18+
"lint:scripts": "eslint packages/selenium-ide/src/{neo,selianize,plugin,router,api}/ packages/selenium-side-runner/src/ packages/selianize/{__tests__,src}/ --ext .js --ext .jsx ",
19+
"lint:styles": "stylelint \"packages/selenium-ide/src/neo/**/*.css\"",
1820
"postinstall": "lerna bootstrap"
1921
},
2022
"jest": {
@@ -36,6 +38,8 @@
3638
"identity-obj-proxy": "^3.0.0",
3739
"jest": "^23.1.0",
3840
"lerna": "^2.6.0",
41+
"stylelint": "^9.3.0",
42+
"stylelint-config-standard": "^18.2.0",
3943
"web-ext": "^2.4.0"
4044
}
4145
}

packages/selenium-ide/src/neo/components/ActionButtons/ActionButton/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
}
1919

2020
.btn-action:focus {
21-
border-color: rgba(0,0,0,.25);
22-
box-shadow: inset 0 0 0 1px hsla(0,0%,100%,.7);
21+
border-color: rgba(0, 0, 0, 0.25);
22+
box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.7);
2323
}
2424

2525
.btn-action.no-focus:focus {
@@ -32,9 +32,9 @@
3232
}
3333

3434
.btn-action:disabled {
35-
color: #A9A9A9;
35+
color: #a9a9a9;
3636
}
3737

3838
.btn-action.active {
39-
background-color: #E3F2FF;
39+
background-color: #e3f2ff;
4040
}

packages/selenium-ide/src/neo/components/ActionButtons/Open/style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
left: -1000px;
1313
}
1414

15-
.file-input > input:focus ~ label {
16-
border-color: rgba(0,0,0,.25);
17-
box-shadow: inset 0 0 0 1px hsla(0,0%,100%,.7);
18-
}
19-
2015
.file-input > label {
2116
width: 22px;
2217
height: 22px;
@@ -26,6 +21,11 @@
2621
cursor: pointer;
2722
}
2823

24+
.file-input > input:focus ~ label {
25+
border-color: rgba(0, 0, 0, 0.25);
26+
box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.7);
27+
}
28+
2929
.file-input > label > i {
3030
margin: auto;
3131
position: absolute;
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.record {
2-
display: inline-block;
3-
border: 1px solid transparent;
4-
margin: 2px;
2+
display: inline-block;
3+
border: 1px solid transparent;
4+
margin: 2px;
55
}
66

77
.record:focus-within {
8-
border-color: rgba(0,0,0,.25);
9-
box-shadow: inset 0 0 0 1px hsla(0,0%,100%,.7);
8+
border-color: rgba(0, 0, 0, 0.25);
9+
box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.7);
1010
}

packages/selenium-ide/src/neo/components/ActionButtons/Save/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@
1010
0% {
1111
transform: scale(1);
1212
}
13+
1314
3% {
1415
transform: scale(1.2);
1516
}
17+
1618
6% {
1719
transform: scale(1);
1820
}
21+
1922
9% {
2023
transform: scale(1.2);
2124
}
25+
2226
12% {
2327
transform: scale(1);
2428
}

packages/selenium-ide/src/neo/components/ActionButtons/SpeedGauge/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
font-size: 8px;
1212
top: 0;
1313
bottom: 0;
14-
margin: auto 0px;
14+
margin: auto 0;
1515
height: 10px;
1616
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.alert .markdown {
2-
max-height: 400px;
3-
overflow-y: auto;
2+
max-height: 400px;
3+
overflow-y: auto;
44
}
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
.test > .stack-item:not(.name) {
2-
display: block;
3-
}
4-
5-
.test > .stack-item:not(.name).selected {
2+
display: block;
63
}
74

85
.test > .stack-item:not(.name) > span {
9-
display: inline-block;
10-
transform: scaleY(-1) rotate(270deg);
6+
display: inline-block;
7+
transform: scaleY(-1) rotate(270deg);
118
}
Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
input[type="checkbox"].checkbox {
2-
position: absolute;
3-
opacity: 0;
2+
position: absolute;
3+
opacity: 0;
44
}
55

66
input[type="checkbox"].checkbox + label {
7-
display: block;
8-
cursor: pointer;
9-
padding: 5px 0;
7+
display: block;
8+
cursor: pointer;
9+
padding: 5px 0;
1010
}
1111

1212
input[type="checkbox"].checkbox + label span {
13-
display: inline-block;
14-
background-color: #fff;
15-
color: #40A6FF;
16-
text-align: center;
17-
line-height: 18px;
18-
font-size: 18px;
19-
width: 18px;
20-
height: 18px;
21-
margin: -2px 10px 0 0;
22-
vertical-align: top;
23-
cursor: pointer;
24-
border: 1px solid #DCDCDC;
25-
border-radius: 3px;
26-
box-shadow: inset 0 0 1px 1px transparent;
27-
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
13+
display: inline-block;
14+
background-color: #fff;
15+
color: #40a6ff;
16+
text-align: center;
17+
line-height: 18px;
18+
font-size: 18px;
19+
width: 18px;
20+
height: 18px;
21+
margin: -2px 10px 0 0;
22+
vertical-align: top;
23+
cursor: pointer;
24+
border: 1px solid #dcdcdc;
25+
border-radius: 3px;
26+
box-shadow: inset 0 0 1px 1px transparent;
27+
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
2828
}
29+
2930
input[type="checkbox"].checkbox:disabled + label span {
30-
color: rgba(128, 128, 128, 0.6);
31-
background-color: whitesmoke;
32-
border-color: whitesmoke;
33-
cursor: not-allowed;
31+
color: rgba(128, 128, 128, 0.6);
32+
background-color: whitesmoke;
33+
border-color: whitesmoke;
34+
cursor: not-allowed;
3435
}
3536

3637
input[type="checkbox"].checkbox:not(:disabled) + label:active span {
37-
background-color: #fdfdfd;
38-
box-shadow: inset 0 0 1px 1px #ececec;
38+
background-color: #fdfdfd;
39+
box-shadow: inset 0 0 1px 1px #ececec;
3940
}
4041

4142
input[type="checkbox"].checkbox + label > div {
42-
display: inline-block;
43-
width: 85px;
43+
display: inline-block;
44+
width: 85px;
4445
}

0 commit comments

Comments
 (0)