Skip to content

Commit a46821c

Browse files
committed
WIP: Added StyleLint and fixed some css code
1 parent f53f5fe commit a46821c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.stylelintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-recommended",
3+
}

assets/css/rop_core.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ a.active {
441441
}
442442

443443
#rop_core dl dd {
444-
margin: .4rem 0 .8rem 0;
444+
margin: .4rem 0 .8rem;
445445
}
446446

447447
#rop_core :lang(zh) {
@@ -1485,7 +1485,7 @@ a.active {
14851485
}
14861486

14871487
#rop_core .figure {
1488-
margin: 0 0 .4rem 0;
1488+
margin: 0 0 .4rem;
14891489
}
14901490

14911491
#rop_core .figure .figure-caption {
@@ -2605,7 +2605,7 @@ a.active {
26052605

26062606
#rop_core .pagination .page-item span {
26072607
display: inline-block;
2608-
padding: .2rem .2rem;
2608+
padding: .2rem;
26092609
}
26102610

26112611
#rop_core .pagination .page-item a {
@@ -2816,7 +2816,7 @@ a.active {
28162816
-ms-flex-wrap: wrap;
28172817
flex-wrap: wrap;
28182818
list-style: none;
2819-
margin: .2rem 0 .15rem 0;
2819+
margin: .2rem 0 .15rem;
28202820
}
28212821

28222822
#rop_core .tab .tab-item {
@@ -2834,7 +2834,7 @@ a.active {
28342834
color: inherit;
28352835
display: block;
28362836
margin: 0 .4rem 0 0;
2837-
padding: .4rem .2rem .3rem .2rem;
2837+
padding: .4rem .2rem .3rem;
28382838
text-decoration: none;
28392839
}
28402840

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"html-loader": "^0.5.1",
4747
"load-project-config": "~0.2.0",
4848
"style-loader": "^0.13.0",
49+
"stylelint-config-recommended": "^1.0.0",
4950
"vue-html-loader": "^1.0.0",
5051
"vue-loader": "^7.3.0",
5152
"webpack": "^3.5.5"

0 commit comments

Comments
 (0)