Files
Brandy Carney a7f1f4daa7 refactor(components): update to use shadow DOM and work with css variables
- updates components to use shadow DOM or scoped if they require css variables
- moves global styles to an external stylesheet that needs to be imported
- adds support for additional colors and removes the Sass loops to generate colors for each component
- several property renames, bug fixes, and test updates

Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com>
Co-authored-by: Adam Bradley <adambradley25@gmail.com>
Co-authored-by: Cam Wiegert <cam@camwiegert.com>
2018-07-09 12:57:21 -04:00

65 lines
954 B
SCSS

@import "../../themes/ionic.globals";
// Back Button
// --------------------------------------------------
:host {
display: none;
color: #{current-color(base)};
pointer-events: all;
}
:host-context(.can-go-back > ion-header),
:host(.show-back-button) {
display: block;
}
.back-button-native {
@include font-smoothing();
position: relative;
z-index: 0;
display: block;
border: 0;
outline: none;
line-height: 1;
text-decoration: none;
text-overflow: ellipsis;
text-transform: none;
white-space: nowrap;
color: inherit;
cursor: pointer;
transition: background-color, opacity 100ms linear;
text-align: center;
user-select: none;
font-kerning: none;
appearance: none;
}
.back-button-inner {
display: flex;
flex-flow: row nowrap;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.back-button-text {
display: flex;
align-items: center;
}