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.

377 lines
5.9 KiB

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