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.

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