Browse Source

[完善]完善遮罩层

dev
邵佳豪 3 years ago
parent
commit
81311bda2d
  1. 8
      package-lock.json
  2. 2
      package.json
  3. 2
      src/app/pages/pages.module.ts
  4. 4
      src/app/pages/today-warning/today-warning.component.html
  5. 204
      src/app/pages/today-warning/today-warning.component.scss
  6. 8
      src/theme.less

8
package-lock.json generated

@ -241,16 +241,16 @@
"integrity": "sha1-jSuFLFJzvMFh0T+C+q81ZqtWKVE=" "integrity": "sha1-jSuFLFJzvMFh0T+C+q81ZqtWKVE="
}, },
"@angular/cdk": { "@angular/cdk": {
"version": "9.0.0", "version": "9.2.4",
"resolved": "https://registry.npm.taobao.org/@angular/cdk/download/@angular/cdk-9.0.0.tgz", "resolved": "https://registry.npmmirror.com/@angular/cdk/download/@angular/cdk-9.2.4.tgz",
"integrity": "sha1-VzSBeulwRPkNME+g8lycGn+gv5Y=", "integrity": "sha1-hBOVi9J15MNL47lvVkRGcd0wupM=",
"requires": { "requires": {
"parse5": "^5.0.0" "parse5": "^5.0.0"
}, },
"dependencies": { "dependencies": {
"parse5": { "parse5": {
"version": "5.1.1", "version": "5.1.1",
"resolved": "https://registry.npm.taobao.org/parse5/download/parse5-5.1.1.tgz?cache=0&sync_timestamp=1573036762880&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fparse5%2Fdownload%2Fparse5-5.1.1.tgz", "resolved": "https://registry.nlark.com/parse5/download/parse5-5.1.1.tgz",
"integrity": "sha1-9o5OW6GFKsLK3AD0VV//bCq7YXg=", "integrity": "sha1-9o5OW6GFKsLK3AD0VV//bCq7YXg=",
"optional": true "optional": true
} }

2
package.json

@ -12,7 +12,7 @@
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^9.0.0", "@angular/animations": "^9.0.0",
"@angular/cdk": "^9.0.0", "@angular/cdk": "^9.2.4",
"@angular/common": "~9.0.0", "@angular/common": "~9.0.0",
"@angular/compiler": "~9.0.0", "@angular/compiler": "~9.0.0",
"@angular/core": "~9.0.0", "@angular/core": "~9.0.0",

2
src/app/pages/pages.module.ts

@ -51,7 +51,7 @@ import { NzModalModule } from 'ng-zorro-antd/modal';
NzDatePickerModule, NzDatePickerModule,
NzIconModule, NzIconModule,
NzGridModule, NzGridModule,
// NzModalModule NzModalModule
] ]
}) })
export class PagesModule { } export class PagesModule { }

4
src/app/pages/today-warning/today-warning.component.html

@ -81,12 +81,12 @@
</div> </div>
<div nz-col nzSpan="2"> <div nz-col nzSpan="2">
<button nz-button (click)="showModal()">查看</button> <button nz-button (click)="showModal()">查看</button>
<!-- <nz-modal [(nzVisible)]="isVisible" nzTitle="The first Modal" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"> <nz-modal [nzBodyStyle]="{ background: 'red' }" nzWrapClassName="vertical-center-modal" [(nzVisible)]="isVisible" [nzMaskClosable]="false" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" [nzFooter]="null">
<p>Content one</p> <p>Content one</p>
<p>Content two</p> <p>Content two</p>
<p>Content three</p> <p>Content three</p>
<p>Content three</p> <p>Content three</p>
</nz-modal> --> </nz-modal>
</div> </div>
</div> </div>
</div> </div>

204
src/app/pages/today-warning/today-warning.component.scss

