Site Notice
hello, world
Difference between revisions of "MediaWiki:Gadget-WikiForum.css"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 1: | Line 1: | ||
/** | /** | ||
− | * WikiForum | + | * WikiForum default theme style |
*/ | */ | ||
− | .wiki-forum .forum-thread, | + | .wiki-forum-all-container .wiki-forum { |
− | .wiki-forum .forum-add-reply { | + | border-top: 6px dotted rgba(0,0,0,0.2); |
+ | } | ||
+ | .wiki-forum-all-container .wiki-forum:last-of-type { | ||
+ | border-bottom: 6px dotted rgba(0,0,0,0.2); | ||
+ | } | ||
+ | .wiki-forum-all-container .wiki-forum .forum-thread, | ||
+ | .wiki-forum-all-container .wiki-forum .forum-add-reply { | ||
background-color: rgba(0,0,0,0.05); | background-color: rgba(0,0,0,0.05); | ||
margin: 1rem; | margin: 1rem; | ||
Line 9: | Line 15: | ||
border-left: 4px solid rgba(0,0,0,0.2); | border-left: 4px solid rgba(0,0,0,0.2); | ||
} | } | ||
− | .wiki-forum .forum-first { | + | .wiki-forum-all-container .wiki-forum .forum-first { |
border-color: rgba(0,0,0,0.5); | border-color: rgba(0,0,0,0.5); | ||
} | } | ||
− | .wiki-forum .forum-first .forum-content { | + | .wiki-forum-all-container .wiki-forum .forum-first .forum-content { |
font-size: 1.2rem; | font-size: 1.2rem; | ||
line-height: 1.8; | line-height: 1.8; | ||
} | } | ||
− | .wiki-forum .forum-add- | + | .wiki-forum-all-container .wiki-forum .forum-add-thread { |
border-color: #008000; | border-color: #008000; | ||
} | } | ||
− | .wiki-forum .forum-before { | + | .wiki-forum-all-container .wiki-forum .forum-before { |
position: relative; | position: relative; | ||
} | } | ||
− | .wiki-forum .forum-before .forum-avatar { | + | .wiki-forum-all-container .wiki-forum .forum-before .forum-avatar { |
border-radius: 50%; | border-radius: 50%; | ||
border: 2px solid rgba(0,0,0,0.2); | border: 2px solid rgba(0,0,0,0.2); | ||
Line 28: | Line 34: | ||
height: 1.4rem; | height: 1.4rem; | ||
} | } | ||
− | .wiki-forum .forum-before .forum-id-link { | + | .wiki-forum-all-container .wiki-forum .forum-before .forum-id-link { |
position: absolute; | position: absolute; | ||
right: 0.1rem; | right: 0.1rem; | ||
top: 0.1rem; | top: 0.1rem; | ||
} | } | ||
− | .wiki-forum .forum-after .forum- | + | .wiki-forum-all-container .wiki-forum .forum-after .forum-new-reply-area { |
display: none; | display: none; | ||
} | } | ||
− | .wiki- | + | .wiki-forum-all-container .wiki-forum .forum-input-container { |
− | |||
− | |||
− | .wiki-forum .forum-input-container { | ||
display: flex; | display: flex; | ||
position: relative; | position: relative; | ||
} | } | ||
− | .wiki-forum .forum-input-container > div { | + | .wiki-forum-all-container .wiki-forum .forum-input-container > div { |
display: flex; | display: flex; | ||
} | } | ||
− | .wiki-forum .forum-input-container > div:first-of-type { | + | .wiki-forum-all-container .wiki-forum .forum-input-container > div:first-of-type { |
flex: 7; | flex: 7; | ||
} | } | ||
− | .wiki-forum .forum-input-container > div:last-of-type { | + | .wiki-forum-all-container .wiki-forum .forum-input-container > div:last-of-type { |
width: 2.8rem; | width: 2.8rem; | ||
justify-content: center; | justify-content: center; | ||
Line 55: | Line 58: | ||
flex: 1; | flex: 1; | ||
} | } | ||
− | .wiki-forum .forum-create-title, | + | .wiki-forum-all-container .wiki-forum .forum-create-title, |
− | .wiki-forum .forum-textarea { | + | .wiki-forum-all-container .wiki-forum .forum-textarea { |
resize: none; | resize: none; | ||
border: none; | border: none; | ||
Line 66: | Line 69: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
− | .wiki-forum .forum-create-title { | + | .wiki-forum-all-container .wiki-forum .forum-create-title { |
display: block; | display: block; | ||
width: calc(100% - 12px); | width: calc(100% - 12px); | ||
} | } | ||
− | .wiki-forum .forum- | + | .wiki-forum-all-container .wiki-forum .forum-submit-btn { |
width: calc(100% - 12px); | width: calc(100% - 12px); | ||
padding: 1px 2px; | padding: 1px 2px; | ||
margin: 0 4px; | margin: 0 4px; | ||
} | } | ||
− | .forum-loading { | + | .wiki-forum-all-container .forum-loading { |
position: relative; | position: relative; | ||
} | } | ||
− | .forum-loading:before, | + | .wiki-forum-all-container .forum-loading:before, |
− | .forum-loading:after { | + | .wiki-forum-all-container .forum-loading:after { |
content: ''; | content: ''; | ||
display: block; | display: block; | ||
Line 88: | Line 91: | ||
height: 100%; | height: 100%; | ||
} | } | ||
− | .forum-loading:before { | + | .wiki-forum-all-container .forum-loading:before { |
z-index: 10; | z-index: 10; | ||
background: rgba(255,255,255,0.5); | background: rgba(255,255,255,0.5); | ||
} | } | ||
− | .forum-loading:after { | + | .wiki-forum-all-container .forum-loading:after { |
background-image: url("https://vignette.wikia.nocookie.net/dftest/images/8/8c/Ms-loading-spinner.svg/revision/latest?cb=20191203083420"); | background-image: url("https://vignette.wikia.nocookie.net/dftest/images/8/8c/Ms-loading-spinner.svg/revision/latest?cb=20191203083420"); | ||
background-position: 50%; | background-position: 50%; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
} | } |
Latest revision as of 01:12, 8 January 2021
/**
* WikiForum default theme style
*/
.wiki-forum-all-container .wiki-forum {
border-top: 6px dotted rgba(0,0,0,0.2);
}
.wiki-forum-all-container .wiki-forum:last-of-type {
border-bottom: 6px dotted rgba(0,0,0,0.2);
}
.wiki-forum-all-container .wiki-forum .forum-thread,
.wiki-forum-all-container .wiki-forum .forum-add-reply {
background-color: rgba(0,0,0,0.05);
margin: 1rem;
padding: 0.5rem 0.5rem 0.5rem 1rem;
border-left: 4px solid rgba(0,0,0,0.2);
}
.wiki-forum-all-container .wiki-forum .forum-first {
border-color: rgba(0,0,0,0.5);
}
.wiki-forum-all-container .wiki-forum .forum-first .forum-content {
font-size: 1.2rem;
line-height: 1.8;
}
.wiki-forum-all-container .wiki-forum .forum-add-thread {
border-color: #008000;
}
.wiki-forum-all-container .wiki-forum .forum-before {
position: relative;
}
.wiki-forum-all-container .wiki-forum .forum-before .forum-avatar {
border-radius: 50%;
border: 2px solid rgba(0,0,0,0.2);
width: 1.4rem;
height: 1.4rem;
}
.wiki-forum-all-container .wiki-forum .forum-before .forum-id-link {
position: absolute;
right: 0.1rem;
top: 0.1rem;
}
.wiki-forum-all-container .wiki-forum .forum-after .forum-new-reply-area {
display: none;
}
.wiki-forum-all-container .wiki-forum .forum-input-container {
display: flex;
position: relative;
}
.wiki-forum-all-container .wiki-forum .forum-input-container > div {
display: flex;
}
.wiki-forum-all-container .wiki-forum .forum-input-container > div:first-of-type {
flex: 7;
}
.wiki-forum-all-container .wiki-forum .forum-input-container > div:last-of-type {
width: 2.8rem;
justify-content: center;
align-items: center;
flex: 1;
}
.wiki-forum-all-container .wiki-forum .forum-create-title,
.wiki-forum-all-container .wiki-forum .forum-textarea {
resize: none;
border: none;
background: rgba(0,0,0,0.05);
padding: 6px;
margin: 4px;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
}
.wiki-forum-all-container .wiki-forum .forum-create-title {
display: block;
width: calc(100% - 12px);
}
.wiki-forum-all-container .wiki-forum .forum-submit-btn {
width: calc(100% - 12px);
padding: 1px 2px;
margin: 0 4px;
}
.wiki-forum-all-container .forum-loading {
position: relative;
}
.wiki-forum-all-container .forum-loading:before,
.wiki-forum-all-container .forum-loading:after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.wiki-forum-all-container .forum-loading:before {
z-index: 10;
background: rgba(255,255,255,0.5);
}
.wiki-forum-all-container .forum-loading:after {
background-image: url("https://vignette.wikia.nocookie.net/dftest/images/8/8c/Ms-loading-spinner.svg/revision/latest?cb=20191203083420");
background-position: 50%;
background-repeat: no-repeat;
}