index.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .uppy-Dashboard-FileCard {
  2. width: 100%;
  3. height: 100%;
  4. position: absolute;
  5. top: 0;
  6. left: 0;
  7. right: 0;
  8. bottom: 0;
  9. z-index: $zIndex-5;
  10. box-shadow: 0px 0px 10px 4px rgba($black, 0.1);
  11. background-color: $white;
  12. // For Safari, otherwise there is no border-radius in FileCard.
  13. border-radius: 5px;
  14. .uppy-DashboardContent-bar {
  15. border-top-left-radius: 5px;
  16. border-top-right-radius: 5px;
  17. }
  18. .uppy-Dashboard-FileCard-actions {
  19. border-bottom-left-radius: 5px;
  20. border-bottom-right-radius: 5px;
  21. }
  22. display: flex;
  23. flex-direction: column;
  24. }
  25. .uppy-Dashboard-FileCard-inner {
  26. height: 100%;
  27. flex-grow: 1;
  28. flex-shrink: 1;
  29. // For Firefox in order for flex-shrink: 1 to work properly! (https://github.com/philipwalton/flexbugs/issues/41#issuecomment-111590394)
  30. min-height: 0;
  31. display: flex;
  32. flex-direction: column;
  33. }
  34. .uppy-Dashboard-FileCard-preview {
  35. height: 60%;
  36. flex-grow: 0;
  37. flex-shrink: 1;
  38. // For Firefox in order for flex-shrink: 1 to work properly!
  39. min-height: 0;
  40. border-bottom: 1px solid $gray-200;
  41. // center the nested image/preview
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. [data-uppy-theme="dark"] & {
  46. background-color: $gray-800;
  47. border-bottom: 0;
  48. }
  49. }
  50. .uppy-Dashboard-FileCard-preview img.uppy-Dashboard-Item-previewImg {
  51. max-width: 90%;
  52. max-height: 90%;
  53. object-fit: cover;
  54. // For IE11, otherwise image aspect ration will get screwed.
  55. flex: 0 0 auto;
  56. border-radius: 3px;
  57. box-shadow: 0px 3px 20px rgba($black, 0.15);
  58. }
  59. // ...uppy-Dashboard-FileCard-preview|
  60. .uppy-Dashboard-FileCard-info {
  61. height: 40%;
  62. flex-grow: 0;
  63. flex-shrink: 0;
  64. padding: 30px 20px 20px 20px;
  65. overflow-y: auto;
  66. -webkit-overflow-scrolling: touch;
  67. [data-uppy-theme="dark"] & {
  68. background-color: $gray-900;
  69. }
  70. }
  71. .uppy-Dashboard-FileCard-fieldset {
  72. font-size: 0;
  73. border: 0;
  74. padding: 0;
  75. max-width: 640px;
  76. margin: auto;
  77. margin-bottom: 12px;
  78. }
  79. .uppy-Dashboard-FileCard-label {
  80. display: inline-block;
  81. vertical-align: middle;
  82. width: 22%;
  83. font-size: 12px;
  84. color: $gray-700;
  85. .uppy-size--md & {
  86. font-size: 14px;
  87. }
  88. [data-uppy-theme="dark"] & {
  89. color: $gray-200;
  90. }
  91. }
  92. .uppy-Dashboard-FileCard-input {
  93. display: inline-block;
  94. vertical-align: middle;
  95. width: 78%;
  96. }
  97. // ...uppy-Dashboard-FileCard-fieldset|
  98. // ...uppy-Dashboard-FileCard-info|
  99. .uppy-Dashboard-FileCard-actions {
  100. height: 55px;
  101. flex-shrink: 0;
  102. flex-grow: 0;
  103. border-top: 1px solid $gray-200;
  104. padding: 0 15px;
  105. background-color: $gray-50;
  106. display: flex;
  107. align-items: center;
  108. .uppy-size--md & {
  109. height: 65px;
  110. }
  111. [data-uppy-theme="dark"] & {
  112. border-top: 1px solid $gray-800;
  113. background-color: $gray-900;
  114. }
  115. }
  116. .uppy-Dashboard-FileCard-actionsBtn {
  117. margin-right: 10px;
  118. }
  119. // ...uppy-Dashboard-FileCard-actions|
  120. // ...uppy-Dashboard-FileCard-inner|
  121. // ...uppy-Dashboard-FileCard|