mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 06:31:45 +08:00
chore(stylelint-config): add stylelint-config-prettier
This commit is contained in:
parent
d48cd73adb
commit
f1887a2890
@ -1,12 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'],
|
extends: [
|
||||||
|
'stylelint-config-standard',
|
||||||
|
'stylelint-config-rational-order',
|
||||||
|
'stylelint-config-prettier',
|
||||||
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'order/properties-order': [],
|
|
||||||
'at-rule-no-unknown': null,
|
|
||||||
'number-leading-zero': null,
|
|
||||||
'no-descending-specificity': null,
|
'no-descending-specificity': null,
|
||||||
'declaration-colon-newline-after': null,
|
|
||||||
'font-family-no-missing-generic-family-keyword': null,
|
|
||||||
'selector-pseudo-element-no-unknown': [
|
'selector-pseudo-element-no-unknown': [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vant/stylelint-config",
|
"name": "@vant/stylelint-config",
|
||||||
"version": "1.2.1",
|
"version": "1.3.0",
|
||||||
"description": "stylelint config of vant.",
|
"description": "stylelint config of vant.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@ -12,6 +12,7 @@
|
|||||||
"stylelint": "^13.0.0"
|
"stylelint": "^13.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"stylelint-config-prettier": "^8.0.1",
|
||||||
"stylelint-config-rational-order": "^0.1.2",
|
"stylelint-config-rational-order": "^0.1.2",
|
||||||
"stylelint-config-standard": "^20.0.0",
|
"stylelint-config-standard": "^20.0.0",
|
||||||
"stylelint-order": "^4.0.0"
|
"stylelint-order": "^4.0.0"
|
||||||
|
@ -2093,6 +2093,11 @@ style-search@^0.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
|
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
|
||||||
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
|
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
|
||||||
|
|
||||||
|
stylelint-config-prettier@^8.0.1:
|
||||||
|
version "8.0.1"
|
||||||
|
resolved "https://registry.npm.taobao.org/stylelint-config-prettier/download/stylelint-config-prettier-8.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstylelint-config-prettier%2Fdownload%2Fstylelint-config-prettier-8.0.1.tgz#ec7cdd7faabaff52ebfa56c28fed3d995ebb8cab"
|
||||||
|
integrity sha1-7Hzdf6q6/1Lr+lbCj+09mV67jKs=
|
||||||
|
|
||||||
stylelint-config-rational-order@^0.1.2:
|
stylelint-config-rational-order@^0.1.2:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0"
|
resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0"
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
z-index: @dropdown-item-z-index;
|
z-index: @dropdown-item-z-index;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
&__icon {
|
||||||
|
display: block;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
&__option {
|
&__option {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
@ -31,9 +36,4 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
max-height: @dropdown-menu-content-max-height;
|
max-height: @dropdown-menu-content-max-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__icon {
|
|
||||||
display: block;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -71,8 +71,12 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, .9), hsla(0, 0%, 100%, .4)),
|
background-image: linear-gradient(
|
||||||
linear-gradient(0deg, hsla(0, 0%, 100%, .9), hsla(0, 0%, 100%, .4));
|
180deg,
|
||||||
|
hsla(0, 0%, 100%, 0.9),
|
||||||
|
hsla(0, 0%, 100%, 0.4)
|
||||||
|
),
|
||||||
|
linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: top, bottom;
|
background-position: top, bottom;
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
|
@ -102,15 +102,15 @@ export default {
|
|||||||
margin: @padding-md 0 0 @padding-md;
|
margin: @padding-md 0 0 @padding-md;
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-steps__message + p {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p,
|
p,
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.van-steps__message + p {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
14
src/style/normalize.less
vendored
14
src/style/normalize.less
vendored
@ -14,6 +14,13 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
textarea {
|
||||||
|
color: inherit;
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
input,
|
input,
|
||||||
button,
|
button,
|
||||||
@ -30,10 +37,3 @@ ul {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
|
||||||
button,
|
|
||||||
textarea {
|
|
||||||
color: inherit;
|
|
||||||
font: inherit;
|
|
||||||
}
|
|
||||||
|
@ -113,14 +113,14 @@ export default {
|
|||||||
.demo-tag {
|
.demo-tag {
|
||||||
background-color: @white;
|
background-color: @white;
|
||||||
|
|
||||||
.van-tag + .van-tag {
|
|
||||||
margin-left: @padding-xs;
|
|
||||||
}
|
|
||||||
|
|
||||||
.van-tag {
|
.van-tag {
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
margin-left: @padding-md;
|
margin-left: @padding-md;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.van-tag + .van-tag {
|
||||||
|
margin-left: @padding-xs;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
12
yarn.lock
12
yarn.lock
@ -1708,10 +1708,11 @@
|
|||||||
fs-extra "^9.0.0"
|
fs-extra "^9.0.0"
|
||||||
|
|
||||||
"@vant/stylelint-config@^1.2.1":
|
"@vant/stylelint-config@^1.2.1":
|
||||||
version "1.2.1"
|
version "1.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/@vant/stylelint-config/-/stylelint-config-1.2.1.tgz#3ed9584053f70b1d8461d91dc614d7ec2c9950c1"
|
resolved "https://registry.yarnpkg.com/@vant/stylelint-config/-/stylelint-config-1.3.0.tgz#702cb87a8698185904aea56ada967064e6821aa4"
|
||||||
integrity sha512-N0M5LJNU3XzjFWA6PhsseQnkLYobzKBEBbYG9+9OnrFdRqweN+jYdDIdDLu5GD5clEEAyFsCabLMPdfBbISPcw==
|
integrity sha512-XxU8lDPjKnmVkvYPfygH9SyB0nJdpuUgISSkWO6CrlaDdDekYQPSGpBJu+9SWGCxsa7F0sjAYVkyDmij9c53kg==
|
||||||
dependencies:
|
dependencies:
|
||||||
|
stylelint-config-prettier "^8.0.1"
|
||||||
stylelint-config-rational-order "^0.1.2"
|
stylelint-config-rational-order "^0.1.2"
|
||||||
stylelint-config-standard "^20.0.0"
|
stylelint-config-standard "^20.0.0"
|
||||||
stylelint-order "^4.0.0"
|
stylelint-order "^4.0.0"
|
||||||
@ -10705,6 +10706,11 @@ style-search@^0.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
|
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
|
||||||
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
|
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
|
||||||
|
|
||||||
|
stylelint-config-prettier@^8.0.1:
|
||||||
|
version "8.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/stylelint-config-prettier/-/stylelint-config-prettier-8.0.1.tgz#ec7cdd7faabaff52ebfa56c28fed3d995ebb8cab"
|
||||||
|
integrity sha512-RcjNW7MUaNVqONhJH4+rtlAE3ow/9SsAM0YWV0Lgu3dbTKdWTa/pQXRdFWgoHWpzUKn+9oBKR5x8JdH+20wmgw==
|
||||||
|
|
||||||
stylelint-config-rational-order@^0.1.2:
|
stylelint-config-rational-order@^0.1.2:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0"
|
resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user