The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

231 lines
3.6 KiB

  1. code {
  2. font-family: 'Roboto Mono', monospace;
  3. font-weight: 400;
  4. }
  5. .form-container {
  6. max-width: 400px;
  7. padding: 20px;
  8. margin: 0 auto;
  9. p {
  10. font-size: 14px;
  11. line-height: 18px;
  12. color: $color2;
  13. margin-bottom: 20px;
  14. strong {
  15. color: $color5;
  16. font-weight: 500;
  17. }
  18. }
  19. }
  20. .simple_form {
  21. .input {
  22. margin-bottom: 15px;
  23. }
  24. .hint {
  25. display: block;
  26. color: rgba($color5, 0.8);
  27. font-size: 12px;
  28. }
  29. .input.file, .input.select {
  30. padding: 15px 0;
  31. margin-bottom: 0;
  32. display: flex;
  33. label {
  34. font-family: inherit;
  35. font-size: 16px;
  36. color: $color5;
  37. width: 100px;
  38. display: block;
  39. flex: 0 0 auto;
  40. padding-top: 5px;
  41. }
  42. input[type=file], select {
  43. flex: 1 1 auto;
  44. }
  45. }
  46. .fields-group {
  47. margin-bottom: 25px;
  48. }
  49. .input.boolean {
  50. margin-bottom: 5px;
  51. label {
  52. font-family: inherit;
  53. font-size: 14px;
  54. color: white;
  55. display: block;
  56. }
  57. label.checkbox {
  58. position: relative;
  59. padding-left: 25px;
  60. }
  61. input[type=checkbox] {
  62. position: absolute;
  63. left: 0;
  64. top: 1px;
  65. margin: 0;
  66. }
  67. .hint {
  68. padding-left: 25px;
  69. }
  70. }
  71. input[type=text], input[type=email], input[type=password], textarea {
  72. background: transparent;
  73. box-sizing: border-box;
  74. border: 0;
  75. border-bottom: 2px solid $color3;
  76. border-radius: 2px 2px 0 0;
  77. padding: 7px 4px;
  78. font-size: 16px;
  79. color: $color5;
  80. display: block;
  81. width: 100%;
  82. outline: 0;
  83. font-family: inherit;
  84. &:invalid {
  85. box-shadow: none;
  86. }
  87. &:focus:invalid {
  88. border-bottom-color: $color6;
  89. }
  90. &:required:valid {
  91. border-bottom-color: $color7;
  92. }
  93. &:active, &:focus {
  94. border-bottom-color: $color4;
  95. background: rgba($color8, 0.1);
  96. }
  97. }
  98. .input.field_with_errors {
  99. input[type=text], input[type=email], input[type=password] {
  100. border-bottom-color: $color6;
  101. }
  102. .error {
  103. font-weight: 500;
  104. color: $color6;
  105. }
  106. }
  107. .actions {
  108. margin-top: 30px;
  109. }
  110. button, .block-button {
  111. display: block;
  112. width: 100%;
  113. border: 0;
  114. border-radius: 4px;
  115. background: $color4;
  116. color: $color5;
  117. font-size: 18px;
  118. padding: 10px;
  119. text-transform: uppercase;
  120. text-decoration: none;
  121. text-align: center;
  122. box-sizing: border-box;
  123. cursor: pointer;
  124. font-weight: 500;
  125. outline: 0;
  126. margin-bottom: 10px;
  127. &:hover {
  128. background-color: lighten($color4, 5%);
  129. }
  130. &:active, &:focus {
  131. position: relative;
  132. top: 1px;
  133. background-color: darken($color4, 5%);
  134. }
  135. &.negative {
  136. background: $color6;
  137. &:hover {
  138. background-color: lighten($color6, 5%);
  139. }
  140. &:active, &:focus {
  141. background-color: darken($color6, 5%);
  142. }
  143. }
  144. }
  145. }
  146. .flash-message {
  147. background: $color1;
  148. color: $color3;
  149. border-radius: 4px;
  150. padding: 15px 10px;
  151. margin-bottom: 30px;
  152. box-shadow: 0 0 5px rgba($color8, 0.2);
  153. text-align: center;
  154. strong {
  155. font-weight: 500;
  156. }
  157. }
  158. .form-footer {
  159. margin-top: 30px;
  160. text-align: center;
  161. a {
  162. color: $color5;
  163. text-decoration: none;
  164. &:hover {
  165. text-decoration: underline;
  166. }
  167. }
  168. }
  169. .oauth-prompt, .follow-prompt {
  170. margin-bottom: 30px;
  171. text-align: center;
  172. color: $color3;
  173. h2 {
  174. font-size: 16px;
  175. margin-bottom: 30px;
  176. }
  177. strong {
  178. color: $color2;
  179. font-weight: 500;
  180. }
  181. }
  182. .qr-code {
  183. background: #fff;
  184. padding: 4px;
  185. margin-bottom: 20px;
  186. box-shadow: 0 0 15px rgba($color8, 0.2);
  187. display: inline-block;
  188. svg {
  189. display: block;
  190. margin: 0;
  191. }
  192. }