lawn-ui
Version:
A Vue.js UI Toolkit for Mobile Web
346 lines (345 loc) • 7.55 kB
CSS
div,
span,
p,
input,
img {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
.lawn-overflow-hidden {
overflow: hidden ;
}
@-webkit-keyframes topToBottom {
from {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}
to {
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes topToBottom {
from {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}
to {
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@-webkit-keyframes bottomToTop {
from {
-webkit-transform: translateY(0);
transform: translateY(0);
}
to {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}
}
@keyframes bottomToTop {
from {
-webkit-transform: translateY(0);
transform: translateY(0);
}
to {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}
}
@-webkit-keyframes leftToRight {
from {
-webkit-transform: translateX(0);
transform: translateX(0);
}
to {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
}
@keyframes leftToRight {
from {
-webkit-transform: translateX(0);
transform: translateX(0);
}
to {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
}
@-webkit-keyframes rightToLeft {
from {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
to {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes rightToLeft {
from {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
to {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@-webkit-keyframes openToClose {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes openToClose {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@-webkit-keyframes closeToOpen {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes closeToOpen {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.lawnVertical-enter-active,
.lawnVertical-leave-active {
-webkit-animation: topToBottom 300ms;
animation: topToBottom 300ms;
}
.lawnVertical-enter-from,
.lawnVertical-leave-to {
-webkit-animation: bottomToTop 300ms;
animation: bottomToTop 300ms;
}
.lawnHorizontal-enter-active,
.lawnHorizontal-leave-active {
-webkit-animation: rightToLeft 300ms;
animation: rightToLeft 300ms;
}
.lawnHorizontal-enter-from,
.lawnHorizontal-leave-to {
-webkit-animation: leftToRight 300ms;
animation: leftToRight 300ms;
}
:root {
--font-size-xs: 10px;
--font-size-sm: 12px;
--font-size-md: 14px;
--font-size-lg: 16px;
--color-primary: #2979ff;
--color-info: #00bcd4;
--color-success: #4caf50;
--color-warning: #ff9800;
--color-danger: #f44336;
--color-disabled: #e0e0e0;
--color-black: #000000;
--color-white: #ffffff;
--border-color: #dddddd;
--border-radius: 4px;
--content-border-radius: 16px;
--content-padding: 10px;
--content-margin: 10px;
--bangs-padding-bottom: 24px;
}
.ln-popup {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
-webkit-overflow-scrolling: touch;
background-color: rgba(0, 0, 0, 0.7);
}
.ln-popup-content {
pointer-events: auto;
}
.lawnPopuopShow-enter-active,
.lawnPopuopShow-leave-active {
-webkit-transition: opacity 0.5s;
transition: opacity 0.5s;
}
.lawnPopuopShow-enter-from,
.lawnPopuopShow-leave-to {
-webkit-transition: opacity 1;
transition: opacity 1;
opacity: 0;
}
.ln-toast {
position: fixed;
min-height: 30px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
min-width: 50px;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
font-size: var(--font-size-md);
border-radius: var(--border-radius);
padding: var(--content-padding);
}
.ln-toast_center {
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.ln-toast_top {
top: 10vh;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.ln-toast_bottom {
bottom: 10vh;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.ln-dialog {
position: fixed;
top: 50%;
left: 50%;
width: 300px;
overflow: hidden;
font-size: 16px;
background-color: #fff;
border-radius: 16px;
-webkit-transform: translate3d(-50%, -50%, 0);
transform: translate3d(-50%, -50%, 0);
}
.ln-dialog-header {
padding: var(--content-padding);
max-height: 20px;
text-align: center;
font-size: var(--font-size-lg);
}
.ln-dialog-main {
padding: var(--content-padding);
font-size: var(--font-size-md);
}
.ln-dialog-footer {
font-size: var(--font-size-lg);
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
height: 40px;
line-height: 40px;
}
.ln-dialog-footer-btn {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
position: relative;
}
.ln-dialog-footer-btn::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 200%;
-webkit-transform: scale(0.5);
transform: scale(0.5);
-webkit-transform-origin: left top;
transform-origin: left top;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid var(--border-color);
border-right: 1px solid var(--border-color);
}
.ln-dialog-footer-btn:last-child::after {
border-right: none;
}
.ln-action-sheet {
position: fixed;
width: 100%;
min-height: 90px;
bottom: 0;
left: 0;
background-color: var(--color-white);
border-radius: var(--content-border-radius) var(--content-border-radius) 0 0;
color: var(--color-black);
}
.ln-action-sheet-item {
height: 45px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.ln-action-sheet-bangs {
padding-bottom: var(--bangs-padding-bottom);
}
.ln-pull-refresh-container {
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
}
.ln-pull-refresh-end {
-webkit-transition: -webkit-transform 500ms ease 0s;
transition: -webkit-transform 500ms ease 0s;
transition: transform 500ms ease 0s;
transition: transform 500ms ease 0s, -webkit-transform 500ms ease 0s;
}
.ln-infinite-scroll {
width: 100%;
height: 100%;
overflow: scroll;
}
.ln-infinite-scroll_observe {
width: 1px;
height: 1px;
}