Site Notice
hello, world
Difference between revisions of "MediaWiki:Css-chatbot-sili/webui.css"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 4: | Line 4: | ||
a { | a { | ||
color: pink | color: pink | ||
+ | } | ||
+ | |||
+ | /** Hot fix: chat */ | ||
+ | .page-chat { | ||
+ | position: relative; | ||
+ | } | ||
+ | .page-chat .avatar { | ||
+ | position: absolute; | ||
+ | margin-top: 4px; | ||
+ | width: 2.5rem; | ||
+ | height: 2.5rem; | ||
+ | border-radius: 2.5rem; | ||
+ | user-select: none; | ||
+ | } | ||
+ | .page-chat .quote { | ||
+ | position: relative; | ||
+ | font-size: 0.875rem; | ||
+ | margin-left: 3.5rem; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | .page-chat .quote * + span { | ||
+ | margin-left: 0.5rem; | ||
+ | } | ||
+ | .page-chat .quote::before { | ||
+ | content: ""; | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | box-sizing: border-box; | ||
+ | top: 50%; | ||
+ | right: 100%; | ||
+ | bottom: 0; | ||
+ | left: -36px; | ||
+ | margin-right: 4px; | ||
+ | margin-top: -1px; | ||
+ | margin-left: -1px; | ||
+ | margin-bottom: calc(.125rem - 4px); | ||
+ | border-left: 1px solid #4f545c; | ||
+ | border-top: 1px solid #4f545c; | ||
+ | border-top-left-radius: 6px; | ||
+ | } | ||
+ | .page-chat .quote .quote-avatar { | ||
+ | width: 1rem; | ||
+ | height: 1rem; | ||
+ | border-radius: 1rem; | ||
+ | vertical-align: text-top; | ||
+ | } | ||
+ | .page-chat .quote .abstract { | ||
+ | text-overflow: ellipsis; | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | .page-chat .header { | ||
+ | margin-left: 3.5rem; | ||
+ | color: #72767d; | ||
+ | } | ||
+ | .page-chat .header * + span { | ||
+ | margin-left: 0.5rem; | ||
+ | } | ||
+ | .page-chat .username { | ||
+ | color: rgba(244, 244, 245, 0.8); | ||
+ | font-weight: bold; | ||
+ | line-height: 1.375rem; | ||
+ | } | ||
+ | .page-chat .timestamp { | ||
+ | color: #72767d; | ||
+ | font-size: 0.875rem; | ||
+ | } | ||
+ | .page-chat .k-message { | ||
+ | margin-left: 3.5rem; | ||
+ | } | ||
+ | .page-chat p.hint { | ||
+ | color: #72767d; | ||
+ | margin: 0.5rem 0 -0.5rem; | ||
} | } |
Latest revision as of 02:00, 8 April 2021
body {
background: radial-gradient(farthest-side ellipse at 10% 0,#aa216e,#a22738)
}
a {
color: pink
}
/** Hot fix: chat */
.page-chat {
position: relative;
}
.page-chat .avatar {
position: absolute;
margin-top: 4px;
width: 2.5rem;
height: 2.5rem;
border-radius: 2.5rem;
user-select: none;
}
.page-chat .quote {
position: relative;
font-size: 0.875rem;
margin-left: 3.5rem;
cursor: pointer;
}
.page-chat .quote * + span {
margin-left: 0.5rem;
}
.page-chat .quote::before {
content: "";
display: block;
position: absolute;
box-sizing: border-box;
top: 50%;
right: 100%;
bottom: 0;
left: -36px;
margin-right: 4px;
margin-top: -1px;
margin-left: -1px;
margin-bottom: calc(.125rem - 4px);
border-left: 1px solid #4f545c;
border-top: 1px solid #4f545c;
border-top-left-radius: 6px;
}
.page-chat .quote .quote-avatar {
width: 1rem;
height: 1rem;
border-radius: 1rem;
vertical-align: text-top;
}
.page-chat .quote .abstract {
text-overflow: ellipsis;
white-space: nowrap;
}
.page-chat .header {
margin-left: 3.5rem;
color: #72767d;
}
.page-chat .header * + span {
margin-left: 0.5rem;
}
.page-chat .username {
color: rgba(244, 244, 245, 0.8);
font-weight: bold;
line-height: 1.375rem;
}
.page-chat .timestamp {
color: #72767d;
font-size: 0.875rem;
}
.page-chat .k-message {
margin-left: 3.5rem;
}
.page-chat p.hint {
color: #72767d;
margin: 0.5rem 0 -0.5rem;
}