on-compass-change.wxss 725 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .direction {
  2. position: relative;
  3. margin-top: 35px;
  4. display: flex;
  5. width: 520px;
  6. height: 520px;
  7. align-items: center;
  8. justify-content: center;
  9. }
  10. .direction-value {
  11. position: relative;
  12. font-size: 100px;
  13. color: #353535;
  14. line-height: 1;
  15. z-index: 1;
  16. }
  17. .direction-degree {
  18. position: absolute;
  19. top: 0;
  20. right: -20px;
  21. font-size: 30px;
  22. }
  23. .bg-compass{
  24. position: absolute;
  25. top: 0;
  26. left: 0;
  27. width: 520px;
  28. height: 520px;
  29. transition: .1s;
  30. }
  31. .bg-compass-line{
  32. position: absolute;
  33. left: 134px;
  34. top: -5px;
  35. width: 3px;
  36. height: 28px;
  37. background-color: #1AAD19;
  38. border-radius: 500px;
  39. z-index: 1;
  40. }
  41. .controls{
  42. margin-top: 35px;
  43. }
  44. .controls button{
  45. margin-left: 10px;
  46. float: left;
  47. }