The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

584 rader
9.4 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. @each $lang in $cjk-langs {
  42. &:lang(#{$lang}) {
  43. font-weight: 700;
  44. }
  45. }
  46. }
  47. .label_input {
  48. display: flex;
  49. label {
  50. flex: 0 0 auto;
  51. }
  52. input {
  53. flex: 1 1 auto;
  54. }
  55. }
  56. .input.with_label {
  57. padding: 15px 0;
  58. margin-bottom: 0;
  59. .label_input {
  60. flex-wrap: wrap;
  61. align-items: flex-start;
  62. }
  63. &.select .label_input {
  64. align-items: initial;
  65. }
  66. .label_input > label {
  67. font-family: inherit;
  68. font-size: 16px;
  69. color: $primary-text-color;
  70. display: block;
  71. padding-top: 5px;
  72. margin-bottom: 5px;
  73. flex: 1;
  74. min-width: 150px;
  75. word-wrap: break-word;
  76. &.select {
  77. flex: 0;
  78. }
  79. & ~ * {
  80. margin-left: 10px;
  81. }
  82. }
  83. ul {
  84. flex: 390px;
  85. }
  86. &.boolean {
  87. padding: initial;
  88. margin-bottom: initial;
  89. .label_input > label {
  90. font-family: inherit;
  91. font-size: 14px;
  92. color: $primary-text-color;
  93. display: block;
  94. width: auto;
  95. }
  96. label.checkbox {
  97. position: relative;
  98. padding-left: 25px;
  99. flex: 1 1 auto;
  100. }
  101. }
  102. }
  103. .input.with_block_label {
  104. & > label {
  105. font-family: inherit;
  106. font-size: 16px;
  107. color: $primary-text-color;
  108. display: block;
  109. padding-top: 5px;
  110. }
  111. .hint {
  112. margin-bottom: 15px;
  113. }
  114. li {
  115. float: left;
  116. width: 50%;
  117. }
  118. }
  119. .fields-group {
  120. margin-bottom: 25px;
  121. }
  122. .input.radio_buttons .radio label {
  123. margin-bottom: 5px;
  124. font-family: inherit;
  125. font-size: 14px;
  126. color: $primary-text-color;
  127. display: block;
  128. width: auto;
  129. }
  130. .input.boolean {
  131. margin-bottom: 5px;
  132. label {
  133. font-family: inherit;
  134. font-size: 14px;
  135. color: $primary-text-color;
  136. display: block;
  137. width: auto;
  138. }
  139. label.checkbox {
  140. position: relative;
  141. padding-left: 25px;
  142. flex: 1 1 auto;
  143. }
  144. input[type=checkbox] {
  145. position: absolute;
  146. left: 0;
  147. top: 5px;
  148. margin: 0;
  149. }
  150. .hint {
  151. padding-left: 25px;
  152. margin-left: 0;
  153. }
  154. }
  155. .check_boxes {
  156. .checkbox {
  157. label {
  158. font-family: inherit;
  159. font-size: 14px;
  160. color: $primary-text-color;
  161. display: block;
  162. width: auto;
  163. position: relative;
  164. padding-top: 5px;
  165. padding-left: 25px;
  166. flex: 1 1 auto;
  167. }
  168. input[type=checkbox] {
  169. position: absolute;
  170. left: 0;
  171. top: 5px;
  172. margin: 0;
  173. }
  174. }
  175. }
  176. input[type=text],
  177. input[type=number],
  178. input[type=email],
  179. input[type=password],
  180. textarea {
  181. background: transparent;
  182. box-sizing: border-box;
  183. border: 0;
  184. border-bottom: 2px solid $ui-primary-color;
  185. border-radius: 2px 2px 0 0;
  186. padding: 7px 4px;
  187. font-size: 16px;
  188. color: $primary-text-color;
  189. display: block;
  190. width: 100%;
  191. outline: 0;
  192. font-family: inherit;
  193. resize: vertical;
  194. &:invalid {
  195. box-shadow: none;
  196. }
  197. &:focus:invalid {
  198. border-bottom-color: $error-value-color;
  199. }
  200. &:required:valid {
  201. border-bottom-color: $valid-value-color;
  202. }
  203. &:active,
  204. &:focus {
  205. border-bottom-color: $ui-highlight-color;
  206. background: rgba($base-overlay-background, 0.1);
  207. }
  208. }
  209. .input.field_with_errors {
  210. label {
  211. color: $error-value-color;
  212. }
  213. input[type=text],
  214. input[type=email],
  215. input[type=password] {
  216. border-bottom-color: $error-value-color;
  217. }
  218. .error {
  219. display: block;
  220. font-weight: 500;
  221. color: $error-value-color;
  222. margin-top: 4px;
  223. }
  224. }
  225. .actions {
  226. margin-top: 30px;
  227. display: flex;
  228. &.actions--top {
  229. margin-top: 0;
  230. margin-bottom: 30px;
  231. }
  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. @each $lang in $cjk-langs {
  338. &:lang(#{$lang}) {
  339. font-weight: 700;
  340. }
  341. }
  342. }
  343. @media screen and (max-width: 740px) and (min-width: 441px) {
  344. margin-top: 40px;
  345. }
  346. }
  347. .form-footer {
  348. margin-top: 30px;
  349. text-align: center;
  350. a {
  351. color: $ui-primary-color;
  352. text-decoration: none;
  353. &:hover {
  354. text-decoration: underline;
  355. }
  356. }
  357. }
  358. .oauth-prompt,
  359. .follow-prompt {
  360. margin-bottom: 30px;
  361. text-align: center;
  362. color: $ui-primary-color;
  363. h2 {
  364. font-size: 16px;
  365. margin-bottom: 30px;
  366. }
  367. strong {
  368. color: $ui-secondary-color;
  369. font-weight: 500;
  370. @each $lang in $cjk-langs {
  371. &:lang(#{$lang}) {
  372. font-weight: 700;
  373. }
  374. }
  375. }
  376. @media screen and (max-width: 740px) and (min-width: 441px) {
  377. margin-top: 40px;
  378. }
  379. }
  380. .qr-wrapper {
  381. display: flex;
  382. flex-wrap: wrap;
  383. align-items: flex-start;
  384. }
  385. .qr-code {
  386. flex: 0 0 auto;
  387. background: $simple-background-color;
  388. padding: 4px;
  389. margin: 0 10px 20px 0;
  390. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  391. display: inline-block;
  392. svg {
  393. display: block;
  394. margin: 0;
  395. }
  396. }
  397. .qr-alternative {
  398. margin-bottom: 20px;
  399. color: $ui-secondary-color;
  400. flex: 150px;
  401. samp {
  402. display: block;
  403. font-size: 14px;
  404. }
  405. }
  406. .table-form {
  407. p {
  408. margin-bottom: 15px;
  409. strong {
  410. font-weight: 500;
  411. @each $lang in $cjk-langs {
  412. &:lang(#{$lang}) {
  413. font-weight: 700;
  414. }
  415. }
  416. }
  417. }
  418. }
  419. .simple_form,
  420. .table-form {
  421. .warning {
  422. box-sizing: border-box;
  423. background: rgba($error-value-color, 0.5);
  424. color: $primary-text-color;
  425. text-shadow: 1px 1px 0 rgba($base-shadow-color, 0.3);
  426. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.4);
  427. border-radius: 4px;
  428. padding: 10px;
  429. margin-bottom: 15px;
  430. a {
  431. color: $primary-text-color;
  432. text-decoration: underline;
  433. &:hover,
  434. &:focus,
  435. &:active {
  436. text-decoration: none;
  437. }
  438. }
  439. strong {
  440. font-weight: 600;
  441. display: block;
  442. margin-bottom: 5px;
  443. @each $lang in $cjk-langs {
  444. &:lang(#{$lang}) {
  445. font-weight: 700;
  446. }
  447. }
  448. .fa {
  449. font-weight: 400;
  450. }
  451. }
  452. }
  453. }
  454. .action-pagination {
  455. display: flex;
  456. flex-wrap: wrap;
  457. align-items: center;
  458. .actions,
  459. .pagination {
  460. flex: 1 1 auto;
  461. }
  462. .actions {
  463. padding: 30px 0;
  464. padding-right: 20px;
  465. flex: 0 0 auto;
  466. }
  467. }
  468. .post-follow-actions {
  469. text-align: center;
  470. color: $ui-primary-color;
  471. div {
  472. margin-bottom: 4px;
  473. }
  474. }
  475. .alternative-login {
  476. margin-top: 20px;
  477. margin-bottom: 20px;
  478. h4 {
  479. font-size: 16px;
  480. color: $ui-base-lighter-color;
  481. text-align: center;
  482. margin-bottom: 20px;
  483. border: 0;
  484. padding: 0;
  485. }
  486. .button {
  487. display: block;
  488. }
  489. }