MediaWiki:Mobile.css: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
(Add all Crafting CSS)
(Hope this doesn't break everything - not that we'll know because we don't use mobile)
Line 1: Line 1:
/* CSS placed here will affect users of the mobile site */
/* CSS placed here will affect users of the mobile site */


/* ========================================================================= */
/* ========================================================================= */
Line 7: Line 8:
/* ========================================================================= */
/* ========================================================================= */
@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
}
.invgrid {
border-collapse:collapse;
display:inline-block
}
}
.invslot {
.invslot {
border-width:2px;
border-width:2px;
border-style:solid;
border-style:solid;
display:inline-block;
display:inline-block;
overflow:hidden;
overflow:hidden;
width:32px;
width:32px;
height:32px;
height:32px;
position:relative
position:relative
}
}
.invslot-stacksize {
.invslot-stacksize {
position:absolute;
position:absolute;
right:0;
right:0;
bottom:-6px;
bottom:-6px;
font-family: minecraftia,monospace;
font-family: minecraftia,monospace;
font-weight:normal;
font-weight:normal;
color:#FFF;
color:#FFF;
text-shadow:2px 2px 0 #3F3F3F;
text-shadow:2px 2px 0 #3F3F3F;
filter:dropshadow(color=#3F3F3F,offx=2,offy=2);
filter:dropshadow(color=#3F3F3F,offx=2,offy=2);
z-index:2
z-index:2
}
 
 
.invgrid{
border-collapse: collapse;
display: inline-block;
}
}
.crafting-custom .invslot {
 
background-color:#67AFD0;
.invslot{
border-color:#1A536E #C0DEEB #C0DEEB #1A536E
border-width: 2px;
border-style: solid;
display:inline-block;
overflow:hidden;
width:32px;
height:32px;
position:relative;
}
}
.crafting-standard .invslot {
 
background-color:#8B8B8B;
.invslot-stacksize{
border-color:#373737 #FFFFFF #FFFFFF #373737
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-zauber .invslot {
 
background-color:#8B8B8B;
.crafting-custom .invslot{
border-color:#FFFFFF #373737 #373737 #FFFFFF
background-color:#67AFD0;
border-color: #1A536E #C0DEEB #C0DEEB #1A536E;
}
}
.invslot-large {
 
padding:8px
.crafting-standard .invslot{
background-color: #8B8B8B;
border-color: #373737 #FFFFFF #FFFFFF #373737;
}
}
.crafting {
 
padding:12px;
.invslot-large{
display:inline-block;
padding: 8px;
border-width:3px;
border-style:solid;
white-space: nowrap;
}
}


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


.crafting-custom {
.crafting-zauber .crafting-container-name {
background-color:#8FC4DC;
text-align: center;
border-color:#C0DEEB #1A536E #1A536E #C0DEEB
}
}
.crafting-standard {
 
background-color:#C6C6C6;
.crafting-custom{
border-color:#DBDBDB #5B5B5B #5B5B5B #DBDBDB
background-color: #8FC4DC;
border-color: #C0DEEB #1A536E #1A536E #C0DEEB;
}
}
.crafting-zauber {
 
background-color:#8FC4DC;
.crafting-standard{
border-color:#C0DEEB #1A536E #1A536E #C0DEEB
background-color: #C6C6C6;
border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB;
}
}
.catalyst {
.catalyst {
margin:16px 0px 0px 3px
margin: 16px 0px 0px 3px;
}
}
.crafting-custom .crafting-arrow {
 
width:32px;
.crafting-custom .crafting-arrow{
height:32px;
background-image: url(https://wiki.gm4.co/images/b/b7/Custom_Crafting_arrow.png);
background-image:url(https://wiki.gm4.co/images/b/b7/Custom_Crafting_arrow.png)
}
}
.crafting-standard .crafting-arrow {
 
width:32px;
.crafting-standard .crafting-arrow{
height:32px;
width: 32px;
background-image:url(https://wiki.gm4.co/images/b/b7/Standard_Crafting_arrow.png)
height: 32px;
background-image: url(https://wiki.gm4.co/images/b/b7/Standard_Crafting_arrow.png);
}
}
.crafting-zauber .crafting-arrow {
.crafting-zauber .crafting-arrow {
width:33px;
width:33px;
height:36px;
height:36px;
background-image:url(https://wiki.gm4.co/images/4/4e/Custom_Cauldron_Crafting_Arrow.png)
background-image:url(https://wiki.gm4.co/images/4/4e/Custom_Cauldron_Crafting_Arrow.png)
}
}
.crafting-recipe > * {
 
vertical-align:middle;
.crafting > * {
display:inline-block
vertical-align: middle;
display: inline-block;
}
}


Line 110: Line 138:


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


.slot {
.slot {
padding:1px;
padding:1px;
display:inline-block;
display:inline-block;
border-width:3px;
border-width:3px;
border-style:solid
border-style:solid
}
 
/* ========================================================================= */
/*                                                                          */
/*            Classes corresponding to Minecraft formatting codes            */
/*                                                                          */
/* ========================================================================= */
 
.format-0 {
color: #000;
text-shadow: 0.125em 0.125em 0 #000;
}
.format-1 {
color: #00A;
text-shadow: 0.125em 0.125em 0 #00002A;
}
.format-2 {
color: #0A0;
text-shadow: 0.125em 0.125em 0 #002A00;
}
.format-3 {
color: #0AA;
text-shadow: 0.125em 0.125em 0 #002A2A;
}
.format-4 {
color: #A00;
text-shadow: 0.125em 0.125em 0 #2A0000;
}
.format-5 {
color: #A0A;
text-shadow: 0.125em 0.125em 0 #2A002A;
}
.format-6 {
color: #FA0;
text-shadow: 0.125em 0.125em 0 #2A2A00;
}
.format-7 {
color: #AAA;
text-shadow: 0.125em 0.125em 0 #2A2A2A;
}
.format-8 {
color: #555;
text-shadow: 0.125em 0.125em 0 #151515;
}
.format-9 {
color: #55F;
text-shadow: 0.125em 0.125em 0 #15153F;
}
.format-a {
color: #5F5;
text-shadow: 0.125em 0.125em 0 #153F15;
}
.format-b {
color: #5FF;
text-shadow: 0.125em 0.125em 0 #153F3F;
}
.format-c {
color: #F55;
text-shadow: 0.125em 0.125em 0 #3F1515;
}
.format-d {
color: #F5F;
text-shadow: 0.125em 0.125em 0 #3F153F;
}
.format-e {
color: #FF5;
text-shadow: 0.125em 0.125em 0 #3F3F15;
}
.format-f, .tooltip {
color: #FFF;
text-shadow: 0.125em 0.125em 0 #3F3F3F;
}
.format-l {
font-weight: bold;
letter-spacing: 0.125em;
}
.format-m {
text-decoration: line-through;
}
.format-n {
text-decoration: underline;
}
.format-o {
font-style: italic;
}
}

Revision as of 06:01, 6 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{
	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 > * {
	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
}