style.css 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. body {
  2. font-size: 10px;
  3. line-height: 10px;
  4. box-sizing: border-box;
  5. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  6. transition: all 0.5s;
  7. }
  8. .container {
  9. max-width: 1200px;
  10. padding: 15px;
  11. text-align: center;
  12. }
  13. #box {
  14. width: 100%;
  15. height: 35vh;
  16. border: 1px solid #000000;
  17. display: flex;
  18. align-items: center;
  19. justify-content: center;
  20. font-size: 2em;
  21. margin: 10px 0;
  22. }
  23. img {
  24. border-radius: 50%;
  25. overflow: hidden;
  26. margin: 0 15px;
  27. cursor: pointer;
  28. }
  29. span {
  30. background-color: #fff;
  31. padding: 0 10px;
  32. line-height: 2em;
  33. margin-bottom: 10px;
  34. }
  35. .audio {
  36. padding-top: 50px;
  37. display: flex;
  38. align-items: flex-end;
  39. justify-content: center;
  40. }
  41. .volume {
  42. display: flex;
  43. flex-direction: column;
  44. align-items: center;
  45. font-size: 1.5em;
  46. line-height: 1.6em;
  47. }
  48. .btn {
  49. border: none;
  50. background-color: transparent;
  51. cursor: pointer;
  52. border-radius: 50%;
  53. overflow: hidden;
  54. }
  55. .btn img {
  56. width: 100px;
  57. }
  58. .btn .play {
  59. display: block;
  60. }
  61. .btn .stop {
  62. display: none;
  63. }
  64. .btn.active .play {
  65. display: none;
  66. }
  67. .btn.active .stop {
  68. display: block;
  69. }