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.

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