@jdcfe/yep-react
Version:
一套移动端的React组件库
185 lines (184 loc) • 3.88 kB
CSS
.Yep-btn {
display: block;
outline: 0 none;
padding: 0;
height: 90px;
line-height: 90px;
text-align: center;
border-radius: 4px;
font-size: 36px;
white-space: nowrap;
-webkit-appearance: none;
box-sizing: border-box;
color: #2E2D2D;
background-color: #fff;
border: 1PX solid #c6c7ce;
border-radius: 4px;
}
@media (min-resolution: 2dppx) {
html:not([data-scale]) .Yep-btn {
position: relative;
border: none;
}
html:not([data-scale]) .Yep-btn::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 200%;
height: 200%;
border: 1PX solid #c6c7ce;
border-radius: 8px;
transform-origin: 0 0;
transform: scale(0.5);
box-sizing: border-box;
pointer-events: none;
}
}
.Yep-btn-borderfix:before {
transform: scale(0.49) ;
}
.Yep-btn.btn-disabled {
background-color: #b5b5b5;
border: 1PX solid #b5b5b5;
}
.Yep-btn.btn-primary {
background-color: #F0250F;
color: #fff;
border: 1PX solid #F0250F;
border-radius: 4px;
}
@media (min-resolution: 2dppx) {
html:not([data-scale]) .Yep-btn.btn-primary {
position: relative;
border: none;
}
html:not([data-scale]) .Yep-btn.btn-primary::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 200%;
height: 200%;
border: 1PX solid #F0250F;
border-radius: 8px;
transform-origin: 0 0;
transform: scale(0.5);
box-sizing: border-box;
pointer-events: none;
}
}
.Yep-btn.btn-primary.btn-disabled {
background-color: #b5b5b5;
border: 1PX solid #b5b5b5;
border-radius: 4px;
}
@media (min-resolution: 2dppx) {
html:not([data-scale]) .Yep-btn.btn-primary.btn-disabled {
position: relative;
border: none;
}
html:not([data-scale]) .Yep-btn.btn-primary.btn-disabled::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 200%;
height: 200%;
border: 1PX solid #b5b5b5;
border-radius: 8px;
transform-origin: 0 0;
transform: scale(0.5);
box-sizing: border-box;
pointer-events: none;
}
}
.Yep-btn.btn-ghost {
background-color: #fff;
color: #F0250F;
border: 1PX solid #F0250F;
border-radius: 4px;
}
@media (min-resolution: 2dppx) {
html:not([data-scale]) .Yep-btn.btn-ghost {
position: relative;
border: none;
}
html:not([data-scale]) .Yep-btn.btn-ghost::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 200%;
height: 200%;
border: 1PX solid #F0250F;
border-radius: 8px;
transform-origin: 0 0;
transform: scale(0.5);
box-sizing: border-box;
pointer-events: none;
}
}
.Yep-btn.btn-ghost.btn-disabled {
background-color: #b5b5b5;
border: 1PX solid #b5b5b5;
border-radius: 4px;
}
@media (min-resolution: 2dppx) {
html:not([data-scale]) .Yep-btn.btn-ghost.btn-disabled {
position: relative;
border: none;
}
html:not([data-scale]) .Yep-btn.btn-ghost.btn-disabled::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 200%;
height: 200%;
border: 1PX solid #b5b5b5;
border-radius: 8px;
transform-origin: 0 0;
transform: scale(0.5);
box-sizing: border-box;
pointer-events: none;
}
}
.Yep-btn.btn-inline {
display: inline-block;
padding: 0 30px;
}
.Yep-btn.btn-md {
height: 100px;
line-height: 100px;
border-radius: 0px;
}
.Yep-btn.btn-sm {
font-size: 26px;
height: 56px;
line-height: 56px;
padding: 0 30px;
border-radius: 4px;
}
.Yep-btn-icon {
display: flex;
align-items: center;
justify-content: center;
}
.Yep-btn > .Yep-btn-icon {
margin-right: 0.5em;
}
.Yep-btns {
display: flex;
align-items: center;
}
.Yep-btns .Yep-btn {
display: flex;
flex: 1;
justify-content: center;
align-items: center;
margin-right: 20px;
}
.Yep-btns .Yep-btn:last-of-type {
margin-right: 0;
}