Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.0 KiB

  1. .wrapper {
  2. max-width: 680px;
  3. margin: 60px auto;
  4. padding: 0 20px;
  5. }
  6. .youtube {
  7. background-color: #000;
  8. margin-bottom: 30px;
  9. position: relative;
  10. padding-top: 56.25%;
  11. overflow: hidden;
  12. cursor: pointer;
  13. }
  14. .youtube img {
  15. width: 100%;
  16. top: -16.82%;
  17. left: 0;
  18. opacity: 0.7;
  19. }
  20. .play-button {
  21. width: 90px;
  22. height: 60px;
  23. background-color: #333;
  24. box-shadow: 0 0 30px rgba( 0,0,0,0.6 );
  25. z-index: 1;
  26. opacity: 0.8;
  27. border-radius: 6px;
  28. }
  29. .play-button:before {
  30. content: "";
  31. border-style: solid;
  32. border-width: 15px 0 15px 26.0px;
  33. border-color: transparent transparent transparent #fff;
  34. }
  35. .youtube img,
  36. .play-button {
  37. cursor: pointer;
  38. }
  39. .youtube img,
  40. .youtube iframe,
  41. .play-button,
  42. .play-button:before {
  43. position: absolute;
  44. }
  45. .play-button,
  46. .play-button:before {
  47. top: 50%;
  48. left: 50%;
  49. transform: translate3d( -50%, -50%, 0 );
  50. }
  51. .youtube iframe {
  52. height: 100%;
  53. width: 100%;
  54. top: 0;
  55. left: 0;
  56. }