From 9794489573eaa3cd8bdc853c9d67db5145e22fe4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 20 Mar 2021 11:10:58 +0200 Subject: Major rework of post attachment styling --- .../post-attachment/post-attachment.component.css | 50 +------------ .../post-attachment/post-attachment.component.html | 20 +++--- src/app/components/post/post.component.css | 1 - src/app/components/post/post.component.html | 2 +- src/assets/icons/tabler-icon-file.svg | 69 ++++++++++++++++++ src/assets/icons/tabler-icon-photo.svg | 84 ++++++++++++++++++++++ src/styles.css | 15 ++++ 7 files changed, 181 insertions(+), 60 deletions(-) create mode 100644 src/assets/icons/tabler-icon-file.svg create mode 100644 src/assets/icons/tabler-icon-photo.svg diff --git a/src/app/components/post-attachment/post-attachment.component.css b/src/app/components/post-attachment/post-attachment.component.css index 58e8a82..dd41340 100644 --- a/src/app/components/post-attachment/post-attachment.component.css +++ b/src/app/components/post-attachment/post-attachment.component.css @@ -1,27 +1,5 @@ -/* Attachment */ - .attachment { - width: 100%; - height: 100%; - display: flex; - border: 2px solid black; - border-top: 0; - border-radius: 0 0 .6em .6em; - padding: .4em; - padding-top: 1em; - margin-top: calc(-0.8em - 2px); -} - -.attachment:hover { - cursor: pointer; -} - -.attachment-name { - flex: 1; -} - -.attachment-type { - margin-left: .2em; + background-color: #424242; } /* Full attachment */ @@ -33,9 +11,6 @@ width: 100vw; height: 100vh; background-color: #000000AF; - display: flex; - justify-content: center; - align-items: center; z-index: 2; } @@ -46,27 +21,6 @@ .attachment-download { max-width: 420px !important; - margin: 0 .4em; text-decoration: none; - color: white; - border-color: white; - background-color: black; -} - -.attachment-download:hover { - background-color: white; - color: var(--focus-color); -} - -.close { - position: fixed; - top: .2em; - right: .2em; - font-size: 2em; - color: whitesmoke; -} - -.close:hover { - color: var(--failure); - cursor: pointer; + color: inherit; } diff --git a/src/app/components/post-attachment/post-attachment.component.html b/src/app/components/post-attachment/post-attachment.component.html index 401068c..8605ca0 100644 --- a/src/app/components/post-attachment/post-attachment.component.html +++ b/src/app/components/post-attachment/post-attachment.component.html @@ -1,16 +1,16 @@ -
- +
+
+ + +
+ {{ fileName }} - - {{ fileType }} -
-
+ diff --git a/src/app/components/post/post.component.css b/src/app/components/post/post.component.css index f263386..c5919fd 100644 --- a/src/app/components/post/post.component.css +++ b/src/app/components/post/post.component.css @@ -16,7 +16,6 @@ } .message { - margin: 0.2em 0; word-break: break-word; } diff --git a/src/app/components/post/post.component.html b/src/app/components/post/post.component.html index a966d00..133b747 100644 --- a/src/app/components/post/post.component.html +++ b/src/app/components/post/post.component.html @@ -13,7 +13,7 @@ @{{ user.userName }}
-
+
{{ post.message }}
diff --git a/src/assets/icons/tabler-icon-file.svg b/src/assets/icons/tabler-icon-file.svg new file mode 100644 index 0000000..312c9f4 --- /dev/null +++ b/src/assets/icons/tabler-icon-file.svg @@ -0,0 +1,69 @@ + + + + + + image/svg+xml + + + + + + + + + + diff --git a/src/assets/icons/tabler-icon-photo.svg b/src/assets/icons/tabler-icon-photo.svg new file mode 100644 index 0000000..eddf3cc --- /dev/null +++ b/src/assets/icons/tabler-icon-photo.svg @@ -0,0 +1,84 @@ + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/src/styles.css b/src/styles.css index 0a435a7..c06a9bd 100644 --- a/src/styles.css +++ b/src/styles.css @@ -122,6 +122,10 @@ input[type=file]::file-selector-button { flex-wrap: wrap; } +.flex-no-wrap { + flex-wrap: nowrap; +} + .flex-row { flex-direction: row; } @@ -246,6 +250,17 @@ input[type=file]::file-selector-button { padding-bottom: 0.2em; } +/* Margin */ + +.margin-top-bot-small { + margin-top: 0.2em; + margin-bottom: 0.2em; +} + +.margin-right-small { + margin-right: 0.2em; +} + /* Cards */ .card { -- cgit v1.2.3