forms.scss 5.1 KB

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