UNPKG

@choerodon/master

Version:
298 lines (253 loc) 5.2 kB
.c7n-saga { &-img { width: 392px; text-align: center; float: left; &-circle { width: 98px; height: 98px; border: 1px solid #000; border-radius: 50%; text-align: center; line-height: 98px; z-index: 2; display: inline-block; cursor: pointer; &.output { cursor: default; } } &-square { padding: 10px; width: 102px; height: 102px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.24); text-align: center; z-index: 2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; &.failed { color: #f44336; border: 4px solid #f44336; } &.wait_to_be_pulled { color: #ffb100; border: 4px solid #ffb100; } &.running { color: #4d90fe; border: 4px solid #4d90fe; } &.completed { color: #00bfa5; border: 4px solid #00bfa5; } > span { display: block; width: 82px; max-height: 82px; overflow: hidden; word-break: break-all; } } &-squares { border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.24); text-align: center; z-index: 2; display: inline-block; padding: 10px; > div { margin: 10px; float: left; } } &-line { position: relative; height: 37px; &:before { content: ''; height: 28px; width: 1px; border-left: 2px solid transparent; // background: // linear-gradient(white, white) padding-box, // repeating-linear-gradient(black 0, rgba(0, 0, 0, 0.78) 0, rgba(0, 0, 0, 0.78) 50%, // white 0, // white 75%) 0 / .6em .6em; background: #ccc; opacity: 0.24; position: absolute; } &:after { width: 0; height: 0; opacity: 0.24; border-width: 9px 6px 0; border-style: solid; border-color: rgba(0, 0, 0, 0.78) transparent transparent; transform: translateX(-5px); content: ''; bottom: 0; position: absolute; z-index: 1; } } } &-img-detail { float: left; margin-left: 24px; height: auto; width: calc(100% - 416px); background: #fff; box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.20), 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 2px -1px rgba(0, 0, 0, 0.12); border-radius: 2px; padding: 24px; padding-bottom: 20px; .c7n-tabs { margin-top: -12px; font-size: 14px; } &.autoscroll { position: absolute; right: 0; } } &-task-active { background: rgba(0, 0, 0, 0.08); &.failed { background: rgba(244, 67, 54, 0.08); } &.queue { background: rgba(255, 177, 0, 0.08); } &.running { background: rgba(77, 144, 254, 0.08); } &.completed { background: rgba(0, 191, 165, 0.08); } } &-task-detail { color: #000; &-title { font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); padding-bottom: 5px; font-weight: 600; margin-bottom: 15px; // margin 会合并 相等于marginBottom 5px color: rgba(0, 0, 0, 0.65); } &-content { font-size: 14px; line-height: 20px; &-item { display: flex; margin-bottom: 16px; } &-label { width: 150px; color: rgba(0, 0, 0, 0.65); &:after { content: ''; } } &-value { flex: 1; } } .c7n-saga-detail { &-json { max-height: 350px; } } #failed { position: absolute; top: 0; left: 0; opacity: 0; z-index: -999; } } &-task-btns { font-size: 13px; color: #3f51b5; line-height: 15px; margin-left: 14px; margin-bottom: 16px; > span + span { margin-left: 25px; } > span { display: inline-block; cursor: pointer; i.icon { margin-right: 5px; vertical-align: text-top; } } } &-status { color: white; padding: 2px 5px; border-radius: 2px; &.failed { background: #f44336; } &.running { background: #4d90fe; } &.completed { background: #00bfa5; } &.queue { background: #ffb100; } } } .c7n-saga { &-detail { &-json { border: 1px solid #f1f9ff; background-color: #f1f9ff; margin: 10px 0; pre { margin: 0; } code { font-size: 14px; line-height: 2; } } } &-sidebar { &.c7n-modal-sidebar .c7n-modal-body { height: calc(100% - 121px); } } } .c7n-saga { &-detail { &-json { .string, .number { color: #800; } .boolean, .undefined, .null { color: #00bfa5; } } } } .c7n-saga-instance-tips { background: #f5f6fa; color: #3a345f; border-radius: 8px; padding: 12px 16px; margin-bottom: .3rem; }