.trainModal-wrap.el-dialog { .train-dialog-header { color: white; padding: 0; // padding-top: 8px; // margin-bottom: 20px; .header-left { padding: 0 24px; font-weight: bold; font-size: 18px; .header-icon { width: 24px; height: 48px; background-image: url("@/assets/common/sub_title_icon.png"); background-size: contain; background-position: center; background-repeat: no-repeat; } } } .train-content { box-sizing: border-box; padding: 0 24px; width: 100%; height: 100%; .train-content-top { box-sizing: border-box; width: 100%; .train-content-top-img { box-sizing: border-box; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; /* 水平方向均匀分布间距 */ align-content: space-between; /* 垂直方向均匀分布间距 */ } img { width: 568px; height: 349px; } } .train-content-bottom { box-sizing: border-box; padding-top: 12px; .train-content-bottom-train { box-sizing: border-box; padding-top: 16px; display: flex; width: 100%; height: 82px; .train-card-item { width: 80px; height: 56px; background-image: url("@/assets/trainManage/train_card_bg.png"); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; font-weight: 500; font-size: 12px; color: #37dbff; border-radius: 2px; .train_head_icon { width: 48px; height: 48px; background-image: url("@/assets/trainManage/train_head.png"); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; } } .train-card-item-alarm { background: rgba(245, 63, 63, 0.3); color: #f53f3f; border: 1px solid #f53f3f; } .train-card-item-active { background-image: url("@/assets/trainManage/train_card_bg.png"); background-size: 100% 100%; background-position: center; background-repeat: no-repeat; border: 1px solid transparent; } .train-card-item-default { position: relative; color: #cacbce; background: rgba(202, 203, 206, 0.3); border: 1px solid #cacbce; .default-tag { position: absolute; top: 0; right: 0; width: 28px; height: 16px; line-height: 16px; text-align: center; background-color: #098137; font-size: 8px; font-weight: 700; border-radius: 0px 1px 0px 2px; } } .train-card-item-list, .high-height { box-sizing: border-box; width: 100%; height: 82px; padding: 16px 0; display: flex; // align-items: flex-end; overflow-x: auto; /* 开启横向滚动 */ white-space: nowrap; /* 防止车厢内容换行 */ // background-color: #003366; /* 设置与背景相近颜色,这里假设深蓝色背景 */ padding: 0; /* 去除默认内边距 */ margin: 0; /* 去除默认外边距 */ margin-top: 18px; gap: 8px; /* 车厢之间的间距 */ /* 自定义滚动条样式 */ &::-webkit-scrollbar { height: 8px; /* 滚动条高度 */ background-color: transparent; cursor: pointer; } &::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.6); /* 滚动条滑块颜色 */ border-radius: 4px; /* 滑块圆角 */ cursor: pointer; } } } } .train-content-bottom-title { width: 100%; box-sizing: border-box; padding-left: 8px; height: 22px; font-weight: bold; font-size: 14px; color: #ffffff; border-left: 3px solid #46a9ed; line-height: 22px; } } }