Container.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2017 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * >>
  19. */
  20. @import '~assets/less/variable';
  21. :global {
  22. .display {
  23. &-container {
  24. flex: 1;
  25. display: flex;
  26. flex-direction: column;
  27. overflow: hidden;
  28. }
  29. &-slide {
  30. width: 100%;
  31. height: 100%;
  32. position: relative;
  33. box-shadow: @block-active-box-shadow;
  34. transform-origin: 0 0;
  35. transition: all ease-in 200ms;
  36. &-background {
  37. flex: 1;
  38. &-grid {
  39. background: url('~assets/images/grid.png') repeat;
  40. }
  41. }
  42. &-layer {
  43. position: absolute;
  44. user-select: none;
  45. display: flex;
  46. flex-direction: column;
  47. &-editing:hover:after {
  48. content: ' ';
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. width: 100%;
  53. height: 100%;
  54. display: block;
  55. background: rgba(0, 192, 222, 0.2);
  56. z-index: 999990;
  57. }
  58. &-selected:after {
  59. content: ' ';
  60. position: absolute;
  61. top: 0;
  62. left: 0;
  63. width: 100%;
  64. height: 100%;
  65. display: block;
  66. background: rgba(0, 192, 222, 0.3);
  67. z-index: 999990;
  68. border: 2px solid @border-color-base;
  69. }
  70. & > * {
  71. flex: 1;
  72. }
  73. & > span:last-child {
  74. z-index: 999999;
  75. }
  76. & > span:nth-last-child(2) {
  77. z-index: 999999;
  78. }
  79. &-tools {
  80. display: none;
  81. position: absolute;
  82. right: 8px;
  83. z-index: 999998;
  84. i {
  85. color: #fff;
  86. font-size: 16px;
  87. line-height: 40px;
  88. display: inline-block;
  89. cursor: pointer;
  90. transition: transform 200ms ease;
  91. &:hover {
  92. transform: scale(1.1, 1.1);
  93. }
  94. }
  95. }
  96. &:hover &-tools {
  97. display: inline-block;
  98. }
  99. &-tooltips {
  100. display: none;
  101. position: absolute;
  102. top: -40px;
  103. left: 0;
  104. z-index: 999998;
  105. font-size: 24px;
  106. color: #fff;
  107. background-color: @black;
  108. padding: 0 8px;
  109. border-radius: 4px;
  110. .ellipsis;
  111. }
  112. &:hover &-tooltips {
  113. display: block;
  114. }
  115. &-editor {
  116. border-radius: @border-radius-base;
  117. .richtext {
  118. &-toolbar {
  119. border: @border-width-base @border-style-base @border-color-base;
  120. user-select: none;
  121. border-radius: 4px;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. &-slide-baseline {
  128. position: absolute;
  129. z-index: 999999;
  130. }
  131. &-bottom {
  132. height: 40px;
  133. border: 1px solid @border-color-base;
  134. background-color: @white;
  135. box-shadow: @block-active-box-shadow;
  136. flex-shrink: 0;
  137. display: flex;
  138. flex-direction: row;
  139. justify-content: space-between;
  140. &-screenshot {
  141. display: flex;
  142. align-items: center;
  143. padding-left: 28px;
  144. i {
  145. font-size: 24px;
  146. cursor: pointer;
  147. &:hover {
  148. transform: scale(1.2, 1.2);
  149. }
  150. }
  151. }
  152. &-slider-wrapper {
  153. width: 240px;
  154. padding: 0 10px;
  155. flex-shrink: 0;
  156. display: flex;
  157. flex-direction: row;
  158. align-items: center;
  159. label {
  160. width: 40px;
  161. }
  162. i {
  163. flex-shrink: 0;
  164. margin: 0 8px;
  165. color: @disabled-text-color;
  166. font-size: 18px;
  167. cursor: pointer;
  168. }
  169. }
  170. &-slider {
  171. flex: 1;
  172. }
  173. }
  174. }
  175. }