mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
* fix(rtl): add correct text-align * feat(text-align): add mixin for backwards compatibility of variables * fix(text-align): default null not empty string * fix(text-align): remove default
67 lines
1.1 KiB
SCSS
67 lines
1.1 KiB
SCSS
@import "../../themes/ionic.globals";
|
|
|
|
// Toolbar Buttons
|
|
// --------------------------------------------------
|
|
|
|
.bar-button {
|
|
@include text-align(center);
|
|
@include appearance(none);
|
|
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
line-height: 1;
|
|
text-overflow: ellipsis;
|
|
text-transform: none;
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: top; // the better option for most scenarios
|
|
vertical-align: -webkit-baseline-middle; // the best for those that support it
|
|
|
|
user-select: none;
|
|
}
|
|
|
|
.bar-button::after {
|
|
// used to make the button's hit area larger
|
|
position: absolute;
|
|
top: -7px;
|
|
right: -2px;
|
|
bottom: -6px;
|
|
left: -2px;
|
|
|
|
content: "";
|
|
}
|
|
|
|
|
|
// Menu Toggle
|
|
// --------------------------------------------------
|
|
|
|
.bar-button-menutoggle {
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
// Back Button
|
|
// --------------------------------------------------
|
|
|
|
.back-button {
|
|
display: none;
|
|
}
|
|
|
|
.back-button.show-back-button {
|
|
display: inline-block;
|
|
}
|
|
|
|
.back-button-text {
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
}
|