MediaWiki:Common.css

From Glue3D Wiki, the free encygluepedia
Revision as of 12:28, 29 May 2026 by Deniskincses (talk | contribs)
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
:root {
	--primary-color: #61BFCC;
	--secondary-color: #52A1AC;
	--text-color: #143A42;
	--hover-color: #15526B;
	--font-family: verdana, sans-serif;
	--light-bg: #ffffff85;
	--lighter-bg: #4D4D4D00;
	--shadow-color: #49494999;
	--gradient-bg: linear-gradient(#BEE8ED, #52A1AC 75%, #61BFCC);
	--hover-gradient: linear-gradient(#CDF7FC, #61B0BB 75%, #70CEDB);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

#globalWrapper {
    font-family: verdana, sans-serif;
    box-sizing: border-box;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.mw-wiki-logo {
    background-size: 135px;
    background-image: url("/resources/assets/glue3dwikihq.png") !important;
}

.portlet h5, #p-cactions li.selected a {
    background-color: #52a1ac !important;
    color: white !important;
}

#p-cactions li a {
    background-color: #bee8ed !important;
    color: #333 !important;
    border-color: #a7d7df !important;
}

body {
    background: 
        linear-gradient(
            rgba(190, 232, 237, 0.8),
            rgba(82, 161, 172, 0.8)
        ),
        lightblue url("/resources/assets/skyboxicons.png") repeat !important;
}

/* hack */
#footer {
    margin-left: -4px;
}

button,
.button {
	font-family: var(--font-family);
	font-weight: bold;
	font-size: .83em;
	color: black;
	text-decoration: none;
	text-align: center;
	background: var(--gradient-bg);
	box-shadow: 0px 2px 3px var(--shadow-color);
	border: 1px solid rgba(0, 0, 0, 0.45);
	margin: 1.5em 0;
	padding: 3px 24px;
	border-radius: 3px;
	cursor: pointer;
}

button:hover,
.button:hover {
	background: var(--hover-gradient);
	box-shadow: 0px 2px 3px var(--shadow-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="username"] {
	font-family: var(--font-family);
	background: linear-gradient(#949494, #ABABAB 75%, #DCDCDC);
	border: 1px solid rgba(0, 0, 0, 0.45);
	border-radius: 3px;
	font-weight: bold;
	font-size: .83em;
	padding: 3px 8px;
	box-sizing: border-box;
	box-shadow: 0px 2px 3px var(--shadow-color);
	margin-top: 0px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
	outline: none;
	box-shadow: 0 0 2.5px 1px #61BFCC88;
}

input[type="checkbox"] {
	width: 15px;
	height: 15px;
	appearance: none;
	background: linear-gradient(to bottom, #f7f7f7 0%, #cccccc 84%, #dbdbdb 100%);
	border: 1px solid rgba(0, 0, 0, 0.45);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	box-shadow: 0px 2px 3px var(--shadow-color);
}

button:active,
.button:hover,
input[type="checkbox"]:hover {
	background: var(--gradient-bg);
	box-shadow: 0 0 2.5px 1px #61BFCC88;
}

input[type="checkbox"]:checked {
	background: linear-gradient(to bottom, #f7f7f7 0%, #cccccc 84%, #dbdbdb 100%);
	box-shadow: 0 0 2.5px 1px #61BFCC88;
}

input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	width: 13px;
	box-shadow: 0 3 2.5px 1px #61BFCC88;
	background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 13"><path d="M0 7.5L2 6L5 9L13 0L14 1L5 13L0 7.5Z" fill="black"/></svg>') no-repeat center center;
	height: 14px;
	background-size: contain;
}

a,
button {
	color: var(--text-color);
}

/* === Infobox wrapper === */
.portable-infobox {
    width: 300px;
    float: right;
    clear: right;
    margin: 0 0 1.5em 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.45);
    background: #ffffff85;  /* translucent light background */
    font-size: 0.83em;
    line-height: 1.4;
    color: #143A42;
    border-radius: 3px;
    font-family: verdana, sans-serif;
    border-collapse: separate;  /* needed for border-radius */
    overflow: hidden;           /* ensures rounded corners clip content */
}

/* === Title bar (top gradient) === */
.portable-infobox .pi-title {
    background: linear-gradient(#BEE8ED, #52A1AC 75%, #61BFCC);
    color: #143A42;
    font-weight: bold;
    font-size: 1.2em;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
    border-top-left-radius: 3px;   /* match wrapper */
    border-top-right-radius: 3px;
}

/* === Image area (no background change needed, but center it) === */
.portable-infobox .pi-image {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
}

/* === Image caption === */
.portable-infobox .pi-image .pi-image-caption,
.portable-infobox .pi-caption {
    text-align: center;
    font-size: 0.9em;
    padding: 0 8px 8px 8px;
    color: #15526B;
    font-style: italic;
}

/* === Label cells (left column) === */
.portable-infobox .pi-data-label {
    background: #BEE8ED;
    color: #143A42;
    font-weight: bold;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    vertical-align: middle;
}

/* === Value cells (right column) === */
.portable-infobox .pi-data-value {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.4);
    vertical-align: middle;
}

/* === Remove extra border from last row to avoid double line === */
.portable-infobox .pi-data:last-child .pi-data-label,
.portable-infobox .pi-data:last-child .pi-data-value {
    border-bottom: none;
}

/* === Group headers (if you ever use <header> in the infobox) === */
.portable-infobox .pi-header {
    background: #BEE8ED;
    color: #143A42;
    font-weight: bold;

    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* === Make links inside the infobox inherit the text color === */
.portable-infobox a {
    color: inherit;
    text-decoration: underline;
}

.portable-infobox .pi-data-label,
.portable-infobox .pi-data-value {
    padding-top: 4px;
    padding-bottom: 4px;
}