@ -1,95 +1,121 @@
.warningbox{ .warningbox {
width: 100%;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
.title {
box-sizing: border-box;
padding: 0 20PX;
width: 100%;
height: 50px;
line-height: 50px;
font-family: titlefont;
font-size: 26px;
color: #D0EAFF;
}
.search {
box-sizing: border-box;
padding: 0 36px;
width: 100%; width: 100%;
height: 100%; height: 32px;
position: relative;
display: flex; // margin-bottom: 18px;
flex-direction: column; form {
.title{ width: 100%;
box-sizing: border-box; height: 32px;
padding: 0 20PX; display: flex;
width: 100%; justify-content: space-around;
height: 50px;
line-height: 50px; .searchParams {
font-family: titlefont; width: 22%;
font-size: 26px; }
color: #D0EAFF;
.btn {
width: 5%;
}
nz-select {
color: #fff;
}
nz-date-picker {
background-color: #002552;
width: 145%;
}
} }
.search{
box-sizing: border-box; .submit {
padding: 0 36px; background-color: #013064;
width: 100%; border: 1px solid #4c8ac8;
height: 32px; color: #86bff3;
// margin-bottom: 18px;
form{
width: 100%;
height: 32px;
display: flex;
justify-content: space-around;
.searchParams{
width: 22%;
}
.btn{
width: 5%;
}
nz-select{
color: #fff;
}
nz-date-picker{
background-color: #002552;
width: 145%;
}
}
.submit{
background-color: #013064;
border: 1px solid #4c8ac8;
color: #86bff3;
}
.reset{
background-color: #010d26;
border: 1px solid #4c8ac8;
color: #86bff3;
}
} }
.warningnumber{
position: absolute; .reset {
left: 23px; background-color: #010d26;
top: -60px; border: 1px solid #4c8ac8;
.num{ color: #86bff3;
font-size: 50px;
text-shadow: 0px 0px 6px #8df;
color: white;
font-weight: 600;
}
.today{
font-size: 18px;
font-family: titlefont;
color: #D0EAFF;
}
} }
.listbox{ }
flex: 1;
overflow-y: auto; .warningnumber {
background-image: radial-gradient(#004987,#03447c,#02325c,#012341,#01122e); position: absolute;
box-sizing: border-box; left: 23px;
padding: 20px 47px 20px 39px; top: -60px;
.listitem{
width: 100%;
height: 75px;
line-height: 75px;
border: 1px solid #4c8ac8;
color: #86bff3;
margin-bottom: 12px;
div{
text-align: center;
button{
background-color: #013064;
border: 1px solid #4c8ac8;
color: #86bff3;
}
}
}
.num {
font-size: 50px;
text-shadow: 0px 0px 6px #8df;
color: white;
font-weight: 600;
} }
}
.today {
font-size: 18px;
font-family: titlefont;
color: #D0EAFF;
}
}
.listbox {
flex: 1;
overflow-y: auto;
background-image: radial-gradient(#004987, #03447c, #02325c, #012341, #01122e);
box-sizing: border-box;
padding: 20px 47px 20px 39px;
.listitem {
width: 100%;
height: 75px;
line-height: 75px;
border: 1px solid #4c8ac8;
color: #86bff3;
margin-bottom: 12px;
div {
text-align: center;
button {
background-color: #013064;
border: 1px solid #4c8ac8;
color: #86bff3;
}
}
}
}
}
::ng-deep .vertical-center-modal {
display: flex;
align-items: center;
justify-content: center;
}
::ng-deep .vertical-center-modal .ant-modal {
top: 0;
}

8
src/theme.less

@ -16,7 +16,15 @@
@input-placeholder-color: #8aacce; @input-placeholder-color: #8aacce;
.ant-picker-suffix{ .ant-picker-suffix{
color: #8aacce; color: #8aacce;
} }
.ant-picker-input > input{ .ant-picker-input > input{
color: #fff; color: #fff;
}
//弹窗遮罩层
.ant-modal-mask{
background: rgba(0,0,0,0.05);
}
.ant-modal-content{
box-shadow: 0px 0px 4px #fff;
} }
Loading…
Cancel
Save