47 lines
711 B
SCSS
47 lines
711 B
SCSS
@import "../../themes/ionic.globals";
|
|
|
|
// Segment
|
|
// --------------------------------------------------
|
|
|
|
:host {
|
|
/**
|
|
* @prop --background: Background of the segment button
|
|
*/
|
|
--ripple-color: currentColor;
|
|
|
|
@include font-smoothing();
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
background: var(--background);
|
|
|
|
font-family: $font-family-base;
|
|
|
|
text-align: center;
|
|
|
|
contain: paint;
|
|
}
|
|
|
|
|
|
// Segment: Scrollable
|
|
// --------------------------------------------------
|
|
|
|
:host(.segment-scrollable) {
|
|
justify-content: start;
|
|
|
|
width: auto;
|
|
|
|
overflow-x: scroll;
|
|
}
|
|
|
|
:host(.segment-scrollable::-webkit-scrollbar) {
|
|
display: none;
|
|
}
|