form.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. .file-area {
  2. width: 100%;
  3. position: relative;
  4. }
  5. .file-area input[type=file] {
  6. position: absolute;
  7. width: 100%;
  8. height: 100%;
  9. top: 0;
  10. left: 0;
  11. right: 0;
  12. bottom: 0;
  13. opacity: 0;
  14. cursor: pointer;
  15. }
  16. .file-area .file-dummy {
  17. width: 100%;
  18. padding: 30px;
  19. background: rgba(255, 255, 255, 0.2);
  20. border: 2px dashed rgba(255, 255, 255, 0.2);
  21. text-align: center;
  22. transition: background 0.3s ease-in-out;
  23. }
  24. .file-area .file-dummy .success {
  25. display: none;
  26. }
  27. .file-area:hover .file-dummy {
  28. background: rgba(255, 255, 255, 0.1);
  29. }
  30. .file-area input[type=file]:focus + .file-dummy {
  31. outline: 2px solid rgba(255, 255, 255, 0.5);
  32. outline: -webkit-focus-ring-color auto 5px;
  33. }
  34. .file-area input[type=file]:valid + .file-dummy {
  35. border-color: rgba(0, 255, 0, 0.4);
  36. background-color: rgba(0, 255, 0, 0.3);
  37. }
  38. .file-area input[type=file]:valid + .file-dummy .success {
  39. display: inline-block;
  40. }
  41. .file-area input[type=file]:valid + .file-dummy .default {
  42. display: none;
  43. }
  44. /* ===================== BASIC STYLING ===================== */
  45. * {
  46. box-sizing: border-box;
  47. }
  48. html, body {
  49. margin: 0;
  50. padding: 0;
  51. font-weight: 300;
  52. height: 100%;
  53. background: #053777;
  54. color: #fff;
  55. font-size: 16px;
  56. overflow: hidden;
  57. background: -moz-linear-gradient(top, #053777 0%, #00659b 100%);
  58. /* FF3.6+ */
  59. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #053777), color-stop(100%, #00659b));
  60. /* Chrome,Safari4+ */
  61. background: -webkit-linear-gradient(top, #053777 0%, #00659b 100%);
  62. /* Chrome10+,Safari5.1+ */
  63. background: -o-linear-gradient(top, #053777 0%, #00659b 100%);
  64. /* Opera 11.10+ */
  65. background: -ms-linear-gradient(top, #053777 0%, #00659b 100%);
  66. /* IE10+ */
  67. background: linear-gradient(to bottom, #053777 0%, #00659b 100%);
  68. /* W3C */
  69. }
  70. h1 {
  71. text-align: center;
  72. margin: 50px auto;
  73. font-weight: 100;
  74. }
  75. label {
  76. font-weight: 500;
  77. display: block;
  78. margin: 4px 0;
  79. text-transform: uppercase;
  80. font-size: 13px;
  81. overflow: hidden;
  82. }
  83. label span {
  84. float: right;
  85. text-transform: none;
  86. font-weight: 200;
  87. line-height: 1em;
  88. font-style: italic;
  89. opacity: 0.8;
  90. }
  91. .form-controll {
  92. display: block;
  93. padding: 8px 16px;
  94. width: 100%;
  95. font-size: 16px;
  96. background-color: rgba(255, 255, 255, 0.2);
  97. border: 1px solid rgba(255, 255, 255, 0.3);
  98. color: #fff;
  99. font-weight: 200;
  100. }
  101. .form-controll:focus {
  102. outline: 2px solid rgba(255, 255, 255, 0.5);
  103. outline: -webkit-focus-ring-color auto 5px;
  104. }
  105. button {
  106. padding: 8px 30px;
  107. background: rgba(255, 255, 255, 0.8);
  108. color: #053777;
  109. text-transform: uppercase;
  110. font-weight: 600;
  111. font-size: 11px;
  112. border: 0;
  113. text-shadow: 0 1px 2px #fff;
  114. cursor: pointer;
  115. margin-left: 15px;
  116. margin-right: 15px;
  117. }
  118. button:disabled {
  119. background: rgba(150, 150, 150, 0.9);
  120. }
  121. .form-group {
  122. max-width: 500px;
  123. margin: auto;
  124. margin-bottom: 30px;
  125. }
  126. .back-to-article {
  127. color: #fff;
  128. text-transform: uppercase;
  129. font-size: 12px;
  130. position: absolute;
  131. right: 20px;
  132. top: 20px;
  133. text-decoration: none;
  134. display: inline-block;
  135. background: rgba(0, 0, 0, 0.6);
  136. padding: 10px 18px;
  137. transition: all 0.3s ease-in-out;
  138. opacity: 0.6;
  139. }
  140. .back-to-article:hover {
  141. opacity: 1;
  142. background: rgba(0, 0, 0, 0.8);
  143. }
  144. .go-to-editor {
  145. color: #fff;
  146. text-transform: uppercase;
  147. font-size: 12px;
  148. position: absolute;
  149. left: 20px;
  150. top: 20px;
  151. text-decoration: none;
  152. display: inline-block;
  153. background: rgba(0, 0, 0, 0.6);
  154. padding: 10px 18px;
  155. transition: all 0.3s ease-in-out;
  156. opacity: 0.6;
  157. }
  158. .go-to-editor:hover {
  159. opacity: 1;
  160. background: rgba(0, 0, 0, 0.8);
  161. }
  162. option{
  163. background: rgba(54, 102, 152);
  164. }
  165. .center{
  166. text-align: center;
  167. }