@import '../../variable';

.content {
    flex: 1;
    display: flex;
}

.side {
    min-width: 220px;
    max-width: 300px;
    color: #eee;
    background-color: #4D394B;

    display: flex;
    flex-direction: column;
    height: 100%;

    & > header {
        padding: 20px;
        img {
            margin: 0 auto;
            display: block;
        }
    }
    & > footer {
        text-align: center;
        padding: 10px 0;
        color: #aaa;
    }
    & > section {
        flex: 1;
        overflow: auto;
    }

    :global {
        .ant-menu {
            background-color: transparent;
            color: #fff;
        }
        .ant-menu-item > a {
            color: #fff;
        }
        .ant-menu-item-group-title {
            color: #aaa;
        }
        .ant-menu-inline,
        .ant-menu-vertical {
            border-right: 0;
        }
        .ant-menu-item:hover,
        .ant-menu-item-active,
        .ant-menu-submenu-active,
        .ant-menu-submenu-title:hover {
            background-color: @primary-color;
        }
        .ant-menu-inline .ant-menu-selected, .ant-menu-inline .ant-menu-item-selected {
            border-right: 1px solid @primary-color;
            background-color: @primary-color;
        }
        .ant-menu-vertical,
        .ant-menu-inline,
        .ant-menu-item-group-list {
            & > .ant-menu-item,
            & > .ant-menu-submenu > .ant-menu-submenu-title {
                .cn {
                    font-size: 12px;
                }
                .en {
                    font-size: 10px;
                    margin-left: .5em;
                    opacity: .45;
                    font-style: italic;
                    font-weight: 300;
                }

            }
        }
        .ant-menu-inline .ant-menu-item,
        .ant-menu-vertical .ant-menu-item {
            border-right: 0;
            margin-left: 0;
            left: 0;
        }
        .ant-menu-inline .ant-menu-item-selected,
        .ant-menu-inline .ant-menu-selected {
            border-right: 0;
        }
    }

}

.main {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1 0 auto;
    overflow: hidden;
    //background: url(/src/containers/App/images/bg.png) no-repeat bottom right;
    background-size:120px 66px;
    h1 {
        font-size: 18px;
        color: #444;
        font-weight: 700;
        line-height: 36px;
        margin-top: 10px;
    }
    h2 {
        font-size: 16px;
        color: #666;
        font-weight: 500;
        line-height: 30px;
        margin-top: 6px;
    }
    h3 {
        font-size: 14px;
        color: #888;
        font-weight: 400;
        line-height: 26px;
        margin-top: 2px;
    }
    & > div {
        height: 100%;
        flex: 1 0 auto;
    }
    :global {
        .main-form {
            padding-top: 24px;
        }
        .authorities-checkbox-group {
            .ant-checkbox-group-item {
                display: block;
            }
            .ant-checkbox-wrapper + .ant-checkbox-wrapper {
                margin-left: 0;
            }
        }
    }
}

