Skip to content

Commit deeefcd

Browse files
committed
样式优化
1 parent 74a2d05 commit deeefcd

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎src/assets/css/themes.scss‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
$t1-base-color: #409EFF;
2+
$t1-boxShadow-color: #2d77c0;
23
$t2-base-color: #fe7c01;
4+
$t2-boxShadow-color: #a94f00;
35
$t3-base-color: #6e7786;
6+
$t3-boxShadow-color: #3f444d;
7+
48

59
.theme1 {
6-
box-shadow: 0px 1px 10px 1px $t1-base-color;
10+
box-shadow: 0px 1px 10px 1px $t1-boxShadow-color;
711
width: 94%;
812
background: #fff;
913
border-radius: 8px;
10-
margin: 0 20px 3% 20px;
14+
margin: 0 3% 20px 3%;
1115
padding-bottom: 20px;
1216
overflow: hidden;
1317
}
1418

1519
.theme2 {
16-
box-shadow: 0px 1px 10px 1px $t2-base-color;
20+
box-shadow: 0px 1px 10px 1px $t2-boxShadow-color;
1721
width: 94%;
1822
background: #fff;
1923
border-radius: 8px;
20-
margin: 0 20px 3% 20px;
24+
margin: 0 3% 20px 3%;
2125
padding-bottom: 20px;
2226
overflow: hidden;
2327
}
2428

2529
.theme3 {
26-
box-shadow: 0px 1px 10px 1px #6e7786;
30+
box-shadow: 0px 1px 10px 1px $t3-boxShadow-color;
2731
width: 94%;
2832
background: #fff;
2933
border-radius: 8px;
30-
margin: 0 20px 3% 20px;
34+
margin: 0 3% 20px 3%;
3135
padding-bottom: 20px;
3236
overflow: hidden;
3337
}

‎src/views/home.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default {
9595
let timer = setInterval(() => {
9696
newWin.postMessage(this.pageData, this.$api.previewUrl);
9797
}, 200);
98-
window.addEventListener('message', function (event) {
98+
window.addEventListener('message', event => {
9999
if (event.origin !== this.$api.previewUrl) return;
100100
if (event.data === 'Received') clearInterval(timer)
101101
}, false);

0 commit comments

Comments
 (0)