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.

362 lines
6.1 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. input[type=text], input[type=email], input[type=password] {
  112. background: transparent;
  113. border: 0;
  114. border-bottom: 2px solid #9baec8;
  115. padding: 7px 0;
  116. font-size: 16px;
  117. color: #fff;
  118. display: block;
  119. width: 100%;
  120. outline: 0;
  121. &:invalid {
  122. box-shadow: none;
  123. }
  124. &:focus:invalid {
  125. border-bottom-color: #df405a;
  126. }
  127. &:required:valid {
  128. border-bottom-color: #79bd9a;
  129. }
  130. &:active, &:focus {
  131. border-bottom-color: #2b90d9;
  132. }
  133. }
  134. .field_with_error {
  135. input[type=text], input[type=email], input[type=password] {
  136. border-bottom-color: #df405a;
  137. }
  138. }
  139. .prompt {
  140. font-size: 16px;
  141. color: #9baec8;
  142. text-align: center;
  143. .prompt-highlight {
  144. font-weight: 500;
  145. color: #fff;
  146. }
  147. }
  148. code.copypasteable {
  149. display: block;
  150. font-family: 'Roboto Mono', monospace;
  151. font-weight: 400;
  152. font-size: 12px;
  153. margin-top: 20px;
  154. background: #282c37;
  155. border-radius: 4px;
  156. padding: 2px;
  157. word-wrap: break-word;
  158. }
  159. .actions {
  160. margin-top: 30px;
  161. button {
  162. display: block;
  163. width: 100%;
  164. border: 0;
  165. border-radius: 4px;
  166. background: #2b90d9;
  167. color: #fff;
  168. font-size: 18px;
  169. padding: 10px;
  170. text-transform: uppercase;
  171. cursor: pointer;
  172. font-weight: 500;
  173. outline: 0;
  174. margin-bottom: 10px;
  175. &:hover {
  176. background-color: lighten(#2b90d9, 5%);
  177. }
  178. &:active, &:focus {
  179. position: relative;
  180. top: 1px;
  181. background-color: darken(#2b90d9, 5%);
  182. }
  183. &.negative {
  184. background: #df405a;
  185. &:hover {
  186. background-color: lighten(#df405a, 5%);
  187. }
  188. &:active, &:focus {
  189. background-color: darken(#df405a, 5%);
  190. }
  191. }
  192. }
  193. }
  194. .form-footer {
  195. margin-top: 30px;
  196. text-align: center;
  197. a {
  198. color: #9baec8;
  199. text-decoration: none;
  200. &:hover {
  201. color: #d9e1e8;
  202. text-decoration: underline;
  203. }
  204. }
  205. }
  206. #error_explanation {
  207. background: #282c37;
  208. color: #9baec8;
  209. border-radius: 4px;
  210. padding: 15px 10px;
  211. margin-bottom: 30px;
  212. box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  213. h2 {
  214. font-weight: 500;
  215. margin-bottom: 5px;
  216. }
  217. li {
  218. margin-left: 15px;
  219. list-style: circle;
  220. }
  221. }
  222. }
  223. .no-list {
  224. list-style: none;
  225. li {
  226. display: inline-block;
  227. margin: 0 5px;
  228. }
  229. }
  230. .footer {
  231. text-align: center;
  232. margin-top: 30px;
  233. .domain {
  234. font-size: 12px;
  235. font-weight: 400;
  236. font-family: 'Roboto Mono', monospace;
  237. }
  238. .powered-by {
  239. font-size: 12px;
  240. font-weight: 400;
  241. color: darken(#d9e1e8, 25%);
  242. a {
  243. color: inherit;
  244. text-decoration: underline;
  245. &:hover {
  246. text-decoration: none;
  247. }
  248. }
  249. }
  250. }
  251. .turbolinks-progress-bar {
  252. background-color: #2b90d9;
  253. }
  254. .mastodon {
  255. $head: #282c37;
  256. $tusk: #d9e1e8;
  257. $backdrop: #2b90d9;
  258. $highlight: 18%;
  259. .mastodon-backdrop {
  260. fill: $backdrop;
  261. }
  262. #mastodon-ear {
  263. fill: lighten($head, 5%);
  264. &:hover, &.highlight {
  265. fill: lighten($head, $highlight);
  266. }
  267. }
  268. #mastodon-head-backdrop {
  269. fill: darken($head, 5%);
  270. &:hover, &.highlight {
  271. fill: darken($head, 5%);
  272. }
  273. }
  274. #mastodon-nose, #mastodon-cheek, #mastodon-forehead, #mastodon-backhead {
  275. fill: $head;
  276. &:hover, &.highlight {
  277. fill: lighten($head, $highlight);
  278. }
  279. }
  280. #mastodon-tusk-front {
  281. fill: lighten($tusk, 5%);
  282. }
  283. #mastodon-tusk-back {
  284. fill: $tusk;
  285. &:hover, &.highlight {
  286. fill: lighten($tusk, $highlight);
  287. }
  288. }
  289. .mastodon-shape {
  290. transition: all 0.8s ease;
  291. stroke: transparent;
  292. stroke-width: 0px;
  293. &:hover, &.highlight {
  294. transition-duration: 0.2s;
  295. }
  296. }
  297. }
  298. @import 'accounts';
  299. @import 'stream_entries';
  300. @import 'components'