Skip to content

Commit 6fa2faf

Browse files
committed
feat(header): apply shadow on MD headers
1 parent 08f22fb commit 6fa2faf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/components/toolbar/toolbar.md.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ $toolbar-md-button-border-radius: 2px !default;
2929
$navbar-md-height: $toolbar-md-height !default;
3030

3131

32+
ion-header::after {
33+
// using datauri png background image for improved scroll performance
34+
// rather than using `box-shadow: 0 2px 5px rgba(0,0,0,0.26);`
35+
// noticable performance difference on older Android devices
36+
position: absolute;
37+
width: 100%;
38+
height: 5px;
39+
content: '';
40+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAIBAMAAAARjyJQAAAAFVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQCkAAAAB3RSTlMBLRUGDSA4cBS/RQAAACBJREFUeF5jSEMCDIJIgCEUCTAoIQEGFyTAYIwEGHACAG7+EL36X1OAAAAAAElFTkSuQmCC);
41+
background-repeat: repeat-x;
42+
}
43+
44+
3245
.toolbar {
3346
padding: $toolbar-md-padding;
3447

0 commit comments

Comments
 (0)