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.

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