@import "color.less";

.homework {
    .uploadMessage {
        margin-top: 20px;
    }

    .uploadSuccessIcon {
        font-size: 70px;
        margin: 5px auto;
    }

    .upload-item {
        border: 1px solid gray;
        padding: 10px 20px;
        margin-bottom: 20px;
        max-width: 100%;
        border-radius: 4px;
        white-space: nowrap;
        cursor: pointer;

        li {
            list-style: none;
        }

        &:hover {
            background: @bgcHover;

            .upload-item-icon,
            .upload-item-info {
                color: @titleHover !important;
            }

            border: 1px solid @titleHover;
        }

        .upload-item-icon {
            color: #515a6e;
            text-align: center;
            display: inline-block;
            width: 25%;
            font-size: 40px;
            margin-left: -10px;
        }

        .upload-item-info {
            color: #515a6e;
            display: inline-block;
            width: 70%;
        }

        .upload-item-name {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            font-size: 14px;
            font-weight: bolder;
        }

        .upload-item-time {
            font-size: 10px;
            color: rgb(146, 146, 146);
        }

        @media screen and (max-width: 1366px) {
            .upload-item-icon {
                width: 35%;
            }
        }

        @media screen and (max-width: 767px) {
            .upload-item-icon {
                width: 13%;
            }
        }
    }

    .upload-item-selected {
        background: @bgcHover;
        color: @titleHover;
        border: 2px solid @titleHover;

        .upload-item-icon,
        .upload-item-name {
            color: @titleHover;
        }
    }
    //評量成績報告的分頁組件
    .ivu-tabs-nav {
        float: left !important;
        position: relative;
        text-align: center;
        z-index: 1;
    }

    .ivu-tabs-tab {
        text-align: center !important;
        font-size: 24px;
        margin: 0px 10px;
        width: auto;
    }

    .ivu-tabs-tab:hover {
        text-align: center !important;
        color: @primary !important;
    }

    .homework .ivu-tabs-tab.ivu-tabs-tab-active.ivu-tabs-tab-focused {
        color: @primary !important;
        font-weight: bolder;
        border-bottom: 5px solid @primary !important;
        margin: 0px 10px;
        width: auto;
    }

    .ivu-tabs-ink-bar {
        height: 0px;
    }

    .ivu-tabs-tabpane {
        margin-top: -16px;
        overflow-x: hidden;
        height: auto;
    }

    .homework-detail {
        .myProgressBar {
            width: 100%;
            padding-top: 2px;

            .myTestProgressContent {
                position: relative;
                background: rgb(192, 192, 192);
                margin-top: 5px;
                height: 8px;
                border-radius: 4px;
            }

            .myTestProgress {
                height: 8px;
                animation: 2s widthborn ease-in;
                position: relative;
                top: -8px;
                background: @primary;
                border-radius: 4px;
            }
        }

        @keyframes widthborn {
            0% {
                width: 0%;
            }

            100% {
                width: 100%;
            }
        }

        .uploading-item-icon {
            position: relative;
        }

        .uploading-item-info {
            position: relative;
            top: -12px;
        }
    }
}
