@import 'mediawiki.skin.variables';
@import 'variables.less';

.mw-portlet-viewactions {
    h3, li a {
        color: @color-text-base;
        text-decoration: none;
    }
    > h3 {
        /* svg 아이콘으로 지정 */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' class='bi bi-three-dots-vertical' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0'/%3E%3C/svg%3E");
        width: 40px;
        height: 22px;
        text-indent: -999px;
        background-repeat: no-repeat;
        background-position: center center;
        overflow: hidden;
        display: flex;
        filter: invert(0.3);
    }
    > h3 {
        /* 크기 여백 등 */
        padding: 0;
        margin: 0;
    }
}
:root[data-theme='dark'] {
    /* dark mode */
    .mw-portlet-viewactions {
        > h3 {
            filter: invert(0.7);
        }
    }
}




.mw-portlet-views {
    flex-grow: 1;

    ul {
        display: flex;
        height: 3em;
        justify-content: space-between;
    }

    li:first-child {
        justify-content: flex-start;
    }

    li:hover {
        background-color: rgba( 0, 0, 0, 0.03 );
    }
}

.mw-portlet-cactions h3,
.mw-portlet-views li {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    flex-basis: auto;
    font-weight: normal;
    font-size: 100%;
    padding: 0;
}

.mw-portlet-cactions h3,
.mw-portlet-cactions li a,
.mw-portlet-views li a {
    color: @color-text-base;
    text-decoration: none;
}

.mw-portlet-cactions.mw-portlet {
    margin-left: 40px;

    h3 {
        display: flex;
        height: 3em;
    }
}
