perf: overview顶部时间、Nezha标题、第一行字体调整

This commit is contained in:
陈劲松
2020-04-24 12:06:46 +08:00
parent 862ab6972e
commit 2638f45934
2 changed files with 21 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
} }
.overview-content-header{ .overview-content-header{
display: flex; display: flex;
padding-top: 10px; padding-top: 6px;
} }
.overview-content-header .header-title{ .overview-content-header .header-title{
flex:13; flex:13;
@@ -26,8 +26,7 @@
} }
.tool-container .time{ .tool-container .time{
flex: 4; flex: 4;
font-size: 1.5rem !important; font-size: 1.2rem !important;
font-weight: 700;
display: inline-block; display: inline-block;
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
@@ -38,11 +37,10 @@
height: 35px; height: 35px;
} }
.date .week{ .date .week{
font-size: 1.125rem; font-size: 0.9rem;
font-weight: bold; line-height: 1.1rem;
} }
.date .sys-date{ .date .sys-date{
margin-top: -6px;
font-size: .75rem; font-size: .75rem;
} }
.tool-container .operation{ .tool-container .operation{
@@ -52,9 +50,10 @@
} }
.operation .screen-icon{ .operation .screen-icon{
font-size: 1.875rem !important; font-size: 1.875rem !important;
cursor: pointer;
} }
.overview-content{ .overview-content{
height: calc(100% - 45px); height: calc(100% - 42px);
width: 100%; width: 100%;
} }
.overview-content .content-row-box { .overview-content .content-row-box {
@@ -136,8 +135,11 @@
font-size: 0.9rem; font-size: 0.9rem;
} }
.content-col-content-num { .content-col-content-num {
font-size: 2.5rem; font-size: 3.2rem;
font-weight: bold;
color: #333; color: #333;
} }
.hide-div {
visibility: hidden;
}

View File

@@ -568,10 +568,10 @@
fullScreen:function(){ fullScreen:function(){
let container=document.getElementById('mainDisplay'); let container=document.getElementById('mainDisplay');
let fullScreenFunc=container.requestFullscreen||container.mozRequestFullScreen||container.webkitRequestFullscreen||container.msRequestFullscreen; let fullScreenFunc=container.requestFullscreen||container.mozRequestFullScreen||container.webkitRequestFullscreen||container.msRequestFullscreen;
fullScreenFunc.call(container) fullScreenFunc.call(container);
this.isFullScreen = true;
}, },
exitFullScreen:function(){ exitFullScreen:function(){
if(this.judgeFullScreen()){
if(document.exitFullscreen) { if(document.exitFullscreen) {
document.exitFullscreen(); document.exitFullscreen();
} else if(document.mozCancelFullScreen) { } else if(document.mozCancelFullScreen) {
@@ -579,7 +579,7 @@
} else if(document.webkitExitFullscreen) { } else if(document.webkitExitFullscreen) {
document.webkitExitFullscreen(); document.webkitExitFullscreen();
} }
} this.isFullScreen = false;
}, },
alertMessageDropdownHandler(show) { alertMessageDropdownHandler(show) {
if (show) { if (show) {