MediaWiki:Common.css: Difference between revisions
From Elwiki
Shironsaki (talk | contribs) No edit summary |
Shironsaki (talk | contribs) No edit summary |
||
Line 403: | Line 403: | ||
filter: alpha(opacity=100); /* For IE8 and earlier */ | filter: alpha(opacity=100); /* For IE8 and earlier */ | ||
} | } | ||
/* ImageHover */ | /* ImageHover */ | ||
.fadeout img:hover { | .fadeout img:hover { | ||
Line 423: | Line 414: | ||
visibility: hidden; /* the 'body:not(.editor)' is used to prevent hiding the image in editing mode where it is not displayed properly */ | visibility: hidden; /* the 'body:not(.editor)' is used to prevent hiding the image in editing mode where it is not displayed properly */ | ||
} | } | ||
Revision as of 07:34, 17 January 2017
/****************************** Checkbox, Radio & Button Styles ******************************/
input, button {
position: relative
}
/****************************** Namebox Styles ******************************/
table.nmbox {
border-collapse:collapse;
width:100%;
clear:both;
font-size:85%;
border: 2px lightblue solid;
margin: 20px 0;
}
table.nmbox > tbody > tr > th, table.nmbox > tbody > tr > td {
padding: 0.4em 0.8em;
}
table.nmbox > tbody > tr > th {
min-width: 50px;
width: 5%;
background-color: lightblue;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eee), color-stop(1, lightblue));
background-image: -webkit-linear-gradient(top, #eee, lightblue);
background-image: -moz-linear-gradient(top, #eee, lightblue);
background-image: -o-linear-gradient(top, #eee, lightblue);
background-image: linear-gradient(to bottom, #eee, lightblue);
}
table.nmbox > tbody > tr > td {
width: 95%;
background-color: #e0ffff;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eee), color-stop(1, #e0ffff));
background-image: -webkit-linear-gradient(top, #eee, #e0ffff);
background-image: -moz-linear-gradient(top, #eee, #e0ffff);
background-image: -o-linear-gradient(top, #eee, #e0ffff);
background-image: linear-gradient(to bottom, #eee, #e0ffff);
}
#p-googleadsense .pBody {
padding-top: 5px;
text-align: center;
}
div.section-wrapper {
padding: 0.5em;
border-radius: 5px;
border-width: 2px;
border-style: solid;
clear: both;
}
table.top-nav {
border-spacing: 0;
width: auto;
margin: 1em;
text-align: center;
vertical-align: middle;
}
table.section,
table.section-side-column {
position: relative;
width: 100%;
margin: 0;
border-width: 1px;
border-style: solid;
border-spacing: 0;
}
table.section:not(.infobox) + table.section:not(.infobox),
table.section:not(.infobox) + table.section-side-column,
table.section-side-column + table.section:not(.infobox) {
border-top: none;
}
table.section > tbody > tr:first-child {
text-align: center;
background-color: lightblue;
}
table.section > tbody > tr:first-child > th {
line-height: 1em;
padding: 0.5em 0;
text-align: center;
vertical-align: middle;
border-width: 1px;
border-style: solid;
border-top: none !important;
}
table.section > tbody > tr:last-child > td {
vertical-align: top;
padding: 0.5em;
border: none;
border-bottom: none !important;
}
table.section > tbody > tr:first-child > th:first-child,
table.section > tbody > tr:last-child > td:first-child {
border-left: none !important;
}
table.section > tbody > tr:first-child > th:last-child,
table.section > tbody > tr:last-child > td:last-child {
border-right: none !important;
}
table.section > tbody > tr:first-child > th ~ th,
table.section > tbody > tr:last-child > td ~ td {
border-left: none !important;
}
table.section-side-column {
text-align: center;
}
table.section-side-column > tbody > tr > td:first-child {
width: 50%;
height: 400px;
padding: 10px;
}
table.section-side-column > tbody > tr > td:last-child {
border-left: 1px solid #000;
height: 420px;
padding: 0;
}
table.section-side-column > tbody > tr > td:last-child > table.section > tbody > tr:last-child > td {
vertical-align: middle;
}
table.section-side-column > tbody > tr > td:last-child > table.section {
text-align: center;
border: none;
}
table.section-side-column > tbody > tr > td:last-child > table.section + table.section {
border-top-width: 1px;
border-top-style: solid;
}
table.section-border,
table.section-border.section > tbody > tr > th,
table.section-border.section > tbody > tr > td,
.section-border.tabdiv > ul,
.section-border:not(table) {
border-color: lightblue;
border-width: 2px !important;
}
.section-border-top-radius {
-webkit-border-top-left-radius: 5px;
border-top-left-radius: 5px;
-moz-border-radius-topleft: 5px;
-webkit-border-top-right-radius: 5px;
border-top-right-radius: 5px;
-moz-border-radius-topright: 5px;
}
.section-border-bottom-radius {
-webkit-border-bottom-left-radius: 5px;
border-bottom-left-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-webkit-border-bottom-right-radius: 5px;
border-bottom-right-radius: 5px;
-moz-border-radius-bottomright: 5px;
}
.textfloat {
color: #fff;
text-shadow: 1px 1px 1px #000;
}
.textfloat a,
.textfloat a:link,
.textfloat a:visited,
.textfloat a:hover,
.textfloat a:active {
color: inherit;
}
th {
background-color: inherit;
}
/**
Bilibili Sidebar Style
**/
.portal h3 {
background-image: none !important;
padding: 0 0 3px 0 !important;
}
.portal h3,
.portal h3:hover,
.portal h3:active,
.portal h3:link,
.portal h3:visited {
font-weight: bolder !important;
text-decoration: none !important;
}
.portal li > ul {
position: absolute;
visibility: hidden;
left: 100%;
background-color: #fff;
margin-top: -1em !important;
margin-left: -10px !important;
min-width: 180px;
max-width: 230px;
opacity: 0;
-webkit-box-shadow: 10px 10px 10px #ccf;
-moz-box-shadow: 10px 10px 10px #ccf;
box-shadow: 10px 10px 10px #ccf;
}
.portal li:hover > ul {
opacity: 1;
visibility: visible;
}
.portal ul,
.portal li,
.portal a,
.portal strong.selflink {
display: block;
}
.portal a,
.portal strong.selflink {
max-width: 96%;
}
.portal li {
position: relative;
font-weight: bold;
font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
text-decoration: none;
padding: 0;
margin: 0;
}
.portal li:hover {
-webkit-transform: translateX(10px);
-moz-transform: translateX(10px);
-ms-transform: translateX(10px);
-o-transform: translateX(10px);
transform: translateX(10px);
}
.portal a,
.portal a:link,
.portal a:visited,
.portal a:hover,
.portal a:active,
.portal strong.selflink {
text-decoration: none;
color: #000 !important;
}
.portal a:before,
.portal a:after,
.portal strong.selflink:before,
.portal strong.selflink:after {
color: #07a3d7;
margin: auto 3px;
}
.portal a:before,
.portal strong.selflink:before {
content: '>';
}
.portal a:after,
.portal strong.selflink:after {
content: '<';
visibility: hidden;
-webkit-transform: translateX(15px);
-moz-transform: translateX(15px);
-ms-transform: translateX(15px);
-o-transform: translateX(15px);
transform: translateX(15px);
}
.portal a:hover:after,
.portal strong.selflink:hover:after {
visibility: visible;
-webkit-transform: translateX(0px);
-moz-transform: translateX(0px);
-ms-transform: translateX(0px);
-o-transform: translateX(0px);
transform: translateX(0px);
}
.portal strong.selflink {
color: #07a3d7 !important;
border-bottom: 2px #07a3d7 solid;
}
.portal a:after,
.portal strong.selflink:after,
.portal li {
-webkit-transition: transform .3s;
-moz-transition: transform .3s;
-o-transition: transform .3s;
transition: transform .3s;
}
.portal li > ul {
-webkit-transition: opacity .3s;
-moz-transition: opacity .3s;
-o-transition: opacity .3s;
transition: opacity .3s;
}
/** floating header **/
.persistHeader {
position: fixed;
top: 0;
display: block;
width: 100%;
z-index: 3000;
background-color: red;
}
.persistHeader.visible {
visibility: visible;
}
code {
display: inline-block;
font-weight: bold;
font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
background-color: #eee;
color: #4e9a06;
padding: 2px 0.4em;
border-radius: 3px;
}
.rainbow-text {
background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22));
background-image: gradient(linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22));
color:transparent;
-webkit-background-clip: text;
background-clip: text;
}
.rainbow {
background-color: orange;
}
* {
text-rendering: optimizeSpeed;
}
.mw-body .external {
padding-right: 0;
background-image: none;
}
.shady, .shady a {
background-color: black !important;
color: transparent !important;
}
.shady:hover, .shady:hover a, .shady a:hover {
background-color: black !important;
color: white !important;
}
/* Hoverimage */
.hoverimage img {
opacity: 0;
filter: alpha(opacity=0);
}
.hoverimage img:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
.hoverimages img {
opacity: 0.85;
filter: alpha(opacity=0);
}
.hoverimages img:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
/* Installing Hover Logo */
#WikiHeader h1.wordmark img {
opacity: 0.85;
filter: alpha(opacity=85); /* For IE8 and earlier */
}
#WikiHeader h1.wordmark img:hover {
opacity: 1.0;
filter: alpha(opacity=100); /* For IE8 and earlier */
}
/* ImageHover */
.fadeout img:hover {
opacity:0;
}
.fadeout img:active {
opacity:0;
}
body:not(.editor) .fadeout-container.fadeout-hide-bottom > :nth-child(2) {
visibility: hidden; /* the 'body:not(.editor)' is used to prevent hiding the image in editing mode where it is not displayed properly */
}