Template:CustomTabs/styles.css: Difference between revisions
Template page
More actions
m Stevium moved page MediaWiki:CustomTabs.css to Template:CustomTabs/styles.css without leaving a redirect: Changing how the CustomTabs stylesheet is loaded: now uses TemplateStyles instead of @import |
Stevium changed the content model of the page Template:CustomTabs/styles.css from "CSS" to "Sanitized CSS": TemplateStyles |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
.custom-tabs { | |||
display: flex; | |||
flex-direction: row; | |||
gap: 5px; | |||
width: 100%; | |||
margin: 5px 0; | |||
flex-wrap: wrap; | |||
justify-content: space-evenly; | |||
} | } | ||
.custom-tabs | .custom-tabs > span { | ||
border-radius: 10px; | border-radius: 10px; | ||
display: flex; | display: flex; | ||
| Line 25: | Line 17: | ||
text-align: center; | text-align: center; | ||
transition: 0.25s; | transition: 0.25s; | ||
} | |||
.custom-tabs a, | |||
.custom-tabs .selflink, | |||
.custom-tabs span.new { | |||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
| Line 39: | Line 31: | ||
text-align: center; | text-align: center; | ||
font-weight: 900 !important; | font-weight: 900 !important; | ||
} | |||
.custom-tabs span.active-tab { | |||
background-color: var(--color-accent); | |||
} | |||
.custom-tabs span.active-tab strong, | |||
.custom-tabs span.active-tab a:not(.new) { | |||
color: var(--color-accent-text); | |||
} | |||
.custom-tabs span.inactive-tab { | |||
background: var(--background-color-1); | |||
} | } | ||
.custom-tabs span.inactive-tab a:not(.new), | |||
.custom-tabs span.inactive-tab:hover a:not(.new) { | |||
color: var(--color-base); | |||
} | } | ||
.custom-tabs span.inactive-tab:hover { | |||
.custom-tabs | background: var(--background-color-3); | ||
} | } | ||