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.

102 lines
2.9 KiB

4 years ago
  1. .upload {
  2. display: flex;
  3. align-items: center;
  4. justify-content: center;
  5. flex-direction: column;
  6. border: 2px dashed rgba(21, 141, 247, 0.3);
  7. border-radius: 4px;
  8. height: 120px;
  9. cursor: pointer; }
  10. .upload .upload-placeholder {
  11. color: rgba(21, 141, 247, 0.5);
  12. font-style: italic;
  13. font-size: 0.875em; }
  14. .upload:hover, .upload.is-upload-hover {
  15. border-color: rgba(21, 141, 247, 0.35);
  16. background-color: rgba(21, 141, 247, 0.05); }
  17. .upload.is-upload-error {
  18. border-color: rgba(238, 36, 85, 0.35);
  19. background-color: rgba(238, 36, 85, 0.05); }
  20. .upload-target {
  21. background-color: rgba(21, 141, 247, 0.02);
  22. border: 1px solid rgba(21, 141, 247, 0.1);
  23. padding: 4px 8px; }
  24. .upload-target:empty {
  25. padding: 0;
  26. border: none; }
  27. .upload-target .upload-item {
  28. display: flex;
  29. font-size: 0.875em;
  30. border-bottom: 1px solid rgba(17, 17, 19, 0.05);
  31. padding-top: 4px;
  32. padding-bottom: 4px; }
  33. .upload-target .upload-item .close {
  34. margin-top: 2px;
  35. margin-right: 4px; }
  36. .upload-target .upload-item em {
  37. font-style: normal;
  38. color: rgba(17, 17, 19, 0.5);
  39. font-size: 0.75em;
  40. margin-left: 4px; }
  41. .upload-target .upload-item:last-child {
  42. border-bottom-color: transparent; }
  43. .upload-box {
  44. margin-right: -16px;
  45. margin-bottom: -16px; }
  46. .upload-box:after {
  47. content: '';
  48. display: table;
  49. clear: both; }
  50. .upload-box .upload-item {
  51. float: left;
  52. width: 120px;
  53. height: 120px;
  54. border: 2px dashed rgba(21, 141, 247, 0.3);
  55. background-color: #fff;
  56. cursor: pointer;
  57. border-radius: 6px;
  58. position: relative;
  59. font-size: 0;
  60. line-height: 0;
  61. margin-right: 16px;
  62. margin-bottom: 16px; }
  63. .upload-box .upload-item.is-uploaded {
  64. border-style: solid;
  65. border-color: rgba(21, 141, 247, 0.35); }
  66. .upload-box .upload-item img {
  67. position: relative;
  68. z-index: 2;
  69. object-fit: cover;
  70. height: 100%;
  71. width: 100%;
  72. border-radius: 6px; }
  73. .upload-box .upload-item .close {
  74. position: absolute;
  75. z-index: 3;
  76. top: -4px;
  77. right: -8px;
  78. background-color: #ee2455;
  79. color: #fff;
  80. opacity: 1; }
  81. .upload-box .upload-item .close:hover {
  82. background-color: #111113; }
  83. .upload-box .upload-item:after {
  84. position: absolute;
  85. z-index: 1;
  86. top: 50%;
  87. left: 50%;
  88. margin-left: -12px;
  89. margin-top: -20px;
  90. content: '+';
  91. font-size: 40px;
  92. line-height: 1;
  93. font-weight: normal;
  94. color: rgba(21, 141, 247, 0.5); }
  95. .upload-box .upload-item:hover, .upload-box .upload-item.is-upload-hover {
  96. border-color: rgba(21, 141, 247, 0.35);
  97. background-color: rgba(21, 141, 247, 0.05); }
  98. .upload-box .upload-item.is-upload-error {
  99. border-color: rgba(238, 36, 85, 0.35);
  100. background-color: rgba(238, 36, 85, 0.05); }