You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

274 lines
6.2 KiB
SCSS

@import url("./fonts.scss");
@import url("./element-plus.scss");
:root {
--fg-box-margin: 16px;
// 外观 撑杆 轮播图&视频
--fg-swiper-monitor-main-iamge-width: 581px;
--fg-swiper-monitor-main-iamge-height: 400px;
--fg-swiper-monitor-slide-iamge-width: 155px;
--fg-swiper-monitor-slide-iamge-height: 91px;
}
// 标题背景
.bg_title {
background-size: contain;
background-repeat: no-repeat;
height: 14px;
margin-left: 8px;
}
// 标题图
@for $i from 0 through 8 {
// 生成动态类名
.bg_title_#{$i} {
// 动态设置背景图片,引用对应的图标
background-image: url("@/assets/header/title#{$i}.png");
}
}
.bg-basic-content {
background: linear-gradient(180deg, rgba(7, 16, 19, 0) 0%, #081417 100%);
}
.bg-error-picture {
width: 100%;
height: 100%;
background: url("@/assets/common/load_file_error.png") no-repeat center center;
background-size: 50%;
border: 1px dashed red;
}
// 标题字体
.fg-title {
font-family: "DouyinSansBold"; // 自定义字体名称
// 字体样式(根据需求调整)
font-size: 16px;
color: #96e6ff; // 初始字体颜色, 浅蓝色
// 背景渐变和裁剪
background: linear-gradient(to bottom, #ffffff, #96e6ff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
// 特殊标记1
.fg-mark1 {
font-family: "DingTalk JinBuTi"; // 自定义字体名称
// 字体样式(根据需求调整)
color: #1cecf5; // 初始字体颜色, 浅蓝色
}
.fg-f-1 {
font-family: "DingTalk JinBuTi"; // 自定义字体名称
}
// 标题图标
.fg-icon {
width: 17px;
height: 17px;
background-image: url("@/assets/common/title_before_icon.png");
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
/* 按钮 */
.fg-button {
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0 10px;
height: 28px;
border-radius: 2px 2px 2px 2px;
}
.fg-basic-btn {
height: 32px;
width: 76px;
margin: 0;
&.el-button {
margin-left: 0;
}
}
.fg-info-button {
background: linear-gradient(180deg, #2589ff 0%, #46a9ed 100%);
border: 1px solid #42a5f5;
border-radius: 2px;
color: white;
margin-left: 0;
height: 32px;
.icon {
width: 14px;
height: 14px;
background-image: url("@/assets/common/search_icon.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
margin-right: 5px;
}
}
.fg-reset-btn {
background: transparent;
border-radius: 2px;
border: 1px solid #088bd6;
color: white;
box-shadow: none;
& .icon {
width: 14px;
height: 14px;
background-image: url("@/assets/common/reset_icon.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
margin-right: 5px;
}
}
.fg-button-primary {
@apply fg-button;
background: #009dff;
}
.fg-button-primary1 {
@apply fg-button;
background: #22bacb;
}
.fg-button-primary-danger {
@apply fg-button;
background: #f53f3f;
}
// 弹窗
.fg-dialog {
background-color: transparent;
background-image: url("@/assets/common/dialog_bg1.png");
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
padding: 0 !important;
width: 816px;
height: 640px;
&.fg-dialog2 {
width: 1202px;
height: 602px;
background-image: url("@/assets/common/dialog_bg2.png");
background-size: 100% 100%;
}
.fg-dialog-header-close {
width: 50px;
height: 50px;
position: absolute;
right: -17px;
top: -17px;
z-index: 999999 !important;
cursor: pointer;
background-image: url("@/assets/common/dialog_close_icon.png");
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
.fg-dialog-header {
position: relative;
background-color: transparent;
background-image: url("@/assets/common/dialog_head_bg.png");
background-repeat: no-repeat;
// 左侧标题带图标
.fg-dialog-header-icon-title {
padding: 0 24px;
font-weight: bold;
font-size: 18px;
.header-icon {
width: 24px;
height: 48px;
margin-right: 12px;
background-image: url("@/assets/common/alarm_title.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
.header-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 650px;
}
}
}
}
// 左侧带边框的标题
.fg-border-left-title {
// box-sizing: border-box;
padding-left: 8px;
height: 22px;
font-weight: bold;
font-size: 14px;
color: #ffffff;
border-left: 3px solid;
border-image: linear-gradient(180deg, #2589ff 0%, #46a9ed 100%) 1;
line-height: 22px;
}
// 外观、撑杆、钩机(监测)底部图表
.fg-footer-charts {
display: flex;
margin-top: 16px;
gap: 16px;
width: 100%;
& > li {
// height: 230px;
background: url("@/assets/common/long_chart_bg.png") no-repeat center center;
background-size: 100% 100%;
&:nth-child(1) {
width: calc(50% - 50px - 16px);
// overflow: hidden;
}
&:nth-child(2) {
width: calc(50% + 50px - 16px);
// overflow: hidden;
}
.fg-footer-charts-title {
@apply fg-title;
font-size: 18px;
padding-left: 16px;
padding-top: 7px;
padding-bottom: 1px;
}
.fg-footer-charts-content {
// overflow: hidden;
max-width: 100%;
height: 195px;
// background-color: red;
}
}
}
// 空数据
.fg-no-data {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.bg-no-data {
width: 63px;
background-image: url("@/assets/common/no_data.png");
background-size: contain;
height: 58px;
background-position: center;
background-repeat: no-repeat;
}
.no-data-text {
padding-top: 16px;
font-size: 14px;
color: #999999;
}
}
.fg-empty-image {
width: 100%;
height: 100%;
background-image: url("@/assets/common/emptyBg.png");
background-size: 312px 204px;
background-position: center;
background-repeat: no-repeat;
}