MediaWiki:Common.css: Difference between revisions

From Glue3D Wiki, the free encygluepedia
Jump to navigationJump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 21: Line 21:
     font-family: verdana, sans-serif;
     font-family: verdana, sans-serif;
     box-sizing: border-box;
     box-sizing: border-box;
     padding-left: 4px !important;
     padding-left: 6px !important;
     padding-right: 4px !important;
     padding-right: 6px !important;
}
 
#toc {
    clear: right;
}
}


Line 52: Line 56:
/* hack */
/* hack */
#footer {
#footer {
     margin-left: -4px;
     margin-left: -6px;
}
}


Line 142: Line 146:
/* === Infobox wrapper === */
/* === Infobox wrapper === */
.portable-infobox {
.portable-infobox {
     width: 300px;
     width: 360px;
     float: right;
     float: right;
     clear: right;
     clear: right;
Line 195: Line 199:
     padding: 6px 10px;
     padding: 6px 10px;
     text-align: left;
     text-align: left;
     border-right: 1px solid rgba(0, 0, 0, 0.15); /* <--- OPTIONAL: Adds a subtle vertical divider between label and value */
     border-right: 1px solid #A2A9B1; /* <--- OPTIONAL: Adds a subtle vertical divider between label and value */
     vertical-align: middle;
     vertical-align: middle;
}
}
Line 239: Line 243:
.portable-infobox .pi-data-value {
.portable-infobox .pi-data-value {
     margin: 0 !important;
     margin: 0 !important;
}
#toc {
    float: right;
    clear: right;
    margin-left: 20px;
}
}

Latest revision as of 17:39, 30 May 2026

/* 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: 6px !important;
    padding-right: 6px !important;
}

#toc {
    clear: right;
}

.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: -6px;
}

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: 360px;
    float: right;
    clear: right;
    margin: 0 0 1.5em 1.5em;
    border: 1px solid rgba(0, 0, 0, 0.45);
    background: #ffffff85;
    font-size: 0.83em;
    line-height: 1.4;
    color: #143A42;
    border-radius: 3px;
    font-family: verdana, sans-serif;
    border-collapse: collapse;  /* <--- CHANGED */
    overflow: hidden;           
}

/* === 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);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* === 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-right: 1px solid #A2A9B1; /* <--- OPTIONAL: Adds a subtle vertical divider between label and value */
    vertical-align: middle;
}

/* === Value cells (right column) === */
.portable-infobox .pi-data-value {
    padding: 6px 10px;
    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;
}

/* === Fix the row container to make labels and values flush === */
.portable-infobox .pi-data {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important; /* Removes any default flex-gap between label and value */
}

/* === Optional: Ensure no weird default margins on the cells themselves === */
.portable-infobox .pi-data-label,
.portable-infobox .pi-data-value {
    margin: 0 !important;
}

#toc {
    float: right;
    clear: right;
    margin-left: 20px;
}