@import 'ant-design-vue/es/style/index.less';

.icon-selector-out-wrap {
    .top-title {
        display: flex;
        flex: 1;
        justify-content: space-between;
        height: 50px;
        align-items: center;
        border-bottom: 1px solid @border-color-base;

        span {
            &.back {
                cursor: pointer;
                width: 100px;

                &:hover {
                    color: @primary-color;

                    i {
                        color: @primary-color;
                    }
                }
            }

            &.lib-title {
                font-size: 18px;
                text-align: center;
                font-weight: bold;
            }

            .search {
                width: 150px;
            }
        }
    }

    .lib-wrap {
        display: flex;
        flex-wrap: wrap;

        &.no-selected {
            .icon-text {
                display: none;
            }

            .icon-cate {
                display: none;
            }
        }

        &.selected {
            .out-item {
                width: 0;
                height: 0;
                cursor: default;
                .stop-box{
                    display: none;
                }
                &.active {
                    width: 100%;
                    height: auto;

                    .border-box {
                        height: auto;
                        border: 0;
                    }

                    .icon-cate {
                        height: 40px;
                        line-height: 40px;
                        font-size: 20px;
                        font-weight: bold;
                        margin-top: @padding-md;
                    }

                    .icon-wrap {
                        .icons-border {
                            width: 150px;
                            height: 50px;
                            cursor: pointer;
                            padding: @padding-md/2 @padding-md;
                            box-sizing: content-box;

                            &.active {
                                background-color: @primary-color;
                                color: @white;

                                i {
                                    color: white;
                                }
                            }

                            &:hover {
                                background-color: @primary-color;
                                color: @white;

                                i {
                                    color: white;
                                }
                            }

                            i {
                                font-size: 24px;
                            }
                        }
                    }
                }

                .border-box {
                    border: 0;
                }

                .lib-title {
                    display: none;
                }
            }
        }

        .out-item {
            width: 200px;
            height: 200px;
            overflow: hidden;
            transition: all .3s;
            padding: 10px;
            cursor: pointer;
            position: relative;

            .stop-box {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                z-index: 1;
            }

            &:hover {
                .border-box {
                    border-color: @primary-color;
                }

                .lib-title {
                    color: @primary-color;
                }
            }

            .border-box {
                height: calc(100% - 30px);
                overflow: hidden;
                border: 1px solid @border-color-base;
                border-radius: @border-radius-base;

            }

            .lib-title {
                height: 30px;
                line-height: 30px;
                font-size: 16px;
                font-weight: bold;
                text-align: center;
            }

            .icon-wrap {
                display: flex;
                flex-wrap: wrap;

                .icons-border {
                    width: 59px;
                    height: 30px;
                    text-align: center;
                }
            }
        }
    }

}
.icon-selector-footer {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    padding-left: @padding-md;
    .tools {
        display: flex;
        .color-box {
            display: flex;
            margin-right: @padding-md;
            &>span {
                margin-right: @padding-md/3;
            }
        }
        .size-box {
            display: flex;
            &>span {
                margin-right: @padding-md/3;
            }
        }
    }
}