diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-16 07:22:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 07:22:20 +0100 |
commit | 9dbae6e8a120fc18fdc007503375b53f6b061b8f (patch) | |
tree | cf0a3ceee2a1a0c4c1f1418ac9668992465bdfeb /app/javascript | |
parent | 1122579216a0ba6d081ff9ad14a1b501636f9601 (diff) |
Save video metadata and improve video OpenGraph tags (#6481)
* Save metadata from video attachments, put correct dimensions into OG tags * Add twitter:player for videos * Fix code style and test
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/styles/mastodon/basics.scss | 4 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/stream_entries.scss | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss index b5d77ff63..0e3b9ad6b 100644 --- a/app/javascript/styles/mastodon/basics.scss +++ b/app/javascript/styles/mastodon/basics.scss @@ -47,6 +47,10 @@ body { padding-bottom: 0; } + &.player { + text-align: center; + } + &.embed { background: transparent; margin: 0; diff --git a/app/javascript/styles/mastodon/stream_entries.scss b/app/javascript/styles/mastodon/stream_entries.scss index a35bbee79..e11ca29d9 100644 --- a/app/javascript/styles/mastodon/stream_entries.scss +++ b/app/javascript/styles/mastodon/stream_entries.scss @@ -65,6 +65,10 @@ } } + .media-gallery__gifv__label { + bottom: 9px; + } + .status.light { padding: 14px 14px 14px (48px + 14px * 2); position: relative; @@ -258,12 +262,12 @@ .media-spoiler { background: $ui-primary-color; color: $white; - transition: all 100ms linear; + transition: all 40ms linear; &:hover, &:active, &:focus { - background: darken($ui-primary-color, 5%); + background: darken($ui-primary-color, 2%); color: unset; } } |