사용자:Hsl0/연구소/숫자야구 live/채팅.css: 두 판 사이의 차이
보이기
imported>Hsl0 잔글편집 요약 없음 |
imported>Hsl0 잔글편집 요약 없음 |
||
(같은 사용자의 중간 판 10개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
.chat-client { | .chat-client { | ||
height: | height: 70vh; | ||
display: grid; | display: grid; | ||
grid-template-areas: | grid-template-areas: | ||
17번째 줄: | 17번째 줄: | ||
} | } | ||
.chat-user-options { | ul.chat-user-options { | ||
margin-left: 0.25em; | margin-left: 0.25em; | ||
list-style: none; | |||
display: inline; | |||
} | } | ||
.chat-user-options::before { | .chat-user-options:not(:empty)::before { | ||
content: "("; | content: "("; | ||
} | } | ||
.chat-user-options::after { | .chat-user-options:not(:empty)::after { | ||
content: ")"; | content: ")"; | ||
} | } | ||
32번째 줄: | 34번째 줄: | ||
} | } | ||
.chat-log { | ul.chat-log { | ||
grid-area: log; | grid-area: log; | ||
overflow-y: auto; | |||
list-style-position: inside; | |||
margin-left: 0.7em; | |||
word-break: break-all; | |||
display: flex; | display: flex; | ||
flex-direction: column-reverse; | |||
flex-direction: column; | |||
} | } | ||
65번째 줄: | 70번째 줄: | ||
.chat-footer { | .chat-footer { | ||
grid-area: footer; | grid-area: footer; | ||
} | |||
.chat-indicator { | |||
display: block; | |||
text-align: right; | |||
margin-bottom: 0.5em; | |||
} | |||
.chat-client.chat-header-hidden { | |||
grid-template-areas: | |||
"header" | |||
"log" | |||
"footer"; | |||
grid-template-rows: auto 1fr; | |||
} | |||
.chat-client.chat-header-hidden .chat-header { | |||
border: none; | |||
width: 100%; | |||
} | |||
.chat-client.chat-header-hidden .chat-header > :not(.chat-indicator) { | |||
display: none; | |||
} | |||
.chat-header-hidden .chat-indicator { | |||
margin-right: 1em; | |||
margin-bottom: 0; | |||
padding-top: 1px; | |||
padding-right: 1px; | |||
} | |||
.chat-users-count:not(:empty) { | |||
margin-left: 0.3em; | |||
} | |||
.chat-users-count:not(:empty)::before { | |||
content: "("; | |||
} | |||
.chat-users-count:not(:empty)::after { | |||
content: ")"; | |||
} | |||
@media(max-width: 800px) { | |||
.chat-client { | |||
grid-template-areas: "header" "log" "footer"; | |||
grid-template-rows: auto 1fr; | |||
} | |||
.chat-header { | |||
width: auto; | |||
} | |||
@media(min-width: 400px) { | |||
.chat-users { | |||
column-count: 2; | |||
} | |||
} | |||
} | } |
2020년 10월 24일 (토) 01:02 기준 최신판
.chat-client {
height: 70vh;
display: grid;
grid-template-areas:
"log header"
"footer footer";
grid-template-rows: 1fr;
grid-template-columns: 1fr;
}
.chat-header {
grid-area: header;
width: 20em;
border: 1px solid #a2a9b1;
border-radius: 2px;
padding: 0.5em;
}
ul.chat-user-options {
margin-left: 0.25em;
list-style: none;
display: inline;
}
.chat-user-options:not(:empty)::before {
content: "(";
}
.chat-user-options:not(:empty)::after {
content: ")";
}
.chat-user-option + .chat-user-option::before {
content: "|";
margin: 0 0.2em;
}
ul.chat-log {
grid-area: log;
overflow-y: auto;
list-style-position: inside;
margin-left: 0.7em;
word-break: break-all;
display: flex;
flex-direction: column-reverse;
}
.chat-message-sender {
margin-right: 0.25em;
font-weight: bold;
}
.chat-message-sender::after {
content: ":";
font-weight: normal;
}
.chat-message-time {
color: #808080;
margin-left: 0.25em;
}
.chat-message-time::before {
content: "(";
}
.chat-message-time::after {
content: ")";
}
.chat-field {
max-width: none;
}
.chat-footer {
grid-area: footer;
}
.chat-indicator {
display: block;
text-align: right;
margin-bottom: 0.5em;
}
.chat-client.chat-header-hidden {
grid-template-areas:
"header"
"log"
"footer";
grid-template-rows: auto 1fr;
}
.chat-client.chat-header-hidden .chat-header {
border: none;
width: 100%;
}
.chat-client.chat-header-hidden .chat-header > :not(.chat-indicator) {
display: none;
}
.chat-header-hidden .chat-indicator {
margin-right: 1em;
margin-bottom: 0;
padding-top: 1px;
padding-right: 1px;
}
.chat-users-count:not(:empty) {
margin-left: 0.3em;
}
.chat-users-count:not(:empty)::before {
content: "(";
}
.chat-users-count:not(:empty)::after {
content: ")";
}
@media(max-width: 800px) {
.chat-client {
grid-template-areas: "header" "log" "footer";
grid-template-rows: auto 1fr;
}
.chat-header {
width: auto;
}
@media(min-width: 400px) {
.chat-users {
column-count: 2;
}
}
}