diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-10-29 14:44:04 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-10-30 17:51:06 +0100 |
commit | ac9780b8449527a6a7ab5e2031eeb37f7f2291e7 (patch) | |
tree | ce5dac4c0a802688f0c3f8f208ce310b1617f9f9 /app/javascript/flavours/glitch/styles/components | |
parent | 7f24242ef6d3e6b64f9116dedc3ad60048b4c1bc (diff) |
[Glitch] Include preview cards in status entity in REST API
Port 795f0107d23c1c9bd039f6449fa1e094ab7653a7 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components')
-rw-r--r-- | app/javascript/flavours/glitch/styles/components/status.scss | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/status.scss b/app/javascript/flavours/glitch/styles/components/status.scss index aa49aba55..38ead06cf 100644 --- a/app/javascript/flavours/glitch/styles/components/status.scss +++ b/app/javascript/flavours/glitch/styles/components/status.scss @@ -731,6 +731,9 @@ a.status-card { display: block; margin-top: 5px; font-size: 13px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .status-card__image { @@ -755,6 +758,31 @@ a.status-card { } } +.status-card.compact { + border-color: lighten($ui-base-color, 4%); + + &.interactive { + border: 0; + } + + .status-card__content { + padding: 8px; + padding-top: 10px; + } + + .status-card__title { + white-space: nowrap; + } + + .status-card__image { + flex: 0 0 60px; + } +} + +a.status-card.compact:hover { + background-color: lighten($ui-base-color, 4%); +} + .status-card__image-image { border-radius: 4px 0 0 4px; display: block; |