【add】将可视化的px全部进行缩小2倍

This commit is contained in:
DESKTOP-VMMLSOQ\wangzg 2024-02-21 23:55:23 +08:00
parent 7e8c42ca60
commit 19cc95bc1b
25 changed files with 182 additions and 286 deletions

View File

@ -78,6 +78,12 @@
align-items: center; align-items: center;
flex-direction: @type; flex-direction: @type;
} }
.bg(@url, @left: left, @top: top) {
background: url(@url) @left @top no-repeat;
background-size: 100% 100%;
}
.flex-row{ .flex-row{
display: flex; display: flex;
flex-flow: row; flex-flow: row;
@ -93,3 +99,4 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }

29
buildPlugins/pxresize.js Normal file
View File

@ -0,0 +1,29 @@
'use strict';
let postcss = require('postcss');
let pxRegExp = /\b(\d+(\.\d+)?)px\b/;
let pxGlobalRegExp = new RegExp(pxRegExp.source, 'g');
module.exports = postcss.plugin('postcss-px2rem', (option) => {
let opt = Object.assign({
scale: 0.5,
ignore: []
}, option)
return (root, result) => {
const ignore = opt.ignore || []
const file = result.opts.from
for (const ignoreElement of ignore) {
if (file.indexOf(ignoreElement) >= 0) return
}
root.walkDecls(function(decl) {
if (/px/.test(decl.value)) {
decl.value = decl.value.replace(pxGlobalRegExp, function(match, p1) {
return p1 * opt.scale + 'px'
})
}
})
result.root = root
};
});

View File

@ -143,8 +143,7 @@ export default {
.num-bg { .num-bg {
width: 239px; width: 239px;
height: 270px; height: 270px;
background: url("assets/peakCoalImages/left/air-excellent-rate-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/air-excellent-rate-bg.png");
background-size: 100% 100%;
font-family: YouSheBiaoTiHei; font-family: YouSheBiaoTiHei;
font-size: 85.62px; font-size: 85.62px;
color: #FFFFFF; color: #FFFFFF;

View File

@ -17,8 +17,9 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@import "../assets/styles/mixin";
.custom-title { .custom-title {
ont-family: HYHeiFangJ; font-family: HYHeiFangJ;
font-size: 18px; font-size: 18px;
color: #FFFFFF; color: #FFFFFF;
letter-spacing: 1px; letter-spacing: 1px;
@ -27,12 +28,10 @@ export default {
padding-left: 36px; padding-left: 36px;
height: 32px; height: 32px;
&.type-1 { &.type-1 {
background: url("assets/images/title.png") left top no-repeat; .bg("~/assets/images/title.png");
background-size: 100% 100%;
} }
&.type-2 { &.type-2 {
background: url("assets/images/title2.png") left top no-repeat; .bg("~/assets/images/title2.png");
background-size: 100% 100%;
} }
} }

View File

@ -103,19 +103,19 @@ export default {
.monitor-point-icon { .monitor-point-icon {
width: 173px; width: 173px;
height: 172px; height: 172px;
background: url("assets/peakCoalImages/right/monitor-point-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/monitor-point-icon.png")
} }
.microsite-icon { .microsite-icon {
width: 172px; width: 172px;
height: 173px; height: 173px;
background: url("assets/peakCoalImages/right/microsite-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/microsite-icon.png")
} }
.tester-icon { .tester-icon {
width: 173px; width: 173px;
height: 173px; height: 173px;
background: url("assets/peakCoalImages/right/tester-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/tester-icon.png")
} }
.data-value-info { .data-value-info {

View File

@ -157,7 +157,7 @@ export default {
.electricity-icon { .electricity-icon {
width: 132px; width: 132px;
height: 159px; height: 159px;
background: url("assets/peakCoalImages/right/electricity-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/electricity-icon.png");
} }
.electricity-info { .electricity-info {
@ -171,7 +171,7 @@ export default {
.water-icon { .water-icon {
width: 132px; width: 132px;
height: 159px; height: 159px;
background: url("assets/peakCoalImages/right/water-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/water-icon.png");
} }
.water-info { .water-info {
@ -212,7 +212,7 @@ export default {
.tab-type { .tab-type {
width: 144px; width: 144px;
height: 59px; height: 59px;
background: url("assets/peakCoalImages/left/pollutant-type-default-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-type-default-bg.png");
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
font-size: 29.97px; font-size: 29.97px;
color: rgba(216, 240, 255, 0.50); color: rgba(216, 240, 255, 0.50);
@ -225,7 +225,7 @@ export default {
} }
.active-tab { .active-tab {
background: url("assets/peakCoalImages/left/pollutant-type-active-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-type-active-bg.png");
color: #D8F0FF; color: #D8F0FF;
text-shadow: 0 0 33px #0091FF; text-shadow: 0 0 33px #0091FF;
font-weight: 400; font-weight: 400;

View File

@ -174,7 +174,7 @@ export default {
bottom: -20px; bottom: -20px;
width: 252px; width: 252px;
height: 67px; height: 67px;
background: url("assets/peakCoalImages/right/operational-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/operational-icon.png");
} }
} }
} }
@ -195,7 +195,7 @@ export default {
.tab-type { .tab-type {
width: 144px; width: 144px;
height: 59px; height: 59px;
background: url("assets/peakCoalImages/left/pollutant-type-default-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-type-default-bg.png");
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
font-size: 29.97px; font-size: 29.97px;
color: rgba(216, 240, 255, 0.50); color: rgba(216, 240, 255, 0.50);
@ -208,7 +208,7 @@ export default {
} }
.active-tab { .active-tab {
background: url("assets/peakCoalImages/left/pollutant-type-active-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-type-active-bg.png");
color: #D8F0FF; color: #D8F0FF;
text-shadow: 0 0 33px #0091FF; text-shadow: 0 0 33px #0091FF;
font-weight: 400; font-weight: 400;

View File

@ -55,8 +55,7 @@ export default {
margin-right: 8px; margin-right: 8px;
width: 39px; width: 39px;
height: 46px; height: 46px;
background: url("assets/images/矩形 2.png") left top no-repeat; .bg("~/assets/images/矩形 2.png");
background-size: 100% 100%;
font-family: HIKLDH-Number-CondensedMedium; font-family: HIKLDH-Number-CondensedMedium;
font-size: 24px; font-size: 24px;
color: #08EBF5; color: #08EBF5;

View File

@ -194,7 +194,7 @@ export default {
.pollutant-values { .pollutant-values {
width: 463px; width: 463px;
height: 133px; height: 133px;
background: url("assets/peakCoalImages/left/pollutant-values-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-values-bg.png");
.flex-row; .flex-row;
padding: 0 27px; padding: 0 27px;
@ -204,15 +204,15 @@ export default {
} }
.pollutant-level-icon { .pollutant-level-icon {
background: url("assets/peakCoalImages/left/pollutant-level-icon.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-level-icon.png");
} }
.pollutant-reduction-icon { .pollutant-reduction-icon {
background: url("assets/peakCoalImages/left/pollutant-reduction-icon.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-reduction-icon.png");
} }
.pollutant-up-icon { .pollutant-up-icon {
background: url("assets/peakCoalImages/left/pollutant-up-icon.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-up-icon.png");
} }
.pollutant-other-info { .pollutant-other-info {

View File

@ -93,8 +93,7 @@ export default {
.pie-box { .pie-box {
width: 146px; width: 146px;
height: 146px; height: 146px;
background: url('assets/images/圆环背景.png') center no-repeat; .bg("~/assets/images/圆环背景.png");
background-size: 146px 146px;
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;

View File

@ -153,7 +153,7 @@ export default {
.pollutant-type { .pollutant-type {
width: 144px; width: 144px;
height: 59px; height: 59px;
background: url("assets/peakCoalImages/left/pollutant-type-default-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-type-default-bg.png");
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
font-size: 29.97px; font-size: 29.97px;
color: rgba(216, 240, 255, 0.50); color: rgba(216, 240, 255, 0.50);
@ -166,7 +166,7 @@ export default {
} }
.active-tab { .active-tab {
background: url("assets/peakCoalImages/left/pollutant-type-active-bg.png") no-repeat; .bg("~/assets/peakCoalImages/left/pollutant-type-active-bg.png");
color: #D8F0FF; color: #D8F0FF;
text-shadow: 0 0 33px #0091FF; text-shadow: 0 0 33px #0091FF;
font-weight: 400; font-weight: 400;

View File

@ -30,15 +30,13 @@ export default {
.secondary-title { .secondary-title {
width: 100%; width: 100%;
height: 84px; height: 84px;
background: url("assets/peakCoalImages/common/small-seconfary-title-bg.png") no-repeat; .bg("~/assets/peakCoalImages/common/small-seconfary-title-bg.png");
background-size: 100% 100%;
.clear-fix; .clear-fix;
&.longBg { &.longBg {
width: 100%; width: 100%;
height: 84px; height: 84px;
background: url("assets/peakCoalImages/common/long-seconfary-title-bg.png") no-repeat; .bg("~/assets/peakCoalImages/common/long-seconfary-title-bg.png");
background-size: 100% 100%;
} }
._title { ._title {

View File

@ -34,8 +34,7 @@ export default {
<style scoped lang="less"> <style scoped lang="less">
@import "assets/styles/mixin"; @import "assets/styles/mixin";
.swiper-card { .swiper-card {
background: url('assets/images/顶部本月的粉 3.png') left top no-repeat; .bg("~/assets/images/顶部本月的粉 3.png");
background-size: 100% 100%;
width: 166px; width: 166px;
height: 213px; height: 213px;
box-sizing: border-box; box-sizing: border-box;

View File

@ -36,9 +36,9 @@ export default {
} }
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
@import "../assets/styles/mixin";
.TabItem { .TabItem {
background: url('assets/images/sel.png') left top no-repeat; .bg("~/assets/images/sel.png");
background-size: 100% 100%;
width: 64px; width: 64px;
height: 23px; height: 23px;
display: flex; display: flex;
@ -54,13 +54,11 @@ export default {
line-height: 23px; line-height: 23px;
cursor: pointer; cursor: pointer;
&.selected { &.selected {
background: url('assets/images/sel备份.png') left top no-repeat; .bg("~/assets/images/sel备份.png");
background-size: 100% 100%;
color: #08EBF5; color: #08EBF5;
} }
&:hover { &:hover {
background: url('assets/images/sel备份.png') left top no-repeat; .bg("~/assets/images/sel备份.png");
background-size: 100% 100%;
color: #08EBF5; color: #08EBF5;
} }
} }

View File

@ -36,7 +36,7 @@ export default {
._icon { ._icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
background: url("assets/peakCoalImages/common/third-level-label-icon.png") no-repeat; .bg("~/assets/peakCoalImages/common/third-level-label-icon.png");
float: left; float: left;
position: relative; position: relative;
top: 50%; top: 50%;

View File

@ -64,7 +64,7 @@ export default {
.warning-data-card { .warning-data-card {
height: 202px; height: 202px;
width: 891px; width: 891px;
background: url("assets/peakCoalImages/right/warning-card-bg.png") no-repeat; .bg("~/assets/peakCoalImages/right/warning-card-bg.png");
padding-left: 28px; padding-left: 28px;
position: relative; position: relative;
.flex-row; .flex-row;
@ -104,13 +104,13 @@ export default {
.site-icon { .site-icon {
width: 26px; width: 26px;
height: 34px; height: 34px;
background: url("assets/peakCoalImages/right/warning-site-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/warning-site-icon.png");
} }
.warning-time-icon { .warning-time-icon {
width: 33px; width: 33px;
height: 33px; height: 33px;
background: url("assets/peakCoalImages/right/warning-time-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/warning-time-icon.png");
} }
@ -142,11 +142,11 @@ export default {
} }
.discuss-decide-bg { .discuss-decide-bg {
background: url("assets/peakCoalImages/right/discuss-decide-bg.png") no-repeat; .bg("~/assets/peakCoalImages/right/discuss-decide-bg.png");
} }
.pending-approval-bg { .pending-approval-bg {
background: url("assets/peakCoalImages/right/pending-approval-bg.png") no-repeat; .bg("~/assets/peakCoalImages/right/pending-approval-bg.png");
} }
} }
</style> </style>

View File

@ -85,7 +85,7 @@ export default {
.warning-icon { .warning-icon {
width: 194px; width: 194px;
height: 114px; height: 114px;
background: url("assets/peakCoalImages/right/warning-icon.png") no-repeat; .bg("~/assets/peakCoalImages/right/warning-icon.png");
} }
._title { ._title {
@ -109,7 +109,7 @@ export default {
.warning-type-pie { .warning-type-pie {
flex: 1; flex: 1;
height: 0; height: 0;
background: url("assets/peakCoalImages/right/warning-type-pie-bg.png") no-repeat 20px center; .bg("~/assets/peakCoalImages/right/warning-type-pie-bg.png", left, 20px);
} }
} }
} }

View File

@ -11,11 +11,11 @@ export const ms3dConfig = {
"shadows": false, "shadows": false,
"removeDblClick": true, "removeDblClick": true,
"sceneMode": 3, "sceneMode": 3,
"showSun": true, "showSun": false,
"showMoon": true, "showMoon": false,
"showSkyBox": true, "showSkyBox": true,
"showSkyAtmosphere": true, "showSkyAtmosphere": true,
"fog": true, "fog": false,
"fxaa": true, "fxaa": true,
"requestRenderMode": false, "requestRenderMode": false,
"contextOptions": { "contextOptions": {
@ -40,22 +40,22 @@ export const ms3dConfig = {
} }
}, },
"control": { "control": {
"homeButton": true, "homeButton": false,
"baseLayerPicker": true, "baseLayerPicker": false,
"sceneModePicker": true, "sceneModePicker": false,
"vrButton": false, "vrButton": false,
"fullscreenButton": true, "fullscreenButton": false,
"navigationHelpButton": true, "navigationHelpButton": false,
"animation": false, "animation": false,
"timeline": false, "timeline": false,
"infoBox": false, "infoBox": false,
"geocoder": false, "geocoder": false,
"selectionIndicator": false, "selectionIndicator": false,
"showRenderLoopErrors": true, "showRenderLoopErrors": false,
"contextmenu": { "contextmenu": {
"hasDefault": true "hasDefault": false
}, },
"mouseDownView": true, "mouseDownView": false,
"zoom": { "zoom": {
"insertBefore": "sceneModePicker" "insertBefore": "sceneModePicker"
}, },
@ -79,7 +79,7 @@ export const ms3dConfig = {
}, },
"terrain": { "terrain": {
"url": "//data.mars3d.cn/terrain", "url": "//data.mars3d.cn/terrain",
"show": true "show": false
}, },
"basemaps": [ "basemaps": [
{ {
@ -87,15 +87,6 @@ export const ms3dConfig = {
"name": "地图底图", "name": "地图底图",
"type": "group" "type": "group"
}, },
{
"id": 2021,
"pid": 10,
"name": "谷歌影像",
"icon": "/img/basemaps/google_img.png",
"type": "google",
"layer": "img_d",
"show": true
},
{ {
"pid": 10, "pid": 10,
"name": "天地图影像", "name": "天地图影像",
@ -113,208 +104,8 @@ export const ms3dConfig = {
"layer": "img_z" "layer": "img_z"
} }
], ],
"show": false "show": true
}, },
{
"pid": 10,
"name": "天地图电子",
"icon": "/img/basemaps/tdt_vec.png",
"type": "group",
"layers": [
{
"name": "底图",
"type": "tdt",
"layer": "vec_d"
},
{
"name": "注记",
"type": "tdt",
"layer": "vec_z"
}
]
},
{
"pid": 10,
"name": "高德影像",
"type": "group",
"icon": "/img/basemaps/gaode_img.png",
"layers": [
{
"name": "底图",
"type": "gaode",
"layer": "img_d"
},
{
"name": "注记",
"type": "gaode",
"layer": "img_z"
}
]
},
{
"pid": 10,
"name": "高德电子",
"type": "gaode",
"icon": "/img/basemaps/gaode_vec.png",
"layer": "vec"
},
{
"pid": 10,
"name": "百度影像",
"type": "group",
"icon": "/img/basemaps/bd-img.png",
"layers": [
{
"name": "底图",
"type": "baidu",
"layer": "img_d"
},
{
"name": "注记",
"type": "baidu",
"layer": "img_z"
}
]
},
{
"pid": 10,
"name": "百度电子",
"icon": "/img/basemaps/bd-vec.png",
"type": "baidu",
"layer": "vec"
},
{
"pid": 10,
"name": "腾讯影像",
"icon": "/img/basemaps/tencent_img.png",
"type": "group",
"layers": [
{
"name": "底图",
"type": "tencent",
"layer": "img_d"
},
{
"name": "注记",
"type": "tencent",
"layer": "img_z"
}
]
},
{
"pid": 10,
"name": "腾讯电子",
"icon": "/img/basemaps/tencent_vec.png",
"type": "tencent",
"layer": "vec"
},
{
"pid": 10,
"name": "ArcGIS影像",
"icon": "/img/basemaps/esriWorldImagery.png",
"type": "xyz",
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
"enablePickFeatures": false
},
{
"pid": 10,
"name": "微软影像",
"icon": "/img/basemaps/bingAerial.png",
"type": "bing",
"layer": "Aerial"
},
{
"id": 2017,
"pid": 10,
"name": "暗色底图",
"type": "gaode",
"icon": "/img/basemaps/blackMarble.png",
"layer": "vec",
"invertColor": true,
"filterColor": "#4e70a6",
"brightness": 0.6,
"contrast": 1.8,
"gamma": 0.3,
"hue": 1,
"saturation": 0
},
{
"pid": 10,
"name": "蓝色底图",
"icon": "/img/basemaps/bd-c-midnight.png",
"type": "xyz",
"url": "http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}",
"chinaCRS": "GCJ02",
"enablePickFeatures": false
},
{
"pid": 10,
"name": "黑色底图",
"icon": "/img/basemaps/bd-c-dark.png",
"type": "tencent",
"layer": "custom",
"style": "4"
},
{
"pid": 10,
"name": "离线地图 (供参考)",
"type": "group",
"icon": "/img/basemaps/google_img.png",
"layers": [
{
"name": "全球",
"type": "xyz",
"url": "{dataServer}/tile/googleImg/{z}/{x}/{y}.jpg",
"minimumLevel": 0,
"maximumLevel": 9
},
{
"name": "中国",
"type": "xyz",
"url": "{dataServer}/tile/googleImg/{z}/{x}/{y}.jpg",
"minimumTerrainLevel": 10,
"minimumLevel": 10,
"maximumLevel": 12,
"rectangle": {
"xmin": 69.706929,
"xmax": 136.560941,
"ymin": 15.831038,
"ymax": 52.558005
}
},
{
"name": "具体项目(如合肥)",
"type": "xyz",
"url": "{dataServer}/tile/googleImg/{z}/{x}/{y}.jpg",
"minimumTerrainLevel": 12,
"minimumLevel": 12,
"maximumLevel": 18,
"rectangle": {
"xmin": 116.33236,
"xmax": 118.183557,
"ymin": 31.143784,
"ymax": 32.565035
}
}
]
},
{
"pid": 10,
"name": "单张图片 (本地离线)",
"icon": "/img/basemaps/offline.png",
"type": "image",
"url": "//data.mars3d.cn/file/img/world/world.jpg"
},
{
"id": 2023,
"pid": 10,
"name": "无底图",
"icon": "/img/basemaps/null.png",
"type": "grid",
"color": "#ffffff",
"alpha": 0.03,
"cells": 2
}
], ],
"layers": [ "layers": [
{ {

View File

@ -61,5 +61,8 @@ export default {
// Build Configuration: https://go.nuxtjs.dev/config-build // Build Configuration: https://go.nuxtjs.dev/config-build
build: { build: {
},
env: {
scale: 0.5
} }
} }

View File

@ -13,6 +13,7 @@
"axios": "^1.6.1", "axios": "^1.6.1",
"core-js": "^3.25.3", "core-js": "^3.25.3",
"echarts": "^5.4.3", "echarts": "^5.4.3",
"lodash": "^4.17.21",
"loglevel": "^1.9.1", "loglevel": "^1.9.1",
"mars3d": "^3.7.3", "mars3d": "^3.7.3",
"nuxt": "^2.15.8", "nuxt": "^2.15.8",
@ -20,8 +21,7 @@
"vue-echarts": "^4.1.0", "vue-echarts": "^4.1.0",
"vue-seamless-scroll": "^1.1.23", "vue-seamless-scroll": "^1.1.23",
"vue-server-renderer": "^2.7.10", "vue-server-renderer": "^2.7.10",
"vue-template-compiler": "^2.7.10", "vue-template-compiler": "^2.7.10"
"lodash": "^4.17.21"
}, },
"devDependencies": { "devDependencies": {
"less": "^4.2.0", "less": "^4.2.0",

View File

@ -1,5 +1,7 @@
<template> <template>
<div>hello world</div> <div>
<Map />
</div>
</template> </template>
<script> <script>

View File

@ -63,7 +63,7 @@
<div class="right-icon point"></div> <div class="right-icon point"></div>
</div> </div>
<Map /> <!-- <Map />-->
</div> </div>
</template> </template>
@ -170,7 +170,7 @@ body, html, #__nuxt, #__layout {
top: 0px; top: 0px;
height: 507px; height: 507px;
width: 100%; width: 100%;
background: url("assets/peakCoalImages/header/first-title-bg.png") no-repeat center center; .bg("~/assets/peakCoalImages/header/first-title-bg.png");
} }
@ -185,7 +185,7 @@ body, html, #__nuxt, #__layout {
top: 136px; top: 136px;
width: 2935px; width: 2935px;
height: 2721px; height: 2721px;
background: url("assets/peakCoalImages/left/left-content-bg.png") no-repeat center 60px; .bg("~/assets/peakCoalImages/left/left-content-bg.png", center, 60px);
padding: 300px 476px 100px 412px; padding: 300px 476px 100px 412px;
perspective: 500px; perspective: 500px;
.left-data-panel { .left-data-panel {
@ -202,7 +202,7 @@ body, html, #__nuxt, #__layout {
top: 136px; top: 136px;
width: 2935px; width: 2935px;
height: 2721px; height: 2721px;
background: url("assets/peakCoalImages/right/right-content-bg.png") no-repeat center 60px; .bg("~/assets/peakCoalImages/right/right-content-bg.png", center, 60px);
padding: 300px 476px 100px 480px; padding: 300px 476px 100px 480px;
perspective: 500px; perspective: 500px;
@ -221,7 +221,7 @@ body, html, #__nuxt, #__layout {
transform: translateX(-50%); transform: translateX(-50%);
width: 4383px; width: 4383px;
height: 2628px; height: 2628px;
background: url("assets/peakCoalImages/center/center-content-bg.png") no-repeat center center; .bg("~/assets/peakCoalImages/center/center-content-bg.png");
pointer-events: none; pointer-events: none;
} }
} }
@ -231,7 +231,7 @@ body, html, #__nuxt, #__layout {
bottom: 0px; bottom: 0px;
width: 100%; width: 100%;
height: 220px; height: 220px;
background: url("assets/peakCoalImages/footer/footer-bg.png") no-repeat center center; .bg("~/assets/peakCoalImages/footer/footer-bg.png", center, center);
} }
@ -240,8 +240,7 @@ body, html, #__nuxt, #__layout {
left: 0px; left: 0px;
width: 531px; width: 531px;
height: 100%; height: 100%;
background: url("assets/peakCoalImages/left/left-icon.png") no-repeat center center; .bg("~/assets/peakCoalImages/left/left-icon.png", center, center);
background-size: 100% 100%;
} }
.right-icon { .right-icon {
@ -249,8 +248,7 @@ body, html, #__nuxt, #__layout {
right: 0px; right: 0px;
width: 531px; width: 531px;
height: 100%; height: 100%;
background: url("assets/peakCoalImages/right/right-icon.png") no-repeat center center; .bg("~/assets/peakCoalImages/right/right-icon.png", center, center);
background-size: 100% 100%;
} }
} }
</style> </style>

9
postcss.config.js Normal file
View File

@ -0,0 +1,9 @@
module.exports = {
plugins: [
require('./buildPlugins/pxresize')({
scale: 0.5,
ignore: ['manager']
})
]
};

View File

@ -82,8 +82,6 @@
.mars3d-contextmenu-ul .line { .mars3d-contextmenu-ul .line {
display: block; display: block;
content: ""; content: "";
height: 1px;
width: 96%;
position: absolute; position: absolute;
left: 2%; left: 2%;
background: #dddddd; background: #dddddd;

View File

@ -2149,6 +2149,11 @@ ansi-regex@^5.0.1:
resolved "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" resolved "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
ansi-styles@^2.2.1:
version "2.2.1"
resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==
ansi-styles@^3.2.1: ansi-styles@^3.2.1:
version "3.2.1" version "3.2.1"
resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
@ -2757,6 +2762,17 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001541, can
resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz#95a982440d3d314c471db68d02664fb7536c5a30" resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz#95a982440d3d314c471db68d02664fb7536c5a30"
integrity sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA== integrity sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA==
chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.npmmirror.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==
dependencies:
ansi-styles "^2.2.1"
escape-string-regexp "^1.0.2"
has-ansi "^2.0.0"
strip-ansi "^3.0.0"
supports-color "^2.0.0"
chalk@^2.3.2, chalk@^2.4.1, chalk@^2.4.2: chalk@^2.3.2, chalk@^2.4.1, chalk@^2.4.2:
version "2.4.2" version "2.4.2"
resolved "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" resolved "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
@ -3859,7 +3875,7 @@ escape-html@~1.0.3:
resolved "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" resolved "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
escape-string-regexp@^1.0.5: escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
version "1.0.5" version "1.0.5"
resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
@ -3970,6 +3986,11 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2:
assign-symbols "^1.0.0" assign-symbols "^1.0.0"
is-extendable "^1.0.1" is-extendable "^1.0.1"
extend@~3.0.0:
version "3.0.2"
resolved "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
external-editor@^3.0.3: external-editor@^3.0.3:
version "3.1.0" version "3.1.0"
resolved "https://registry.npmmirror.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" resolved "https://registry.npmmirror.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495"
@ -4436,11 +4457,23 @@ hard-source-webpack-plugin@^0.13.1:
webpack-sources "^1.0.1" webpack-sources "^1.0.1"
write-json-file "^2.3.0" write-json-file "^2.3.0"
has-ansi@^2.0.0:
version "2.0.0"
resolved "https://registry.npmmirror.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==
dependencies:
ansi-regex "^2.0.0"
has-bigints@^1.0.1, has-bigints@^1.0.2: has-bigints@^1.0.1, has-bigints@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.npmmirror.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" resolved "https://registry.npmmirror.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa"
integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==
has-flag@^1.0.0:
version "1.0.0"
resolved "https://registry.npmmirror.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
integrity sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==
has-flag@^3.0.0: has-flag@^3.0.0:
version "3.0.0" version "3.0.0"
resolved "https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" resolved "https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
@ -5054,6 +5087,11 @@ jiti@^1.16.2, jiti@^1.20.0:
resolved "https://registry.npmmirror.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" resolved "https://registry.npmmirror.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d"
integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==
js-base64@^2.1.9:
version "2.6.4"
resolved "https://registry.npmmirror.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4"
integrity sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0" version "4.0.0"
resolved "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" resolved "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@ -6938,6 +6976,14 @@ postcss-pseudo-class-any-link@^9.0.0:
dependencies: dependencies:
postcss-selector-parser "^6.0.13" postcss-selector-parser "^6.0.13"
postcss-px-resize@^0.0.2:
version "0.0.2"
resolved "https://registry.npmmirror.com/postcss-px-resize/-/postcss-px-resize-0.0.2.tgz#82f2a9dfbf021d6c540f00cf9435ea57b75dc494"
integrity sha512-YkpBhtpt2WdApqWmWIN1kwoJ2K4UnpHkdVQRCbSUyoSHan2oxvhLYuUy6CEwrBuFzRm7TVuu69/dEI1/wlpXWw==
dependencies:
extend "~3.0.0"
postcss "^5.0.0"
postcss-reduce-initial@^5.1.2: postcss-reduce-initial@^5.1.2:
version "5.1.2" version "5.1.2"
resolved "https://registry.npmmirror.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz#798cd77b3e033eae7105c18c9d371d989e1382d6" resolved "https://registry.npmmirror.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz#798cd77b3e033eae7105c18c9d371d989e1382d6"
@ -7033,6 +7079,16 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^
resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
postcss@^5.0.0:
version "5.2.18"
resolved "https://registry.npmmirror.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5"
integrity sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==
dependencies:
chalk "^1.1.3"
js-base64 "^2.1.9"
source-map "^0.5.6"
supports-color "^3.2.3"
postcss@^7.0.36: postcss@^7.0.36:
version "7.0.39" version "7.0.39"
resolved "https://registry.npmmirror.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309" resolved "https://registry.npmmirror.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309"
@ -7999,7 +8055,7 @@ string_decoder@~1.1.1:
dependencies: dependencies:
safe-buffer "~5.1.0" safe-buffer "~5.1.0"
strip-ansi@^3.0.1: strip-ansi@^3.0.0, strip-ansi@^3.0.1:
version "3.0.1" version "3.0.1"
resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==
@ -8044,6 +8100,18 @@ stylehacks@^6.0.0:
browserslist "^4.21.4" browserslist "^4.21.4"
postcss-selector-parser "^6.0.4" postcss-selector-parser "^6.0.4"
supports-color@^2.0.0:
version "2.0.0"
resolved "https://registry.npmmirror.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==
supports-color@^3.2.3:
version "3.2.3"
resolved "https://registry.npmmirror.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
integrity sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==
dependencies:
has-flag "^1.0.0"
supports-color@^5.3.0: supports-color@^5.3.0:
version "5.5.0" version "5.5.0"
resolved "https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" resolved "https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"