index.module.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. .globalTools {
  2. &.isPlay {
  3. .iconTools,
  4. .expendTools {
  5. opacity: 0.4;
  6. }
  7. }
  8. &.isHidden {
  9. .iconTools,
  10. .expendTools {
  11. opacity: 0;
  12. display: none;
  13. }
  14. }
  15. .mask {
  16. position: fixed;
  17. left: 0;
  18. right: 0;
  19. top: 0;
  20. bottom: 0;
  21. background-color: transparent;
  22. z-index: 2998;
  23. }
  24. .iconTools,
  25. .expendTools {
  26. position: fixed;
  27. right: -2px;
  28. top: 0;
  29. transform: translateY(var(--toolTranslateY));
  30. // margin-top: -29px;
  31. z-index: 2999;
  32. // padding: 0 5px;
  33. background: rgba(0, 0, 0, 0.4);
  34. border-radius: 200px 0px 0px 200px;
  35. border: 2px solid rgba(255, 255, 255, 0.3);
  36. border-right-width: 0;
  37. cursor: pointer;
  38. font-size: 0;
  39. // transition: transform 0.2s ease;
  40. img {
  41. padding: 5px 8px;
  42. width: 24px;
  43. height: 24px;
  44. box-sizing: content-box;
  45. -moz-user-select: none;
  46. /* 火狐浏览器 */
  47. -webkit-user-drag: none;
  48. /* 谷歌、Safari和Opera浏览器 */
  49. -webkit-user-select: none;
  50. /* 谷歌、Safari和Opera浏览器 */
  51. -ms-user-select: none;
  52. /* IE10+浏览器 */
  53. user-select: none;
  54. /* 通用 */
  55. -webkit-touch-callout: none;
  56. /* iOS Safari */
  57. &:hover {
  58. opacity: 0.8;
  59. }
  60. }
  61. }
  62. .iconTools {
  63. // transition-delay: 0.2s;
  64. }
  65. .expendTools {
  66. // transform: translateX(100%);
  67. display: none;
  68. img {
  69. cursor: pointer;
  70. padding-left: 12px;
  71. padding-right: 12px;
  72. }
  73. .iconWhiteboard {
  74. // margin: 0 30px;
  75. padding-left: 8px;
  76. padding-right: 8px;
  77. }
  78. .iconArrow {
  79. padding: 7px 12px;
  80. width: 18px;
  81. height: 18px;
  82. }
  83. }
  84. .hideTools {
  85. // transition: transform 0.2s ease;
  86. transform: translateY(var(--toolTranslateY));
  87. display: none;
  88. }
  89. .showTools {
  90. // transition: transform 0.2s ease;
  91. // transition-delay: 0.2s;
  92. transform: translateY(var(--toolTranslateY));
  93. display: flex;
  94. align-items: center;
  95. }
  96. }