mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
a0fca90bdf
PiperOrigin-RevId: 563802077
46 lines
839 B
SCSS
46 lines
839 B
SCSS
//
|
|
// Copyright 2023 Google LLC
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
// Note, there are currently no tokens for tabs. Instead, tabs are entirely
|
|
// themed via primary/secondary tab.
|
|
@mixin styles() {
|
|
:host {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
scroll-behavior: smooth;
|
|
scrollbar-width: none;
|
|
position: relative;
|
|
}
|
|
|
|
:host([hidden]) {
|
|
display: none;
|
|
}
|
|
|
|
:host::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.tabs {
|
|
align-items: end;
|
|
display: flex;
|
|
height: 100%;
|
|
overflow: inherit;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
::slotted(*) {
|
|
flex: 1;
|
|
}
|
|
|
|
// draw selected on top so its indicator can be transitioned from the
|
|
// previously selected tab, on top of it
|
|
::slotted([active]) {
|
|
z-index: 1;
|
|
}
|
|
}
|