index.module.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. img {
  101. width: 18PX;
  102. height: 18PX;
  103. cursor: pointer;
  104. &:active {
  105. opacity: .5;
  106. }
  107. }
  108. &::before {
  109. content: "";
  110. position: absolute;
  111. left: 50%;
  112. top: 50%;
  113. transform: translate(-50%,-50%);
  114. width: 1PX;
  115. height: 20PX;
  116. background: rgba(255,255,255,0.3);
  117. z-index: 1;
  118. }
  119. }
  120. .disabled {
  121. opacity: .5;
  122. pointer-events: none;
  123. }
  124. }
  125. .itemDisabled {
  126. .editItem {
  127. opacity: .5;
  128. pointer-events: none;
  129. }
  130. .canEdit {
  131. opacity: 1;
  132. pointer-events: visible;
  133. }
  134. }