From f7ab74bfa8aa8ee5f2087c11da3edfc7e1b9c651 Mon Sep 17 00:00:00 2001 From: Carlo Nomes Date: Tue, 30 Jul 2019 13:37:37 +0200 Subject: [PATCH] fix(stark-demo): move header outside of sidenav-content A fixed header placed in the sidenav-content node was causing an issue in Safari. ISSUES CLOSED: #1338 --- .../components/_app-sidebar.component.scss | 10 +- showcase/src/app/app.component.html | 257 ++++++++++-------- starter/src/app/app.component.html | 112 ++++---- 3 files changed, 210 insertions(+), 169 deletions(-) diff --git a/packages/stark-ui/src/modules/app-sidebar/components/_app-sidebar.component.scss b/packages/stark-ui/src/modules/app-sidebar/components/_app-sidebar.component.scss index ff794a0dbe..3ccb4a4cad 100644 --- a/packages/stark-ui/src/modules/app-sidebar/components/_app-sidebar.component.scss +++ b/packages/stark-ui/src/modules/app-sidebar/components/_app-sidebar.component.scss @@ -7,17 +7,15 @@ .mat-sidenav-container { height: 100vh; width: 100vw; - + display: flex; flex-direction: column; } .mat-sidenav-content { - margin-top: $stark-header-size; - flex: 1 1 0; align-self: stretch; - + display: flex; flex-direction: column; } @@ -51,6 +49,10 @@ } } +.stark-app-sidebar .mat-sidenav-content { + margin-top: $stark-header-size; +} + @media #{$tablet-screen-query} { .stark-app-sidebar .mat-sidenav-content { margin-top: $stark-header-size-desktop; diff --git a/showcase/src/app/app.component.html b/showcase/src/app/app.component.html index 269756e4c2..9074b57a54 100644 --- a/showcase/src/app/app.component.html +++ b/showcase/src/app/app.component.html @@ -1,137 +1,164 @@ +
+
+
+
+
+ + + +
+
+ +
+ +
+ +
+
+
+ +
+ {{ "SHOWCASE.DEMO.APP_DATA.USER" | translate }}:  + {{ user.username }} ({{ user.roles[0] }}) +
+ {{ "SHOWCASE.DEMO.APP_DATA.LAST_ACCESS" | translate }} + :  + {{ time }} +
+ +
+ {{ "SHOWCASE.DEMO.APP_DATA.VERSION" | translate }}:  + {{ appMetadata.version }} +
+ {{ "SHOWCASE.DEMO.APP_DATA.ENVIRONMENT" | translate }} + :  + {{ appMetadata.environment }} +
+
+
+ + +
+ +
+
+ +
+ {{ "SHOWCASE.DEMO.APP_DATA.USER" | translate }}:  + {{ user.username }} ({{ user.roles[0] }}) +
+ {{ "SHOWCASE.DEMO.APP_DATA.LAST_ACCESS" | translate }} + :  + {{ time }} +
+ {{ "SHOWCASE.DEMO.APP_DATA.VERSION" | translate }}:  + {{ appMetadata.version }} +
+ {{ "SHOWCASE.DEMO.APP_DATA.ENVIRONMENT" | translate }} + :  + {{ appMetadata.environment }} +
+
+
+ + + + + + +
+ + +
+ +
+ + +
+
+
+ +
Top content
+
Middle content
+
Bottom content
Top content
+
Middle content
+
Bottom content
- -
-
-
-
-
- - -
-
-
- -
-
-
-
- -
- {{ "SHOWCASE.DEMO.APP_DATA.USER" | translate }}: {{ user.username }} ({{ user.roles[0] }})
- {{ "SHOWCASE.DEMO.APP_DATA.LAST_ACCESS" | translate }}: {{ time }} -
-
- {{ "SHOWCASE.DEMO.APP_DATA.VERSION" | translate }}: {{ appMetadata.version }}
- {{ "SHOWCASE.DEMO.APP_DATA.ENVIRONMENT" | translate }}: {{ appMetadata.environment }} -
-
-
- -
-
-
- -
- {{ "SHOWCASE.DEMO.APP_DATA.USER" | translate }}: {{ user.username }} ({{ user.roles[0] }})
- {{ "SHOWCASE.DEMO.APP_DATA.LAST_ACCESS" | translate }}: {{ time }}
- {{ "SHOWCASE.DEMO.APP_DATA.VERSION" | translate }}: {{ appMetadata.version }}
- {{ "SHOWCASE.DEMO.APP_DATA.ENVIRONMENT" | translate }}: {{ appMetadata.environment }} -
-
-
- - - -
- -
-
- - -
-
-
+
diff --git a/starter/src/app/app.component.html b/starter/src/app/app.component.html index cb0abf7a67..c4563e77c2 100644 --- a/starter/src/app/app.component.html +++ b/starter/src/app/app.component.html @@ -1,63 +1,75 @@ +
+
+
+
+
+ + + +
+
+ +
+ +
+ +
+
+

App Data

+ + + + +
+ +
+ +
+ +
+ + + +
+
+ +
+

{{ name }}

+
+
+
+
+ + - -
-
-
-
-
- - -
-
-
- -
-
-
-

App Data

- - -
-
- -
-
- - -
-
-
-

{{ name }}

-
-
-
-
+
+