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.
 
 
 
 

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