模板:User/style.css

来自萌娘文库
< 模板:User
北极星与南十字讨论 | 贡献2021年8月15日 (日) 09:06的版本 (创建页面,内容为“.userlink { font-size: inherit; position: relative; cursor: pointer; } .userlink .userlink-label { padding: 0 .625em; display: inline; font-…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
.userlink {
    font-size: inherit;
    position: relative;
    cursor: pointer;
}

.userlink .userlink-label {
    padding: 0 .625em;
    display: inline;
    font-size: smaller;
}

.userlink .userlink-menu {
    display: none;
    position: absolute;
    top: calc(1.25em - 1px);
    left: 0;
    /* width: max-content; */
    z-index: 2;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    padding-top: 3px;
    border: 1px solid #a2a9b1;
    border-top-width: 0;
    background-color: #fff;
}

.userlink:hover .userlink-menu,
.userlink:active .userlink-menu {
    display: block;
}

.userlink .userlink-item {
    display: block;
    transition: all .37s ease-in-out;
}

.userlink .userlink-item:hover {
    background-color: rgb(241, 247, 255);
}

.userlink .userlink-item a {
    display: block;
    white-space: nowrap;
    color: #0645ad;
    cursor: pointer;
    font-size: .8em;
    padding: .3125em .625em!important;
}

.userlink .userlink-item a.external {
    margin-right: .625em;
    padding-right: 13px!important;
}


.userlink-normal {
    font-size: smaller;
}

.userlink-normal::before {
    content: "(";
}

.userlink-normal::after {
    content: ")";
}
.userlink-normal .userlink-label {
    display: none;
}

.userlink-normal .userlink-item::before {
    content: "、";
}

.userlink-normal :not(.sysop-show) > .userlink-item:first-child::before {
    content: "";
}
/* [[Category:在模板名字空间下的CSS页面]] */