MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.page-IPCC_AR6_Data_Glossary li.vector-toc-level-3, | .page-IPCC_AR6_Data_Glossary li.vector-toc-level-3 a, | ||
.page-IPCC_AR6_Data_Acronyms li.vector-toc-level-3 { | .page-IPCC_AR6_Data_Acronyms li.vector-toc-level-3 a { | ||
background-color: pink; | background-color: pink; | ||
display: none; | display: none; | ||
Revision as of 06:50, 22 May 2026
/* CSS placed here will be applied to all skins */
.page-IPCC_AR6_Data_Glossary li.vector-toc-level-3 a,
.page-IPCC_AR6_Data_Acronyms li.vector-toc-level-3 a {
background-color: pink;
display: none;
}
/* Make images responsive */
img {
max-width:90%;
height:auto;
}
/* Table styling */
table th {
background-color: #4c8fcc !important;
color: #ffffff !important;
}
table tr:nth-child(odd) {
background-color: #fffffff;
}
table tr:nth-child(even) {
background-color: #d7e2f3;
}
/* AR6 Templates ***************************************** */
/* Glossary terms ***************************************** */
.glossary-terms-box {
background: #ffffff;
border: 0.5px solid #d3d1c7;
border-radius: 12px;
padding: 1.25rem;
margin: 1rem 0;
}
.glossary-terms-title {
color: #b3b3b3;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 10px;
}
.glossary-terms-pills {
display: flex;
flex-wrap: wrap;
gap: 8px;
row-gap: 16px;
margin-bottom: -4px;
}
.glossary-terms-pills a {
display: inline-block;
background: #00aeef;
color: #030001;
padding: 6px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
text-decoration: none;
transition: background-color 0.2s;
margin-bottom: 4px;
}
.glossary-terms-pills a:hover {
background: #0098d0;
text-decoration: none;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
.glossary-terms-box {
background: #1a1a1a;
border-color: #444441;
}
.glossary-terms-title {
color: #7fb3ff;
}
.glossary-terms-pills a {
background: #00d9ff;
color: #030001;
}
.glossary-terms-pills a:hover {
background: #00b8d9;
}
}
/* CorpusNavigation */
.ar6-box {
width: 100%;
border: 1px solid #e0e0e0;
border-radius: 4px;
background: #f9f9f7;
font-family: sans-serif;
padding: 12px 14px;
box-sizing: border-box;
margin: 0 0 1.5em 0;
}
.ar6-header {
color: #b3b3b3;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 10px;
}
.ar6-labels {
display: grid;
grid-template-columns: 3fr 21px 3fr 21px 1fr;
margin-bottom: 6px;
}
.ar6-group-label {
color: #b3b3b3;
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.04em;
text-align: center;
}
.ar6-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr 21px 1fr 1fr 1fr 21px 1fr;
align-items: end;
}
.ar6-cover {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 0 3px;
}
.ar6-cover img {
width: 100%;
height: auto;
aspect-ratio: 3/4;
border: 1px solid #d0d0d0;
border-radius: 2px;
display: block;
object-fit: cover;
}
.ar6-cover:hover img {
border-color: #00aeef;
}
.ar6-label {
color: #b3b3b3;
font-size: 10px;
font-weight: 500;
text-align: center;
}
.ar6-cover:hover .ar6-label {
color: #2b3990;
}
.ar6-divider-col {
width: 1px;
background: #e0e0e0;
align-self: stretch;
margin: 0 10px;
}
/* Active state — dim all covers, then highlight the active one */
.ar6-active-syr .ar6-cover,
.ar6-active-wgi .ar6-cover,
.ar6-active-wgii .ar6-cover,
.ar6-active-wgiii .ar6-cover,
.ar6-active-sr15 .ar6-cover,
.ar6-active-srccl .ar6-cover,
.ar6-active-srocc .ar6-cover {
opacity: 0.4;
transition: opacity 0.15s;
}
.ar6-active-syr .ar6-cover:hover,
.ar6-active-wgi .ar6-cover:hover,
.ar6-active-wgii .ar6-cover:hover,
.ar6-active-wgiii .ar6-cover:hover,
.ar6-active-sr15 .ar6-cover:hover,
.ar6-active-srccl .ar6-cover:hover,
.ar6-active-srocc .ar6-cover:hover {
opacity: 1;
}
.ar6-active-syr .ar6-syr,
.ar6-active-wgi .ar6-wgi,
.ar6-active-wgii .ar6-wgii,
.ar6-active-wgiii .ar6-wgiii,
.ar6-active-sr15 .ar6-sr15,
.ar6-active-srccl .ar6-srccl,
.ar6-active-srocc .ar6-srocc {
opacity: 1;
}
.ar6-active-syr .ar6-syr img,
.ar6-active-wgi .ar6-wgi img,
.ar6-active-wgii .ar6-wgii img,
.ar6-active-wgiii .ar6-wgiii img,
.ar6-active-sr15 .ar6-sr15 img,
.ar6-active-srccl .ar6-srccl img,
.ar6-active-srocc .ar6-srocc img {
border: 2px solid #00aeef;
border-radius: 3px;
}
.ar6-active-syr .ar6-syr .ar6-label,
.ar6-active-wgi .ar6-wgi .ar6-label,
.ar6-active-wgii .ar6-wgii .ar6-label,
.ar6-active-wgiii .ar6-wgiii .ar6-label,
.ar6-active-sr15 .ar6-sr15 .ar6-label,
.ar6-active-srccl .ar6-srccl .ar6-label,
.ar6-active-srocc .ar6-srocc .ar6-label {
color: #2b3990;
}
/* When active=none or parameter omitted — no dimming */
.ar6-active-none .ar6-cover {
opacity: 1;
}
/* Report Templates ***************************************** */
/* ReportHeader & ReportHeaderLinked */
.rh-banner {
width: 100%;
border: 1px solid #00aeef;
border-radius: 4px;
overflow: hidden;
background: #2b3990;
font-family: sans-serif;
font-size: 12px;
margin: 0 0 1.5em 0;
box-sizing: border-box;
}
.rh-banner-top {
display: flex;
align-items: stretch;
flex-wrap: wrap;
}
.rh-banner-img {
width: 160px;
min-width: 160px;
background: #1e2a70;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
border-right: 1px solid #1a2260;
box-sizing: border-box;
}
.rh-banner-img img {
width: 100%;
height: auto;
display: block;
border-radius: 2px;
}
.rh-banner-right {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.rh-banner-titles {
padding: 12px 14px 10px;
flex: 1;
}
.rh-banner-tag {
color: #feff03;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 4px;
}
.rh-banner-title {
color: #ffffff;
font-size: 24px;
font-weight: 600;
line-height: 1.35;
margin-bottom: 8px;
word-break: break-word;
}
.rh-banner-subtitle {
color: #00aeef;
font-size: 12px;
font-weight: 500;
line-height: 1.4;
margin-bottom: 8px;
word-break: break-word;
}
.rh-banner-meta {
display: flex;
flex-wrap: wrap;
border-top: 1px solid #1a2260;
background: #1e2a70;
}
.rh-banner-field {
flex: 1;
min-width: 150px;
padding: 6px 14px;
border-right: 1px solid #1a2260;
box-sizing: border-box;
}
.rh-banner-field:last-child {
border-right: none;
}
.rh-banner-lbl {
color: #7b9fd4;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
display: block;
margin-bottom: 2px;
}
.rh-banner-val {
color: #ffffff;
font-size: 12px;
word-break: break-all;
}
.rh-banner-val a {
color: #00aeef;
text-decoration: none;
}
.rh-banner-val a:hover {
text-decoration: underline;
}
/* ReportHeader Linked Button */
.rh-banner + p {
text-align: right;
margin-top: 8px;
}
.rh-banner + p a {
display: inline-block;
background: #00aeef;
color: #ffffff !important;
padding: 10px 20px;
border-radius: 4px;
text-decoration: none;
font-weight: 500;
font-size: 12px;
transition: background 0.2s;
}
.rh-banner + p a:hover {
background: #0096d1;
text-decoration: none;
}
/* Tablet responsiveness */
@media (max-width: 1024px) {
.rh-banner-img {
width: 240px;
min-width: 240px;
}
.rh-banner-title {
font-size: 22px;
}
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.rh-banner-top {
flex-direction: column;
}
.rh-banner-img {
width: 100%;
min-width: unset;
height: 500px;
border-right: none;
border-bottom: 1px solid #1a2260;
}
.rh-banner-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.rh-banner-meta {
flex-direction: column;
}
.rh-banner-field {
border-right: none;
border-bottom: 1px solid #1a2260;
min-width: unset;
}
.rh-banner-field:last-child {
border-bottom: none;
}
.rh-banner-title {
font-size: 20px;
}
.rh-banner-subtitle {
font-size: 11px;
}
}
@media (max-width: 480px) {
.rh-banner {
font-size: 11px;
margin: 0 0 1em 0;
}
.rh-banner-img {
height: 400px;
}
.rh-banner-titles {
padding: 10px 12px 8px;
}
.rh-banner-field {
padding: 5px 12px;
}
.rh-banner-title {
font-size: 16px;
}
.rh-banner-subtitle {
font-size: 10px;
}
.rh-banner-val {
font-size: 11px;
}
.rh-banner + p a {
padding: 8px 16px;
font-size: 11px;
}
}
.rh-banner + p {
text-align: right;
margin-top: 8px;
margin-bottom: 0;
padding: 0;
}
/* ReportTOC */
.rtoc-box {
width: 100%;
border: 1px solid #e0e0e0;
border-left: 4px solid #00aeef;
border-radius: 4px;
background: #ffffff;
font-family: sans-serif;
font-size: 12px;
margin: 0 0 1.5em 0;
overflow: hidden;
box-sizing: border-box;
}
.rtoc-header {
color: #b3b3b3;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 12px 14px 8px;
border-bottom: 1px solid #f0f0f0;
}
.rtoc-section-title {
font-size: 11px;
font-weight: 500;
padding: 6px 14px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.rtoc-entry {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 14px 6px 22px;
border-top: 1px solid rgba(255,255,255,0.5);
}
.rtoc-entry-text {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
padding-right: 12px;
}
.rtoc-entry-title {
color: #2b3990;
font-size: 12px;
}
.rtoc-entry-subtitle {
color: #b3b3b3;
font-size: 11px;
line-height: 1.4;
}
.rtoc-read {
display: inline-flex;
align-items: center;
border: 1px solid #2b3990;
border-radius: 20px;
color: #2b3990;
font-size: 10px;
font-weight: 500;
padding: 3px 10px;
text-decoration: none;
white-space: nowrap;
margin-left: 10px;
background: #ffffff;
}
.rtoc-read:hover {
background: #f5f7ff;
}
.rtoc-oos {
padding: 7px 14px;
font-size: 11px;
font-style: italic;
color: #888888;
}
/* Section colours */
.s-fm .rtoc-section-title { background: #e55425; color: #ffffff; }
.s-fm .rtoc-entry { background: #fdf3ef; }
.s-spm .rtoc-section-title { background: #c67b2a; color: #ffffff; }
.s-spm .rtoc-entry { background: #fdf6ef; }
.s-ts .rtoc-section-title { background: #1e4f26; color: #ffffff; }
.s-ts .rtoc-entry { background: #eff5f0; }
.s-ch .rtoc-section-title { background: #4c8fcc; color: #ffffff; }
.s-ch .rtoc-entry { background: #eff6fc; }
.s-an .rtoc-section-title { background: #19305b; color: #ffffff; }
.s-an .rtoc-entry { background: #eff2f7; }
/* ChapterNav — cover centred between prev and next */
.cn-box {
width: 100%;
border: 1px solid #e8c84a;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
font-size: 12px;
background: #ffffff;
margin: 0 0 1.5em 0;
box-sizing: border-box;
}
.cn-row {
width: 100%;
border-collapse: collapse;
margin: 0;
}
.cn-prev,
.cn-next {
width: 40%;
padding: 12px 14px;
vertical-align: middle;
background: #fffdf0;
}
.cn-prev {
border-right: 1px solid #e8c84a;
}
.cn-next {
border-left: 1px solid #e8c84a;
text-align: right;
}
.cn-prev:hover,
.cn-next:hover {
background: #fef9d6;
}
.cn-center {
width: 20%;
padding: 10px 14px;
text-align: center;
vertical-align: middle;
background: #fef9d6;
border-top: 3px solid #e8c84a;
}
.cn-center-img img {
width: 48px;
height: auto;
border-radius: 2px;
border: 1px solid #c8a820;
display: block;
margin: 0 auto 6px;
}
.cn-center-label {
color: #c8a820;
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 2px;
}
.cn-center-title a {
color: #2b3990;
font-size: 10px;
font-weight: 500;
text-decoration: none;
line-height: 1.3;
}
.cn-center-title a:hover {
color: #00aeef;
}
.cn-direction {
color: #c8a820;
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.05em;
display: block;
margin-bottom: 3px;
}
.cn-chapter-title a {
color: #2b3990;
font-size: 12px;
font-weight: 500;
line-height: 1.3;
text-decoration: none;
}
.cn-chapter-title a:hover {
color: #00aeef;
}
.cn-chapter-desc {
color: #b3b3b3;
font-size: 11px;
line-height: 1.4;
margin-top: 2px;
display: block;
}
.cn-empty {
background: #fafafa;
}
.cn-prev.cn-empty {
border-right: 1px solid #e8e8e8;
}
.cn-next.cn-empty {
border-left: 1px solid #e8e8e8;
}
.cn-empty-label {
color: #d0d0d0;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.05em;
font-style: italic;
}
/* Design Styling ***************************************** */
/* Glossary styling for MediaWiki */
.glossary-letter-section {
border-left: 5px solid #2b3990;
padding-left: 16px;
margin: 0 0 24px 0;
}
.glossary-letter-section h2 {
font-size: 18px;
font-weight: 500;
color: #2b3990;
margin: 0 0 16px 0;
letter-spacing: 1px;
}
.glossary-entry {
background: #eff6fc;
border: 0.5px solid #d3d1c7;
border-radius: 12px;
padding: 12px 16px;
margin-bottom: 12px;
}
.glossary-entry h3 {
margin: 0 0 8px 0;
font-size: 16px;
font-weight: 500;
}
.glossary-term {
display: inline-block;
background: #00aeef;
color: #030001;
padding: 6px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
text-decoration: none;
}
.glossary-working-groups,
.glossary-longer-term,
.glossary-definition {
font-size: 13px;
line-height: 1.6;
margin: 6px 0;
color: #030001;
}
.glossary-working-groups {
color: #808080;
}
.glossary-working-groups strong,
.glossary-longer-term strong,
.glossary-definition strong {
color: #2b3990;
font-weight: 500;
}
/* Acronyms list styling for MediaWiki */
.acronyms-letter-section {
border-left: 5px solid #00aeef;
padding-left: 16px;
margin: 0 0 24px 0;
}
.acronyms-letter-section h2 {
font-size: 13px;
font-weight: 500;
color: #2b3990;
margin: 0 0 12px 0;
letter-spacing: 1px;
}
.acronyms-entry {
background: #eff6fc;
border: 0.5px solid #d3d1c7;
border-radius: 12px;
padding: 12px 16px;
margin-bottom: 8px;
}
.acronyms-entry h3 {
margin: 0 0 8px 0;
font-size: 15px;
font-weight: 500;
}
.acronyms-term {
color: #1600ff;
font-weight: 500;
font-family: monospace;
}
.acronyms-description {
font-size: 13px;
line-height: 1.5;
margin: 4px 0;
color: #030001;
}
.acronyms-report {
font-size: 11px;
line-height: 1.4;
margin: 6px 0 0 0;
color: #b3b3b3;
}
.acronyms-description strong,
.acronyms-report strong {
color: #00aeef;
font-weight: 500;
}
.acronyms-report strong {
color: #b3b3b3;
}