提交 94643413 编写于 作者: Y yurj26

Revert "feat(button): 修改plain时的边框宽度"

This reverts commit 87fe929c.
上级 57966bf4
......@@ -12,6 +12,7 @@ uni-button {
line-height: 2.55555556;
border-radius: 5px;
-webkit-tap-highlight-color: transparent;
overflow: hidden;
color: #000000;
background-color: #f8f8f8;
cursor: pointer;
......@@ -93,62 +94,66 @@ uni-button[disabled][type='warn'] {
uni-button[type='primary'][plain] {
color: #007aff;
border: 1px solid #007aff;
background-color: transparent;
}
uni-button[type='primary'][plain][disabled] {
color: rgba(0, 0, 0, 0.2);
border-color: rgba(0, 0, 0, 0.2);
}
uni-button[type='primary'][plain]:after {
border-color:#007aff;
border-width: 0;
}
uni-button[type='default'][plain] {
color: #353535;
border: 1px solid #353535;
background-color: transparent;
}
uni-button[type='default'][plain][disabled] {
color: rgba(0, 0, 0, 0.2);
border-color: rgba(0, 0, 0, 0.2);
}
uni-button[type='default'][plain]:after {
border-color: #353535;
border-width: 0;
}
uni-button[plain][native] .uni-button-cover-view-inner {
padding: 0;
}
uni-button[type='warn'][plain] {
color: #e64340;
uni-button[plain] {
color: #353535;
border: 1px solid #353535;
background-color: transparent;
}
uni-button[type='warn'][plain][disabled] {
uni-button[plain][disabled] {
color: rgba(0, 0, 0, 0.2);
border-color: rgba(0, 0, 0, 0.2);
}
uni-button[type='warn'][plain]:after {
border-color: #e64340;
uni-button[plain]:after {
border-width: 0;
}
uni-button[plain] {
color: #353535;
background-color: transparent;
uni-button[plain][native] .uni-button-cover-view-inner {
padding: 0;
}
uni-button[plain][disabled] {
color: rgba(0, 0, 0, 0.2);
uni-button[type='warn'][plain] {
color: #e64340;
border: 1px solid #e64340;
background-color: transparent;
}
uni-button[plain]:after {
border-color: #353535;
uni-button[type='warn'][plain][disabled] {
color: rgba(0, 0, 0, 0.2);
border-color: rgba(0, 0, 0, 0.2);
}
uni-button[plain][disabled]:after {
border-color: rgba(0, 0, 0, 0.2);
uni-button[type='warn'][plain]:after {
border-width: 0;
}
uni-button[size='mini'] {
......@@ -221,11 +226,8 @@ uni-button[loading][native]:before {
.button-hover[plain] {
color: rgba(53, 53, 53, 0.6);
background-color: transparent;
}
.button-hover[plain]:after {
border-color: rgba(53, 53, 53, 0.6);
background-color: transparent;
}
.button-hover[type='primary'] {
......@@ -235,11 +237,8 @@ uni-button[loading][native]:before {
.button-hover[type='primary'][plain] {
color: rgba(0, 122, 255, 0.6);
background-color: transparent;
}
.button-hover[type='primary'][plain]:after {
border-color: rgba(0, 122, 255, 0.6);
background-color: transparent;
}
.button-hover[type='default'] {
......@@ -249,11 +248,8 @@ uni-button[loading][native]:before {
.button-hover[type='default'][plain] {
color: rgba(53, 53, 53, 0.6);
background-color: transparent;
}
.button-hover[type='default'][plain]:after {
border-color: rgba(53, 53, 53, 0.6);
background-color: transparent;
}
.button-hover[type='warn'] {
......@@ -263,11 +259,8 @@ uni-button[loading][native]:before {
.button-hover[type='warn'][plain] {
color: rgba(230, 67, 64, 0.6);
background-color: transparent;
}
.button-hover[type='warn'][plain]:after {
border-color: rgba(230, 67, 64, 0.6);
background-color: transparent;
}
@media (prefers-color-scheme: dark) {
......@@ -296,10 +289,7 @@ uni-button[loading][native]:before {
uni-button[type='default'][plain] {
color: #d6d6d6;
}
uni-button[type='default'][plain]:after {
border-color: #d6d6d6;
border: 1px solid #d6d6d6;
}
.button-hover[type='default'][plain] {
......@@ -308,15 +298,8 @@ uni-button[loading][native]:before {
background-color: rgba(50, 50, 50, 0.2);
}
.button-hover[type='default'][plain]:after {
border-color: rgba(150, 150, 150, 0.6);
}
uni-button[type='default'][plain][disabled] {
color: hsla(0, 0%, 100%, 0.2);
}
uni-button[type='default'][plain][disabled]:after {
border-color: hsla(0, 0%, 100%, 0.2);
color: hsla(0, 0%, 100%, 0.2);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册