doctors_carousel.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .body {
  2. margin: 0;
  3. padding: 0;
  4. width: 100%;
  5. height: 42.53vw;
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. padding: 30px 10px;
  10. transition: background 0.4s ease-in;
  11. }
  12. input[type=radio] {
  13. display: none;
  14. }
  15. .card {
  16. position: absolute;
  17. width: 33.697vw;
  18. height: 33.697vw;
  19. left: 0;
  20. right: 0;
  21. margin: auto;
  22. transition: transform 0.4s ease;
  23. cursor: pointer;
  24. }
  25. .container {
  26. width: 66.467vw;
  27. height: 50.872vw;
  28. transform-style: preserve-3d;
  29. display: flex;
  30. justify-content: center;
  31. flex-direction: column;
  32. align-items: center;
  33. }
  34. .cards {
  35. /* position: relative; */
  36. width: 100%;
  37. height: 33.697vw;
  38. margin-bottom: 1.636vw;
  39. }
  40. .img_doc {
  41. width: 33.697vw;
  42. height: 33.697vw;
  43. border-radius: 2.726vw;
  44. object-fit: cover;
  45. }
  46. #item-1:checked ~ .cards #doc-3, #item-2:checked ~ .cards #doc-1, #item-3:checked ~ .cards #doc-2 {
  47. transform: translatex(-40%) scale(0.8);
  48. opacity: 0.4;
  49. z-index: 0;
  50. }
  51. #item-1:checked ~ .cards #doc-2, #item-2:checked ~ .cards #doc-3, #item-3:checked ~ .cards #doc-1 {
  52. transform: translatex(40%) scale(0.8);
  53. opacity: 0.4;
  54. z-index: 0;
  55. }
  56. #item-1:checked ~ .cards #doc-1, #item-2:checked ~ .cards #doc-2, #item-3:checked ~ .cards #doc-3 {
  57. transform: translatex(0) scale(1);
  58. opacity: 1;
  59. z-index: 1;
  60. }
  61. #item-1:checked ~ .cards #doc-1 img, #item-2:checked ~ .cards #doc-2 img, #item-3:checked ~ .cards #doc-3 img {
  62. box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
  63. }
  64. .player {
  65. background-color: #DEEAEC;
  66. border-radius: 2.726vw;
  67. min-width: 33.697vw;
  68. padding: 16px 10px;
  69. height: 7.197vw;
  70. font-family: "Commissioner-SemiBold", Helvetica;
  71. }
  72. .upper-part {
  73. position: relative;
  74. display: flex;
  75. align-items: center;
  76. margin-top: 0.654vw;
  77. height: 5.016vw;
  78. overflow: hidden;
  79. }
  80. .song-info {
  81. width: 100%;
  82. display: block;
  83. align-items: center;
  84. text-align: center;
  85. }
  86. .song-info .title {
  87. color: #403d40;
  88. font-size: 1.745vw;
  89. line-height: 2,94vw;
  90. width: 100%;
  91. margin-top: 0.8vw;
  92. margin-bottom: 0.526vw;
  93. }
  94. .sub-line {
  95. display: flex;
  96. width: 100%;
  97. }
  98. .subtitle {
  99. font-size: 1.527vw;
  100. line-height: 2,036vw;
  101. color: #97B8A5;
  102. width: 100%;
  103. text-align: center;
  104. margin-bottom: 0.654vw;
  105. }
  106. .info-area {
  107. width: 100%;
  108. position: absolute;
  109. top: 0;
  110. transition: transform 0.4s ease-in;
  111. }
  112. #item-2:checked ~ .player #test {
  113. transform: translateY(0);
  114. }
  115. #item-2:checked ~ .player #test {
  116. transform: translateY(-5.781vw);
  117. }
  118. #item-3:checked ~ .player #test {
  119. transform: translateY(-11.562vw);
  120. }