Site Notice

hello, world

MediaWiki:Gadget-WikiForum.css

From Project-EPB Commons
Revision as of 23:32, 26 December 2020 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Invoke this: https://common.wjghj.cn/

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/**
 * WikiForum
 */
.wiki-forum .forum-thread,
.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 .forum-first {
  border-color: rgba(0,0,0,0.5);
}
.wiki-forum .forum-first .forum-content {
  font-size: 1.2rem;
  line-height: 1.8;
}
.wiki-forum .forum-add-reply {
  border-color: #008000;
}
.wiki-forum .forum-before {
  position: relative;
}
.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 .forum-before .forum-id-link {
  position: absolute;
  right: 0.1rem;
  top: 0.1rem;
}
.wiki-forum .forum-after .forum-input-container {
  display: none;
}
.wiki-forum .forum-after .forum-input-container.show {
  display: flex;
}
.wiki-forum .forum-input-container {
  display: flex;
  position: relative;
}
.wiki-forum .forum-input-container > div {
  display: flex;
}
.wiki-forum .forum-input-container > div:first-of-type {
  flex: 7;
}
.wiki-forum .forum-input-container > div:last-of-type {
  width: 2.8rem;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.wiki-forum .forum-create-title,
.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 .forum-create-title {
  display: block;
  width: calc(100% - 12px);
}
.wiki-forum .forum-send-btn {
  width: calc(100% - 12px);
  padding: 1px 2px;
  margin: 0 4px;
}
.forum-loading {
  position: relative;
}
.forum-loading:before,
.forum-loading:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.forum-loading:before {
  z-index: 10;
  background: rgba(255,255,255,0.5);
}
.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;
}