dragResize.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .vdr {
  2. box-sizing: border-box;
  3. border: solid 1px transparent;
  4. &:hover {
  5. & > .move-stick {
  6. visibility: visible;
  7. }
  8. }
  9. & > div{
  10. height: 100%;
  11. }
  12. & > .move-stick {
  13. visibility: hidden;
  14. position: absolute;
  15. bottom: calc(100% + 1px);
  16. left: calc(50% - 25px);
  17. width: 50px;
  18. height: 26px;
  19. background-color: #ffffff;
  20. box-shadow: 0px 6px 8px 0px
  21. rgba(96, 96, 97, 0.15);
  22. border-radius: 6px;
  23. text-align: center;
  24. z-index: 5;
  25. }
  26. &.active:before{
  27. content: '';
  28. width: 100%;
  29. height: 100%;
  30. position: absolute;
  31. top: 0;
  32. left: 0;
  33. box-sizing: border-box;
  34. outline: 1px dashed #565658;
  35. }
  36. &:hover{
  37. border: dotted 1px #d6d6d6
  38. }
  39. .vdr-stick {
  40. box-sizing: border-box;
  41. position: absolute;
  42. border-radius: 2px;
  43. font-size: 1px;
  44. background: #ffffff;
  45. z-index: 2;
  46. & > i {
  47. position: relative;
  48. top: -3px;
  49. left: 1px;
  50. }
  51. &.not-resizable{
  52. display: none;
  53. }
  54. }
  55. &.inactive>.vdr-stick {
  56. display: none;
  57. }
  58. }
  59. .vdr-stick-tl, .vdr-stick-br {
  60. cursor: nwse-resize;
  61. }
  62. .vdr-stick-tm, .vdr-stick-bm {
  63. left: 50%;
  64. cursor: ns-resize;
  65. }
  66. .vdr-stick-tr, .vdr-stick-bl {
  67. cursor: nesw-resize;
  68. }
  69. .vdr-stick-ml, .vdr-stick-mr {
  70. top: 50%;
  71. cursor: ew-resize;
  72. }
  73. .vdr .set-icon{
  74. position: absolute;
  75. top: 0;
  76. left: 0;
  77. z-index: 10;
  78. background: #E0E0E0;
  79. width: 20px;
  80. height: 20px;
  81. cursor: pointer;
  82. border-bottom-right-radius: 20px;
  83. display: none;
  84. i{
  85. margin-left: 2px;
  86. color: white;
  87. font-size: 10px;
  88. }
  89. &:hover{
  90. background: #5873D7;
  91. }
  92. }
  93. .vdr:hover .set-icon{
  94. display: inline-block;
  95. }
  96. .set-position{
  97. padding: 8px;
  98. span{
  99. display: inline-block;
  100. vertical-align: middle;
  101. }
  102. input{
  103. width: 65px;
  104. height: 32px;
  105. }
  106. p{
  107. display: inline-block;
  108. width: 80px;
  109. height: 32px;
  110. line-height: 32px;
  111. padding-left: 4px;
  112. color: #000;
  113. border: solid 1px #AAAAAA;
  114. position: relative;
  115. top: 2px;
  116. }
  117. i{
  118. margin-left: 10px;
  119. color: #000;
  120. font-size: 15px;
  121. &:hover{
  122. color: #76BCEF;
  123. }
  124. }
  125. select{
  126. width: 80px;
  127. height: 32px;
  128. position: relative;
  129. top: 2px;
  130. }
  131. button{
  132. padding: 3px 8px;
  133. margin: 0 35px;
  134. }
  135. }