Skip to content

Commit

Permalink
Bump onebox version.
Browse files Browse the repository at this point in the history
- Add a placeholder icon for Twitch onebox preview
- Add CSS for showing fontawesome play icon for placeholder class
  • Loading branch information
arpitjalan committed Jun 26, 2019
1 parent 39b856d commit 2af4002
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -46,7 +46,7 @@ gem 'redis-namespace'

gem 'active_model_serializers', '~> 0.8.3'

gem 'onebox', '1.8.92'
gem 'onebox', '1.8.93'

gem 'http_accept_language', '~>2.0.5', require: false

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -238,7 +238,7 @@ GEM
omniauth-twitter (1.4.0)
omniauth-oauth (~> 1.1)
rack
onebox (1.8.92)
onebox (1.8.93)
htmlentities (~> 4.3)
moneta (~> 1.0)
multi_json (~> 1.11)
Expand Down Expand Up @@ -486,7 +486,7 @@ DEPENDENCIES
omniauth-oauth2
omniauth-openid
omniauth-twitter
onebox (= 1.8.92)
onebox (= 1.8.93)
openid-redis-store
parallel_tests
pg
Expand Down
9 changes: 9 additions & 0 deletions app/assets/stylesheets/common/base/onebox.scss
Expand Up @@ -581,3 +581,12 @@ aside.onebox.stackexchange .onebox-body {
height: 100%;
}
}

.onebox-video-placeholder {
&:before {
opacity: 0.8;
content: svg-uri(
'<svg width="128px" height="128px" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5-103 385.5-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103zm384 823q32-18 32-55t-32-55l-544-320q-31-19-64-1-32 19-32 56v640q0 37 32 56 16 8 32 8 17 0 32-9z"/></svg>'
);
}
}

0 comments on commit 2af4002

Please sign in to comment.