Commit 23fdac08 by Jaxon

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

统一全站CSS/SCSS文件的代码格式:修正缩进与换行规范,将单引号替换为双引号,修复index.scss里的断行选择器错误,把颜色值统一为小写格式,同时修复部分文件末尾缺失的换行问题。
1 parent eea349b2
.layout {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgb(246, 246, 255);
box-sizing: border-box;
padding: 0 16px 60px;
overflow-y: scroll;
.tips-box {
display: flex;
flex-direction: column;
align-items: center;
padding: 60px 0 64px;
.icon {
width: 100px;
height: 53px;
}
.title {
font-size: 16px;
color: #3975c6;
padding: 15px 0 4px;
font-weight: 500;
}
.tips {
font-size: 12px;
color: #999999;
}
}
> .title {
font-size: 15px;
color: #333333;
span {
position: relative;
&::after {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
bottom: 0;
left: 0;
content: '';
z-index: -1;
border-top: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid rgba($color: #539cff, $alpha: 0.55);
border-left: 6px solid transparent;
}
}
}
.box {
padding-top: 17px;
.item {
margin-bottom: 16px;
background: #ffffff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 4px;
box-sizing: border-box;
padding: 24px 16px 16px 16px;
display: flex;
font-size: 12px;
color: #333333;
.title {
width: 60px;
flex-shrink: 0;
position: relative;
padding-left: 10px;
&::after {
position: absolute;
top: 6px;
left: 0;
background: var(--themeColor);
width: 6px;
height: 6px;
border-radius: 100%;
content: '';
}
}
.value {
.text {
display: flex;
align-items: center;
.icon {
width: 20px;
height: 20px;
margin-left: 16px;
}
}
.tips {
color: #999999;
margin-top: 8px;
line-height: 20px;
}
}
.qr-box {
display: flex;
flex-direction: column;
align-items: center;
.qr {
width: 140px;
height: 140px;
}
.tips {
margin-top: 8px;
color: #666666;
}
}
}
.column {
flex-direction: column;
.title {
margin-bottom: 8px;
}
.phone {
color: #666666;
background: #f8f8f8;
border-radius: 1px;
height: 32px;
box-sizing: border-box;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
.icon {
height: 20px;
width: 20px;
}
}
}
> .tips {
font-size: 12px;
color: #fc9153;
text-align: center;
}
}
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgb(246, 246, 255);
box-sizing: border-box;
padding: 0 16px 60px;
overflow-y: scroll;
.tips-box {
display: flex;
flex-direction: column;
align-items: center;
padding: 60px 0 64px;
.icon {
width: 100px;
height: 53px;
}
.title {
font-size: 16px;
color: #3975c6;
padding: 15px 0 4px;
font-weight: 500;
}
.tips {
font-size: 12px;
color: #999999;
}
}
> .title {
font-size: 15px;
color: #333333;
span {
position: relative;
&::after {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
bottom: 0;
left: 0;
content: "";
z-index: -1;
border-top: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid rgba($color: #539cff, $alpha: 0.55);
border-left: 6px solid transparent;
}
}
}
.box {
padding-top: 17px;
.item {
margin-bottom: 16px;
background: #ffffff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 4px;
box-sizing: border-box;
padding: 24px 16px 16px 16px;
display: flex;
font-size: 12px;
color: #333333;
.title {
width: 60px;
flex-shrink: 0;
position: relative;
padding-left: 10px;
&::after {
position: absolute;
top: 6px;
left: 0;
background: var(--themeColor);
width: 6px;
height: 6px;
border-radius: 100%;
content: "";
}
}
.value {
.text {
display: flex;
align-items: center;
.icon {
width: 20px;
height: 20px;
margin-left: 16px;
}
}
.tips {
color: #999999;
margin-top: 8px;
line-height: 20px;
}
}
.qr-box {
display: flex;
flex-direction: column;
align-items: center;
.qr {
width: 140px;
height: 140px;
}
.tips {
margin-top: 8px;
color: #666666;
}
}
}
.column {
flex-direction: column;
.title {
margin-bottom: 8px;
}
.phone {
color: #666666;
background: #f8f8f8;
border-radius: 1px;
height: 32px;
box-sizing: border-box;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
.icon {
height: 20px;
width: 20px;
}
}
}
> .tips {
font-size: 12px;
color: #fc9153;
text-align: center;
}
}
}
@import './normalize.scss';
@import './sprite.scss';
@import "./normalize.scss";
@import "./sprite.scss";
html,
body .app {
color: #333333;
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
background-color: #FFF;
-webkit-overflow-scrolling: touch;
height: 100%;
// overflow: hidden;
--themeColor: #3975C6;
/* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
color: #333333;
font-family: Arial, Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, sans-serif;
background-color: #fff;
-webkit-overflow-scrolling: touch;
height: 100%;
// overflow: hidden;
--themeColor: #3975c6;
/* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
}
@font-face {
font-family: "numberNor";
font-style: normal;
// font-weight: 500;
font-display: swap;
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.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-family: "numberNor";
font-style: normal;
// font-weight: 500;
font-display: swap;
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.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-family: "numberBold";
font-style: normal;
// font-weight: 700;
font-display: swap;
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.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");
font-family: "numberBold";
font-style: normal;
// font-weight: 700;
font-display: swap;
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.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 {
width: 100%;
height: 100%;
vertical-align: top;
width: 100%;
height: 100%;
vertical-align: top;
}
.flex {
display: flex;
align-items: center;
display: flex;
align-items: center;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-two-line {
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.y-center {
position: absolute;
top: 50%;
transform: translateY(-50%);
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.box-center{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
.box-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.box-ce
.list-box {
padding: 16px;
.box-ce .list-box {
padding: 16px;
}
.btn {
padding: 0 12px;
height: 24px;
background: var(--themeColor);
border-radius: 12px;
color: #ffffff;
margin-left: auto;
font-size: 10px;
padding: 0 12px;
height: 24px;
background: var(--themeColor);
border-radius: 12px;
color: #ffffff;
margin-left: auto;
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
.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!