index.module.less 3.2 KB

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