diff options
| author | tusooa <tusooa@kazv.moe> | 2023-01-15 17:02:24 +0000 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-01-15 17:02:24 +0000 |
| commit | dc897a5fef9ed10e23bee9b36ee719c31996f7a5 (patch) | |
| tree | 1dad722edc84b5ba1759a13e1944167c5ffcf7c3 /src/components/attachment/attachment.scss | |
| parent | 4d2056d8aaa8f2c20a3275503857d38ac9112e5f (diff) | |
| parent | d2ba67d565ba68acc1938dc9ae2c866a6e39d4d6 (diff) | |
Merge branch 'tusooa/stylelint' into 'develop'
Use stylelint
Closes #1173 and #857
See merge request pleroma/pleroma-fe!1752
Diffstat (limited to 'src/components/attachment/attachment.scss')
| -rw-r--r-- | src/components/attachment/attachment.scss | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index 966acc68..681bab29 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -1,4 +1,4 @@ -@import '../../_variables.scss'; +@import "../../variables"; .Attachment { display: inline-flex; @@ -107,8 +107,8 @@ font-size: 64px; top: calc(50% - 32px); left: calc(50% - 32px); - color: rgba(255, 255, 255, 0.75); - text-shadow: 0 0 2px rgba(0, 0, 0, 0.4); + color: rgb(255 255 255 / 75%); + text-shadow: 0 0 2px rgb(0 0 0 / 40%); &::before { margin: 0; @@ -134,18 +134,32 @@ margin-left: 0.5em; font-size: 1.25em; // TODO: theming? hard to theme with unknown background image color - background: rgba(230, 230, 230, 0.7); + background: rgb(230 230 230 / 70%); .svg-inline--fa { - color: rgba(0, 0, 0, 0.6); + color: rgb(0 0 0 / 60%); } &:hover .svg-inline--fa { - color: rgba(0, 0, 0, 0.9); + color: rgb(0 0 0 / 90%); } } } + &.-contain-fit { + img, + canvas { + object-fit: contain; + } + } + + &.-cover-fit { + img, + canvas { + object-fit: cover; + } + } + .oembed-container { line-height: 1.2em; flex: 1 0 100%; @@ -159,8 +173,9 @@ .image { flex: 1; + img { - border: 0px; + border: 0; border-radius: 5px; height: 100%; object-fit: cover; @@ -171,9 +186,10 @@ flex: 2; margin: 8px; word-break: break-all; + h1 { font-size: 1rem; - margin: 0px; + margin: 0; } } } @@ -251,20 +267,6 @@ cursor: progress; } - &.-contain-fit { - img, - canvas { - object-fit: contain; - } - } - - &.-cover-fit { - img, - canvas { - object-fit: cover; - } - } - &.-compact { .placeholder-container { padding-bottom: 0.5em; |
