闭社主体 forked from https://github.com/tootsuite/mastodon
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.

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