From 4ce79a86b7b73b2cb341ac4ff98ad07edb0f0043 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 13 Jan 2021 21:51:57 +0200 Subject: Reworked feed component --- .../src/app/components/feed/feed.component.css | 97 +++++++++++++++------- .../src/app/components/feed/feed.component.html | 42 ++++------ .../src/app/components/post/post.component.css | 3 +- .../src/app/components/post/post.component.html | 2 +- src/DevHive.Angular/src/styles.css | 10 ++- 5 files changed, 98 insertions(+), 56 deletions(-) (limited to 'src') 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 d19330e..ec2c3d6 100644 --- a/src/DevHive.Angular/src/app/components/feed/feed.component.css +++ b/src/DevHive.Angular/src/app/components/feed/feed.component.css @@ -1,46 +1,87 @@ #feed-page { - width: 45%; - display: flex; + max-width: 40em; + margin: 0 auto; + border: .5em solid white; + border-bottom: 0; + box-sizing: border-box; + display: flex; +} + +@media screen and (max-width: 750px) { + #profile-bar { + display: none !important; + } + #top-bar-profile-pic { + display: initial; + } +} +@media screen and (min-width: 750px) { + #profile-bar { + display: initial; + } + #top-bar-profile-pic { + display: none !important; + } +} + +/* Content */ - margin-left: auto; - margin-right: auto; - margin-top: 10px; +#content { + flex: 1; +} - place-content: center center; +#posts { + max-height: calc(100vh - 3em); + overflow-y: auto; } -.side-bar { +/* Profile bar */ + +#profile-bar { + width: 20%; + height: fit-content; + display: flex; + flex-direction: column; + align-items: center; + box-sizing: border-box; + margin-right: .5em; + padding-bottom: 1em; } -.top-bar { - display: flex; - width: 100%; +#profile-bar-profile-pic { + width: 100%; + box-sizing: border-box; + padding: .5em; } -.top-bar img { - width: 50px; - height: 50px; +/* Top bar */ + +#top-bar { + display: flex; } -.nav-bar-profile-pic { - border-radius: 50%; +#top-bar img { + height: 1.6em; + width: 1.6em; } -.on-your-mind { - margin-left: 10px; - margin-right: 10px; +#top-bar-profile-pic { + height: 2.5em; + width: 2.5em; + margin-right: .5em; } -.on-your-mind input { - box-sizing: border-box; - width: 100%; - height: 100%; +#top-bar-profile-pic > img { + height: inherit; + width: inherit; +} - border: 2px solid black; - border-radius: 10px; +#top-bar-create-post { + flex: 1; + font-size: inherit; } -.post { - padding: 1% 0%; - box-sizing: border-box; -} \ No newline at end of file +#top-bar-open-chat { + /* Until implemented */ + display: none; +} 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 465adeb..7375587 100644 --- a/src/DevHive.Angular/src/app/components/feed/feed.component.html +++ b/src/DevHive.Angular/src/app/components/feed/feed.component.html @@ -1,30 +1,24 @@
-