mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
- remove scss-lint and sass-lint - add stylelint and stylelint-order packages and configuration - update all *.scss files to new syntax fixes #14805
76 lines
1.5 KiB
SCSS
76 lines
1.5 KiB
SCSS
@import "../../themes/ionic.globals";
|
|
|
|
// Segment Button
|
|
// --------------------------------------------------
|
|
|
|
:host {
|
|
--padding-start: 0;
|
|
--padding-end: 0;
|
|
--padding-top: 0;
|
|
--padding-bottom: 0;
|
|
--icon-size: 1em;
|
|
|
|
flex: 1;
|
|
}
|
|
|
|
:host(:first-of-type) .segment-button-native {
|
|
--padding-end: 0;
|
|
|
|
@include border-radius(var(--border-radius), 0, 0, var(--border-radius));
|
|
}
|
|
|
|
:host(:not(:first-of-type)) .segment-button-native {
|
|
border-left-width: 0;
|
|
}
|
|
|
|
:host(:last-of-type) .segment-button-native {
|
|
--padding-start: 0;
|
|
|
|
@include border-radius(0, var(--border-radius), var(--border-radius), 0);
|
|
}
|
|
|
|
.segment-button-native {
|
|
@include margin(var(--margin-top), var(--margin-end), var(--margin-bottom), var(--margin-start));
|
|
@include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
|
|
|
|
display: block;
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
transition: var(--transition);
|
|
|
|
border-width: var(--border-width);
|
|
border-style: var(--border-style);
|
|
border-color: var(--border-color);
|
|
|
|
background: var(--background);
|
|
color: inherit;
|
|
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
|
|
text-align: center;
|
|
text-decoration: none;
|
|
text-overflow: ellipsis;
|
|
text-transform: inherit;
|
|
|
|
white-space: nowrap;
|
|
|
|
contain: content;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
font-kerning: none;
|
|
|
|
&:active,
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
::slotted(ion-icon) {
|
|
font-size: var(--icon-size);
|
|
}
|