tab-page-exp.less 3.5 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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
.ibiz-page-tag {
    position: relative;
    box-sizing: border-box;
    height: 34px;
    padding: 0 60px 0 30px;
    background: var(--app-left-sidebar-background-color);

    .tags-body {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;

        .tags-container {
            position: absolute;
            overflow: visible;
            white-space: nowrap;
            transition: left .3s ease;

            .ivu-tag {
                margin: 0;
                height: 34px;
                line-height: 34px;
                border: 0;
                border-radius: 0;
                border-right: 1px solid var(--view-background-color);
                background: var(--view-dividing-line-color-tint);
                font-size: 14px;

                .ivu-tag-text {
                    color: var(--view-font-color);

                    >i::before {
                        vertical-align: initial;
                    }
                }

                .text-icon {
                    height: 16px;
                    margin-bottom: -3px;
                }

                .ivu-icon-ios-close {
                    visibility: hidden;
                }

                .tag-text {
                    cursor: pointer;
                    display: table-cell;

                    .ivu-tooltip {
                        display: block;

                        .ivu-tooltip-rel {
                            display: block;
                            max-width: 200px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                    }
                }
            }

            .ivu-tag.tag-is-active {
                background: var(--view-background-color);

                .ivu-tag-text {
                    color: var(--view-font-color-bright);
                }

                .ivu-icon {
                    color: var(--view-font-color-bright);
                }
            }

            .ivu-tag:hover,
            .ivu-tag.tag-is-active {
                .ivu-icon-ios-close {
                    visibility: initial;
                }

                .ivu-icon {
                    color: var(--view-font-color-bright);
                }
            }

            span {
                .ivu-tag:last-child {
                    border-right: none;
                }
            }
        }
    }

    .move-btn {
        font-size: 18px;
        width: 30px;
        height: 34px;
        line-height: 34px;
        border-left: var(1px solid --view-dividing-line-color-bright);
        border-right: var(1px solid --view-dividing-line-color-bright);
        text-align: center;
        cursor: pointer;
    }

    // .move-btn:hover {
    //     background: #efefef;
    // }
    .move-left,
    .move-right,
    .ivu-dropdown {
        position: absolute;
        top: 0;
        color: var(--view-font-color);
    }

    .move-left {
        left: 0;
    }

    .move-right {
        right: 30px;
    }

    .ivu-dropdown {
        right: 0;
    }
}

.app-page-more {
    background: var(--app-suspension-windows-background-color);

    .ivu-dropdown-item {
        color: var(--app-suspension-windows-color);
    }

    .ivu-dropdown-item:hover {
        background: var(--app-suspension-windows-background-color-active);
        color: var(--app-suspension-windows-font-color-active);
    }
}

.tags-transition-move {
    transition: transform .3s;
}

.tags-transition-enter,
.tags-transition-leave-to {
    opacity: 0;
}