_upload.scss 2.9 KB

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