index.module.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .Tab1 {
  2. width: 100%;
  3. height: 100%;
  4. background-color: #837b68;
  5. :global {
  6. .Tab1main {
  7. width: 100%;
  8. height: 100%;
  9. padding: 60px 40px 40px;
  10. .Tab1main1 {
  11. height: 100%;
  12. .t1Tit {
  13. font-weight: 700;
  14. font-size: 24px;
  15. color: var(--themeColor);
  16. text-align: center;
  17. }
  18. .videoBox {
  19. margin-top: 40px;
  20. width: 100%;
  21. height: calc(100% - 160px);
  22. display: flex;
  23. flex-wrap: wrap;
  24. .videoRow {
  25. flex-shrink: 0;
  26. width: calc(20% - 30px);
  27. margin: 20px 15px;
  28. height: 40%;
  29. cursor: pointer;
  30. display: flex;
  31. flex-direction: column;
  32. background-color: #fff;
  33. padding: 10px;
  34. border-radius: 6px;
  35. &>div {
  36. width: 100%;
  37. height: calc(100% - 40px);
  38. position: relative;
  39. // 阴影
  40. .maskPlay {
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 100%;
  46. background-color: rgba(0, 0, 0, .4);
  47. color: #fff;
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. font-size: 60px;
  52. }
  53. &>video {
  54. position: absolute;
  55. // top: 50%;
  56. // transform: translateY(-50%);
  57. // left: 0;
  58. width: 100%;
  59. height: 100%;
  60. max-width: 100%;
  61. max-height: 100%;
  62. object-fit: fill;
  63. }
  64. &>img {
  65. width: 100%;
  66. height: 100%;
  67. // object-fit: contain !important;
  68. }
  69. }
  70. p {
  71. flex: 1;
  72. display: inline-block;
  73. font-size: 16px;
  74. text-align: center;
  75. padding: 0 5px;
  76. margin-top: 10px;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. white-space: nowrap;
  80. color: #47392C;
  81. // color: #fff;
  82. }
  83. &:hover {
  84. box-shadow: 1px 1px 5px 5px rgba(74, 64, 61, .8);
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }