MediaWiki:Common.css: Difference between revisions
From Glue3D Wiki, the free encygluepedia
Jump to navigationJump to search
Deniskincses (talk | contribs) No edit summary Tag: Reverted |
Deniskincses (talk | contribs) No edit summary Tag: Reverted |
||
| Line 140: | Line 140: | ||
} | } | ||
/* | /* PortableInfobox Styling*/ | ||
.portable-infobox { | .portable-infobox { | ||
width: 300px; | width: 300px; | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
margin: 0 0 1.5em 1.5em; | margin: 0 0 1.5em 1.5em; | ||
background: var(--light-bg, #ffffff85); | |||
border: 1px solid rgba(0, 0, 0, 0.45); | border: 1px solid rgba(0, 0, 0, 0.45); | ||
border-radius: 3px; | border-radius: 3px; | ||
font-family: var(--font-family, verdana, sans-serif); | |||
font-size: 0.83em; | font-size: 0.83em; | ||
line-height: 1. | line-height: 1.45; | ||
color: #143A42; | |||
color: var(--text-color, #143A42); | |||
overflow: hidden; | |||
backdrop-filter: blur(3px); | |||
} | } | ||
/* | /* header */ | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background: linear-gradient(#BEE8ED, #52A1AC 75%, #61BFCC); | background: linear-gradient(#BEE8ED, #52A1AC 75%, #61BFCC); | ||
color: #143A42; | |||
color: var(--text-color, #143A42); | |||
font-size: 1.2em; | |||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | |||
padding: 8px; | |||
border-bottom: 1px solid rgba(0, 0, 0, 0.45); | border-bottom: 1px solid rgba(0, 0, 0, 0.45); | ||
} | } | ||
/* | /* main image section */ | ||
.portable-infobox .pi-image { | .portable-infobox .pi-image { | ||
text-align: center; | text-align: center; | ||
padding: 12px; | padding: 12px; | ||
background: rgba(255, 255, 255, 0. | |||
background: rgba(255,255,255,0.25); | |||
} | } | ||
.portable-infobox .pi-image img { | |||
.portable-infobox .pi-image | max-width: 250px; | ||
height: auto; | |||
border-radius: 2px; | |||
} | |||
/* caption */ | |||
.portable-infobox .pi-caption { | .portable-infobox .pi-caption { | ||
text-align: center; | text-align: center; | ||
padding: 0 8px 8px 8px; | |||
font-size: 0.9em; | font-size: 0.9em; | ||
font-style: italic; | font-style: italic; | ||
color: var(--hover-color, #15526B); | |||
} | |||
/* data rows */ | |||
.portable-infobox .pi-data { | |||
border-top: 1px solid rgba(0, 0, 0, 0.15); | |||
background: rgba(255,255,255,0.25); | |||
} | } | ||
/* | /* label side */ | ||
.portable-infobox .pi-data-label { | .portable-infobox .pi-data-label { | ||
width: 35%; | |||
padding: 6px 10px; | |||
background: #BEE8ED; | background: #BEE8ED; | ||
color: #143A42; | |||
color: var(--text-color, #143A42); | |||
font-weight: bold; | font-weight: bold; | ||
text-align: left; | text-align: left; | ||
border- | |||
border-right: 1px solid rgba(0,0,0,0.08); | |||
} | } | ||
/* | /* value side */ | ||
.portable-infobox .pi-data-value { | .portable-infobox .pi-data-value { | ||
padding: 6px 10px; | padding: 6px 10px; | ||
background: rgba(255, 255, 255, 0. | background: rgba(255,255,255,0.35); | ||
} | } | ||
/* | /* links */ | ||
.portable-infobox | .portable-infobox a { | ||
color: var(--hover-color, #15526B); | |||
text-decoration: none; | |||
} | } | ||
/* | .portable-infobox a:hover { | ||
text-decoration: underline; | |||
} | |||
/* optional section headers */ | |||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background: #BEE8ED; | background: linear-gradient(#BEE8ED, #7BC3CD); | ||
color: #143A42; | |||
color: var(--text-color, #143A42); | |||
font-weight: bold; | font-weight: bold; | ||
padding: 6px 10px; | padding: 6px 10px; | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.15); | border-top: 1px solid rgba(0,0,0,0.15); | ||
border-bottom: 1px solid rgba(0,0,0,0.15); | |||
} | |||
/* remove ugly default borders */ | |||
.portable-infobox .pi-item, | |||
.portable-infobox .pi-group { | |||
border: none; | |||
} | } | ||
/* | /* mobile support */ | ||
.portable-infobox | @media screen and (max-width: 720px) { | ||
.portable-infobox { | |||
float: none; | |||
width: 100%; | |||
margin: 1em 0; | |||
} | |||
.portable-infobox .pi-image img { | |||
max-width: 100%; | |||
} | |||
} | } | ||
Revision as of 12:20, 29 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: 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);
}
/* PortableInfobox Styling*/
.portable-infobox {
width: 300px;
float: right;
clear: right;
margin: 0 0 1.5em 1.5em;
background: var(--light-bg, #ffffff85);
border: 1px solid rgba(0, 0, 0, 0.45);
border-radius: 3px;
font-family: var(--font-family, verdana, sans-serif);
font-size: 0.83em;
line-height: 1.45;
color: var(--text-color, #143A42);
overflow: hidden;
backdrop-filter: blur(3px);
}
/* header */
.portable-infobox .pi-title {
background: linear-gradient(#BEE8ED, #52A1AC 75%, #61BFCC);
color: var(--text-color, #143A42);
font-size: 1.2em;
font-weight: bold;
text-align: center;
padding: 8px;
border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}
/* main image section */
.portable-infobox .pi-image {
text-align: center;
padding: 12px;
background: rgba(255,255,255,0.25);
}
.portable-infobox .pi-image img {
max-width: 250px;
height: auto;
border-radius: 2px;
}
/* caption */
.portable-infobox .pi-caption {
text-align: center;
padding: 0 8px 8px 8px;
font-size: 0.9em;
font-style: italic;
color: var(--hover-color, #15526B);
}
/* data rows */
.portable-infobox .pi-data {
border-top: 1px solid rgba(0, 0, 0, 0.15);
background: rgba(255,255,255,0.25);
}
/* label side */
.portable-infobox .pi-data-label {
width: 35%;
padding: 6px 10px;
background: #BEE8ED;
color: var(--text-color, #143A42);
font-weight: bold;
text-align: left;
border-right: 1px solid rgba(0,0,0,0.08);
}
/* value side */
.portable-infobox .pi-data-value {
padding: 6px 10px;
background: rgba(255,255,255,0.35);
}
/* links */
.portable-infobox a {
color: var(--hover-color, #15526B);
text-decoration: none;
}
.portable-infobox a:hover {
text-decoration: underline;
}
/* optional section headers */
.portable-infobox .pi-header {
background: linear-gradient(#BEE8ED, #7BC3CD);
color: var(--text-color, #143A42);
font-weight: bold;
padding: 6px 10px;
border-top: 1px solid rgba(0,0,0,0.15);
border-bottom: 1px solid rgba(0,0,0,0.15);
}
/* remove ugly default borders */
.portable-infobox .pi-item,
.portable-infobox .pi-group {
border: none;
}
/* mobile support */
@media screen and (max-width: 720px) {
.portable-infobox {
float: none;
width: 100%;
margin: 1em 0;
}
.portable-infobox .pi-image img {
max-width: 100%;
}
}