MediaWiki:Common.css

From Glue3D Wiki, the free encygluepedia
Revision as of 12:24, 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);
}

/* ==========================================================================
   Portable Infobox Custom Theme
   ========================================================================== */

.portable-infobox {
	width: 300px;
	float: right;
	clear: right;
	margin: 0 0 1.5em 1.5em;
	background: var(--light-bg);
	border: 1px solid rgba(0, 0, 0, 0.45);
	border-radius: 3px;
	box-shadow: 0px 4px 6px var(--shadow-color);
	font-family: var(--font-family);
	font-size: .83em;
	line-height: 14px;
	color: var(--text-color);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden; /* Ensures background colors don't bleed past rounded corners */
}

/* Title / Header */
.portable-infobox .pi-header {
	background: var(--gradient-bg);
	color: var(--text-color);
	font-weight: bold;
	font-size: 1.2em;
	padding: 8px;
	text-align: center;
	border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

/* Image Container */
.portable-infobox .pi-image {
	text-align: center;
	padding: 12px;
	background: rgba(255, 255, 255, 0.3);
}

.portable-infobox .pi-image img {
	max-width: 100%;
	height: auto;
}

/* Caption */
.portable-infobox .pi-caption {
	text-align: center;
	font-size: 0.9em;
	padding: 0 8px 8px 8px;
	color: var(--hover-color);
	font-style: italic;
}

/* Rows (Data & Groups) */
.portable-infobox .pi-item {
	display: flex;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* Remove the bottom border on the very last item */
.portable-infobox .pi-item:last-child {
	border-bottom: none;
}

/* Left Column Labels (e.g., Type, Creator) */
.portable-infobox .pi-data-label {
	width: 35%;
	background: rgba(190, 232, 237, 0.5); /* Semi-transparent version of your light accent */
	color: var(--text-color);
	font-weight: bold;
	padding: 6px 10px;
	text-align: left;
	border-right: 1px solid rgba(0, 0, 0, 0.15);
}

/* Right Column Values (e.g., Unknown, Release Date) */
.portable-infobox .pi-data-value {
	flex: 1;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.4);
	color: var(--text-color);
}

/* Optional: Subtle hover effect on data rows to match your interactive elements */
.portable-infobox .pi-item:hover .pi-data-value {
	background: rgba(255, 255, 255, 0.6);
}