「MediaWiki:Common.css」の版間の差分

提供:Azipedia
ナビゲーションに移動 検索に移動
(ページの作成:「→‎ここに記述したCSSはすべての外装に反映されます: @font-face { font-family: Minecraftia; src: url("/images/9/90/Minecraftia.ttf"); }」)
 
編集の要約なし
5行目: 5行目:
src: url("/images/9/90/Minecraftia.ttf");
src: url("/images/9/90/Minecraftia.ttf");
}
}
/* 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;
}
.navsprites-minecraft .ni a { background-image: url("/images/c/c2/NavSprites_Minecraft.png"); }

2022年5月22日 (日) 22:11時点における版

/* ここに記述したCSSはすべての外装に反映されます */

@font-face {
	font-family: Minecraftia;
	src: url("/images/9/90/Minecraftia.ttf");
}

/* 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;
}

.navsprites-minecraft .ni a { background-image: url("/images/c/c2/NavSprites_Minecraft.png"); }