From 6b260594e1077031cd690b547f4d7285427a60ee Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 1 Jan 2020 18:19:11 +0100 Subject: [PATCH] toolbar is really fixed now --- src/app/components/home/home.component.sass | 35 +-- .../main-navigation.component.html | 16 +- .../main-navigation.component.sass | 21 +- .../components/profile/profile.component.html | 200 +++++++++--------- .../components/profile/profile.component.sass | 6 + .../components/search/search.component.sass | 15 +- 6 files changed, 136 insertions(+), 157 deletions(-) diff --git a/src/app/components/home/home.component.sass b/src/app/components/home/home.component.sass index 2ae2205..fb10907 100644 --- a/src/app/components/home/home.component.sass +++ b/src/app/components/home/home.component.sass @@ -1,38 +1,6 @@ @import '../../../styles/mixins.sass' @import '../../../styles/vars.sass' -#content - position: fixed - width: 100% - height: calc(100% - 56px) - -#chat - box-sizing: content-box - height: 100% - width: 25% - float: left - overflow-y: auto - -#feed - box-sizing: content-box - height: 100% - width: 50% - float: left - overflow-y: auto - -#social - box-sizing: content-box - height: 100% - width: 25% - float: left - overflow-y: auto - -.mat-toolbar.mat-primary - width: 100% - position: sticky - top: 0 - z-index: 1 - /deep/ .mat-tab-body-wrapper height: 100% @@ -45,8 +13,9 @@ height: 100% .tab-content - height: 50% + box-sizing: content-box width: 100% + diff --git a/src/app/components/main-navigation/main-navigation.component.html b/src/app/components/main-navigation/main-navigation.component.html index d9866e1..28c6ce6 100644 --- a/src/app/components/main-navigation/main-navigation.component.html +++ b/src/app/components/main-navigation/main-navigation.component.html @@ -1,5 +1,7 @@ - - + + + + + + + + Greenvironment - + + + friend requests: + diff --git a/src/app/components/main-navigation/main-navigation.component.sass b/src/app/components/main-navigation/main-navigation.component.sass index b650cc7..4daa65d 100644 --- a/src/app/components/main-navigation/main-navigation.component.sass +++ b/src/app/components/main-navigation/main-navigation.component.sass @@ -1,23 +1,19 @@ -.sidenav-container - height: 100% - .mat-sidenav-container - height: 100% - -.mat-sidenav-content - height: 100vh + margin-top: 56px + height: calc(100vh - 56px) .sidenav width: 200px .sidenav .mat-toolbar - background: inherit + //background: inherit .mat-toolbar.mat-primary height: 56px - position: sticky + position: fixed + //position: sticky top: 0 - z-index: 1000 + z-index: 999 .mat-tab-nav-bar width: 50% height: 56px @@ -35,13 +31,8 @@ /deep/ .mat-tab-link min-width: 5em!important - -#login-button #menu-button-box text-align: right width: 100% - - - diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html index 267060a..a6fca4f 100644 --- a/src/app/components/profile/profile.component.html +++ b/src/app/components/profile/profile.component.html @@ -1,105 +1,107 @@ -Profile -
-
-
- - -
- {{user.username}} - {{user.handle}} -
- - - -
name:
- - - - -
handle:
- - - - -
profileID:
- - - - -
points:
- - - - -
level:
- - - - -
level name:
- - -
{{user.username}}
{{user.handle}}
{{user.userID}}
{{user.points}}
{{user.level}}
{{rankname}}
-
-
-
-
-

What does the level mean?

-

There are different levels you can reach through green behaviour. - Collect 100 points to level up! The levels are called: -

- - - - - - - - - - - -
level {{level.level}} level name {{level.name}}
+
+ Profile +
+
+
+ + +
+ {{user.username}} + {{user.handle}} +
+ + + +
name:
+ + + + +
handle:
+ + + + +
profileID:
+ + + + +
points:
+ + + + +
level:
+ + + + +
level name:
+ + +
{{user.username}}
{{user.handle}}
{{user.userID}}
{{user.points}}
{{user.level}}
{{rankname}}
+
+
+

-

How to level up?

-

There is an always growing list of things you can do, - to support your environment - and earn points to level up at the same time. - You can get a different amount of points - for differnet actions you can see in the list below: -

- - - - - - - - +

What does the level mean?

+

There are different levels you can reach through green behaviour. + Collect 100 points to level up! The levels are called: +

+
points {{action.points}}
+ + + + + + + + + + +
level {{level.level}} level name {{level.name}}
+
+

How to level up?

+

There is an always growing list of things you can do, + to support your environment + and earn points to level up at the same time. + You can get a different amount of points + for differnet actions you can see in the list below: +

+ + + + + + + + - - - - - + + + + + - - -
points {{action.points}} action {{action.name}} action {{action.name}}
- + + + + +
+
+

Profile not found :(

-
-

Profile not found :(

-
+
\ No newline at end of file diff --git a/src/app/components/profile/profile.component.sass b/src/app/components/profile/profile.component.sass index c108503..4d0369e 100644 --- a/src/app/components/profile/profile.component.sass +++ b/src/app/components/profile/profile.component.sass @@ -1,6 +1,12 @@ @import '../../../styles/mixins.sass' @import '../../../styles/vars.sass' +#profile-page + position: fixed + width: 100% + height: calc(100% - 56px) + overflow: scroll + #profile padding: 2em max-width: 1200px diff --git a/src/app/components/search/search.component.sass b/src/app/components/search/search.component.sass index 2989fc4..a256f6a 100644 --- a/src/app/components/search/search.component.sass +++ b/src/app/components/search/search.component.sass @@ -1,16 +1,17 @@ #search - width: 100% - height: 100% + width: 100% + overflow-x: hidden + height: 100% #input - width: 100% - padding-left: 0.5em - padding-right: 0.5em + width: 100% + padding-left: 0.5em + padding-right: 0.5em #category-chooser - padding-left: 0.5em - padding-right: 0.5em + padding-left: 0.5em + padding-right: 0.5em #friendlist padding: 0.5em