사용자:Hsl0/common.css: 두 판 사이의 차이

리버티게임, 모두가 만들어가는 자유로운 게임
imported>Hsl0
편집 요약 없음
imported>Hsl0
편집 요약 없음
1번째 줄: 1번째 줄:
/* [[틀:링크경고|링크경고]]
@media(max-width: 500px) {
* 제작자: [[사용자:hsl0|hsl0]]
    #p-personal ul {
*/
        float: right;
.linkwarn :not(.tooltip-msg) a, .linkwarn > a {
    }
     border-bottom: 1px dashed #ff3399;
    #p-personal ul:not(.expanded) > li:nth-child(n+5) {
        display: none;
    }
    #p-personal ul.expanded {
        display: grid;
        background: white;
        width: auto;
        grid-template-columns: auto 1fr 1fr 1fr;
        align-items: baseline;
        border: 1px solid gray;
        border-radius: 5px;
    }
    #p-personal ul.expanded > * {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    #p-personal ul.expanded > li > a {
        display: block;
        height: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }
    #p-personal ul.expanded > :nth-child(n+6) {
        margin: 0;
        grid-column: 1 / -1;
    }
    #p-personal ul.expanded > :nth-child(n+6) > a {
        padding-left: 10px;
        padding-right: 10px;
    }
    #p-personal ul.expanded > :hover {
        background: lightgrey;
    }
    #p-personal ul.expanded #pt-userpage a {
        border-top-left-radius: 5px;
        display: block;
        padding: 0 10px;
        height: 20px;
        width: 100%;
        background-position-x: 9px;
        background-position-y: 7px;
        padding-left: 25px !important;
     }
    #p-personal ul.expanded #pt-collapse a {
        border-top-right-radius: 5px;
        padding: 10px;
    }
    ul.expanded #pt-logout a {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    ul.expanded > #pt-expand {
        display: none;
    }
    #pt-expand > a {
        top: -5px;
        position: relative;
    }
    .expanded #pt-notifications-notice .mw-echo-notifications-badge, .expanded #pt-notifications-alert .mw-echo-notifications-badge, .expanded #pt-collapse a {
        top: 25%;
        margin: auto;
        background-repeat: no-repeat;
        background-position: center;
        height: 20px;
        vertical-align: bottom;
    }
}
}
.linkwarn :not(.tooltip-msg) a::after, .linkwarn > a::after {
    content: "!";
    color: #ff0000;
    vertical-align: super;
    font-size: smaller;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
/* [[틀:링크경고|링크경고]] */

2021년 7월 20일 (화) 16:08 판

@media(max-width: 500px) {
    #p-personal ul {
        float: right;
    }
    #p-personal ul:not(.expanded) > li:nth-child(n+5) {
        display: none;
    }
    #p-personal ul.expanded {
        display: grid;
        background: white;
        width: auto;
        grid-template-columns: auto 1fr 1fr 1fr;
        align-items: baseline;
        border: 1px solid gray;
        border-radius: 5px;
    }
    #p-personal ul.expanded > * {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    #p-personal ul.expanded > li > a {
        display: block;
        height: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }
    #p-personal ul.expanded > :nth-child(n+6) {
        margin: 0;
        grid-column: 1 / -1;
    }
    #p-personal ul.expanded > :nth-child(n+6) > a {
        padding-left: 10px;
        padding-right: 10px;
    }
    #p-personal ul.expanded > :hover {
        background: lightgrey;
    }
    #p-personal ul.expanded #pt-userpage a {
        border-top-left-radius: 5px;
        display: block;
        padding: 0 10px;
        height: 20px;
        width: 100%;
        background-position-x: 9px;
        background-position-y: 7px;
        padding-left: 25px !important;
    }
    #p-personal ul.expanded #pt-collapse a {
        border-top-right-radius: 5px;
        padding: 10px;
    }
    ul.expanded #pt-logout a {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    ul.expanded > #pt-expand {
        display: none;
    }
    #pt-expand > a {
        top: -5px;
        position: relative;
    }
    .expanded #pt-notifications-notice .mw-echo-notifications-badge, .expanded #pt-notifications-alert .mw-echo-notifications-badge, .expanded #pt-collapse a {
        top: 25%;
        margin: auto;
        background-repeat: no-repeat;
        background-position: center;
        height: 20px;
        vertical-align: bottom;
    }
}