Commit 23fdac08 by Jaxon

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

统一全站CSS/SCSS文件的代码格式:修正缩进与换行规范,将单引号替换为双引号,修复index.scss里的断行选择器错误,把颜色值统一为小写格式,同时修复部分文件末尾缺失的换行问题。
1 parent eea349b2
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
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;
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 100%; border-radius: 100%;
content: ''; content: "";
} }
} }
.value { .value {
......
@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 */
...@@ -22,9 +22,12 @@ body .app { ...@@ -22,9 +22,12 @@ body .app {
// 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 {
...@@ -33,9 +36,12 @@ body .app { ...@@ -33,9 +36,12 @@ body .app {
// 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 {
...@@ -80,14 +86,13 @@ img { ...@@ -80,14 +86,13 @@ img {
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;
} }
......
.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!