index.module.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .rhythm{
  2. width: 100%;
  3. height: 100%;
  4. position: relative;
  5. .titImg{
  6. position: absolute;
  7. left: 30px;
  8. top: 50%;
  9. transform: translateY(-50%);
  10. width: 100px;
  11. height: 38px;
  12. background: url("./imgs/tit.png") no-repeat;
  13. background-size: 100% 100%;
  14. }
  15. .rhythmBox{
  16. position: absolute;
  17. left: 50%;
  18. top: 50%;
  19. transform: translate(-50%, -50%);
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. .rhythmImg{
  24. width: 50px;
  25. height: 50px;
  26. background: #FFFFFF;
  27. border-radius: 14px;
  28. background-size: 44px 44px;
  29. background-repeat: no-repeat;
  30. background-position: center;
  31. margin-right: 14px;
  32. &:first-child{
  33. width: 74px;
  34. height: 74px;
  35. background-size: 74px 74px;
  36. background-color: #35A8FF;
  37. border-radius: 20px;
  38. outline: 3px solid #FFFFFF;
  39. }
  40. &:last-child{
  41. margin-right: 0;
  42. }
  43. &.rhythm1{
  44. background-image: url("./imgs/1.png");
  45. }
  46. &.rhythm2{
  47. background-image: url("./imgs/2.png");
  48. }
  49. &.rhythm3{
  50. background-image: url("./imgs/3.png");
  51. }
  52. &.rhythm4{
  53. background-image: url("./imgs/4.png");
  54. }
  55. &.rhythm5{
  56. background-image: url("./imgs/5.png");
  57. }
  58. &.rhythm6{
  59. background-image: url("./imgs/6.png");
  60. }
  61. &.rhythm7{
  62. background-image: url("./imgs/7.png");
  63. }
  64. }
  65. }
  66. &.vertical{
  67. overflow: hidden;
  68. background: linear-gradient( 180deg, #AFE8FF 0%, #D9F3FE 100%);
  69. .titImg{
  70. top: 10px;
  71. left: 50%;
  72. transform: translateX(-50%);
  73. }
  74. .rhythmBox{
  75. position: initial;
  76. transform: initial;
  77. margin-top: 68px;
  78. flex-wrap: wrap;
  79. .rhythmImg{
  80. margin-bottom: 20px;
  81. width: 40px;
  82. height: 40px;
  83. border-radius: 10px;
  84. background-size: 36px 36px;
  85. &:nth-child(4){
  86. margin-right: 0;
  87. }
  88. &:nth-child(7){
  89. margin-right: 0;
  90. }
  91. &:first-child{
  92. margin-left: 20px;
  93. margin-right: 20px;
  94. width: 110px;
  95. height: 110px;
  96. background-size: 110px 110px;
  97. border-radius: 28px;
  98. outline: 4px solid #FFFFFF;
  99. }
  100. }
  101. }
  102. }
  103. }