123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- :root {
- // 默认
- --cus-text-color-1: #303133;
- --cus-text-color-2: #606266;
- --cus-text-color-3: #909399;
- --cus-text-color-4: #C0C4CC;
- --el-color-primary: var(--cus-main-color) !important;
- // 主题自定义
- --cus-main-color: #2E81FF;
- --cus-main-color-rgb: 46, 129, 255;
- --cus-main-color-hex-2: #273A58;
- }
- .__hover {
- &:hover {
- opacity: 0.75;
- cursor: pointer;
- }
- }
- .__disabled {
- &:hover {
- opacity: 0.75;
- cursor: not-allowed;
- }
- }
- .__text-ellipsis {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- &.el-link {
- max-width: 100%;
- .el-link__inner {
- display: unset;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- }
- }
- }
- .__tooltip {
- position: relative;
- background-color: #f9f9f9;
- padding: 10px;
- border-radius: 5px;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
- white-space: nowrap;
- font-size: 12px;
- color: #333333;
- $afterWidth: 16px;
- $afterHeight: 8px;
- &:before {
- content: '';
- position: absolute;
- background-color: #f9f9f9;
- bottom: -$afterHeight;
- width: $afterWidth;
- height: $afterHeight;
- left: calc((100% - #{$afterWidth}) / 2);
- clip-path: polygon(0 0, 100% 0, 50% 100%);
- }
- &:after {
- content: '';
- position: absolute;
- background-color: rgba(0, 0, 0, 0.1);
- bottom: -$afterHeight - 1px;
- width: $afterWidth + 2px;
- height: $afterHeight + 1px;
- left: calc((100% - #{$afterWidth} - 2px) / 2);
- clip-path: polygon(0 0, 100% 0, 50% 100%);
- filter: blur(2px);
- z-index: -1;
- }
- }
- .__cus-dialog {
- &.__cus-dialog-auto-height {
- .el-overlay-dialog {
- .el-dialog {
- max-height: var(--cus-dialog_max-height);
- min-height: var(--cus-dialog_min-height);
- height: unset;
- }
- }
- }
- &.__cus-dialog-hidden-style {
- .el-dialog__header {
- display: none;
- }
- .__cus-dialog-foot {
- display: none !important;
- }
- }
- .el-overlay-dialog {
- .el-dialog {
- padding: 0;
- height: var(--cus-dialog_height);
- $borderRadius: 8px;
- border-radius: $borderRadius;
- display: flex;
- flex-direction: column;
- .el-dialog__header {
- padding: 0;
- margin: 0;
- ._cus-dialog-head {
- height: 50px;
- width: 100%;
- background-color: var(--cus-main-color);
- display: flex;
- align-items: center;
- border-radius: $borderRadius $borderRadius 0 0 ;
- font-size: 18px;
- font-family: PingFang SC-Medium, PingFang SC;
- font-weight: 500;
- color: #ffffff;
- padding: 0 20px 0 16px;
- box-sizing: border-box;
- .__cdh-title {}
- .__cdh-slot {}
- .__cdh-close {
- margin-left: auto;
- }
- }
- }
- .el-dialog__body {
- padding: 0;
- height: calc(100% - 50px);
- width: 100%;
- display: flex;
- overflow-y: hidden;
- flex: 1;
- .__cus-dialog-main {
- width: 100%;
- display: flex;
- flex-direction: column;
- .__cus-dialog-content {
- flex: 1;
- overflow-y: auto;
- }
- .__cus-dialog-foot {
- width: 100%;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- >div {
- margin-right: 10px;
- height: 28px;
- border-radius: 4px;
- padding: 0 14px;
- line-height: 1;
- font-size: 14px;
- font-family: Microsoft YaHei;
- font-weight: 400;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- &:last-child {
- margin-right: 0;
- }
- }
- .__cus-dialog-foot_submit {
- background: var(--cus-main-color);
- color: #FFFFFF;
- }
- .__cus-dialog-foot_cancel {
- background: #F8F8F8;
- border: 1px solid #E4E4E4;
- color: var(--cus-text-color-3);
- }
- }
- &.isFull {
- overflow-y: auto;
- .__cus-dialog-content {
- overflow-y: unset;
- }
- }
- }
- }
- }
- }
- }
- .__check {
- display: flex;
- align-items: center;
- position: relative;
- &:hover {
- opacity: 0.75;
- cursor: pointer;
- }
- &:before {
- content: '';
- width: 16px;
- height: 16px;
- box-sizing: border-box;
- border: 1px solid #d3d3d3;
- border-radius: 2px;
- cursor: pointer;
- margin-right: 4px;
- }
- &.active {
- &:before {
- background-color: var(--cus-main-color);
- border-color: var(--cus-main-color);
- content: '✔';
- color: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- }
- .__cus-manage_content {
- width: calc(100% - 48px);
- height: calc(100% - 48px);
- margin: 24px;
- background-color: #ffffff;
- border-radius: 0 8px 8px 8px;
- padding: 16px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- .__cus-manage_content-title {
- height: 42px;
- display: flex;
- align-items: center;
- line-height: 1;
- font-weight: bold;
- font-size: 16px;
- color: var(--cus-text-color-1);
- .svg-icon {
- margin-right: 6px;
- }
- }
- .__cus-manage_content-filters {
- height: 40px;
- width: 100%;
- .el-button {
- margin-left: 10px;
- }
- }
- .__cus-manage_content-main {
- flex: 1;
- overflow: hidden;
- }
- }
- .__cus-popover {
- max-width: 60% !important;
- width: auto !important;
- }
- .__cus-dialog-form {
- padding: 20px;
- }
- .el-button {
- &:hover {
- opacity: 0.75;
- background-color: #ffffff !important;
- border-color: var(--cus-main-color) !important;
- }
- &.el-button--primary {
- &:hover {
- background-color: var(--cus-main-color) !important;
- border-color: var(--cus-main-color) !important;
- }
- }
- }
- em {
- color: red;
- }
|