upload.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /**
  2. * @name upload.css
  3. * @author Tobias Reich
  4. * @copyright 2014 by Tobias Reich
  5. */
  6. #upload {
  7. display: none;
  8. }
  9. .upload_overlay {
  10. position: fixed;
  11. width: 100%;
  12. height: 100%;
  13. top: 0px;
  14. left: 0px;
  15. background-color: rgba(0,0,0,.85);
  16. z-index: 1000;
  17. }
  18. .upload_message {
  19. position: absolute;
  20. display: inline-block;
  21. width: 450px;
  22. margin-left: -225px;
  23. margin-top: -170px;
  24. background-image: linear-gradient(to bottom, rgb(75, 75, 75), rgb(45, 45, 45));
  25. border-radius: 5px;
  26. box-shadow: 0px 0px 5px #000, inset 0px 1px 0px rgba(255,255,255,.08), inset 1px 0px 0px rgba(255,255,255,.03), inset -1px 0px 0px rgba(255,255,255,.03);
  27. animation-name: moveUp;
  28. animation-duration: .3s;
  29. animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
  30. }
  31. /* Header ------------------------------------------------*/
  32. .upload_message h1 {
  33. float: left;
  34. width: 100%;
  35. padding: 12px 0px;
  36. color: #fff;
  37. font-size: 16px;
  38. font-weight: bold;
  39. text-shadow: 0px -1px 0px #222;
  40. text-align: center;
  41. }
  42. .upload_message .close {
  43. display: none;
  44. position: absolute;
  45. top: 0px;
  46. right: 0px;
  47. padding: 11px 14px 6px 7px;
  48. color: #aaa;
  49. font-size: 20px;
  50. text-shadow: 0px -1px 0px #222;
  51. cursor: pointer;
  52. }
  53. .upload_message .close:hover {
  54. color: #fff;
  55. }
  56. /* Rows ------------------------------------------------*/
  57. .upload_message .rows {
  58. float: left;
  59. margin: 3px 8px 8px 8px;
  60. width: calc(100% - 16px);
  61. height: 300px;
  62. background-color: rgba(0, 0, 0, .5);
  63. overflow: hidden;
  64. overflow-y: scroll;
  65. border-radius: 3px;
  66. box-shadow: inset 0px 0px 3px rgba(0, 0, 0, .8);
  67. }
  68. /* Row ------------------------------------------------*/
  69. .upload_message .rows .row {
  70. float: left;
  71. display: inline-block;
  72. padding: 8px 0px;
  73. width: 100%;
  74. background-color: rgba(255, 255, 255, .02);
  75. }
  76. .upload_message .rows .row:nth-child(2n) {
  77. background-color: rgba(255, 255, 255, 0);
  78. }
  79. .upload_message .rows .row a.name {
  80. float: left;
  81. padding: 5px 10px;
  82. width: calc(70% - 20px);
  83. color: #fff;
  84. font-size: 14px;
  85. white-space: nowrap;
  86. overflow: hidden;
  87. }
  88. .upload_message .rows .row a.status {
  89. float: left;
  90. padding: 5px 10px;
  91. width: calc(30% - 20px);
  92. color: rgba(255, 255, 255, .5);
  93. font-size: 14px;
  94. text-align: right;
  95. }
  96. .upload_message .rows .row a.status {
  97. animation-name: pulse;
  98. animation-duration: 2s;
  99. animation-timing-function: ease-in-out;
  100. animation-iteration-count: infinite;
  101. }
  102. .upload_message .rows .row a.status.error,
  103. .upload_message .rows .row a.status.success {
  104. animation: none;
  105. }
  106. .upload_message .rows .row a.status.error {
  107. color: rgb(213, 24, 24);
  108. }
  109. .upload_message .rows .row a.status.success {
  110. color: rgb(42, 213, 0);
  111. }
  112. .upload_message .rows .row p.notice {
  113. display: none;
  114. float: left;
  115. padding: 2px 10px 5px;
  116. width: calc(100% - 20px);
  117. color: rgba(255,255,255,.5);
  118. font-size: 12px;
  119. overflow: hidden;
  120. line-height: 16px;
  121. }