MediaWiki:Common.css: Difference between revisions

From Eco - English Wiki
No edit summary
No edit summary
 
(94 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/* Custom font */
/* Custom Font */
@font-face {
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
    font-family: "Pathway Gothic One";
 
    font-style: normal;
/* Dark Mode */
    font-weight: 400;
.client-darkmode img, .embedvideo-overlay {
    src: local("Pathway Gothic One"), local("PathwayGothicOne-Regular"),  url("https://fonts.gstatic.com/s/pathwaygothicone/v4/Lqv9ztoTUV8Q0FmQZzPqaL4J1CEROx9mnpUAGKYKzuk.woff2") format("woff2"), url("https://fonts.gstatic.com/s/pathwaygothicone/v4/Lqv9ztoTUV8Q0FmQZzPqaBfSZ9PF2sGs8WIylam6T2Y.woff") format("woff");
  filter: invert(1) hue-rotate(180deg) !important;
}
}


/* Framework */
/* Framework */
* {
font-family: 'Roboto', sans-serif;
}
/* Background Image */
body {
body {
background: url(https://wiki.play.eco/cubes.png);
    background-image: url(https://wiki.play.eco/cubes.png);
/*background-color: #F5F5F5;*/
    background-color: #FAFAFA;
}
 
#ooui-php-3 {
  position: absolute;
  width: 50%;
}
 
.ace_editor * {
    font-family: monospace !important;
}
 
.mw-changeslist-legend {
  position: absolute;
  margin: 45px 0px 0px 0px;
}
}


/* Headline */
/* Banner */
.mw-headline a {
.headbanner span img {
    font-family: "Pathway Gothic One";
width: 100%;
    font-size: 15px;
height: auto;
    font-weight: bold;
    padding: 0.25em;
    text-transform: uppercase;
}
}


/* Table of Contents*/
/* Table of Contents */
.toc {
.toc {
     border: 5px solid #A9A9A9;
     border: 5px solid #A9A9A9;
Line 32: Line 48:
}
}


/* Infoboxes*/
/* Infoboxes */
.infobox {
.infobox {
     border: 5px solid #7BC2CE;
     border: 5px solid #7BC2CE;
Line 43: Line 59:
}
}


/* Icon Frames and Background*/
.tablescroll {
.iconContainer {
    overflow-x: auto;
     width: 100px;
}
     height: 100px;
 
     margin: auto;
.ecotable {
     position: relative;
     display: table;
     white-space: normal;
     /*font-family: Quicksand, sans-serif;*/
    border: 2px solid var(--border-color, #395684);
     border-radius: 3px;
}
}


.iconStack {
.ecotable th, .ecoheader {
     position: absolute;
     background-color: var(--table-header-background, #305080);
    width: 100%;
    color: var(--table-header-color, #FFFCF7);
    height: 100%;
}
.ecotable tr:nth-child(odd) {
    background-color: var(--table-row-odd, #3956844D);
}
.ecotable tr, .ecobody {
    background-color: var(--table-row-even, #3956841A);
}
 
.IconFrame {
    border: 5px outset #A9A9A9;
    background: #DCDCDC;
    display:inline-block;
    /*width: auto;*/
    padding: 5px;
    padding-top: 20px;
    margin: 5px;
    text-align: center;
    vertical-align: middle;
    width: 200px;
}
 
/* Recipes Item Icon with count */
.recipeitem {
  position: relative;
width: fit-content;
height: fit-content;
overflow: hidden;
border-width: clamp(3px, 0.05em, 8px);
border-radius: clamp(4px, 0.1em, 16px);
box-shadow:
0 0.04em 0.06em rgba(0,0,0,0.75),
0 0.09em 0.14em rgba(0,0,0,0.45);
margin: 0.1em;
}
 
.recipeitem.withcount::after {
content: "";
position: absolute;
z-index: 1;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
background: linear-gradient(
315deg,
rgba(0,0,0,0.55) 0%,
rgba(0,0,0,0.4) 28%,
rgba(0,0,0,0.2) 35%,
rgba(0,0,0,0) 42%
);
}
 
.recipeitemicon {
width: 1em;
height: 1em;
}
 
.recipeitemicon img {
display: block;
}
 
.recipeitemcount {
position: absolute;
z-index: 2;
bottom: clamp(4px, 0.1em, 16px);
right: clamp(4px, 0.1em, 16px);
line-height: 1;
color: #fff;
text-shadow: 0 1px 2px rgba(0,0,0,0.85);
font-weight: bold;
font-size: 0.25em;
}
 
.recipeitem.borderwhite{
background-color: white;
border-color: white;
border-style: solid;
}
}


.iconBlue, .iconGreen, .iconBrown, .iconSoftYellow , .iconYellow, .iconCream, .iconGold, .iconOrange, .iconWhite, .iconBrightBlue {
.recipeitem.borderyellow {
    background-repeat: no-repeat;
background-color: yellow;
    background-position: center;
border-color: yellow;
    background-size: 100%;
border-style: solid;
    width: 74px;
    height: 74px;
    margin: 14px 14px 14px 14px;
}
}


.iconBlue {  
.recipeitem.bordergreen {
    background-image: url("https://wiki.play.eco/images/6/65/IconBackground_Blue.png");
background-color: lime;
border-color: lime;
border-style: solid;
}
}


.iconGreen {  
.recipeitemlink {
     background-image: url("https://wiki.play.eco/images/3/3e/IconBackground_Green.png");
     position: absolute;
    z-index: 3;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
}


.iconBrown {  
 
     background-image: url("https://wiki.play.eco/images/6/65/IconBackground_Brown.png");
.card-horizontal {
     display: flex;
    flex: 1 1 auto;
}
}


.iconSoftYellow {  
.card {
     background-image: url("https://wiki.play.eco/images/4/4c/IconBackground_SoftYellow.png");
     margin-top: 10px;
}
}


.iconYellow {  
.card-img-top img {
     background-image: url("https://wiki.play.eco/images/b/b6/IconBackground_Yellow.png");
     max-width: 100%;
    height: auto;
    width: auto;
}
}


.iconCream {  
.keyboardkey {
    background-image: url("https://wiki.play.eco/images/5/5f/IconBackground_Cream.png");
border: 1px solid #aaa;
border-radius: 0.2em;
box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
background-color: #f9f9f9;
background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee);
color: #000;
padding: 0.1em 0.3em;
font-family: inherit;
font-size: 0.85em;
}
}


.iconGold {  
.nowrap {
     background-image: url("https://wiki.play.eco/images/9/92/IconBackground_Gold.png");
     white-space: nowrap;
}
}


.iconOrange {  
.IconGrid img {
    background-image: url("https://wiki.play.eco/images/5/57/IconBackground_Orange.png");
margin-right:10px;
}
}


.iconWhite {  
/* Gallery Top */
     background-image: url("https://wiki.play.eco/images/4/45/IconBackground_White.png");
.mw-gallery-slideshow {
     margin: 0;  
}
}


.iconBrightBlue {  
ul.gallery.gallery.gallery.mw-gallery-slideshow {
     background-image: url("https://wiki.play.eco/images/9/9a/IconBackground_BrightBlue.png");
     margin: 0;
}
}


.iconBorder {
 
    background-image: url("https://wiki.play.eco/images/9/95/IconFrame.png");
/* Recipe table cell vertical align */
    background-repeat: no-repeat;
.table th, .table td {
    background-position: center;
     vertical-align: middle;
    background-size: 100%;
    height: inherit;
    width: inherit;
     pointer-events: none;
}
}

Latest revision as of 20:18, 29 March 2026

/* Custom Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Dark Mode */
.client-darkmode img, .embedvideo-overlay {
  filter: invert(1) hue-rotate(180deg) !important;
}

/* Framework */
* {
	font-family: 'Roboto', sans-serif;
}

/* Background Image */
body {
    background-image: url(https://wiki.play.eco/cubes.png);
    background-color: #FAFAFA;
}

#ooui-php-3 {
  position: absolute;
  width: 50%;
}

.ace_editor * {
    font-family: monospace !important;
}

.mw-changeslist-legend {
  position: absolute;
  margin: 45px 0px 0px 0px;
}

/* Banner */
.headbanner span img {
	width: 100%;
	height: auto;
}

/* Table of Contents */
.toc {
    border: 5px solid #A9A9A9;
    padding: 10px;
    float: right;
    margin: 0px 30px 30px 30px;
    width: 300px;
    clear: right;
}

/* Infoboxes */
.infobox {
    border: 5px solid #7BC2CE;
    padding: 0;
    color: #333333;
    float: right;
    margin: 0px 30px 30px 30px;
    width: 300px;
    clear: right;
}

.tablescroll {
    overflow-x: auto;
}

.ecotable {
    display: table;
    white-space: normal;
    /*font-family: Quicksand, sans-serif;*/
    border: 2px solid var(--border-color, #395684);
    border-radius: 3px;
}

.ecotable th, .ecoheader {
    background-color: var(--table-header-background, #305080);
    color: var(--table-header-color, #FFFCF7);
}
.ecotable tr:nth-child(odd) {
    background-color: var(--table-row-odd, #3956844D);
}
.ecotable tr, .ecobody {
    background-color: var(--table-row-even, #3956841A);
}

.IconFrame {
    border: 5px outset #A9A9A9;
    background: #DCDCDC;
    display:inline-block;
    /*width: auto;*/
    padding: 5px;
    padding-top: 20px;
    margin: 5px;
    text-align: center;
    vertical-align: middle;
    width: 200px;
}

/* Recipes Item Icon with count */
.recipeitem {
  	position: relative;
	width: fit-content;
	height: fit-content;
	overflow: hidden;
	border-width: clamp(3px, 0.05em, 8px);
	border-radius: clamp(4px, 0.1em, 16px);
	box-shadow:
	0 0.04em 0.06em rgba(0,0,0,0.75),
	0 0.09em 0.14em rgba(0,0,0,0.45);
	margin: 0.1em;
}

.recipeitem.withcount::after {
	content: "";
	position: absolute;
	z-index: 1;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		315deg,
		rgba(0,0,0,0.55) 0%,
		rgba(0,0,0,0.4) 28%,
		rgba(0,0,0,0.2) 35%,
		rgba(0,0,0,0) 42%
	);
}

.recipeitemicon {
	width: 1em;
	height: 1em;
}

.recipeitemicon img {
	display: block;
}

.recipeitemcount {
	position: absolute;
	z-index: 2;
	bottom: clamp(4px, 0.1em, 16px);
	right: clamp(4px, 0.1em, 16px);
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.85);
	font-weight: bold;
	font-size: 0.25em;
}

.recipeitem.borderwhite{
	background-color: white;
	border-color: white;
	border-style: solid;
}

.recipeitem.borderyellow {
	background-color: yellow;
	border-color: yellow;
	border-style: solid;
}

.recipeitem.bordergreen {
	background-color: lime;
	border-color: lime;
	border-style: solid;
}

.recipeitemlink {
    position: absolute;
    z-index: 3;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}


.card-horizontal {
    display: flex;
    flex: 1 1 auto;
}

.card {
    margin-top: 10px;
}

.card-img-top img {
    max-width: 100%;
    height: auto;
    width: auto;
}

.keyboardkey {
	border: 1px solid #aaa;
	border-radius: 0.2em;
	box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
	background-color: #f9f9f9;
	background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee);
	color: #000;
	padding: 0.1em 0.3em;
	font-family: inherit;
	font-size: 0.85em;
}

.nowrap {
    white-space: nowrap;
}

.IconGrid img {
	margin-right:10px;
}

/* Gallery Top */
.mw-gallery-slideshow {
    margin: 0; 
}

ul.gallery.gallery.gallery.mw-gallery-slideshow {
    margin: 0;
}


/* Recipe table cell vertical align */
.table th, .table td {
    vertical-align: middle;
}