Form.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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-setting-form {
  23. margin: 8px;
  24. .ant-form-item {
  25. margin-bottom: 0;
  26. }
  27. .ant-card + .ant-card {
  28. margin-top: -1px;
  29. }
  30. .ant-card-small > .ant-card-body {
  31. padding: 8px 8px 8px 20px;
  32. }
  33. &-palette {
  34. font-size: 24px;
  35. }
  36. &-img {
  37. position: absolute;
  38. top: 0;
  39. left: 0;
  40. width: 100%;
  41. height: 100%;
  42. img {
  43. display: block;
  44. position: absolute;
  45. top: 50%;
  46. left: 50%;
  47. transform: translate(-50%, -50%);
  48. max-width: 100%;
  49. max-height: 100%;
  50. }
  51. }
  52. .ant-input-number {
  53. width: 72px;
  54. }
  55. .ant-upload {
  56. display: block;
  57. height: 155px;
  58. position: relative;
  59. border: 1px dashed @border-color-base;
  60. border-radius: 3px;
  61. cursor: pointer;
  62. i {
  63. display: none;
  64. position: absolute;
  65. top: 50%;
  66. left: 50%;
  67. transform: translate(-50%, -50%);
  68. font-size: 36px;
  69. color: @light-text-color;
  70. }
  71. &:hover i {
  72. display: block;
  73. }
  74. }
  75. }
  76. }