「MediaWiki:Common.css」の版間の差分
ナビゲーションに移動
検索に移動
PerfectBoat (トーク | 投稿記録) 編集の要約なし |
PerfectBoat (トーク | 投稿記録) 編集の要約なし |
||
(同じ利用者による、間の7版が非表示) | |||
39行目: | 39行目: | ||
.infobox-infoname { width: 34%; } | .infobox-infoname { width: 34%; } | ||
.infobox-infovalue { width: 66%; } | .infobox-infovalue { width: 66%; } | ||
.infobox th { | |||
padding: 0 !important | |||
} | |||
.infobox .infobox-centertext { | |||
text-align: center | |||
} | |||
.infobox .infobox-caption { | |||
size: small; | |||
font-style: italic | |||
} | |||
.infobox .infobox-infoname { | |||
text-align: left; | |||
font-weight: bold | |||
} | |||
.infobox .infobox-infovalue { | |||
text-align: right | |||
} | |||
table.infobox { | table.infobox { | ||
background: # | background: #ccc !important; | ||
border: solid 1px #393939; | border: solid 1px #393939; | ||
-moz-border-radius: 5px; | -moz-border-radius: 5px; | ||
-webkit-border-radius: 5px; | -webkit-border-radius: 5px; | ||
border-radius: 5px; | border-radius: 5px; | ||
color: #FFF; | /*color: #FFF;*/ | ||
margin: 0 0 10px 10px; | margin: 0 0 10px 10px; | ||
float: right; | float: right; | ||
width: | width: 320px; | ||
font-size: 11px | /*font-size: 11px;*/ | ||
} | } | ||
56行目: | 78行目: | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
/* | |||
color: #fff; | color: #fff; | ||
text-shadow: rgba(0,0,0,0.4) 0px -1px 0px; | text-shadow: rgba(0,0,0,0.4) 0px -1px 0px; | ||
*/ | |||
padding: 7px !important; | padding: 7px !important; | ||
font-size: 12px !important; | /*font-size: 12px !important;*/ | ||
font-weight: bold; | font-weight: bold; | ||
-moz-border-radius: 4px; | -moz-border-radius: 4px; | ||
322行目: | 346行目: | ||
.navsprites-minecraft .ni a { background-image: url("/images/c/c2/NavSprites_Minecraft.png"); } | .navsprites-minecraft .ni a { background-image: url("/images/c/c2/NavSprites_Minecraft.png"); } | ||
.border_ul>.border_lr>p { | |||
margin: 0 0 5px 0; | |||
line-height: 1.5em; | |||
} |
2022年5月22日 (日) 23:24時点における最新版
/* ここに記述したCSSはすべての外装に反映されます */
@font-face {
font-family: Minecraftia;
src: url("/images/9/90/Minecraftia.ttf");
}
.infobox-image img, .filehistory img {
-ms-interpolation-mode: nearest-neighbor; /* IE 7+ (non-standard property) */
image-rendering: -webkit-optimize-contrast; /* Safari 6, UC Browser 9.9 */
image-rendering: -webkit-crisp-edges; /* Safari 7+ */
image-rendering: -moz-crisp-edges; /* Firefox 3.6+ */
image-rendering: -o-crisp-edges; /* Opera 12 */
image-rendering: pixelated; /* Chrome 41+ and Opera 26+ */
}
.nowrap { white-space: nowrap }
/* Infobox template style */
.infobox {
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
clear: right;
}
.infobox td, .infobox th { vertical-align: top; }
.infobox caption {
font-size: larger;
margin-left: inherit;
}
.infobox.bordered { border-collapse: collapse; }
.infobox.bordered td, .infobox.bordered th { border: 1px solid #aaaaaa; }
.infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; }
.infobox-infoname { width: 34%; }
.infobox-infovalue { width: 66%; }
.infobox th {
padding: 0 !important
}
.infobox .infobox-centertext {
text-align: center
}
.infobox .infobox-caption {
size: small;
font-style: italic
}
.infobox .infobox-infoname {
text-align: left;
font-weight: bold
}
.infobox .infobox-infovalue {
text-align: right
}
table.infobox {
background: #ccc !important;
border: solid 1px #393939;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
/*color: #FFF;*/
margin: 0 0 10px 10px;
float: right;
width: 320px;
/*font-size: 11px;*/
}
table.infobox th {
text-align: center;
font-weight: bold;
/*
color: #fff;
text-shadow: rgba(0,0,0,0.4) 0px -1px 0px;
*/
padding: 7px !important;
/*font-size: 12px !important;*/
font-weight: bold;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px;
-moz-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px;
box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px;
overflow: hidden;
margin-bottom: 4px;
background-position: 50% -8px !important;
background-repeat: repeat-x
}
table.infobox h2 {
margin: 0
}
table.infobox td {
padding: 5px;
line-height: 130%
}
/* Image frame fix */
div.tright, div.tleft { border: 1px solid silver; }
div.thumbinner {
background: inherit;
border: none;
color: inherit;
}
#article div.thumb { color:inherit; }
/* Babel */
div.babelbox {
float: right;
margin-left: 1em;
margin-bottom: 0.5em;
width: 246px;
border: 1px solid #99B3FF;
padding: 2px 0 2px 0;
}
/* Grid stuff */
div.gridbox {
background: #8B8B8B;
display: inline-block;
position: relative;
height: 32px;
width: 32px;
padding: 2px;
}
div.gridbox div.border_ul {
display: block;
margin: -2px 0 0 -2px;
border-left: solid 2px #373737;
border-top: solid 2px #373737;
height: 100%;
}
div.gridbox div.border_lr {
display: block;
margin: 0 -2px -2px 0;
border-right: solid 2px #FFF;
border-bottom: solid 2px #FFF;
height: 100%;
}
div.gridbox div.numbers {
height: 24px;
margin: 0;
padding: 0;
position: absolute;
width: 64px;
overflow: hidden;
left: 10px;
top: 19px;
}
.rotate {
white-space: nowrap;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
transform: rotate(-90deg);
/* also accepts left, right, top, bottom coordinates; not required, but a good idea for styling */
-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
transform-origin: 50% 50%;
/* Should be unset in IE9+ I think. */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
/* Generic styling for animation class */
.animated > span, .animated > div { display: none; }
.animated > span.active { display: inline; }
.animated > div.active { display: block; }
div.navicon {
position: relative;
height: 16px;
width: 16px;
overflow: hidden;
display: inline-block;
vertical-align: middle;
}
div.navicon > div.inner {
position: absolute;
height: 16px;
width: 16px;
}
/*************************************
* Commonly used square sizes *
*************************************/
._32px {
width: 32px;
height: 32px;
}
._64px {
width: 64px;
height: 64px;
}
/*************************************
* Displays Tooltips *
*************************************/
#tooltip-display {
font-family: Minecraftia;
font-size: 16px;
line-height: 1.25em;
background-color: rgba(16,0,16,0.94);
color: #fff;
text-shadow: 0.125em 0.125em 0 #3f3f3f;
border-top: 0.125em solid rgba(80,0,255, 0.31);
border-bottom: 0.125em solid rgba(40, 0, 127, 0.31);
position: absolute;
padding: 0 0.25em 0.25em 0.25em;
margin: 0.25em 0.375em;
z-index: 98;
white-space: nowrap;
pointer-events: none;
content: attr(data-tooltip);
}
#tooltip-display:before {
content: "";
position: absolute;
top: -0.25em;
right: -0.125em;
bottom: -0.25em;
left: -0.125em;
border: 0.125em solid rgba(16, 0, 16, 0.94);
}
#tooltip-display:after {
content: "";
position: absolute;
top: -0.125em;
right: -0.25em;
bottom: -0.125em;
left: -0.25em;
background-image: -webkit-linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)), -webkit-linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31));
background-image: linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)), linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31));
background-size: 0.125em 100%;
background-repeat: no-repeat;
background-position: left, right;
border: solid rgba(16, 0, 16, 0.94);
border-width: 0 0.125em;
}
/*************************************
* Displays a placeholder image *
*************************************/
.craftgrid a.new,
.navitem > a.new:first-child,
.itemref a.new:first-child {
background: url('/images/0/08/Unknown_Image.svg') no-repeat;
display: inline-block;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
.craftgrid a.new {
background-size: 32px 32px;
width: 32px;
height: 32px;
}
.navitem > a.new:first-child,
.itemref a.new:first-child {
vertical-align: middle;
}
.navitem > a.new:first-child {
background-size: 16px 16px;
width: 16px;
height: 16px;
}
.itemref a.new:first-child {
/* Size for itemref is overridden by JavaScript on custom dimensions */
background-size: 32px 32px;
width: 32px;
height: 32px;
}
/******************************************
* Crafting grids *
*****************************************/
.craftgrid {
position: relative;
padding: 0;
margin: 0;
}
.griditem {
position: absolute;
width: 32px;
height: 32px;
padding: 0;
margin: 0;
}
.gridamount {
position: absolute;
overflow: hidden;
width: 38px;
height: 18px;
padding: 0;
margin: 0;
}
/******************************************
* Nav Sprites *
*****************************************/
.navitem .ni a {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
}
.navsprites-minecraft .ni a { background-image: url("/images/c/c2/NavSprites_Minecraft.png"); }
.border_ul>.border_lr>p {
margin: 0 0 5px 0;
line-height: 1.5em;
}