index.module.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. .noteMove {
  2. position: absolute;
  3. &::before{
  4. content: '';
  5. position: absolute;
  6. left: -4px;
  7. right: -4px;
  8. bottom: -4px;
  9. top: -4px;
  10. border-radius: 2px;
  11. background-color: rgba(0, 0, 0, .3);
  12. }
  13. }
  14. .activeModel{
  15. &::before{
  16. background-color: rgba(255,145,0,.3);
  17. }
  18. }
  19. .toolBox {
  20. position: fixed;
  21. left: 0;
  22. top: 30%;
  23. padding: 8px;
  24. background: rgba(0, 0, 0, .3);
  25. border-radius: 4px;
  26. display: flex;
  27. flex-direction: column;
  28. z-index: 9999;
  29. backdrop-filter: blur(10px);
  30. &>div,
  31. &>button {
  32. margin: 4px 0;
  33. }
  34. }
  35. .moveDisabled{
  36. .noteMove{
  37. display: none;
  38. }
  39. }
  40. .hideTool {
  41. transform: translateX(-120%);
  42. }
  43. .rightHideIcon {
  44. width: 15px;
  45. height: 30px;
  46. position: absolute;
  47. left: 0;
  48. top: 50%;
  49. z-index: 10;
  50. cursor: pointer;
  51. transition: all 0.5s;
  52. transform: rotate(180deg);
  53. }
  54. .editToolBox {
  55. position: fixed;
  56. left: 0;
  57. top: 0;
  58. width: 100%;
  59. background: rgba(0, 0, 0, 0.5);
  60. z-index: 999999;
  61. display: flex;
  62. align-items: center;
  63. justify-content: flex-end;
  64. padding: 14PX 30PX;
  65. pointer-events: none;
  66. min-height: 58PX;
  67. .editItem {
  68. display: flex;
  69. align-items: center;
  70. padding: 5PX 12PX;
  71. background: rgba(255,255,255,0.2);
  72. border-radius: 20PX;
  73. margin-left: 18PX;
  74. cursor: pointer;
  75. pointer-events: all;
  76. &:active {
  77. opacity: .5;
  78. }
  79. img {
  80. width: 18PX;
  81. height: 18PX;
  82. margin-right: 6PX;
  83. }
  84. span {
  85. font-size: 14PX;
  86. color: #fff;
  87. }
  88. }
  89. .extraItem {
  90. margin-left: 18PX;
  91. display: flex;
  92. align-items: center;
  93. justify-content: space-between;
  94. padding: 5PX 12PX;
  95. background: rgba(255,255,255,0.2);
  96. border-radius: 20PX;
  97. position: relative;
  98. width: 76PX;
  99. box-sizing: border-box;
  100. cursor: pointer;
  101. pointer-events: all;
  102. img {
  103. width: 18PX;
  104. height: 18PX;
  105. cursor: pointer;
  106. &:active {
  107. opacity: .5;
  108. }
  109. }
  110. &::before {
  111. content: "";
  112. position: absolute;
  113. left: 50%;
  114. top: 50%;
  115. transform: translate(-50%,-50%);
  116. width: 1PX;
  117. height: 20PX;
  118. background: rgba(255,255,255,0.3);
  119. z-index: 1;
  120. }
  121. }
  122. .disabled {
  123. opacity: .5;
  124. pointer-events: none;
  125. }
  126. }
  127. .itemDisabled {
  128. .editItem {
  129. opacity: .5;
  130. pointer-events: none;
  131. }
  132. .canEdit {
  133. opacity: 1;
  134. pointer-events: visible;
  135. }
  136. }