2024-11-15 22:08:21 +00:00
|
|
|
.tabber {
|
2024-11-16 06:27:40 +00:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&__header {
|
|
|
|
box-shadow: inset 0 -1px 0 0 var( --border-color-base, #a2a9b1 );
|
2024-11-16 00:17:08 +00:00
|
|
|
|
|
|
|
&__prev,
|
|
|
|
&__next {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-11-15 22:08:21 +00:00
|
|
|
}
|
2024-05-25 07:02:18 +00:00
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&__tabs {
|
|
|
|
display: flex;
|
2024-11-16 06:27:40 +00:00
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
2024-11-15 22:08:21 +00:00
|
|
|
}
|
2024-05-25 07:02:18 +00:00
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&__tab {
|
|
|
|
padding: 0.5em 0.75em;
|
2024-11-16 00:29:58 +00:00
|
|
|
font-weight: bold;
|
2024-11-15 22:08:21 +00:00
|
|
|
white-space: nowrap;
|
2024-05-25 07:02:18 +00:00
|
|
|
|
2024-11-16 00:29:58 +00:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
2024-11-15 22:08:21 +00:00
|
|
|
&,
|
|
|
|
&:visited {
|
|
|
|
color: var( --color-base, #202122 );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@media ( hover: hover ) {
|
|
|
|
box-shadow: inset 0 -2px 0 0 var( --box-shadow-color-progressive-selected--hover, #447ff5 );
|
2024-11-16 00:29:58 +00:00
|
|
|
color: var( --color-progressive--hover, #447ff5 );
|
2024-05-25 07:02:18 +00:00
|
|
|
}
|
|
|
|
}
|
2024-05-25 07:07:49 +00:00
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&:active {
|
|
|
|
@media ( hover: hover ) {
|
|
|
|
color: var( --color-progressive--active, #2a4b8d );
|
|
|
|
}
|
2024-05-25 19:29:56 +00:00
|
|
|
}
|
2024-05-25 07:02:18 +00:00
|
|
|
}
|
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&__section {
|
|
|
|
display: grid;
|
|
|
|
overflow: hidden;
|
|
|
|
block-size: 100%;
|
|
|
|
grid-auto-columns: 100%;
|
|
|
|
grid-auto-flow: column;
|
|
|
|
scroll-snap-type: x mandatory;
|
2024-05-25 07:02:18 +00:00
|
|
|
}
|
2024-05-25 07:40:39 +00:00
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&__panel {
|
|
|
|
height: max-content;
|
|
|
|
overflow-x: auto;
|
|
|
|
scroll-snap-align: start;
|
|
|
|
|
|
|
|
// Hide edit buttons for non-transclusion tabs since they don't work
|
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
|
|
&:not( [ data-mw-tabber-page-title ] ) .mw-editsection {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-05-25 07:40:39 +00:00
|
|
|
}
|
2024-11-15 22:08:21 +00:00
|
|
|
}
|
|
|
|
|
2024-11-16 00:29:58 +00:00
|
|
|
// Basic nojs support
|
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
|
|
.client-nojs {
|
|
|
|
.tabber__panel {
|
|
|
|
height: auto;
|
|
|
|
scroll-padding-top: 3rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
// Set tabber height to the height of first tabpanel by
|
|
|
|
// setting subsequent tabpanels to have 0 height
|
2024-11-16 00:29:58 +00:00
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
2024-11-15 22:08:21 +00:00
|
|
|
.client-js {
|
|
|
|
.tabber {
|
|
|
|
&__tabs {
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
2024-05-25 07:40:39 +00:00
|
|
|
|
2024-11-15 22:08:21 +00:00
|
|
|
&--init {
|
|
|
|
.tabber__panel ~ .tabber__panel {
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
2024-05-25 07:40:39 +00:00
|
|
|
}
|
|
|
|
}
|