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.
 
 
 
 

361 lines
5.7 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. }
  14. span.hint {
  15. display: block;
  16. color: $ui-primary-color;
  17. font-size: 12px;
  18. margin-top: 4px;
  19. }
  20. p.hint {
  21. margin-bottom: 15px;
  22. }
  23. strong {
  24. font-weight: 500;
  25. }
  26. .label_input {
  27. display: flex;
  28. label {
  29. flex: 0 0 auto;
  30. width: 100px;
  31. }
  32. input {
  33. flex: 1 1 auto;
  34. }
  35. }
  36. .input.file,
  37. .input.select,
  38. .input.radio_buttons {
  39. padding: 15px 0;
  40. margin-bottom: 0;
  41. label {
  42. font-family: inherit;
  43. font-size: 16px;
  44. color: $primary-text-color;
  45. display: block;
  46. padding-top: 5px;
  47. }
  48. }
  49. .fields-group {
  50. margin-bottom: 25px;
  51. }
  52. .input.radio_buttons .radio label {
  53. margin-bottom: 5px;
  54. font-family: inherit;
  55. font-size: 14px;
  56. color: $primary-text-color;
  57. display: block;
  58. width: auto;
  59. }
  60. .input.boolean {
  61. margin-bottom: 5px;
  62. 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. input[type=checkbox] {
  75. position: absolute;
  76. left: 0;
  77. top: 1px;
  78. margin: 0;
  79. }
  80. .hint {
  81. padding-left: 25px;
  82. margin-left: 0;
  83. }
  84. }
  85. input[type=text],
  86. input[type=number],
  87. input[type=email],
  88. input[type=password],
  89. textarea {
  90. background: transparent;
  91. box-sizing: border-box;
  92. border: 0;
  93. border-bottom: 2px solid $ui-primary-color;
  94. border-radius: 2px 2px 0 0;
  95. padding: 7px 4px;
  96. font-size: 16px;
  97. color: $primary-text-color;
  98. display: block;
  99. width: 100%;
  100. outline: 0;
  101. font-family: inherit;
  102. resize: vertical;
  103. &:invalid {
  104. box-shadow: none;
  105. }
  106. &:focus:invalid {
  107. border-bottom-color: $error-value-color;
  108. }
  109. &:required:valid {
  110. border-bottom-color: $valid-value-color;
  111. }
  112. &:active,
  113. &:focus {
  114. border-bottom-color: $ui-highlight-color;
  115. background: rgba($base-overlay-background, 0.1);
  116. }
  117. }
  118. .input.field_with_errors {
  119. label {
  120. color: $error-value-color;
  121. }
  122. input[type=text],
  123. input[type=email],
  124. input[type=password] {
  125. border-bottom-color: $error-value-color;
  126. }
  127. .error {
  128. display: block;
  129. font-weight: 500;
  130. color: $error-value-color;
  131. margin-top: 4px;
  132. }
  133. }
  134. .actions {
  135. margin-top: 30px;
  136. display: flex;
  137. }
  138. button,
  139. .button,
  140. .block-button {
  141. display: block;
  142. width: 100%;
  143. border: 0;
  144. border-radius: 4px;
  145. background: $ui-highlight-color;
  146. color: $primary-text-color;
  147. font-size: 18px;
  148. line-height: inherit;
  149. height: auto;
  150. padding: 10px;
  151. text-transform: uppercase;
  152. text-decoration: none;
  153. text-align: center;
  154. box-sizing: border-box;
  155. cursor: pointer;
  156. font-weight: 500;
  157. outline: 0;
  158. margin-bottom: 10px;
  159. margin-right: 10px;
  160. &:last-child {
  161. margin-right: 0;
  162. }
  163. &:hover {
  164. background-color: lighten($ui-highlight-color, 5%);
  165. }
  166. &:active,
  167. &:focus {
  168. position: relative;
  169. top: 1px;
  170. background-color: darken($ui-highlight-color, 5%);
  171. }
  172. &.negative {
  173. background: $error-value-color;
  174. &:hover {
  175. background-color: lighten($error-value-color, 5%);
  176. }
  177. &:active,
  178. &:focus {
  179. background-color: darken($error-value-color, 5%);
  180. }
  181. }
  182. }
  183. select {
  184. font-size: 16px;
  185. }
  186. }
  187. .flash-message {
  188. background: $ui-base-color;
  189. color: $ui-primary-color;
  190. border-radius: 4px;
  191. padding: 15px 10px;
  192. margin-bottom: 30px;
  193. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  194. text-align: center;
  195. strong {
  196. font-weight: 500;
  197. }
  198. }
  199. .form-footer {
  200. margin-top: 30px;
  201. text-align: center;
  202. a {
  203. color: $primary-text-color;
  204. text-decoration: none;
  205. &:hover {
  206. text-decoration: underline;
  207. }
  208. }
  209. }
  210. .oauth-prompt,
  211. .follow-prompt {
  212. margin-bottom: 30px;
  213. text-align: center;
  214. color: $ui-primary-color;
  215. h2 {
  216. font-size: 16px;
  217. margin-bottom: 30px;
  218. }
  219. strong {
  220. color: $ui-secondary-color;
  221. font-weight: 500;
  222. }
  223. }
  224. .qr-wrapper {
  225. display: flex;
  226. }
  227. .qr-code {
  228. flex: 0 0 auto;
  229. background: $simple-background-color;
  230. padding: 4px;
  231. margin-bottom: 20px;
  232. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  233. display: inline-block;
  234. svg {
  235. display: block;
  236. margin: 0;
  237. }
  238. }
  239. .qr-alternative {
  240. margin-left: 10px;
  241. color: $ui-primary-color;
  242. samp {
  243. display: block;
  244. font-size: 14px;
  245. }
  246. }
  247. .table-form {
  248. p {
  249. max-width: 400px;
  250. margin-bottom: 15px;
  251. strong {
  252. font-weight: 500;
  253. }
  254. }
  255. .warning {
  256. max-width: 400px;
  257. box-sizing: border-box;
  258. background: rgba($error-value-color, 0.5);
  259. color: $primary-text-color;
  260. text-shadow: 1px 1px 0 rgba($base-shadow-color, 0.3);
  261. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.4);
  262. border-radius: 4px;
  263. padding: 10px;
  264. margin-bottom: 15px;
  265. a {
  266. color: $primary-text-color;
  267. text-decoration: underline;
  268. &:hover,
  269. &:focus,
  270. &:active {
  271. text-decoration: none;
  272. }
  273. }
  274. strong {
  275. font-weight: 600;
  276. display: block;
  277. margin-bottom: 5px;
  278. .fa {
  279. font-weight: 400;
  280. }
  281. }
  282. }
  283. }
  284. .action-pagination {
  285. display: flex;
  286. align-items: center;
  287. .actions,
  288. .pagination {
  289. flex: 1 1 auto;
  290. }
  291. .actions {
  292. padding: 30px 0;
  293. padding-right: 20px;
  294. flex: 0 0 auto;
  295. }
  296. }
  297. .user_filtered_languages {
  298. li {
  299. float: left;
  300. width: 50%;
  301. }
  302. }