mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00

- Fixed block/full buttons, now there are display: block - Fixes <ion-segment-button> warnings
62 lines
1.0 KiB
SCSS
62 lines
1.0 KiB
SCSS
@import "../../globals.core";
|
|
|
|
// Toolbar Buttons
|
|
// --------------------------------------------------
|
|
|
|
.bar-button {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
|
|
text-align: center;
|
|
text-transform: none;
|
|
line-height: 1;
|
|
|
|
vertical-align: top; // the better option for most scenarios
|
|
vertical-align: -webkit-baseline-middle; // the best for those that support it
|
|
|
|
cursor: pointer;
|
|
@include user-select-none();
|
|
@include appearance(none);
|
|
}
|
|
|
|
.bar-button:after {
|
|
// used to make the button's hit area larger
|
|
position: absolute;
|
|
content: '';
|
|
top: -7px;
|
|
right: -2px;
|
|
bottom: -6px;
|
|
left: -2px;
|
|
}
|
|
|
|
|
|
// Menu Toggle
|
|
// --------------------------------------------------
|
|
|
|
.bar-button-menutoggle {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
// Back Button
|
|
// --------------------------------------------------
|
|
|
|
.back-button {
|
|
display: none;
|
|
&.show-back-button {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.back-button-text {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|