Files
ionic-framework/src/components/toolbar/toolbar-button.scss
Amit Moryossef 424b15aefd fix(rtl): add correct text-align (#11353)
* 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
2017-05-02 11:10:18 -04:00

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;
}