Commit 23fdac08 by Jaxon

style(assets/css): 格式化所有CSS/SCSS文件,统一代码风格

统一全站CSS/SCSS文件的代码格式:修正缩进与换行规范,将单引号替换为双引号,修复index.scss里的断行选择器错误,把颜色值统一为小写格式,同时修复部分文件末尾缺失的换行问题。
1 parent eea349b2
.layout { .layout {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
background-color: rgb(246, 246, 255); background-color: rgb(246, 246, 255);
box-sizing: border-box; box-sizing: border-box;
padding: 0 16px 60px; padding: 0 16px 60px;
overflow-y: scroll; overflow-y: scroll;
.tips-box { .tips-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 60px 0 64px; padding: 60px 0 64px;
.icon { .icon {
width: 100px; width: 100px;
height: 53px; height: 53px;
} }
.title { .title {
font-size: 16px; font-size: 16px;
color: #3975c6; color: #3975c6;
padding: 15px 0 4px; padding: 15px 0 4px;
font-weight: 500; font-weight: 500;
} }
.tips { .tips {
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
} }
> .title { > .title {
font-size: 15px; font-size: 15px;
color: #333333; color: #333333;
span { span {
position: relative; position: relative;
&::after { &::after {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
bottom: 0; bottom: 0;
left: 0; left: 0;
content: ''; content: "";
z-index: -1; z-index: -1;
border-top: 6px solid transparent; border-top: 6px solid transparent;
border-right: 6px solid transparent; border-right: 6px solid transparent;
border-bottom: 6px solid rgba($color: #539cff, $alpha: 0.55); border-bottom: 6px solid rgba($color: #539cff, $alpha: 0.55);
border-left: 6px solid transparent; border-left: 6px solid transparent;
} }
} }
} }
.box { .box {
padding-top: 17px; padding-top: 17px;
.item { .item {
margin-bottom: 16px; margin-bottom: 16px;
background: #ffffff; background: #ffffff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
padding: 24px 16px 16px 16px; padding: 24px 16px 16px 16px;
display: flex; display: flex;
font-size: 12px; font-size: 12px;
color: #333333; color: #333333;
.title { .title {
width: 60px; width: 60px;
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
padding-left: 10px; padding-left: 10px;
&::after { &::after {
position: absolute; position: absolute;
top: 6px; top: 6px;
left: 0; left: 0;
background: var(--themeColor); background: var(--themeColor);
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 100%; border-radius: 100%;
content: ''; content: "";
} }
} }
.value { .value {
.text { .text {
display: flex; display: flex;
align-items: center; align-items: center;
.icon { .icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
margin-left: 16px; margin-left: 16px;
} }
} }
.tips { .tips {
color: #999999; color: #999999;
margin-top: 8px; margin-top: 8px;
line-height: 20px; line-height: 20px;
} }
} }
.qr-box { .qr-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.qr { .qr {
width: 140px; width: 140px;
height: 140px; height: 140px;
} }
.tips { .tips {
margin-top: 8px; margin-top: 8px;
color: #666666; color: #666666;
} }
} }
} }
.column { .column {
flex-direction: column; flex-direction: column;
.title { .title {
margin-bottom: 8px; margin-bottom: 8px;
} }
.phone { .phone {
color: #666666; color: #666666;
background: #f8f8f8; background: #f8f8f8;
border-radius: 1px; border-radius: 1px;
height: 32px; height: 32px;
box-sizing: border-box; box-sizing: border-box;
padding: 0 16px; padding: 0 16px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.icon { .icon {
height: 20px; height: 20px;
width: 20px; width: 20px;
} }
} }
} }
> .tips { > .tips {
font-size: 12px; font-size: 12px;
color: #fc9153; color: #fc9153;
text-align: center; text-align: center;
} }
} }
} }
@import './normalize.scss'; @import "./normalize.scss";
@import './sprite.scss'; @import "./sprite.scss";
html, html,
body .app { body .app {
color: #333333; color: #333333;
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif; font-family: Arial, Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, sans-serif;
background-color: #FFF; background-color: #fff;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
height: 100%; height: 100%;
// overflow: hidden; // overflow: hidden;
--themeColor: #3975C6; --themeColor: #3975c6;
/* 兼容 IOS<11.2 先constant再env */ /* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom); --constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */ /* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom); --envSafeAreaInsetBottom: env(safe-area-inset-bottom);
} }
@font-face { @font-face {
font-family: "numberNor"; font-family: "numberNor";
font-style: normal; font-style: normal;
// font-weight: 500; // font-weight: 500;
font-display: swap; font-display: swap;
src: src:
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff2") format("woff2"), url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff2")
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff") format("woff"), format("woff2"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf") format("truetype"); url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff")
format("woff"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf")
format("truetype");
} }
@font-face { @font-face {
font-family: "numberBold"; font-family: "numberBold";
font-style: normal; font-style: normal;
// font-weight: 700; // font-weight: 700;
font-display: swap; font-display: swap;
src: src:
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff2") format("woff2"), url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff2")
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff") format("woff"), format("woff2"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf") format("truetype"); url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff")
format("woff"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf")
format("truetype");
} }
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
vertical-align: top; vertical-align: top;
} }
.flex { .flex {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.text-two-line { .text-two-line {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.text-center { .text-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.x-center { .x-center {
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
.y-center { .y-center {
position: absolute; position: absolute;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
.box-center{ .box-center {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;
transform: translate(-50%,-50%); transform: translate(-50%, -50%);
} }
.box-ce .box-ce .list-box {
.list-box { padding: 16px;
padding: 16px;
} }
.btn { .btn {
padding: 0 12px; padding: 0 12px;
height: 24px; height: 24px;
background: var(--themeColor); background: var(--themeColor);
border-radius: 12px; border-radius: 12px;
color: #ffffff; color: #ffffff;
margin-left: auto; margin-left: auto;
font-size: 10px; font-size: 10px;
} }
.sprite-icon { background-image: url(../images/sprite.png);background-size: 80px 80px;}
.icon-logo { width: 80px; height: 80px; background-position: 0px 0px;}
\ No newline at end of file \ No newline at end of file
.sprite-icon {
background-image: url(../images/sprite.png);
background-size: 80px 80px;
}
.icon-logo {
width: 80px;
height: 80px;
background-position: 0px 0px;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!