-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(aspect-ratio): add css custom prop for changing aspect ratio of …
…container (#108)
- Loading branch information
1 parent
0f8039b
commit 60ed512
Showing
5 changed files
with
327 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" | ||
/> | ||
<title>lite-youtube demo</title> | ||
<script type="module" src="../lite-youtube.js"></script> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
div { | ||
|
||
padding: 1rem; | ||
} | ||
body { | ||
max-width: 800px; | ||
margin: auto; | ||
} | ||
pre { | ||
width: 100%; | ||
padding: 1em; | ||
overflow-x: scroll; | ||
background-clip: z; | ||
background-color: #eee; | ||
} | ||
.styleIt { | ||
width: 400px; | ||
} | ||
#bigBlock { | ||
height: 600px; | ||
} | ||
lite-youtube { | ||
--lite-youtube-aspect-ratio: 2 / 3; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div> | ||
<h3>YouTube Short testing</h3> | ||
<pre> | ||
<style> lite-youtube { --lite-youtube-aspect-ratio: 2 / 3; } </style> | ||
<lite-youtube videoid="vMImN9gghao"></lite-youtube> | ||
</pre> | ||
</div> | ||
<lite-youtube videoid="vMImN9gghao"></lite-youtube> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.