mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
- 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>
65 lines
954 B
SCSS
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;
|
|
}
|