闭社主体 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.

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