MediaWiki:Mobile.css: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
(fix minecraftia font)
No edit summary
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the mobile site */
/* CSS placed here will affect users of the mobile site */


/* ======================= CRAFTING GRID CSS ================== */
 
/* ========================================================================= */
/*                                                                          */
/*                            CRAFTING GRID CSS                             */
/*                                                                          */
/* ========================================================================= */
@font-face {
@font-face {
    font-family: 'minecraftia';
font-family:'minecraftia';
    src: url('https://www.gm4.co/includes/minecraftia-regular-webfont.woff2') format('woff2'),
src:url(https://www.gm4.co/includes/minecraftia-regular-webfont.woff2) format('woff2'),
        url('https://www.gm4.co/includes/minecraftia-regular-webfont.woff') format('woff');
url(https://www.gm4.co/includes/minecraftia-regular-webfont.woff) format('woff');
        url('https://www.gm4.co/includes/Minecraftia-Regular.ttf') format('ttf');
url(https://www.gm4.co/includes/Minecraftia-Regular.ttf) format('ttf');
    font-weight: normal;
font-weight:normal;
    font-style: normal;
font-style:normal
}
}


.inv-sprite{
.invslot {
  background-image: url(https://gamepedia.cursecdn.com/minecraft_gamepedia/archive/4/44/20181213074717%21InvSprite.png)
border-width:2px;
border-style:solid;
display:inline-block;
overflow:hidden;
width:32px;
height:32px;
position:relative
}
}
.invslot-stacksize {
position:absolute;
right:0;
bottom:-6px;
font-family: minecraftia,monospace;
font-weight:normal;
color:#FFF;
text-shadow:2px 2px 0 #3F3F3F;
filter:dropshadow(color=#3F3F3F,offx=2,offy=2);
z-index:2
}


.invgrid{
.invgrid{
  border-collapse: collapse;
border-collapse: collapse;
display: inline-block;
display: inline-block;
}
}
Line 53: Line 77:


.invslot-large{
.invslot-large{
  padding: 8px;
padding: 8px;
}
}


.crafting{
.crafting{
  padding: 12px;
padding: 12px;
  display: inline-block;
display: inline-block;
border-width: 3px;
border-width: 3px;
border-style: solid;
border-style: solid;
white-space: nowrap;
}
.crafting-container-name {
font-family:minecraftia;
}
.crafting-zauber .crafting-container-name {
text-align: center;
}
}


.crafting-custom{
.crafting-custom{
  background-color: #8FC4DC;
background-color: #8FC4DC;
  border-color: #C0DEEB #1A536E #1A536E #C0DEEB;
border-color: #C0DEEB #1A536E #1A536E #C0DEEB;
}
}


Line 71: Line 104:
background-color: #C6C6C6;
background-color: #C6C6C6;
border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB;
border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB;
}
.crafting-arrow{
  width: 32px;
  height: 32px;
}
}


Line 83: Line 111:


.crafting-custom .crafting-arrow{
.crafting-custom .crafting-arrow{
  background-image: url(https://wiki.gm4.co/images/b/b7/Custom_Crafting_arrow.png);
width: 32px;
height: 32px;
background-image: url(https://wiki.gm4.co/images/b/b7/Custom_Crafting_arrow.png);
}
}


.crafting-standard .crafting-arrow{
.crafting-standard .crafting-arrow{
  background-image: url(https://wiki.gm4.co/images/b/b7/Standard_Crafting_arrow.png);
width: 32px;
height: 32px;
background-image: url(https://wiki.gm4.co/images/b/b7/Standard_Crafting_arrow.png);
}
 
.crafting-zauber .crafting-arrow {
width:33px;
height:36px;
background-image:url(https://wiki.gm4.co/images/4/4e/Custom_Cauldron_Crafting_Arrow.png)
}
}


.crafting > * {
.crafting-recipe > * {
vertical-align: middle;
vertical-align: middle;
  display: inline-block;
display: inline-block;
}
}
/* ========================================================================= */
/*                                                                          */
/*              Modified styling for minecraft style tooltip                */
/*                                                                          */
/* ========================================================================= */


.tooltip {
.tooltip {
    font-family: minecraftia;
font-family:minecraftia, sans-serif;
    display: none;
display:none;
    position: absolute;
position:absolute;
    border: 1px solid #333;
border: 0.125em solid #100010;
    background-color: #161616;
border-style: none solid;
    border-radius: 2px;
border-color: rgba(16, 0, 16, 0.94);
    padding: 10px;
background-color: #100010;
    padding-top: 10px;
background-color: rgba(16, 0, 16, 0.94);
    padding-bottom: 0px;
word-spacing: 4px;
    color: #fff;
border-radius:2px;
    font-size: 16px;
padding:10px;
    line-height: 20px;
padding-top:10px;
padding-bottom:0px;
color:#fff;
font-size:16px;
line-height:1.25em;
}
}
.tooltip p{
 
    margin: 0;
.tooltip p {
    line-height: 0px;
margin:0;
line-height:0px
}
 
.slot {
padding:1px;
display:inline-block;
border-width:3px;
border-style:solid
}
}

Revision as of 18:05, 22 May 2020

/* CSS placed here will affect users of the mobile site */


/* ========================================================================= */
/*                                                                           */
/*                            CRAFTING GRID CSS                              */
/*                                                                           */
/* ========================================================================= */
@font-face {
	font-family:'minecraftia';
	src:url(https://www.gm4.co/includes/minecraftia-regular-webfont.woff2) format('woff2'),
	url(https://www.gm4.co/includes/minecraftia-regular-webfont.woff) format('woff');
	url(https://www.gm4.co/includes/Minecraftia-Regular.ttf) format('ttf');
	font-weight:normal;
	font-style:normal
}

.invslot {
	border-width:2px;
	border-style:solid;
	display:inline-block;
	overflow:hidden;
	width:32px;
	height:32px;
	position:relative
}

.invslot-stacksize {
	position:absolute;
	right:0;
	bottom:-6px;
	font-family: minecraftia,monospace;
	font-weight:normal;
	color:#FFF;
	text-shadow:2px 2px 0 #3F3F3F;
	filter:dropshadow(color=#3F3F3F,offx=2,offy=2);
	z-index:2
}


.invgrid{
	border-collapse: collapse;
	display: inline-block;
}

.invslot{
	border-width: 2px;
	border-style: solid;
	display:inline-block;
	overflow:hidden;
	width:32px;
	height:32px;
	position:relative;
}

.invslot-stacksize{
	position:absolute;
	right:0;
	bottom:0;
	font-family:minecraftia,sans-serif !important;
	font-weight:normal !important;
	color:#FFF !important;
	text-shadow:2px 2px 0 #3F3F3F;
	filter:dropshadow(color=#3F3F3F,offx=2,offy=2);
	z-index:2
}

.crafting-custom .invslot{
	background-color:#67AFD0;
	border-color: #1A536E #C0DEEB #C0DEEB #1A536E;
}

.crafting-standard .invslot{
	background-color: #8B8B8B;
	border-color: #373737 #FFFFFF #FFFFFF #373737;
}

.invslot-large{
	padding: 8px;
}

.crafting{
	padding: 12px;
	display: inline-block;
	border-width: 3px;
	border-style: solid;
	white-space: nowrap;
}

.crafting-container-name {
	font-family:minecraftia;
}

.crafting-zauber .crafting-container-name {
	text-align: center;
}

.crafting-custom{
	background-color: #8FC4DC;
	border-color: #C0DEEB #1A536E #1A536E #C0DEEB;
}

.crafting-standard{
	background-color: #C6C6C6;
	border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB;
}

.catalyst {
	margin: 16px 0px 0px 3px;
}

.crafting-custom .crafting-arrow{
	width: 32px;
	height: 32px;
	background-image: url(https://wiki.gm4.co/images/b/b7/Custom_Crafting_arrow.png);
}

.crafting-standard .crafting-arrow{
	width: 32px;
	height: 32px;
	background-image: url(https://wiki.gm4.co/images/b/b7/Standard_Crafting_arrow.png);
}

.crafting-zauber .crafting-arrow {
	width:33px;
	height:36px;
	background-image:url(https://wiki.gm4.co/images/4/4e/Custom_Cauldron_Crafting_Arrow.png)
}

.crafting-recipe > * {
	vertical-align: middle;
	display: inline-block;
}

/* ========================================================================= */
/*                                                                           */
/*               Modified styling for minecraft style tooltip                */
/*                                                                           */
/* ========================================================================= */

.tooltip {
	font-family:minecraftia, sans-serif;
	display:none;
	position:absolute;
	border: 0.125em solid #100010;
	border-style: none solid;
	border-color: rgba(16, 0, 16, 0.94);
	background-color: #100010;
	background-color: rgba(16, 0, 16, 0.94);
	word-spacing: 4px;
	border-radius:2px;
	padding:10px;
	padding-top:10px;
	padding-bottom:0px;
	color:#fff;
	font-size:16px;
	line-height:1.25em;
}

.tooltip p {
	margin:0;
	line-height:0px
}

.slot {
	padding:1px;
	display:inline-block;
	border-width:3px;
	border-style:solid
}