Authored by 毕凯

完善频道页面公有样式

... ... @@ -24,10 +24,8 @@
<link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">
{{/if}}
</head>
<body>
{{> header}}
{{{body}}}
{{> footer}}
<body>
{{{body}}}
{{#if devEnv}}
<script src="//localhost:5000/{{module}}.{{page}}.js"></script>
{{^}}
... ...
.order-failure {
background-image: resolve('common/order-good.jpg');
background-size: 100%;
}
.good-failure {
background-image: resolve('common/order-good.jpg');
background-size: 132px !important;
background-position-x: 40%;
}
... ...
.loading-mask {
position: fixed;
background: rgba(0, 0, 0, 0.1);
top: 0;
bottom: 0;
right: 0;
left: 0;
@keyframes scale {
0% {
transform: scale(1);
opacity: 1;
}
45% {
transform: scale(0.1);
opacity: 0.7;
}
80% {
transform: scale(1);
opacity: 1;
}
}
.loading {
position: absolute;
width: 60PX;
height: 20PX;
top: 50%;
left: 50%;
margin-top: -10PX;
margin-left: -30PX;
> div {
display: inline-block;
background: #fff;
width: 15PX;
height: 15PX;
border-radius: 100%;
margin: 2PX;
$init: 0.12;
@for $i from 1 to 3 {
&:nth-child($i) {
animation: scale 0.75s $(init)s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08) ;
}
$init: ($i + 1) * 0.12;
}
}
}
}
... ...
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}
html {
line-height: 1;
}
ol,
ul {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
caption,
th,
td {
text-align: left;
font-weight: normal;
vertical-align: middle;
}
q,
blockquote {
quotes: none;
}
q:before,
q:after,
blockquote:before,
blockquote:after {
content: "";
content: none;
}
a img {
border: none;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
... ...
@charset "utf-8";
@use postcss-clearfix ;
.clearfix {
clear: fix;
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
font-family: helvetica, Arial, "黑体";
width: 100%;
font-size: 12PX;
line-height: 1.4;
}
button,
input,
select,
textarea {
font-size: 100%;
margin: 0;
}
img {
max-width: 100%;
display: block;
border: 0;
margin: 0 auto;
}
a {
text-decoration: none;
outline: none;
color: #000;
}
*:focus {
outline: none;
}
.hide {
display: none;
}
.overflow-hidden {
overflow: hidden;
}
.yoho-tip {
position: fixed;
display: none;
text-align: center;
width: 70%;
padding: 34PX 0;
top: 50%;
left: 50%;
margin-left: -35%;
margin-top: -45PX;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
font-size: 18PX;
border: none;
z-index: 4;
border-radius: 10PX;
}
@import "common/reset";
@import "common/lazy-failure";
@import "common/loading";
@import "channel/index";
... ...