control-container.less 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
// 部件容器布局
.control-container {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    .flex(column, space-between, stretch);
}

.control-header {
    padding: 4px;

    .control-header__caption {
        font-size: 16px;
        font-weight: 600;
    }
    .control-header__right {
        float: right;
    }
}

.control-content {
    flex-grow: 1;
    min-height: 0;
    min-width: 0;
    padding: 4px;
    overflow: auto;
}

.control-footer {
    width: 100%;
    padding: 4px;
}

.control__loading {
    .flex(column, center, center);
    width: 100%;
    height: 100%;
    max-height: 100%;

    >.loading__img {
        max-width: 30%;
        max-height: calc(100% - 80px);
        margin: 0;
    }

    >.loading__text {
        display: block;
        line-height: 40px;
        font-size: 14px;
    }
}

.control__empty {
    .flex(column, center, center);
    width: 100%;
    height: 100%;
    max-height: 100%;

    >.empty__img {
        max-width: 30%;
        max-height: calc(100% - 80px);
        margin: 0;
    }

    >.empty__text {
        display: block;
        line-height: 40px;
        font-size: 14px;
    }
}

// 多数据loading
.app-loading {
    .app-loading__icon {
        width: 40px;
        height: 40px;
        position: absolute;
        left: calc(50% - 20px);
        top: calc(50% - 20px);
        transition: 0.5s;
        animation: rotate 3s linear infinite;

        .app-loading__icon__content {
            display: flex;

            .content__item {
                border-radius: 50%;
                width: 13px;
                height: 13px;
                display: block;
                margin: 4px;
            }
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }
    }
}