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.

491 lines
7.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. color: $ui-primary-color;
  24. &.subtle-hint {
  25. text-align: center;
  26. font-size: 12px;
  27. line-height: 18px;
  28. margin-top: 15px;
  29. margin-bottom: 0;
  30. color: $ui-primary-color;
  31. a {
  32. color: $ui-highlight-color;
  33. }
  34. }
  35. }
  36. .card {
  37. margin-bottom: 15px;
  38. }
  39. strong {
  40. font-weight: 500;
  41. }
  42. .label_input {
  43. display: flex;
  44. label {
  45. flex: 0 0 auto;
  46. }
  47. input {
  48. flex: 1 1 auto;
  49. }
  50. }
  51. .input.with_label {
  52. padding: 15px 0;
  53. margin-bottom: 0;
  54. .label_input {
  55. flex-wrap: wrap;
  56. align-items: flex-start;
  57. }
  58. &.select .label_input {
  59. align-items: initial;
  60. }
  61. .label_input > label {
  62. font-family: inherit;
  63. font-size: 16px;
  64. color: $primary-text-color;
  65. display: block;
  66. padding-top: 5px;
  67. margin-bottom: 5px;
  68. flex: 1;
  69. min-width: 150px;
  70. word-wrap: break-word;
  71. &.select {
  72. flex: 0;
  73. }
  74. & ~ * {
  75. margin-left: 10px;
  76. }
  77. }
  78. ul {
  79. flex: 390px;
  80. }
  81. &.boolean {
  82. padding: initial;
  83. margin-bottom: initial;
  84. .label_input > label {
  85. font-family: inherit;
  86. font-size: 14px;
  87. color: $primary-text-color;
  88. display: block;
  89. width: auto;
  90. }
  91. label.checkbox {
  92. position: relative;
  93. padding-left: 25px;
  94. flex: 1 1 auto;
  95. }
  96. }
  97. }
  98. .input.with_block_label {
  99. & > label {
  100. font-family: inherit;
  101. font-size: 16px;
  102. color: $primary-text-color;
  103. display: block;
  104. padding-top: 5px;
  105. }
  106. .hint {
  107. margin-bottom: 15px;
  108. }
  109. li {
  110. float: left;
  111. width: 50%;
  112. }
  113. }
  114. .fields-group {
  115. margin-bottom: 25px;
  116. }
  117. .input.radio_buttons .radio label {
  118. margin-bottom: 5px;
  119. font-family: inherit;
  120. font-size: 14px;
  121. color: $primary-text-color;
  122. display: block;
  123. width: auto;
  124. }
  125. .input.boolean {
  126. margin-bottom: 5px;
  127. label {
  128. font-family: inherit;
  129. font-size: 14px;
  130. color: $primary-text-color;
  131. display: block;
  132. width: auto;
  133. }
  134. label.checkbox {
  135. position: relative;
  136. padding-left: 25px;
  137. flex: 1 1 auto;
  138. }
  139. input[type=checkbox] {
  140. position: absolute;
  141. left: 0;
  142. top: 5px;
  143. margin: 0;
  144. }
  145. .hint {
  146. padding-left: 25px;
  147. margin-left: 0;
  148. }
  149. }
  150. .check_boxes {
  151. .checkbox {
  152. label {
  153. font-family: inherit;
  154. font-size: 14px;
  155. color: $primary-text-color;
  156. display: block;
  157. width: auto;
  158. position: relative;
  159. padding-top: 5px;
  160. padding-left: 25px;
  161. flex: 1 1 auto;
  162. }
  163. input[type=checkbox] {
  164. position: absolute;
  165. left: 0;
  166. top: 5px;
  167. margin: 0;
  168. }
  169. }
  170. }
  171. input[type=text],
  172. input[type=number],
  173. input[type=email],
  174. input[type=password],
  175. textarea {
  176. background: transparent;
  177. box-sizing: border-box;
  178. border: 0;
  179. border-bottom: 2px solid $ui-primary-color;
  180. border-radius: 2px 2px 0 0;
  181. padding: 7px 4px;
  182. font-size: 16px;
  183. color: $primary-text-color;
  184. display: block;
  185. width: 100%;
  186. outline: 0;
  187. font-family: inherit;
  188. resize: vertical;
  189. &:invalid {
  190. box-shadow: none;
  191. }
  192. &:focus:invalid {
  193. border-bottom-color: $error-value-color;
  194. }
  195. &:required:valid {
  196. border-bottom-color: $valid-value-color;
  197. }
  198. &:active,
  199. &:focus {
  200. border-bottom-color: $ui-highlight-color;
  201. background: rgba($base-overlay-background, 0.1);
  202. }
  203. }
  204. .input.field_with_errors {
  205. label {
  206. color: $error-value-color;
  207. }
  208. input[type=text],
  209. input[type=email],
  210. input[type=password] {
  211. border-bottom-color: $error-value-color;
  212. }
  213. .error {
  214. display: block;
  215. font-weight: 500;
  216. color: $error-value-color;
  217. margin-top: 4px;
  218. }
  219. }
  220. .actions {
  221. margin-top: 30px;
  222. display: flex;
  223. }
  224. button,
  225. .button,
  226. .block-button {
  227. display: block;
  228. width: 100%;
  229. border: 0;
  230. border-radius: 4px;
  231. background: $ui-highlight-color;
  232. color: $primary-text-color;
  233. font-size: 18px;
  234. line-height: inherit;
  235. height: auto;
  236. padding: 10px;
  237. text-transform: uppercase;
  238. text-decoration: none;
  239. text-align: center;
  240. box-sizing: border-box;
  241. cursor: pointer;
  242. font-weight: 500;
  243. outline: 0;
  244. margin-bottom: 10px;
  245. margin-right: 10px;
  246. &:last-child {
  247. margin-right: 0;
  248. }
  249. &:hover {
  250. background-color: lighten($ui-highlight-color, 5%);
  251. }
  252. &:active,
  253. &:focus {
  254. background-color: darken($ui-highlight-color, 5%);
  255. }
  256. &.negative {
  257. background: $error-value-color;
  258. &:hover {
  259. background-color: lighten($error-value-color, 5%);
  260. }
  261. &:active,
  262. &:focus {
  263. background-color: darken($error-value-color, 5%);
  264. }
  265. }
  266. }
  267. select {
  268. font-size: 16px;
  269. }
  270. .input-with-append {
  271. position: relative;
  272. .input input {
  273. padding-right: 127px;
  274. }
  275. .append {
  276. position: absolute;
  277. right: 0;
  278. top: 0;
  279. padding: 7px 4px;
  280. padding-bottom: 9px;
  281. font-size: 16px;
  282. color: $ui-base-lighter-color;
  283. font-family: inherit;
  284. pointer-events: none;
  285. cursor: default;
  286. }
  287. }
  288. }
  289. .flash-message {
  290. background: lighten($ui-base-color, 8%);
  291. color: $ui-primary-color;
  292. border-radius: 4px;
  293. padding: 15px 10px;
  294. margin-bottom: 30px;
  295. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  296. text-align: center;
  297. strong {
  298. font-weight: 500;
  299. }
  300. }
  301. .form-footer {
  302. margin-top: 30px;
  303. text-align: center;
  304. a {
  305. color: $ui-primary-color;
  306. text-decoration: none;
  307. &:hover {
  308. text-decoration: underline;
  309. }
  310. }
  311. }
  312. .oauth-prompt,
  313. .follow-prompt {
  314. margin-bottom: 30px;
  315. text-align: center;
  316. color: $ui-primary-color;
  317. h2 {
  318. font-size: 16px;
  319. margin-bottom: 30px;
  320. }
  321. strong {
  322. color: $ui-secondary-color;
  323. font-weight: 500;
  324. }
  325. @media screen and (max-width: 740px) and (min-width: 441px) {
  326. margin-top: 40px;
  327. }
  328. }
  329. .qr-wrapper {
  330. display: flex;
  331. flex-wrap: wrap;
  332. align-items: flex-start;
  333. }
  334. .qr-code {
  335. flex: 0 0 auto;
  336. background: $simple-background-color;
  337. padding: 4px;
  338. margin: 0 10px 20px 0;
  339. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  340. display: inline-block;
  341. svg {
  342. display: block;
  343. margin: 0;
  344. }
  345. }
  346. .qr-alternative {
  347. margin-bottom: 20px;
  348. color: $ui-secondary-color;
  349. flex: 150px;
  350. samp {
  351. display: block;
  352. font-size: 14px;
  353. }
  354. }
  355. .table-form {
  356. p {
  357. margin-bottom: 15px;
  358. strong {
  359. font-weight: 500;
  360. }
  361. }
  362. }
  363. .simple_form,
  364. .table-form {
  365. .warning {
  366. box-sizing: border-box;
  367. background: rgba($error-value-color, 0.5);
  368. color: $primary-text-color;
  369. text-shadow: 1px 1px 0 rgba($base-shadow-color, 0.3);
  370. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.4);
  371. border-radius: 4px;
  372. padding: 10px;
  373. margin-bottom: 15px;
  374. a {
  375. color: $primary-text-color;
  376. text-decoration: underline;
  377. &:hover,
  378. &:focus,
  379. &:active {
  380. text-decoration: none;
  381. }
  382. }
  383. strong {
  384. font-weight: 600;
  385. display: block;
  386. margin-bottom: 5px;
  387. .fa {
  388. font-weight: 400;
  389. }
  390. }
  391. }
  392. }
  393. .action-pagination {
  394. display: flex;
  395. align-items: center;
  396. .actions,
  397. .pagination {
  398. flex: 1 1 auto;
  399. }
  400. .actions {
  401. padding: 30px 0;
  402. padding-right: 20px;
  403. flex: 0 0 auto;
  404. }
  405. }
  406. .post-follow-actions {
  407. text-align: center;
  408. color: $ui-primary-color;
  409. div {
  410. margin-bottom: 4px;
  411. }
  412. }