Editing Template:CustomTabs/styles.css
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
/* For Template:CustomTabs */ | |||
. | /* Hide dummy infobox layout junk on desktop */ | ||
aside.pi-theme-dummy, | |||
aside.pi-theme-dummy ~ aside.portable-infobox + p > br:first-child, | |||
aside.pi-theme-dummy ~ aside.portable-infobox + p:empty + p > br:first-child { | |||
display: none; | |||
} | } | ||
.custom-tabs { | .custom-tabs { | ||
display: flex; | |||
flex-direction: row; | |||
gap: 5px; | |||
width: 100%; | |||
margin: 5px 0; | |||
flex-wrap: wrap; | |||
justify-content: space-evenly; | |||
> span { | |||
border-radius: 10px; | border-radius: 10px; | ||
display: flex; | display: flex; | ||
| Line 25: | Line 25: | ||
text-align: center; | text-align: center; | ||
transition: 0.25s; | transition: 0.25s; | ||
} | } | ||
a, | |||
.selflink, | |||
span.new { | |||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
| Line 39: | Line 39: | ||
text-align: center; | text-align: center; | ||
font-weight: 900 !important; | font-weight: 900 !important; | ||
} | } | ||
/* Apply Color Scheme */ | |||
span { | |||
&.active-tab { | |||
background-color: var(--active-tab-background-color); | |||
. | strong, | ||
a:not(.new) { | |||
} | color: var(--active-tab-color); | ||
} | |||
} | |||
. | &.inactive-tab { | ||
background: var(--inactive-tab-background-color); | |||
. | a:not(.new) { | ||
color: var(--inactive-tab-color); | |||
} | } | ||
&:hover { | |||
background: var(--inactive-tab-hover-background-color); | |||
. | a:not(.new) { | ||
color: var(--inactive-tab-hover-color); | |||
} | |||
} | |||
} | |||
} | |||
} | } | ||
/* | /* Mobile 2-column layout */ | ||
.custom-tabs | .skin-fandommobile { | ||
.custom-tabs { | |||
display: grid; | |||
grid-template-columns: repeat(2, 50%); | |||
grid-auto-flow: row; | |||
. | a, | ||
.selflink, | |||
span.new { | |||
font-size: 90%; | |||
} | |||
} | |||
} | } | ||
/* | /* Default Color Scheme */ | ||
.custom-tabs- | .custom-tabs-default { | ||
--active-tab-background-color: var(--theme-accent-color); | |||
--active-tab-color: var(--color-base); | |||
--inactive-tab-background-color: var(--background-color-1); | |||
--inactive-tab-color: var(--color-base); | |||
--inactive-tab-hover-background-color: var(--background-color-3); | |||
--inactive-tab-hover-color: var(--inactive-tab-color); | |||
. | .skin-theme-clientpref-night &, .skin-theme-clientpref-os & { | ||
--active-tab-color: var(--background-color-base); | |||
} | |||
} | } | ||