MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
:root { | :root { | ||
/* Day mode colors */ | /* Day mode colors */ | ||
--warning-bg-color-day: #FFFDF4; | |||
--warning-border-color-day: #d48900; | |||
--warning-text-color-day: #d48900; | |||
--signal-bg-color-day: #f4fcff; | |||
--signal-border-color-day: #0092D4; | |||
--signal-text-color-day: #0092D4; | |||
--danger-bg-color-day: #fff4f4; | |||
--danger-border-color-day: #D40000; | |||
--danger-text-color-day: #D40000; | |||
--atheneum-border-color-day: #61a376; | --atheneum-border-color-day: #61a376; | ||
--atheneum-header-bg-day: #f1f6f3; | --atheneum-header-bg-day: #f1f6f3; | ||
Line 11: | Line 24: | ||
/* Night mode colors */ | /* Night mode colors */ | ||
--warning-bg-color-night: #4d4b47; | |||
--warning-border-color-night: #b47900; | |||
--warning-text-color-night: #ffd700; | |||
--signal-bg-color-night: #1e3a48; | |||
--signal-border-color-night: #0077b6; | |||
--signal-text-color-night: #66c2ff; | |||
--danger-bg-color-night: #4b2828; | |||
--danger-border-color-night: #b30000; | |||
--danger-text-color-night: #ff6666; | |||
--atheneum-border-color-night: #4a6655; | --atheneum-border-color-night: #4a6655; | ||
--atheneum-header-bg-night: #2d3e36; | --atheneum-header-bg-night: #2d3e36; | ||
Line 244: | Line 270: | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 10px; | padding: 10px; | ||
background-color: | background-color: var(--warning-bg-color-day); | ||
border: 2px solid | border: 2px solid var(--warning-border-color-day); | ||
border-left: 16px solid | border-left: 16px solid var(--warning-border-color-day); | ||
} | } | ||
.icannwiki-warning a { | .icannwiki-warning a { | ||
font-weight: bold; | font-weight: bold; | ||
color: | color: var(--warning-text-color-day); | ||
} | } | ||
Line 264: | Line 290: | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 10px; | padding: 10px; | ||
background-color: | background-color: var(--signal-bg-color-day); | ||
border: 2px solid | border: 2px solid var(--signal-border-color-day); | ||
border-left: 16px solid | border-left: 16px solid var(--signal-border-color-day); | ||
} | } | ||
.icannwiki-signal a { | .icannwiki-signal a { | ||
font-weight: bold; | font-weight: bold; | ||
color: | color: var(--signal-text-color-day); | ||
} | } | ||
Line 284: | Line 310: | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 10px; | padding: 10px; | ||
background-color: | background-color: var(--danger-bg-color-day); | ||
border: 2px solid | border: 2px solid var(--danger-border-color-day); | ||
border-left: 16px solid | border-left: 16px solid var(--danger-border-color-day); | ||
} | } | ||
.icannwiki-danger a { | .icannwiki-danger a { | ||
font-weight: bold; | font-weight: bold; | ||
color: | color: var(--danger-text-color-day); | ||
} | |||
/* .icannwiki-warning, .icannwiki-signal, .icannwiki-danger AUTOMATIC */ | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .icannwiki-warning { | |||
background-color: var(--warning-bg-color-night); | |||
border: 2px solid var(--warning-border-color-night); | |||
border-left: 16px solid var(--warning-border-color-night); | |||
} | |||
html.skin-theme-clientpref-os .icannwiki-warning a { | |||
color: var(--warning-text-color-night); | |||
} | |||
html.skin-theme-clientpref-os .icannwiki-signal { | |||
background-color: var(--signal-bg-color-night); | |||
border: 2px solid var(--signal-border-color-night); | |||
border-left: 16px solid var(--signal-border-color-night); | |||
} | |||
html.skin-theme-clientpref-os .icannwiki-signal a { | |||
color: var(--signal-text-color-night); | |||
} | |||
html.skin-theme-clientpref-os .icannwiki-danger { | |||
background-color: var(--danger-bg-color-night); | |||
border: 2px solid var(--danger-border-color-night); | |||
border-left: 16px solid var(--danger-border-color-night); | |||
} | |||
html.skin-theme-clientpref-os .icannwiki-danger a { | |||
color: var(--danger-text-color-night); | |||
} | |||
} | |||
/* .icannwiki-warning, .icannwiki-signal, .icannwiki-danger DAY */ | |||
@media screen { | |||
html.skin-theme-clientpref-day .icannwiki-warning { | |||
background-color: var(--warning-bg-color-day); | |||
border: 2px solid var(--warning-border-color-day); | |||
border-left: 16px solid var(--warning-border-color-day); | |||
} | |||
html.skin-theme-clientpref-day .icannwiki-warning a { | |||
color: var(--warning-text-color-day); | |||
} | |||
html.skin-theme-clientpref-day .icannwiki-signal { | |||
background-color: var(--signal-bg-color-day); | |||
border: 2px solid var(--signal-border-color-day); | |||
border-left: 16px solid var(--signal-border-color-day); | |||
} | |||
html.skin-theme-clientpref-day .icannwiki-signal a { | |||
color: var(--signal-text-color-day); | |||
} | |||
html.skin-theme-clientpref-day .icannwiki-danger { | |||
background-color: var(--danger-bg-color-day); | |||
border: 2px solid var(--danger-border-color-day); | |||
border-left: 16px solid var(--danger-border-color-day); | |||
} | |||
html.skin-theme-clientpref-day .icannwiki-danger a { | |||
color: var(--danger-text-color-day); | |||
} | |||
} | |||
/* .icannwiki-warning, .icannwiki-signal, .icannwiki-danger NIGHT */ | |||
@media screen { | |||
html.skin-theme-clientpref-night .icannwiki-warning { | |||
background-color: var(--warning-bg-color-night); | |||
border: 2px solid var(--warning-border-color-night); | |||
border-left: 16px solid var(--warning-border-color-night); | |||
} | |||
html.skin-theme-clientpref-night .icannwiki-warning a { | |||
color: var(--warning-text-color-night); | |||
} | |||
html.skin-theme-clientpref-night .icannwiki-signal { | |||
background-color: var(--signal-bg-color-night); | |||
border: 2px solid var(--signal-border-color-night); | |||
border-left: 16px solid var(--signal-border-color-night); | |||
} | |||
html.skin-theme-clientpref-night .icannwiki-signal a { | |||
color: var(--signal-text-color-night); | |||
} | |||
html.skin-theme-clientpref-night .icannwiki-danger { | |||
background-color: var(--danger-bg-color-night); | |||
border: 2px solid var(--danger-border-color-night); | |||
border-left: 16px solid var(--danger-border-color-night); | |||
} | |||
html.skin-theme-clientpref-night .icannwiki-danger a { | |||
color: var(--danger-text-color-night); | |||
} | |||
} | } | ||
Revision as of 05:52, 6 November 2024
/* CSS placed here will be applied to all skins */
/* TABLE OF COLOR VALUES FOR ALL ELEMENTS */
:root {
/* Day mode colors */
--warning-bg-color-day: #FFFDF4;
--warning-border-color-day: #d48900;
--warning-text-color-day: #d48900;
--signal-bg-color-day: #f4fcff;
--signal-border-color-day: #0092D4;
--signal-text-color-day: #0092D4;
--danger-bg-color-day: #fff4f4;
--danger-border-color-day: #D40000;
--danger-text-color-day: #D40000;
--atheneum-border-color-day: #61a376;
--atheneum-header-bg-day: #f1f6f3;
--atheneum-cell-bg-day: #f9f9f9;
--atheneum-text-color-day: #101418;
/* Night mode colors */
--warning-bg-color-night: #4d4b47;
--warning-border-color-night: #b47900;
--warning-text-color-night: #ffd700;
--signal-bg-color-night: #1e3a48;
--signal-border-color-night: #0077b6;
--signal-text-color-night: #66c2ff;
--danger-bg-color-night: #4b2828;
--danger-border-color-night: #b30000;
--danger-text-color-night: #ff6666;
--atheneum-border-color-night: #4a6655;
--atheneum-header-bg-night: #2d3e36;
--atheneum-cell-bg-night: #3c4946;
--atheneum-text-color-night: #F8F9FA;
}
/* UI STYLES */
/* Links affected by the Lingo extension */
.mw-lingo-term {
text-decoration: underline solid #cccccc;
text-decoration-thickness: 2px;
}
/* Popup generated when user hovers over a link affected by Lingo */
.qtip-content {
padding: 8px;
line-height: 125%;
font-size: 1.25em;
}
/* Navigation panel on the left side of the main interface */
#mw-panel a {
font-size: 1.10em;
}
#mw-panel a:hover {
color: #62a376;
text-decoration: none;
}
/* Separator (blank) */
.icannwiki-clearfix {
clear: both;
}
/* CURRENTLY DEACTIVATED BACKGROUND EFFECTS */
/* Container for static zeros and ones */
.flowing-numbers {
position: absolute;
top: 0;
right: 0;
z-index: 1000; /* Ensure it's above other elements */
font-family: monospace;
font-size: 1.25em;
color: rgba(255, 255, 255, 0.3); /* Slightly transparent white */
line-height: 1.5em;
pointer-events: none; /* Prevent interaction with the numbers */
padding: 10px; /* Optional padding */
}
/* Static lines of numbers */
.flowing-numbers span {
display: block;
}
/* ------------------------------------------------------------------------- */
/* MAIN PAGE STYLES */
/* Remove main page header */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading
{ display: none; }
/* Top box of the main page */
.icannwiki-top-box {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 4px;
background-color: #61a376;
background-image: url('images/b/bd/ICANNWiki-Background-2024-A.svg');
background-size: cover;
border-radius: 4px;
margin-bottom: 4px;
padding: 4px;
}
/* Hide bullet points */
.icannwiki-top-box ul {
list-style: none;
list-style-type: none;
}
/* Changes bullet points to a Unicode character */
.icannwiki-top-box ul li:before {
background-image: url('/images/8/82/1F4CE.png');
background-size: 32px 32px;
display: inline-block;
vertical-align: middle;
width: 32px;
height: 32px;
content:"";
}
/* Top box's elements styling */
.icannwiki-top-box ul li {
font-size: 1.0em;
margin-bottom: 4px; /* Adjusts the spacing between list items */
}
.icannwiki-top-box a {
color: #F8F9FA;
font-weight: bold;
text-decoration: none;
}
.icannwiki-top-box a:hover {
color: #68d62c;
text-decoration: none;
}
/* Top box's special effects */
.top-box-fx {
text-shadow:
2px 2px 4px rgba(0, 64, 0, 0.5); /* Shadow blur */
}
/* Header for other boxes in the main page */
.icannwiki-section-header {
background: #62a376;
font-family: sans-serif;
font-weight: bold;
font-size: 1.15em;
text-align: left;
color: #f5fcf7;
height: 1.5em;
padding: .5em;
border-radius: 5px;
}
/* Header text special effects */
.header-fx {
text-shadow:
2px 2px 2px #006822, /* Drop shadow */
4px 4px 4px rgba(0, 64, 0, 0.5); /* Shadow blur */
}
/* Colored bounding box for text */
.icannwiki-colored-box {
padding-left: 1%;
padding-right: 1%;
font-size: 1.05em;
}
/* .icannwiki-colored-box AUTOMATIC */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .icannwiki-colored-box {
background-color: #445248;
color: #eaecf0;
}
}
/* .icannwiki-colored-box DAY */
@media screen {
html.skin-theme-clientpref-day .icannwiki-colored-box {
background-color: #f1f6f3;
color: #202122;
}
}
/* .icannwiki-colored-box NIGHT */
@media screen {
html.skin-theme-clientpref-night .icannwiki-colored-box {
background-color: #445248;
color: #eaecf0;
}
}
/* Main page content box: left */
.icannwiki-half-width-left {
width: 49%;
float: left;
}
/* Main page content box: right */
.icannwiki-half-width-right {
width: 49%;
float: right;
}
/* Sponsors template */
.icannwiki-sponsors {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 4px;
border-radius: 4px;
margin-bottom: 4px;
padding: 8px;
list-style: none;
padding: 0;
margin: 0;
clear: both;
justify-content: center;
}
.icannwiki-sponsors li {
display: flex;
justify-content: center;
align-items: center;
border: 0px;
border-radius: 4px;
padding: 8px;
height: 140px; /* Adjust as needed */
box-sizing: border-box;
}
.icannwiki-sponsors li:nth-last-child(-n+3) {
justify-self: center;
}
.icannwiki-sponsors img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.icannwiki-sponsors ul {
list-style: none;
list-style-type: none;
}
/* ------------------------------------------------------------------------- */
/* TEMPLATE STYLES */
/* Warning template */
.icannwiki-warning {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: auto;
width: 60%;
margin: 0 auto;
padding: 10px;
background-color: var(--warning-bg-color-day);
border: 2px solid var(--warning-border-color-day);
border-left: 16px solid var(--warning-border-color-day);
}
.icannwiki-warning a {
font-weight: bold;
color: var(--warning-text-color-day);
}
/* Signaling template */
.icannwiki-signal {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: auto;
width: 60%;
margin: 0 auto;
padding: 10px;
background-color: var(--signal-bg-color-day);
border: 2px solid var(--signal-border-color-day);
border-left: 16px solid var(--signal-border-color-day);
}
.icannwiki-signal a {
font-weight: bold;
color: var(--signal-text-color-day);
}
/* Danger template */
.icannwiki-danger {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: auto;
width: 60%;
margin: 0 auto;
padding: 10px;
background-color: var(--danger-bg-color-day);
border: 2px solid var(--danger-border-color-day);
border-left: 16px solid var(--danger-border-color-day);
}
.icannwiki-danger a {
font-weight: bold;
color: var(--danger-text-color-day);
}
/* .icannwiki-warning, .icannwiki-signal, .icannwiki-danger AUTOMATIC */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .icannwiki-warning {
background-color: var(--warning-bg-color-night);
border: 2px solid var(--warning-border-color-night);
border-left: 16px solid var(--warning-border-color-night);
}
html.skin-theme-clientpref-os .icannwiki-warning a {
color: var(--warning-text-color-night);
}
html.skin-theme-clientpref-os .icannwiki-signal {
background-color: var(--signal-bg-color-night);
border: 2px solid var(--signal-border-color-night);
border-left: 16px solid var(--signal-border-color-night);
}
html.skin-theme-clientpref-os .icannwiki-signal a {
color: var(--signal-text-color-night);
}
html.skin-theme-clientpref-os .icannwiki-danger {
background-color: var(--danger-bg-color-night);
border: 2px solid var(--danger-border-color-night);
border-left: 16px solid var(--danger-border-color-night);
}
html.skin-theme-clientpref-os .icannwiki-danger a {
color: var(--danger-text-color-night);
}
}
/* .icannwiki-warning, .icannwiki-signal, .icannwiki-danger DAY */
@media screen {
html.skin-theme-clientpref-day .icannwiki-warning {
background-color: var(--warning-bg-color-day);
border: 2px solid var(--warning-border-color-day);
border-left: 16px solid var(--warning-border-color-day);
}
html.skin-theme-clientpref-day .icannwiki-warning a {
color: var(--warning-text-color-day);
}
html.skin-theme-clientpref-day .icannwiki-signal {
background-color: var(--signal-bg-color-day);
border: 2px solid var(--signal-border-color-day);
border-left: 16px solid var(--signal-border-color-day);
}
html.skin-theme-clientpref-day .icannwiki-signal a {
color: var(--signal-text-color-day);
}
html.skin-theme-clientpref-day .icannwiki-danger {
background-color: var(--danger-bg-color-day);
border: 2px solid var(--danger-border-color-day);
border-left: 16px solid var(--danger-border-color-day);
}
html.skin-theme-clientpref-day .icannwiki-danger a {
color: var(--danger-text-color-day);
}
}
/* .icannwiki-warning, .icannwiki-signal, .icannwiki-danger NIGHT */
@media screen {
html.skin-theme-clientpref-night .icannwiki-warning {
background-color: var(--warning-bg-color-night);
border: 2px solid var(--warning-border-color-night);
border-left: 16px solid var(--warning-border-color-night);
}
html.skin-theme-clientpref-night .icannwiki-warning a {
color: var(--warning-text-color-night);
}
html.skin-theme-clientpref-night .icannwiki-signal {
background-color: var(--signal-bg-color-night);
border: 2px solid var(--signal-border-color-night);
border-left: 16px solid var(--signal-border-color-night);
}
html.skin-theme-clientpref-night .icannwiki-signal a {
color: var(--signal-text-color-night);
}
html.skin-theme-clientpref-night .icannwiki-danger {
background-color: var(--danger-bg-color-night);
border: 2px solid var(--danger-border-color-night);
border-left: 16px solid var(--danger-border-color-night);
}
html.skin-theme-clientpref-night .icannwiki-danger a {
color: var(--danger-text-color-night);
}
}
/* Template:People */
.template-people {
float: right;
border: 1px solid darkgray;
max-width: 160px;
padding: 5px;
padding-bottom: 10px;
margin-left: 10px
}
/* ------------------------------------------------------------------------- */
/* INTERNET GOVERNANCE ATHENEUM */
.atheneum-box {
border-collapse: collapse;
border: 1px solid var(--atheneum-border-color-day);
}
.atheneum-box th,
.atheneum-box td {
border: 1px solid var(--atheneum-border-color-day);
}
.atheneum-box th {
background-color: var(--atheneum-header-bg-day);
color: var(--atheneum-text-color-day);
text-transform: uppercase;
padding: 8px;
}
.atheneum-box td {
background-color: var(--atheneum-cell-bg-day);
color: var(--atheneum-text-color-day);
padding: 4px 10px;
}
/* .atheneum-box AUTOMATIC */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .atheneum-box {
border: 1px solid var(--atheneum-border-color-night);
}
html.skin-theme-clientpref-os .atheneum-box th {
background-color: var(--atheneum-header-bg-night);
color: var(--atheneum-text-color-night);
}
html.skin-theme-clientpref-os .atheneum-box td {
background-color: var(--atheneum-cell-bg-night);
color: var(--atheneum-text-color-night);
}
}
/* .atheneum-box DAY */
@media screen {
html.skin-theme-clientpref-day .atheneum-box {
border: 1px solid var(--atheneum-border-color-day);
}
html.skin-theme-clientpref-day .atheneum-box th {
background-color: var(--atheneum-header-bg-day);
color: var(--atheneum-text-color-day);
}
html.skin-theme-clientpref-day .atheneum-box td {
background-color: var(--atheneum-cell-bg-day);
color: var(--atheneum-text-color-day);
}
}
/* .atheneum-box NIGHT */
@media screen {
html.skin-theme-clientpref-night .atheneum-box {
border: 1px solid var(--atheneum-border-color-night);
}
html.skin-theme-clientpref-night .atheneum-box th {
background-color: var(--atheneum-header-bg-night);
color: var(--atheneum-text-color-night);
}
html.skin-theme-clientpref-night .atheneum-box td {
background-color: var(--atheneum-cell-bg-night);
color: var(--atheneum-text-color-night);
}
}
/* ------------------------------------------------------------------------- */
/* GENERIC STYLES */
/* Hide bullets on lists */
.no-bullets {
list-style: none;
list-style-type: none;
padding-left: 0;
}
/* Hide second level bullets on lists */
.no-second-level-bullets ul ul {
list-style: none;
list-style-type: none;
padding-left: 0; /* Adjust padding to align with the parent list */
}
.no-second-level-bullets ul ul li {
padding-left: 0px; /* Adjust padding to maintain alignment if needed */
}
/* Centered text */
.icannwiki-centered {
text-align: center;
}
/* Justified text */
.icannwiki-justified {
text-align: justify;
}
/* Upper case text */
.icannwiki-uppercase {
text-transform: uppercase;
}
/* Larger text */
.icannwiki-font-large {
font-size: 1.25em;
}