The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

187 rader
2.9 KiB

  1. .form-container {
  2. max-width: 400px;
  3. padding: 20px;
  4. margin: 0 auto;
  5. }
  6. .simple_form {
  7. .input {
  8. margin-bottom: 15px;
  9. }
  10. .input.file {
  11. padding: 15px 0;
  12. margin-bottom: 0;
  13. label {
  14. font-family: 'Roboto';
  15. font-size: 16px;
  16. color: #fff;
  17. width: 100px;
  18. display: inline-block;
  19. }
  20. input[type=file] {
  21. width: 280px;
  22. }
  23. }
  24. .fields-group {
  25. margin-bottom: 25px;
  26. }
  27. .input.boolean {
  28. margin-bottom: 5px;
  29. label {
  30. font-family: 'Roboto';
  31. font-size: 14px;
  32. color: #9baec8;
  33. }
  34. input[type=checkbox] {
  35. display: inline-block;
  36. margin-bottom: -13px;
  37. }
  38. }
  39. input[type=text], input[type=email], input[type=password], textarea {
  40. background: transparent;
  41. border: 0;
  42. border-bottom: 2px solid #9baec8;
  43. padding: 7px 0;
  44. font-size: 16px;
  45. color: #fff;
  46. display: block;
  47. width: 100%;
  48. outline: 0;
  49. font-family: 'Roboto';
  50. &:invalid {
  51. box-shadow: none;
  52. }
  53. &:focus:invalid {
  54. border-bottom-color: #df405a;
  55. }
  56. &:required:valid {
  57. border-bottom-color: #79bd9a;
  58. }
  59. &:active, &:focus {
  60. border-bottom-color: #2b90d9;
  61. }
  62. }
  63. .input.field_with_errors {
  64. input[type=text], input[type=email], input[type=password] {
  65. border-bottom-color: #df405a;
  66. }
  67. .error {
  68. font-weight: 500;
  69. color: #df405a;
  70. }
  71. }
  72. code {
  73. display: block;
  74. font-family: 'Roboto Mono', monospace;
  75. font-weight: 400;
  76. font-size: 12px;
  77. margin-top: 20px;
  78. background: #282c37;
  79. border-radius: 4px;
  80. padding: 2px;
  81. word-wrap: break-word;
  82. }
  83. .actions {
  84. margin-top: 30px;
  85. }
  86. button {
  87. display: block;
  88. width: 100%;
  89. border: 0;
  90. border-radius: 4px;
  91. background: #2b90d9;
  92. color: #fff;
  93. font-size: 18px;
  94. padding: 10px;
  95. text-transform: uppercase;
  96. cursor: pointer;
  97. font-weight: 500;
  98. outline: 0;
  99. margin-bottom: 10px;
  100. &:hover {
  101. background-color: lighten(#2b90d9, 5%);
  102. }
  103. &:active, &:focus {
  104. position: relative;
  105. top: 1px;
  106. background-color: darken(#2b90d9, 5%);
  107. }
  108. &.negative {
  109. background: #df405a;
  110. &:hover {
  111. background-color: lighten(#df405a, 5%);
  112. }
  113. &:active, &:focus {
  114. background-color: darken(#df405a, 5%);
  115. }
  116. }
  117. }
  118. }
  119. .flash-message {
  120. background: #282c37;
  121. color: #9baec8;
  122. border-radius: 4px;
  123. padding: 15px 10px;
  124. margin-bottom: 30px;
  125. box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  126. text-align: center;
  127. strong {
  128. font-weight: 500;
  129. }
  130. }
  131. .form-footer {
  132. margin-top: 30px;
  133. text-align: center;
  134. a {
  135. color: #9baec8;
  136. text-decoration: none;
  137. &:hover {
  138. color: #d9e1e8;
  139. text-decoration: underline;
  140. }
  141. }
  142. }
  143. .oauth-prompt {
  144. margin-bottom: 30px;
  145. text-align: center;
  146. color: #9baec8;
  147. h2 {
  148. font-size: 16px;
  149. margin-bottom: 30px;
  150. }
  151. strong {
  152. color: #d9e1e8;
  153. font-weight: 500;
  154. }
  155. }