사용자:Hsl0/common.css: 두 판 사이의 차이
< 사용자:Hsl0
imported>Hsl0 편집 요약 없음 |
imported>Hsl0 편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
@media(max-width: 500px) { | @media(max-width: 500px) { | ||
#p-personal ul { | #p-personal ul { | ||
float: right | float:right | ||
} | } | ||
#p-personal ul:not(.expanded) > li:nth-child(n+5) { | #p-personal ul:not(.expanded) > li:nth-child(n+5) { | ||
display: none | display: none | ||
} | } | ||
#p-personal ul.expanded { | #p-personal ul.expanded { | ||
display: grid; | display: grid; | ||
14번째 줄: | 16번째 줄: | ||
border: 1px solid gray; | border: 1px solid gray; | ||
border-radius: 5px; | border-radius: 5px; | ||
padding: 0; | |||
} | } | ||
#p-personal ul.expanded > * { | #p-personal ul.expanded > * { | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
overflow: hidden; | overflow: hidden; | ||
height: 100%; | |||
} | } | ||
#p-personal ul.expanded > li > a { | #p-personal ul.expanded > li > a { | ||
display: block; | display: block; | ||
25번째 줄: | 31번째 줄: | ||
padding-top: 10px; | padding-top: 10px; | ||
padding-bottom: 10px; | padding-bottom: 10px; | ||
padding-left: | padding-left: 15px; | ||
padding-right: | padding-right: 15px; | ||
} | } | ||
#p-personal ul.expanded > :nth-child(n+6) { | #p-personal ul.expanded > :nth-child(n+6) { | ||
margin: 0; | margin: 0; | ||
grid-column: 1 / -1 | grid-column: 1 / -1 | ||
} | } | ||
#p-personal ul.expanded > :nth-child(n+6) > a { | #p-personal ul.expanded > :nth-child(n+6) > a { | ||
padding-left: 10px; | padding-left: 10px; | ||
padding-right: 10px | padding-right: 10px | ||
} | } | ||
#p-personal ul.expanded > :hover { | #p-personal ul.expanded > :hover { | ||
background: lightgrey | background: lightgrey | ||
} | } | ||
#p-personal ul.expanded #pt-userpage a { | #p-personal ul.expanded #pt-userpage a { | ||
border-top-left-radius: 5px; | border-top-left-radius: 5px; | ||
45번째 줄: | 55번째 줄: | ||
height: 20px; | height: 20px; | ||
width: 100%; | width: 100%; | ||
background-position-x: | background-position-x: 15px; | ||
background-position-y: 7px; | background-position-y: 7px; | ||
padding-left: | padding-right: 20px; | ||
padding-left: 40px !important; | |||
} | } | ||
#p-personal ul.expanded #pt-collapse a { | #p-personal ul.expanded #pt-collapse a { | ||
border-top-right-radius: 5px; | border-top-right-radius: 5px; | ||
height: 20px; | |||
} | } | ||
ul.expanded #pt-logout a { | ul.expanded #pt-logout a { | ||
border-bottom-left-radius: 5px; | border-bottom-left-radius: 5px; | ||
border-bottom-right-radius: 5px | border-bottom-right-radius: 5px | ||
} | } | ||
ul.expanded > #pt-expand { | ul.expanded > #pt-expand { | ||
display: none | display: none | ||
} | } | ||
#pt-expand > a { | #pt-expand > a { | ||
top: -5px; | top: -5px; | ||
65번째 줄: | 80번째 줄: | ||
height: 20px; | height: 20px; | ||
width: 20px; | width: 20px; | ||
display: block | display: block | ||
} | } | ||
.expanded #pt-notifications-notice .mw-echo-notifications-badge, .expanded #pt-notifications-alert .mw-echo-notifications-badge, .expanded #pt-collapse a { | |||
top: | .expanded #pt-notifications-notice .mw-echo-notifications-badge,.expanded #pt-notifications-alert .mw-echo-notifications-badge,.expanded #pt-collapse a { | ||
top: 20%; | |||
margin: auto; | margin: auto; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: center; | background-position: center; | ||
height: | height: 25px; | ||
vertical-align: bottom; | vertical-align: bottom; | ||
} | } | ||
} | } |
2021년 7월 20일 (화) 16:30 판
@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;
padding: 0;
}
#p-personal ul.expanded > * {
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
}
#p-personal ul.expanded > li > a {
display: block;
height: 100%;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
}
#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: 15px;
background-position-y: 7px;
padding-right: 20px;
padding-left: 40px !important;
}
#p-personal ul.expanded #pt-collapse a {
border-top-right-radius: 5px;
height: 20px;
}
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;
height: 20px;
width: 20px;
display: block
}
.expanded #pt-notifications-notice .mw-echo-notifications-badge,.expanded #pt-notifications-alert .mw-echo-notifications-badge,.expanded #pt-collapse a {
top: 20%;
margin: auto;
background-repeat: no-repeat;
background-position: center;
height: 25px;
vertical-align: bottom;
}
}