aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/post-attachment
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-20 11:25:26 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-20 11:25:26 +0200
commit05498013ab02d44ea1e6906c2f64ae63eeaea93a (patch)
treefece26391e418ab33c430bece33a767a0203c6b1 /src/app/components/post-attachment
parent02bcae5062da7ec69b618e6ea1a46c795b687518 (diff)
downloadDevHive-Angular-05498013ab02d44ea1e6906c2f64ae63eeaea93a.tar
DevHive-Angular-05498013ab02d44ea1e6906c2f64ae63eeaea93a.tar.gz
DevHive-Angular-05498013ab02d44ea1e6906c2f64ae63eeaea93a.zip
Improved styling of download button in post attachment
Diffstat (limited to 'src/app/components/post-attachment')
-rw-r--r--src/app/components/post-attachment/post-attachment.component.css1
-rw-r--r--src/app/components/post-attachment/post-attachment.component.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app/components/post-attachment/post-attachment.component.css b/src/app/components/post-attachment/post-attachment.component.css
index dd41340..3c25563 100644
--- a/src/app/components/post-attachment/post-attachment.component.css
+++ b/src/app/components/post-attachment/post-attachment.component.css
@@ -21,6 +21,7 @@
.attachment-download {
max-width: 420px !important;
+ background-color: var(--card-bg);
text-decoration: none;
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 8605ca0..12004dc 100644
--- a/src/app/components/post-attachment/post-attachment.component.html
+++ b/src/app/components/post-attachment/post-attachment.component.html
@@ -10,7 +10,7 @@
<div class="show-full-attachment flex-row flex-justify-center flex-center-align-items" *ngIf="showFull" (click)="toggleShowFull()">
<img class="attachment-img" *ngIf="isImage" src="{{paramURL}}">
- <a class="attachment-download faded-slim-border padding-normal lighter-hover click-effect border-radius-smaller" *ngIf="!isImage" href="{{paramURL}}">
+ <a class="attachment-download faded-slim-border padding-normal hover-half-opacity click-effect border-radius-smaller" *ngIf="!isImage" href="{{paramURL}}">
Download attachment
</a>
</div>