form.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. font-family: 'Lato', sans-serif;
  48. }
  49. html, body {
  50. margin: 0;
  51. padding: 0;
  52. font-weight: 300;
  53. height: 100%;
  54. background: #053777;
  55. color: #fff;
  56. font-size: 16px;
  57. overflow: hidden;
  58. background: -moz-linear-gradient(top, #053777 0%, #00659b 100%);
  59. /* FF3.6+ */
  60. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #053777), color-stop(100%, #00659b));
  61. /* Chrome,Safari4+ */
  62. background: -webkit-linear-gradient(top, #053777 0%, #00659b 100%);
  63. /* Chrome10+,Safari5.1+ */
  64. background: -o-linear-gradient(top, #053777 0%, #00659b 100%);
  65. /* Opera 11.10+ */
  66. background: -ms-linear-gradient(top, #053777 0%, #00659b 100%);
  67. /* IE10+ */
  68. background: linear-gradient(to bottom, #053777 0%, #00659b 100%);
  69. /* W3C */
  70. }
  71. h1 {
  72. text-align: center;
  73. margin: 50px auto;
  74. font-weight: 100;
  75. }
  76. label {
  77. font-weight: 500;
  78. display: block;
  79. margin: 4px 0;
  80. text-transform: uppercase;
  81. font-size: 13px;
  82. overflow: hidden;
  83. }
  84. label span {
  85. float: right;
  86. text-transform: none;
  87. font-weight: 200;
  88. line-height: 1em;
  89. font-style: italic;
  90. opacity: 0.8;
  91. }
  92. .form-controll {
  93. display: block;
  94. padding: 8px 16px;
  95. width: 100%;
  96. font-size: 16px;
  97. background-color: rgba(255, 255, 255, 0.2);
  98. border: 1px solid rgba(255, 255, 255, 0.3);
  99. color: #fff;
  100. font-weight: 200;
  101. }
  102. .form-controll:focus {
  103. outline: 2px solid rgba(255, 255, 255, 0.5);
  104. outline: -webkit-focus-ring-color auto 5px;
  105. }
  106. button {
  107. padding: 8px 30px;
  108. background: rgba(255, 255, 255, 0.8);
  109. color: #053777;
  110. text-transform: uppercase;
  111. font-weight: 600;
  112. font-size: 11px;
  113. border: 0;
  114. text-shadow: 0 1px 2px #fff;
  115. cursor: pointer;
  116. }
  117. .form-group {
  118. max-width: 500px;
  119. margin: auto;
  120. margin-bottom: 30px;
  121. }
  122. .back-to-article {
  123. color: #fff;
  124. text-transform: uppercase;
  125. font-size: 12px;
  126. position: absolute;
  127. right: 20px;
  128. top: 20px;
  129. text-decoration: none;
  130. display: inline-block;
  131. background: rgba(0, 0, 0, 0.6);
  132. padding: 10px 18px;
  133. transition: all 0.3s ease-in-out;
  134. opacity: 0.6;
  135. }
  136. .back-to-article:hover {
  137. opacity: 1;
  138. background: rgba(0, 0, 0, 0.8);
  139. }
  140. option{
  141. background: rgba(54, 102, 152);
  142. }