From cd9dcf39967ce81113a9549d8789e20760be877c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 16 Jan 2021 18:02:14 +0200 Subject: Made a major redesign of feed page style --- .../src/app/components/feed/feed.component.css | 45 +++++++++++++++++- .../src/app/components/feed/feed.component.html | 4 +- .../src/app/components/post/post.component.css | 53 +++++++++++++++++----- .../src/app/components/post/post.component.html | 2 +- src/DevHive.Angular/src/styles.css | 3 ++ 5 files changed, 90 insertions(+), 17 deletions(-) (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/feed/feed.component.css b/src/DevHive.Angular/src/app/components/feed/feed.component.css index 093e2f8..aa3c392 100644 --- a/src/DevHive.Angular/src/app/components/feed/feed.component.css +++ b/src/DevHive.Angular/src/app/components/feed/feed.component.css @@ -1,7 +1,7 @@ #feed-page { max-width: 40em; margin: 0 auto; - border: .5em solid white; + border: .5em solid var(--bg-color); border-bottom: 0; box-sizing: border-box; display: flex; @@ -31,10 +31,21 @@ } #posts { - max-height: calc(100vh - 3em); + max-height: calc(100vh - 3.5em); overflow-y: auto; } + /* Hide scrollbar for Chrome, Safari and Opera */ +#posts::-webkit-scrollbar { + display: none; +} + + /* Hide scrollbar for IE, Edge and Firefox */ +#posts { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ +} + /* Profile bar */ #profile-bar { @@ -43,9 +54,14 @@ display: flex; flex-direction: column; align-items: center; + box-sizing: border-box; + background-color: var(--bg-color); + margin-right: .5em; padding-bottom: 1em; + padding: .5em; + border-radius: .6em; } #profile-bar-profile-pic { @@ -63,8 +79,12 @@ #top-bar { display: flex; + width: 95%; + margin: 0 auto; + margin-bottom: .5em; } + #top-bar-profile-pic { height: 2.5em; width: 2.5em; @@ -79,6 +99,13 @@ #top-bar-create-post { flex: 1; font-size: inherit; + width: 100%; + margin: 0 auto; + box-sizing: border-box; + border: 2px solid var(--bg-color); + padding: .5em; + border-radius: .6em; + box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; } #top-bar-open-chat { @@ -86,6 +113,11 @@ display: none; } +#profile-bar, +#top-bar > * { + box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px; +} + /* Elements, that act as buttons */ #profile-bar:hover, @@ -93,3 +125,12 @@ cursor: pointer; } +/* Can't copy text from */ + +#profile-bar, +.vote { + -webkit-user-select: none; /* Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+/Edge */ + user-select: none; /* Standard */ +} diff --git a/src/DevHive.Angular/src/app/components/feed/feed.component.html b/src/DevHive.Angular/src/app/components/feed/feed.component.html index 3253b54..5d7c86a 100644 --- a/src/DevHive.Angular/src/app/components/feed/feed.component.html +++ b/src/DevHive.Angular/src/app/components/feed/feed.component.html @@ -4,7 +4,7 @@
-