Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

upload.scss 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. div.DTE div.editor_upload {
  2. padding-top: 4px;
  3. div.eu_table {
  4. display: table;
  5. width: 100%;
  6. }
  7. div.row {
  8. display: table-row;
  9. }
  10. div.cell {
  11. display: table-cell;
  12. position: relative;
  13. width: 50%;
  14. vertical-align: top;
  15. }
  16. div.cell + div.cell {
  17. padding-left: 10px;
  18. }
  19. div.row + div.row {
  20. div.cell {
  21. padding-top: 10px;
  22. }
  23. }
  24. button.btn,
  25. input[type=file] {
  26. width: 100%;
  27. height: 2.3em;
  28. font-size: 0.8em;
  29. text-align: center;
  30. line-height: 1em;
  31. }
  32. input[type=file] {
  33. position: absolute;
  34. top: 0;
  35. left: 0;
  36. width: 100%;
  37. opacity: 0;
  38. }
  39. div.drop {
  40. position: relative;
  41. box-sizing: border-box;
  42. width: 100%;
  43. height: 100%;
  44. border: 3px dashed #ccc;
  45. border-radius: 6px;
  46. min-height: 4em;
  47. color: #999;
  48. padding-top: 3px;
  49. text-align: center;
  50. &.over {
  51. border: 3px dashed #111;
  52. color: #111;
  53. }
  54. span {
  55. max-width: 75%;
  56. font-size: 0.85em;
  57. line-height: 1em;
  58. }
  59. }
  60. div.rendered {
  61. img {
  62. max-width: 8em;
  63. margin: 0 auto;
  64. }
  65. }
  66. &.noDrop {
  67. div.drop {
  68. display: none;
  69. }
  70. div.row.second {
  71. display: none;
  72. }
  73. div.rendered {
  74. margin-top: 10px;
  75. }
  76. }
  77. &.noClear {
  78. div.clearValue button {
  79. display: none;
  80. }
  81. }
  82. &.multi {
  83. div.cell {
  84. display: block;
  85. width: 100%;
  86. div.drop {
  87. min-height: 0;
  88. padding-bottom: 5px;
  89. }
  90. }
  91. div.clearValue {
  92. display: none;
  93. }
  94. ul {
  95. list-style-type: none;
  96. margin: 0;
  97. padding: 0;
  98. li {
  99. position: relative;
  100. margin-top: 0.5em;
  101. &:first-child {
  102. margin-top: 0;
  103. }
  104. img {
  105. vertical-align: middle;
  106. }
  107. button {
  108. position: absolute;
  109. width: 40px;
  110. right: 0;
  111. top: 50%;
  112. margin-top: -1.5em;
  113. }
  114. }
  115. }
  116. }
  117. }