Files
emsfront/src/assets/styles/common.scss

323 lines
5.5 KiB
SCSS
Raw Normal View History

/*
ems管理平台公共css样式
*/
//右侧内容区域
//父元素
2025-12-12 17:38:26 +08:00
.ems-dashboard-editor-container {
background-color: #F1F5FC;
padding: 24px;
font-size: 12px;
}
2025-12-12 17:38:26 +08:00
//除去顶部信息(如搜索栏、站点基本信息等)外的 白色背景内容区域
2025-12-12 17:38:26 +08:00
.ems-content-container {
background-color: #ffffff;
margin-top: 24px;
}
2025-12-12 17:38:26 +08:00
//需要设置内padding的白色背景区域
2025-12-12 17:38:26 +08:00
.ems-content-container-padding {
padding: 24px;
}
2025-06-17 00:46:20 +08:00
//card通用样式 标题、body
2025-12-12 17:38:26 +08:00
.common-card-container {
.el-card__header {
padding: 14px;
border-bottom: none;
font-size: 12px;
background: #F1F5FB;
position: relative;
2025-09-17 14:52:08 +08:00
2025-12-12 17:38:26 +08:00
.card-title {
font-weight: 500;
color: #333333;
2025-06-17 00:46:20 +08:00
}
2025-12-12 17:38:26 +08:00
.el-button--text {
color: #666666;
2025-06-17 00:46:20 +08:00
}
2025-12-12 17:38:26 +08:00
}
}
.common-card-container-body-no-padding {
.el-card__body {
padding: 0;
}
2025-06-17 00:46:20 +08:00
}
2025-12-12 17:38:26 +08:00
.common-card-container-no-title-bg {
2025-12-12 17:38:26 +08:00
.el-card__header {
background-color: transparent;
}
}
2025-12-12 17:38:26 +08:00
2025-09-17 14:52:08 +08:00
//单站监控 设备监控card公共样式
2025-12-12 17:38:26 +08:00
.sbjk-card-container {
2025-09-17 14:52:08 +08:00
.el-card__header {
background-color: transparent;
2025-11-26 17:50:06 +08:00
padding: 5px 14px;
2025-09-17 14:52:08 +08:00
color: #ffffff;
position: relative;
border-radius: 5px 5px 0 0;
2025-12-12 17:38:26 +08:00
.large-title {
2025-11-26 17:50:06 +08:00
font-size: 18px;
2025-09-17 14:52:08 +08:00
font-weight: 500;
line-height: 40px;
padding: 0 50px 0 11px;
display: inline-block;
vertical-align: middle;
}
2025-12-12 17:38:26 +08:00
2025-09-17 14:52:08 +08:00
.info {
display: inline-block;
vertical-align: middle;
color: #ffffff;
font-size: 12px;
line-height: 20px;
}
2025-12-12 17:38:26 +08:00
.el-button--text {
2025-09-17 14:52:08 +08:00
color: #666666;
}
2025-12-12 17:38:26 +08:00
.alarm {
2025-09-17 14:52:08 +08:00
position: absolute;
right: 25px;
top: 50%;
transform: translateY(-50%);
2025-12-12 17:38:26 +08:00
.alarm-icon {
2025-11-26 17:50:06 +08:00
font-size: 22px;
color: #fff;
display: block;
cursor: pointer;
}
2025-09-17 14:52:08 +08:00
}
}
2025-12-12 17:38:26 +08:00
2025-09-17 14:52:08 +08:00
//红色背景颜色标题
2025-12-12 17:38:26 +08:00
&.warning-card-container {
2025-09-17 14:52:08 +08:00
.el-card__header {
2025-12-12 17:38:26 +08:00
background-color: #b64040; //#fc6b69;
2025-09-17 14:52:08 +08:00
}
}
2025-12-12 17:38:26 +08:00
2025-09-17 14:52:08 +08:00
//绿色背景颜色标题
&.running-card-container {
.el-card__header {
2025-12-12 17:38:26 +08:00
background-color: #40b6a5; //#05aea3;
2025-09-17 14:52:08 +08:00
}
}
2025-12-12 17:38:26 +08:00
2025-09-17 14:52:08 +08:00
//灰色背景颜色标题
&.timing-card-container {
.el-card__header {
background-color: #666666;
}
}
}
2025-09-13 20:36:46 +08:00
/* card标题里的时间选择器 */
.time-range-card {
&.common-card-container .el-card__header {
padding-top: 0;
padding-bottom: 0;
2025-12-12 17:38:26 +08:00
2025-09-13 20:36:46 +08:00
.time-range-header {
height: 40px;
display: flex;
justify-content: space-between;
align-items: center;
2025-12-12 17:38:26 +08:00
2025-09-13 20:36:46 +08:00
.card-title {
line-height: 40px;
}
}
}
}
//描述样式 PCS、BMS总览、BMS电池簇页面公共样式
2025-12-12 17:38:26 +08:00
.descriptions-main {
padding: 24px;
position: relative;
2025-12-12 17:38:26 +08:00
&.descriptions-main-bg-color {
background-color: #f1f5fc;
.el-descriptions__body {
background-color: #f1f5fc;
}
}
2025-12-12 17:38:26 +08:00
.el-descriptions-item__cell[colspan='1'] {
width: 25%
}
2025-12-12 17:38:26 +08:00
.el-descriptions__body .el-descriptions__table {
.descriptions-direction {
line-height: 19px;
color: #666666;
font-size: 16px;
font-weight: 500;
}
2025-12-12 17:38:26 +08:00
.descriptions-label {
line-height: 14px;
color: #666666;
font-size: 12px;
}
2025-12-12 17:38:26 +08:00
.danger {
color: #FC6B69;
}
2025-12-12 17:38:26 +08:00
.save {
color: #09ADA3;
}
2025-12-12 17:38:26 +08:00
.keep {
color: #3C81FF;
}
}
}
2025-12-12 17:38:26 +08:00
//电表、液冷公共样式
2025-12-12 17:38:26 +08:00
.device-info-row {
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
border-left: 1px solid #eee;
border-top: 1px solid #eee;
2025-12-12 17:38:26 +08:00
.device-info-col {
padding: 10px 0;
text-align: center;
2025-12-12 17:38:26 +08:00
font-size: 12px;
color: #666666;
line-height: 14px;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
2025-12-12 17:38:26 +08:00
.left {
}
2025-12-12 17:38:26 +08:00
.right {
display: block;
font-weight: 500;
2025-12-12 17:38:26 +08:00
font-size: 16px;
line-height: 18px;
2025-12-12 17:38:26 +08:00
margin-top: 10px;
}
}
}
//公共表格样式
2025-12-12 17:38:26 +08:00
.el-table {
font-size: 13px;
2025-11-28 17:53:34 +08:00
}
2025-12-12 17:38:26 +08:00
.common-table.el-table {
color: #333333;
.el-table__header-wrapper th, .el-table__fixed-header-wrapper th {
background: #f1f5fc;
border-bottom: none;
2025-12-12 17:38:26 +08:00
.table-head {
color: #515a6e;
}
}
2025-12-12 17:38:26 +08:00
.warning-status {
color: #FC6B69;
&.circle::before {
content: "";
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #FC6B69;
margin-right: 8px;
}
}
}
2025-06-24 22:48:33 +08:00
//二、三级菜单栏样式
2025-12-12 17:38:26 +08:00
.ems-second-menu {
width: fit-content;
.el-menu-item {
2025-06-24 22:48:33 +08:00
line-height: 40px;
height: 40px;
2025-12-12 17:38:26 +08:00
padding: 0;
2025-06-24 22:48:33 +08:00
}
2025-12-12 17:38:26 +08:00
&.el-menu--horizontal > .el-menu-item.is-active, &.el-menu--horizontal > .el-menu-item {
border-bottom: none !important;
2025-06-24 22:48:33 +08:00
}
2025-12-12 17:38:26 +08:00
.el-menu-item.is-active {
background: #0366c1 !important;
2025-06-24 22:48:33 +08:00
}
}
2025-12-12 17:38:26 +08:00
.ems-third-menu-container {
position: relative;
padding-left: 140px;
background-color: #ffffff;
2025-12-12 17:38:26 +08:00
.ems-third-menu {
border-right: none;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
height: fit-content;
position: absolute;
2025-12-12 17:38:26 +08:00
top: 0;
left: 0;
.el-menu-item {
line-height: 45px;
height: 45px;
padding: 0 !important;
width: 125px;
text-align: center;
}
2025-12-12 17:38:26 +08:00
.el-menu-item:hover {
background: #67b1ff !important;
color: #ffffff !important;
}
2025-12-12 17:38:26 +08:00
.el-menu-item.is-active {
background: #409eff !important;
}
2025-06-24 22:48:33 +08:00
}
2025-06-24 22:48:33 +08:00
}
//按钮栏 选中样式
2025-12-12 17:38:26 +08:00
.ems-btns-group {
.activeBtn {
2025-06-24 22:48:33 +08:00
background-color: #0366c1;
border-color: #0366c1;
color: #ffffff;
font-weight: 600;
}
}
//搜索栏样式
2025-12-12 17:38:26 +08:00
.select-container.el-form--inline .el-form-item {
2025-06-24 22:48:33 +08:00
margin-right: 15px;
}
2025-12-12 17:38:26 +08:00
2025-06-26 01:29:16 +08:00
//红色背景颜色按钮
2025-12-12 17:38:26 +08:00
.alarm-btn, .alarm-btn:hover, .alarm-btn:focus {
2025-06-26 01:29:16 +08:00
background-color: #FC6B69;
border-color: #FC6B69;
}