Difference between revisions of "MediaWiki:Common.css"

From Moegirlpedia
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 196: Line 196:
 
}
 
}
  
/* 评论区提示 */
+
/* Info */
.ns-0.action-view:not(.mainpage) #bodyContent::after,
+
.infoBox {
.ns-2.action-view #bodyContent::after,
+
    margin: 0 auto;
.ns-4.action-view #bodyContent::after,
+
    width: 80%;
.ns-12.action-view #bodyContent::after {
+
    box-sizing: border-box;
     content: "All commenting features are temporarily disabled due to system maintenance.";
+
}
     border: 1px solid rgba(0, 0, 0, 0.17);
+
 
 +
.infoBoxTitle {
 +
    margin: 3px auto;
 +
    padding: 0;
 +
    text-align: center;
 +
    font-weight: 700;
 +
}
 +
 
 +
.infoBoxIcon {
 +
    display: table-cell;
 +
    padding: 2px 0 2px 0.5em;
 +
    vertical-align: middle;
 +
}
 +
 
 +
.infoBoxText {
 +
    display: table-cell;
 +
    padding: 0.25em 0.5em 0.25em 1.3em;
 +
    width: 100%;
 +
    vertical-align: middle;
 +
}
 +
 
 +
.infoBoxContent {
 +
     border: 1px solid #DDD;
 +
     border-left-width: 0;
 +
    background: #FBFBFB;
 +
}
 +
 
 +
.infoBoxBelow {
 +
    margin: 0 auto;
 +
    padding: 0;
 
     text-align: center;
 
     text-align: center;
    font-size: small;
 
    padding: 1em;
 
    color: #777;
 
    display: block !important;
 
    clear: both;
 
 
}
 
}

Latest revision as of 02:26, 5 July 2023

/* CSS placed here will be applied to all skins */
/* LOGO */
#p-logo a {
  height: 245px;
}
#p-logo {
  position: absolute;
  top: -245px;
}
div#mw-panel {
  top: 245px;
}

/* Template:Navbox related css (update from zhmoe on 2017/05/19) */
table.navbox {
    border: 1px solid #aaa;
    clear: both;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%;
}
table.navbox+table.navbox {
    margin-top: -1px;
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
}
.navbox-group {
    font-weight: 700;
    padding-left: 1em;
    padding-right: 1em;
    white-space: nowrap;
}
.navbox,
.navbox-subgroup {
    background: none repeat scroll 0 0 #fdfdfd;
}
.navbox-list {
    border-color: #fdfdfd;
}
.navbox-title,
table.navbox th {
    background: none repeat scroll 0 0 #a5e4a5;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
    background: none repeat scroll 0 0 #c0ecc0;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
    background: none repeat scroll 0 0 #e6f6e6;
}
.navbox-even {
    background: none repeat scroll 0 0 #f5fcf5;
}
.navbox-odd {
    background: none repeat scroll 0 0 transparent;
}
.collapseButton {
    float: right;
    font-weight: 400;
    text-align: right;
    width: auto;
}
.navbox .collapseButton {
    width: 6em;
}
/* Tabs */
.tab .TabLabelText {
    display: inline-block;
    padding: 1px;
    cursor: pointer;
}
.tab .TabLabel {
    z-index: 2;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.tab .TabLabelText.selected {
    border-top: 3px solid green;
    padding: 1px;
    background: white;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa;
}
.tab .TabContent {
    background: white;
    padding: 20px 30px;
    position: relative;
    z-index: 1;
    border: 1px solid #aaa;
}
.tab .TabContentText {
    display: none;
}
.tab .TabContentText.selected {
    display: block;
}
.Tabs .Tab {
    border-bottom: 1px solid #aaa;
}
.Tabs .Tab:first-child {
    border-top: 1px solid #aaa;
}
.Tabs .Tab .TabLabelText {
    padding: 7px;
}
.Tabs .Tab .TabContentText {
    padding: 3px;
}


/* -------------------------------------------------------------
 * Inline spoilers tag
 * ------------------------------------------------------------- */
span.inline-spoilers a.external,
span.inline-spoilers a.external:visited,
span.inline-spoilers a.extiw,
span.inline-spoilers a.extiw:visited {
    color: #252525;
}
.inline-spoilers,
.inline-spoilers a,
a .inline-spoilers,
.inline-spoilers a.new {
    background-color: #252525;
    color: #252525;
    text-shadow: none;
}
body:not(.inline-spoilers_toggle_on) .inline-spoilers:hover,
body:not(.inline-spoilers_toggle_on) .inline-spoilers:active,
body:not(.inline-spoilers_toggle_on) .inline-spoilers.off {
    color: white;
}
body:not(.inline-spoilers_toggle_on) .inline-spoilers:hover a,
body:not(.inline-spoilers_toggle_on) a:hover .inline-spoilers,
body:not(.inline-spoilers_toggle_on) .inline-spoilers.off a,
body:not(.inline-spoilers_toggle_on) a:hover .inline-spoilers.off {
    color: lightblue;
}
body:not(.inline-spoilers_toggle_on) .inline-spoilers.off .new,
body:not(.inline-spoilers_toggle_on) .inline-spoilers.off .new:hover,
body:not(.inline-spoilers_toggle_on) .new:hover .inline-spoilers.off,
body:not(.inline-spoilers_toggle_on) .inline-spoilers.off .new,
body:not(.inline-spoilers_toggle_on) .inline-spoilers.off .new:hover,
body:not(.inline-spoilers_toggle_on) .new:hover .inline-spoilers.off {
    color: #BA0000;
}
/* templatedata */
.mw-templatedata-doc-muted {
    font-style: italic;
}

/* 数据表格 */
.mw-datatable.TablePager {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

/* 评论区输入框工具栏 */
.post-content .comment-text {
    position: static;
}
.post-content .comment-toolbar {
    position: static;
    display: flex;
    justify-content: flex-start;
}
.post-content .flowthread-btn {
    position: static;
    margin-top: 3px;
}
.post-content .comment-submit {
    position: static;
    margin: -1px -1px 0 auto;
}

/* 隐藏只供维护人员查看的内容 */
.patroller-show,
.checkuser-show,
.suppress-show,
.sysop-show,
.interface-admin-show {
    display: none !important;
}

/* Info */
.infoBox {
    margin: 0 auto;
    width: 80%;
    box-sizing: border-box;
}

.infoBoxTitle {
    margin: 3px auto;
    padding: 0;
    text-align: center;
    font-weight: 700;
}

.infoBoxIcon {
    display: table-cell;
    padding: 2px 0 2px 0.5em;
    vertical-align: middle;
}

.infoBoxText {
    display: table-cell;
    padding: 0.25em 0.5em 0.25em 1.3em;
    width: 100%;
    vertical-align: middle;
}

.infoBoxContent {
    border: 1px solid #DDD;
    border-left-width: 0;
    background: #FBFBFB;
}

.infoBoxBelow {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}