Skip to content

Commit

Permalink
copy jwplayer css to src/bento/jwplayer (#37476)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyajones committed Jan 27, 2022
1 parent da7ed1f commit fb7b4b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-system/compile/bundles.config.bento.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{
"name": "jwplayer",
"version": "1.0",
"options": {}
"options": {
"hasCss": true
}
}
]
17 changes: 17 additions & 0 deletions src/bento/components/jwplayer/1.0/bento-jwplayer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Pre-upgrade:
* - display:block element
* - size-defined element
*/
bento-jwplayer {
display: block;
overflow: hidden;
position: relative;
}

/* Pre-upgrade: size-defining element - hide children. */
bento-jwplayer:not(.i-amphtml-built)
> :not([placeholder]):not([slot='i-amphtml-svc']) {
display: none;
content-visibility: hidden;
}

0 comments on commit fb7b4b5

Please sign in to comment.