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.

379 lines
6.4 KiB

  1. @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,400italic);
  2. @import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,500);
  3. @import "font-awesome";
  4. /* http://meyerweb.com/eric/tools/css/reset/
  5. v2.0 | 20110126
  6. License: none (public domain)
  7. */
  8. html, body, div, span, applet, object, iframe,
  9. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  10. a, abbr, acronym, address, big, cite, code,
  11. del, dfn, em, img, ins, kbd, q, s, samp,
  12. small, strike, strong, sub, sup, tt, var,
  13. b, u, i, center,
  14. dl, dt, dd, ol, ul, li,
  15. fieldset, form, label, legend,
  16. table, caption, tbody, tfoot, thead, tr, th, td,
  17. article, aside, canvas, details, embed,
  18. figure, figcaption, footer, header, hgroup,
  19. menu, nav, output, ruby, section, summary,
  20. time, mark, audio, video {
  21. margin: 0;
  22. padding: 0;
  23. border: 0;
  24. font-size: 100%;
  25. font: inherit;
  26. vertical-align: baseline;
  27. }
  28. /* HTML5 display-role reset for older browsers */
  29. article, aside, details, figcaption, figure,
  30. footer, header, hgroup, menu, nav, section {
  31. display: block;
  32. }
  33. body {
  34. line-height: 1;
  35. }
  36. ol, ul {
  37. list-style: none;
  38. }
  39. blockquote, q {
  40. quotes: none;
  41. }
  42. blockquote:before, blockquote:after,
  43. q:before, q:after {
  44. content: '';
  45. content: none;
  46. }
  47. table {
  48. border-collapse: collapse;
  49. border-spacing: 0;
  50. }
  51. body {
  52. font-family: 'Roboto', sans-serif;
  53. background: #282c37 image-url('background-photo.jpeg');
  54. background-size: cover;
  55. background-attachment: fixed;
  56. font-size: 13px;
  57. line-height: 18px;
  58. font-weight: 400;
  59. color: #fff;
  60. padding-bottom: 140px;
  61. text-rendering: optimizelegibility;
  62. font-feature-settings: "kern";
  63. &.app-body {
  64. position: fixed;
  65. width: 100%;
  66. height: 100%;
  67. padding: 0;
  68. }
  69. }
  70. .app-holder {
  71. display: flex;
  72. width: 100%;
  73. height: 100%;
  74. align-items: center;
  75. justify-content: center;
  76. }
  77. .container {
  78. width: 700px;
  79. margin: 0 auto;
  80. margin-top: 40px;
  81. }
  82. .logo-container {
  83. width: 400px;
  84. margin: 100px auto;
  85. cursor: default;
  86. h1 {
  87. display: block;
  88. text-align: center;
  89. color: #fff;
  90. font-size: 48px;
  91. font-weight: 500;
  92. a {
  93. color: inherit;
  94. text-decoration: none;
  95. outline: 0;
  96. }
  97. small {
  98. display: block;
  99. font-size: 12px;
  100. font-weight: 400;
  101. font-family: 'Roboto Mono', monospace;
  102. }
  103. }
  104. }
  105. .form-container {
  106. width: 400px;
  107. margin: 0 auto;
  108. .field {
  109. margin-bottom: 15px;
  110. }
  111. .file-field {
  112. padding: 15px 0;
  113. label {
  114. font-family: 'Roboto';
  115. font-size: 16px;
  116. color: #fff;
  117. width: 100px;
  118. display: inline-block;
  119. }
  120. input[type=file] {
  121. width: 280px;
  122. }
  123. }
  124. input[type=text], input[type=email], input[type=password], textarea {
  125. background: transparent;
  126. border: 0;
  127. border-bottom: 2px solid #9baec8;
  128. padding: 7px 0;
  129. font-size: 16px;
  130. color: #fff;
  131. display: block;
  132. width: 100%;
  133. outline: 0;
  134. font-family: 'Roboto';
  135. &:invalid {
  136. box-shadow: none;
  137. }
  138. &:focus:invalid {
  139. border-bottom-color: #df405a;
  140. }
  141. &:required:valid {
  142. border-bottom-color: #79bd9a;
  143. }
  144. &:active, &:focus {
  145. border-bottom-color: #2b90d9;
  146. }
  147. }
  148. .field_with_error {
  149. input[type=text], input[type=email], input[type=password] {
  150. border-bottom-color: #df405a;
  151. }
  152. }
  153. .prompt {
  154. font-size: 16px;
  155. color: #9baec8;
  156. text-align: center;
  157. .prompt-highlight {
  158. font-weight: 500;
  159. color: #fff;
  160. }
  161. }
  162. code.copypasteable {
  163. display: block;
  164. font-family: 'Roboto Mono', monospace;
  165. font-weight: 400;
  166. font-size: 12px;
  167. margin-top: 20px;
  168. background: #282c37;
  169. border-radius: 4px;
  170. padding: 2px;
  171. word-wrap: break-word;
  172. }
  173. .actions {
  174. margin-top: 30px;
  175. button {
  176. display: block;
  177. width: 100%;
  178. border: 0;
  179. border-radius: 4px;
  180. background: #2b90d9;
  181. color: #fff;
  182. font-size: 18px;
  183. padding: 10px;
  184. text-transform: uppercase;
  185. cursor: pointer;
  186. font-weight: 500;
  187. outline: 0;
  188. margin-bottom: 10px;
  189. &:hover {
  190. background-color: lighten(#2b90d9, 5%);
  191. }
  192. &:active, &:focus {
  193. position: relative;
  194. top: 1px;
  195. background-color: darken(#2b90d9, 5%);
  196. }
  197. &.negative {
  198. background: #df405a;
  199. &:hover {
  200. background-color: lighten(#df405a, 5%);
  201. }
  202. &:active, &:focus {
  203. background-color: darken(#df405a, 5%);
  204. }
  205. }
  206. }
  207. }
  208. .form-footer {
  209. margin-top: 30px;
  210. text-align: center;
  211. a {
  212. color: #9baec8;
  213. text-decoration: none;
  214. &:hover {
  215. color: #d9e1e8;
  216. text-decoration: underline;
  217. }
  218. }
  219. }
  220. #error_explanation {
  221. background: #282c37;
  222. color: #9baec8;
  223. border-radius: 4px;
  224. padding: 15px 10px;
  225. margin-bottom: 30px;
  226. box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  227. h2 {
  228. font-weight: 500;
  229. margin-bottom: 5px;
  230. }
  231. li {
  232. margin-left: 15px;
  233. list-style: circle;
  234. }
  235. }
  236. }
  237. .no-list {
  238. list-style: none;
  239. li {
  240. display: inline-block;
  241. margin: 0 5px;
  242. }
  243. }
  244. .footer {
  245. text-align: center;
  246. margin-top: 30px;
  247. .domain {
  248. font-size: 12px;
  249. font-weight: 400;
  250. font-family: 'Roboto Mono', monospace;
  251. }
  252. .powered-by {
  253. font-size: 12px;
  254. font-weight: 400;
  255. color: darken(#d9e1e8, 25%);
  256. a {
  257. color: inherit;
  258. text-decoration: underline;
  259. &:hover {
  260. text-decoration: none;
  261. }
  262. }
  263. }
  264. }
  265. .turbolinks-progress-bar {
  266. background-color: #2b90d9;
  267. }
  268. .mastodon {
  269. $head: #282c37;
  270. $tusk: #d9e1e8;
  271. $backdrop: #2b90d9;
  272. $highlight: 18%;
  273. .mastodon-backdrop {
  274. fill: $backdrop;
  275. }
  276. #mastodon-ear {
  277. fill: lighten($head, 5%);
  278. &:hover, &.highlight {
  279. fill: lighten($head, $highlight);
  280. }
  281. }
  282. #mastodon-head-backdrop {
  283. fill: darken($head, 5%);
  284. &:hover, &.highlight {
  285. fill: darken($head, 5%);
  286. }
  287. }
  288. #mastodon-nose, #mastodon-cheek, #mastodon-forehead, #mastodon-backhead {
  289. fill: $head;
  290. &:hover, &.highlight {
  291. fill: lighten($head, $highlight);
  292. }
  293. }
  294. #mastodon-tusk-front {
  295. fill: lighten($tusk, 5%);
  296. }
  297. #mastodon-tusk-back {
  298. fill: $tusk;
  299. &:hover, &.highlight {
  300. fill: lighten($tusk, $highlight);
  301. }
  302. }
  303. .mastodon-shape {
  304. transition: all 0.8s ease;
  305. stroke: transparent;
  306. stroke-width: 0px;
  307. &:hover, &.highlight {
  308. transition-duration: 0.2s;
  309. }
  310. }
  311. }
  312. @import 'accounts';
  313. @import 'stream_entries';
  314. @import 'components'