The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

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