index.module.less 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .main{
  2. --header-height: 68px;
  3. --header-height-down: -68px;
  4. --action-bar-height: 88px;
  5. width: calc(100% - 385px);
  6. background-color: var(--live-backound-color);
  7. color: var(--live-color);
  8. display: flex;
  9. flex-direction: column;
  10. height: calc(100vh - var(--header-bar-height));
  11. overflow: hidden;
  12. position: relative;
  13. .video{
  14. width: 100%;
  15. max-height: calc(100vh - var(--header-bar-height) - var(--action-bar-height));
  16. flex: 1;
  17. background-color: var(--video-backound-color);
  18. position: relative;
  19. video{
  20. width: 100%;
  21. height: 100%;
  22. }
  23. }
  24. .headerSection {
  25. position: absolute;
  26. top: 0;
  27. right: 0;
  28. left: 0;
  29. z-index: 999;
  30. .headerAnimation {
  31. transform: translateY(0);
  32. }
  33. .headerContent{
  34. opacity: 0;
  35. animation-name: header-down;
  36. animation-duration: 0.5s;
  37. animation-fill-mode: forwards;
  38. animation-delay: 0.1s;
  39. }
  40. }
  41. .header-top {
  42. opacity: 0;
  43. animation-name: header-up;
  44. animation-duration: 0.5s;
  45. animation-fill-mode: forwards;
  46. animation-delay: 0.1s;
  47. }
  48. @keyframes header-up {
  49. 0% {
  50. transform: translateY(0);
  51. opacity: 0;
  52. }
  53. 100% {
  54. transform: translateY(var(--header-height-down));
  55. opacity: 1;
  56. }
  57. }
  58. @keyframes header-down {
  59. 0% {
  60. transform: translateY(var(--header-height-down));
  61. opacity: 0;
  62. }
  63. 100% {
  64. transform: translateY(0);
  65. opacity: 1;
  66. }
  67. }
  68. }