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.

328 lines
5.0 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, .input.radio_buttons {
  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.radio_buttons .radio label {
  51. margin-bottom: 5px;
  52. font-family: inherit;
  53. font-size: 14px;
  54. color: white;
  55. display: block;
  56. width: auto;
  57. }
  58. .input.boolean {
  59. margin-bottom: 5px;
  60. label {
  61. font-family: inherit;
  62. font-size: 14px;
  63. color: white;
  64. display: block;
  65. width: auto;
  66. }
  67. label.checkbox {
  68. position: relative;
  69. padding-left: 25px;
  70. flex: 1 1 auto;
  71. }
  72. input[type=checkbox] {
  73. position: absolute;
  74. left: 0;
  75. top: 1px;
  76. margin: 0;
  77. }
  78. .hint {
  79. padding-left: 25px;
  80. margin-left: 0;
  81. }
  82. }
  83. input[type=text], input[type=number], input[type=email], input[type=password], textarea {
  84. background: transparent;
  85. box-sizing: border-box;
  86. border: 0;
  87. border-bottom: 2px solid $color3;
  88. border-radius: 2px 2px 0 0;
  89. padding: 7px 4px;
  90. font-size: 16px;
  91. color: $color5;
  92. display: block;
  93. width: 100%;
  94. outline: 0;
  95. font-family: inherit;
  96. resize: vertical;
  97. &:invalid {
  98. box-shadow: none;
  99. }
  100. &:focus:invalid {
  101. border-bottom-color: $color6;
  102. }
  103. &:required:valid {
  104. border-bottom-color: $color7;
  105. }
  106. &:active, &:focus {
  107. border-bottom-color: $color4;
  108. background: rgba($color8, 0.1);
  109. }
  110. }
  111. .input.field_with_errors {
  112. label {
  113. color: $color6;
  114. }
  115. input[type=text], input[type=email], input[type=password] {
  116. border-bottom-color: $color6;
  117. }
  118. .error {
  119. display: block;
  120. font-weight: 500;
  121. color: $color6;
  122. margin-top: 4px;
  123. }
  124. }
  125. .actions {
  126. margin-top: 30px;
  127. }
  128. button, .block-button {
  129. display: block;
  130. width: 100%;
  131. border: 0;
  132. border-radius: 4px;
  133. background: $color4;
  134. color: $color5;
  135. font-size: 18px;
  136. padding: 10px;
  137. text-transform: uppercase;
  138. text-decoration: none;
  139. text-align: center;
  140. box-sizing: border-box;
  141. cursor: pointer;
  142. font-weight: 500;
  143. outline: 0;
  144. margin-bottom: 10px;
  145. &:hover {
  146. background-color: lighten($color4, 5%);
  147. }
  148. &:active, &:focus {
  149. position: relative;
  150. top: 1px;
  151. background-color: darken($color4, 5%);
  152. }
  153. &.negative {
  154. background: $color6;
  155. &:hover {
  156. background-color: lighten($color6, 5%);
  157. }
  158. &:active, &:focus {
  159. background-color: darken($color6, 5%);
  160. }
  161. }
  162. }
  163. select {
  164. font-size: 16px;
  165. }
  166. }
  167. .flash-message {
  168. background: $color1;
  169. color: $color3;
  170. border-radius: 4px;
  171. padding: 15px 10px;
  172. margin-bottom: 30px;
  173. box-shadow: 0 0 5px rgba($color8, 0.2);
  174. text-align: center;
  175. strong {
  176. font-weight: 500;
  177. }
  178. }
  179. .form-footer {
  180. margin-top: 30px;
  181. text-align: center;
  182. a {
  183. color: $color5;
  184. text-decoration: none;
  185. &:hover {
  186. text-decoration: underline;
  187. }
  188. }
  189. }
  190. .oauth-prompt, .follow-prompt {
  191. margin-bottom: 30px;
  192. text-align: center;
  193. color: $color3;
  194. h2 {
  195. font-size: 16px;
  196. margin-bottom: 30px;
  197. }
  198. strong {
  199. color: $color2;
  200. font-weight: 500;
  201. }
  202. }
  203. .qr-wrapper {
  204. display: flex;
  205. }
  206. .qr-code {
  207. flex: 0 0 auto;
  208. background: #fff;
  209. padding: 4px;
  210. margin-bottom: 20px;
  211. box-shadow: 0 0 15px rgba($color8, 0.2);
  212. display: inline-block;
  213. svg {
  214. display: block;
  215. margin: 0;
  216. }
  217. }
  218. .qr-alternative {
  219. margin-left: 10px;
  220. color: $color3;
  221. samp {
  222. display: block;
  223. font-size: 14px;
  224. }
  225. }
  226. .table-form {
  227. p {
  228. max-width: 400px;
  229. margin-bottom: 15px;
  230. strong {
  231. font-weight: 500;
  232. }
  233. }
  234. .warning {
  235. max-width: 400px;
  236. box-sizing: border-box;
  237. background: rgba($color6, 0.5);
  238. color: $color5;
  239. text-shadow: 1px 1px 0 rgba($color8, 0.3);
  240. box-shadow: 0 2px 6px rgba($color8, 0.4);
  241. border-radius: 4px;
  242. padding: 10px;
  243. margin-bottom: 15px;
  244. a {
  245. color: $color5;
  246. text-decoration: underline;
  247. &:hover, &:focus, &:active {
  248. text-decoration: none;
  249. }
  250. }
  251. strong {
  252. font-weight: 600;
  253. display: block;
  254. margin-bottom: 5px;
  255. .fa {
  256. font-weight: 400;
  257. }
  258. }
  259. }
  260. }
  261. .action-pagination {
  262. display: flex;
  263. align-items: center;
  264. .actions, .pagination {
  265. flex: 1 1 auto;
  266. }
  267. .actions {
  268. padding: 30px 0;
  269. padding-right: 20px;
  270. flex: 0 0 auto;
  271. }
  272. }