upload.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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-color: #444;
  25. background-image: -webkit-linear-gradient(top, rgb(75, 75, 75), rgb(45, 45, 45));
  26. background-image: -moz-linear-gradient(top, rgb(75, 75, 75), rgb(45, 45, 45));
  27. background-image: -ms-linear-gradient(top, rgb(75, 75, 75), rgb(45, 45, 45));
  28. background-image: linear-gradient(top, rgb(75, 75, 75), rgb(45, 45, 45));
  29. border-radius: 5px;
  30. 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);
  31. /* Animation */
  32. -webkit-animation-name: moveUp;
  33. -webkit-animation-duration: .3s;
  34. -webkit-animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
  35. -moz-animation-name: moveUp;
  36. -moz-animation-duration: .3s;
  37. -moz-animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
  38. animation-name: moveUp;
  39. animation-duration: .3s;
  40. animation-timing-function: cubic-bezier(0.51,.92,.24,1.15);
  41. }
  42. /* Header ------------------------------------------------*/
  43. .upload_message h1 {
  44. float: left;
  45. width: 100%;
  46. padding: 12px 0px;
  47. color: #fff;
  48. font-size: 16px;
  49. font-weight: bold;
  50. text-shadow: 0px -1px 0px #222;
  51. text-align: center;
  52. }
  53. .upload_message .close {
  54. position: absolute;
  55. top: 0px;
  56. right: 0px;
  57. padding: 11px 14px 6px 7px;
  58. color: #aaa;
  59. font-size: 20px;
  60. text-shadow: 0px -1px 0px #222;
  61. cursor: pointer;
  62. }
  63. .upload_message .close:hover {
  64. color: #fff;
  65. }
  66. /* Rows ------------------------------------------------*/
  67. .upload_message .rows {
  68. float: left;
  69. margin: 3px 8px 8px 8px;
  70. width: calc(100% - 16px);
  71. height: 300px;
  72. background-color: rgba(0, 0, 0, .5);
  73. overflow: hidden;
  74. overflow-y: scroll;
  75. border-radius: 3px;
  76. box-shadow: inset 0px 0px 3px rgba(0, 0, 0, .8);
  77. }
  78. /* Row ------------------------------------------------*/
  79. .upload_message .rows .row {
  80. float: left;
  81. display: inline-block;
  82. padding: 8px 0px;
  83. width: 100%;
  84. background-color: rgba(255, 255, 255, .02);
  85. }
  86. .upload_message .rows .row:nth-child(2n) {
  87. background-color: rgba(255, 255, 255, 0);
  88. }
  89. .upload_message .rows .row a.name {
  90. float: left;
  91. width: 70%;
  92. padding: 5px 10px;
  93. color: #fff;
  94. font-size: 14px;
  95. white-space: nowrap;
  96. overflow: hidden;
  97. }
  98. .upload_message .rows .row a.status {
  99. float: right;
  100. padding: 5px 10px;
  101. color: rgba(255, 255, 255, .5);
  102. font-size: 14px;
  103. }
  104. .upload_message .rows .row a.status {
  105. -webkit-animation-name: pulse;
  106. -webkit-animation-duration: 2s;
  107. -webkit-animation-timing-function: ease-in-out;
  108. -webkit-animation-iteration-count: infinite;
  109. -moz-animation-name: pulse;
  110. -moz-animation-duration: 2s;
  111. -moz-animation-timing-function: ease-in-out;
  112. -moz-animation-iteration-count: infinite;
  113. animation-name: pulse;
  114. animation-duration: 2s;
  115. animation-timing-function: ease-in-out;
  116. animation-iteration-count: infinite;
  117. }
  118. .upload_message .rows .row a.status.error,
  119. .upload_message .rows .row a.status.success {
  120. -webkit-animation: none;
  121. -moz-animation: none;
  122. animation: none;
  123. }
  124. .upload_message .rows .row a.status.error {
  125. color: rgb(213, 24, 24);
  126. }
  127. .upload_message .rows .row a.status.success {
  128. color: rgb(42, 213, 0);
  129. }