style.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @font-face {
  2. font-family: 'Open Sans';
  3. font-style: normal;
  4. font-weight: 300;
  5. }
  6. @font-face {
  7. font-family: 'Open Sans';
  8. font-style: normal;
  9. font-weight: 400;
  10. }
  11. @font-face {
  12. font-family: 'Open Sans';
  13. font-style: normal;
  14. font-weight: 600;
  15. }
  16. * {
  17. -webkit-box-sizing: border-box;
  18. -moz-box-sizing: border-box;
  19. box-sizing: border-box;
  20. }
  21. body {
  22. padding: 20px;
  23. background: #1a1a1a;
  24. color: #DDD;
  25. font-family: "Open Sans", sans-serif;
  26. font-size: 17px;
  27. font-weight: 400;
  28. }
  29. .progress-container, .progress {
  30. border-radius: 20px;
  31. }
  32. .progress-container {
  33. width: 40px;
  34. height: 40px;
  35. border: solid 1px #111;
  36. background: #151515;
  37. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  38. margin: 0 auto;
  39. position: relative;
  40. overflow: hidden;
  41. }
  42. .progress-container.done {
  43. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 2px #0c8112;
  44. }
  45. .progress-container.done .progress {
  46. background: #0f9816;
  47. }
  48. .progress-container.done .progress-overlay {
  49. display: none;
  50. }
  51. .progress, .progress-overlay {
  52. position: absolute;
  53. }
  54. .progress {
  55. padding-left:50px;
  56. background: #114baf;
  57. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  58. z-index: 1;
  59. bottom: 0;
  60. text-align: center;
  61. color: #151515;
  62. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  63. font-weight: bold;
  64. transition: background 250ms ease;
  65. }
  66. @keyframes uploadarrow {
  67. 0% {
  68. bottom: 0%;
  69. border-bottom-color: rgba(255, 255, 255, 0);
  70. }
  71. 50% {
  72. border-bottom-color: rgba(255, 255, 255, 0.1);
  73. }
  74. 100% {
  75. bottom: 100%;
  76. border-bottom-color: rgba(255, 255, 255, 0);
  77. }
  78. }
  79. @-webkit-keyframes uploadarrow {
  80. 0% {
  81. bottom: 0%;
  82. border-bottom-color: rgba(255, 255, 255, 0);
  83. }
  84. 50% {
  85. border-bottom-color: rgba(255, 255, 255, 0.1);
  86. }
  87. 100% {
  88. bottom: 100%;
  89. border-bottom-color: rgba(255, 255, 255, 0);
  90. }
  91. }
  92. .progress-overlay {
  93. z-index: 2;
  94. width: 0;
  95. height: 100%;
  96. bottom: 0;
  97. left: 15px;
  98. border: solid 20px transparent;
  99. border-width: 0 25px 20px 25px;
  100. border-bottom-color: rgba(255, 255, 255, 0.25);
  101. -webkit-animation: uploadarrow 900ms infinite ease-out;
  102. -moz-animation: uploadarrow 900ms infinite linear;
  103. -o-animation: uploadarrow 900ms infinite linear;
  104. animation: uploadarrow 900ms infinite linear;
  105. }