Jump to content

MediaWiki:Common.css: Difference between revisions

From ClimateKG
No edit summary
No edit summary
Line 294: Line 294:
@media (max-width: 1024px) {
@media (max-width: 1024px) {
     .rh-banner-img {
     .rh-banner-img {
         width: 200px;
         width: 240px;
         min-width: 200px;
         min-width: 240px;
     }
     }
}
}
Line 308: Line 308:
         width: 100%;
         width: 100%;
         min-width: unset;
         min-width: unset;
         height: 400px;
         height: 500px;
         border-right: none;
         border-right: none;
         border-bottom: 1px solid #1a2260;
         border-bottom: 1px solid #1a2260;
Line 349: Line 349:
      
      
     .rh-banner-img {
     .rh-banner-img {
         height: 300px;
         height: 400px;
     }
     }
      
      

Revision as of 11:21, 20 May 2026

/* CSS placed here will be applied to all skins */

/* 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 ***************************************** */

/* 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: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 3px;
    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;
    }
}

/* 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: 13px;
    }
    
    .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: 12px;
    }
    
    .rh-banner-subtitle {
        font-size: 10px;
    }
    
    .rh-banner-val {
        font-size: 11px;
    }
    
    .rh-banner + p a {
        padding: 8px 16px;
        font-size: 11px;
    }
}


/* 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; }



/* 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 {
  color: #1600ff;
  font-weight: 500;
}
.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;
}