app.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. /* general styling */
  2. html, body {
  3. font-family: 'Lato', sans-serif;
  4. color: #333;
  5. font-size: 1.1em;
  6. }
  7. html {
  8. /* prevent scrollbar from repositioning website:
  9. * https://www.w3docs.com/snippets/css/how-to-prevent-scrollbar-from-repositioning-web-page.html */
  10. overflow-y: scroll;
  11. }
  12. a, a:visited {
  13. color: #3a9784;
  14. }
  15. a:hover {
  16. text-decoration: none;
  17. color: #317f6f;
  18. }
  19. h1 {
  20. margin-top: 25px;
  21. margin-bottom: 18px;
  22. font-size: 2.5em;
  23. }
  24. h2 {
  25. margin-top: 20px;
  26. margin-bottom: 5px;
  27. font-size: 1.8em;
  28. }
  29. h3 {
  30. margin-top: 20px;
  31. margin-bottom: 5px;
  32. font-size: 1.3em;
  33. }
  34. p {
  35. margin-top: 10px;
  36. margin-bottom: 20px;
  37. font-size: 1.1em;
  38. line-height: 140%;
  39. }
  40. p.smallMarginBottom {
  41. margin-bottom: 10px;
  42. }
  43. tt {
  44. background: #eee;
  45. padding: 2px 7px;
  46. border-radius: 3px;
  47. }
  48. code {
  49. display: block;
  50. background: #eee;
  51. font-family: monospace;
  52. padding: 20px;
  53. border-radius: 3px;
  54. margin-top: 10px;
  55. margin-bottom: 20px;
  56. overflow-x: auto;
  57. }
  58. /* Lato font (OFL), https://fonts.google.com/specimen/Lato#about,
  59. embedded with the help of https://google-webfonts-helper.herokuapp.com/fonts/lato?subsets=latin */
  60. @font-face {
  61. font-family: 'Lato';
  62. font-style: normal;
  63. font-weight: 400;
  64. src: local(''),
  65. url('../font/lato-v17-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
  66. url('../font/lato-v17-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  67. }
  68. /* Main page */
  69. #main {
  70. max-width: 900px;
  71. margin: 0 auto 50px auto;
  72. }
  73. #error {
  74. color: darkred;
  75. font-style: italic;
  76. }
  77. #ironicCenterTagDontFreakOut {
  78. color: #666;
  79. }
  80. /* Screenshots */
  81. #screenshots {
  82. text-align: center;
  83. }
  84. #screenshots img {
  85. height: 190px;
  86. margin: 3px;
  87. border-radius: 5px;
  88. filter: drop-shadow(2px 2px 2px #ddd);
  89. }
  90. #screenshots .nowrap {
  91. white-space: nowrap;
  92. }
  93. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  94. .lightbox {
  95. opacity: 0;
  96. visibility: hidden;
  97. position: fixed;
  98. left:0;
  99. right: 0;
  100. top: 0;
  101. bottom: 0;
  102. z-index: -1;
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. transition: all 0.15s ease-in;
  107. }
  108. .lightbox.show {
  109. background-color: rgba(0,0,0, 0.75);
  110. opacity: 1;
  111. visibility: visible;
  112. z-index: 1000;
  113. }
  114. .lightbox img {
  115. max-width: 90%;
  116. max-height: 90%;
  117. filter: drop-shadow(5px 5px 10px #222);
  118. border-radius: 5px;
  119. }
  120. .lightbox .close-lightbox {
  121. cursor: pointer;
  122. position: absolute;
  123. top: 30px;
  124. right: 30px;
  125. width: 20px;
  126. height: 20px;
  127. }
  128. .lightbox .close-lightbox::after,
  129. .lightbox .close-lightbox::before {
  130. content: '';
  131. width: 3px;
  132. height: 20px;
  133. background-color: #ddd;
  134. position: absolute;
  135. border-radius: 5px;
  136. transform: rotate(45deg);
  137. }
  138. .lightbox .close-lightbox::before {
  139. transform: rotate(-45deg);
  140. }
  141. .lightbox .close-lightbox:hover::after,
  142. .lightbox .close-lightbox:hover::before {
  143. background-color: #fff;
  144. }
  145. /* Subscribe box */
  146. button {
  147. background: #3a9784;
  148. border: none;
  149. border-radius: 3px;
  150. padding: 3px 5px;
  151. color: white;
  152. cursor: pointer;
  153. }
  154. button:hover {
  155. background: #317f6f;
  156. padding: 5px;
  157. }
  158. ul {
  159. padding-left: 1em;
  160. list-style-type: circle;
  161. padding-bottom: 0;
  162. margin: 0;
  163. }
  164. li {
  165. padding: 4px 0;
  166. margin: 4px 0;
  167. font-size: 0.9em;
  168. }
  169. /* Subscribe box SMALL SCREEN */
  170. @media only screen and (max-width: 1599px) {
  171. #subscribeBox #subscribeForm {
  172. border-left: 4px solid #3a9784;
  173. padding: 10px;
  174. }
  175. #subscribeBox #topicsHeader {
  176. margin-bottom: 0;
  177. }
  178. #subscribeBox input {
  179. height: 24px;
  180. min-width: 200px;
  181. max-width: 300px;
  182. border-radius: 3px;
  183. border: none;
  184. border-bottom: 1px solid #aaa;
  185. font-size: 0.8em;
  186. }
  187. #subscribeBox input:focus {
  188. border-bottom: 2px solid #3a9784;
  189. outline: none;
  190. }
  191. #subscribeBox ul {
  192. margin: 0;
  193. }
  194. #subscribeBox li {
  195. margin: 3px 0;
  196. padding: 0;
  197. }
  198. #subscribeBox li img {
  199. width: 15px;
  200. height: 15px;
  201. vertical-align: bottom;
  202. }
  203. #subscribeBox li a {
  204. padding: 0 5px 0 0;
  205. }
  206. #subscribeBox button {
  207. font-size: 0.8em;
  208. background: #3a9784;
  209. border-radius: 3px;
  210. padding: 5px;
  211. color: white;
  212. cursor: pointer;
  213. }
  214. #subscribeBox button:hover {
  215. background: #317f6f;
  216. }
  217. }
  218. /* Subscribe box BIG SCREEN */
  219. @media only screen and (min-width: 1600px) {
  220. #subscribeBox {
  221. position: fixed;
  222. top: 170px;
  223. right: 10px;
  224. width: 300px;
  225. border-left: 4px solid #3a9784;
  226. padding: 10px;
  227. }
  228. #subscribeBox h3 {
  229. margin-top: 0;
  230. margin-bottom: 5px;
  231. font-size: 1.1em;
  232. }
  233. #subscribeBox #topicsHeader {
  234. margin-bottom: 0;
  235. }
  236. #subscribeBox p {
  237. font-size: 0.9em;
  238. margin-bottom: 10px;
  239. }
  240. #subscribeBox ul {
  241. margin: 0;
  242. }
  243. #subscribeBox input {
  244. height: 18px;
  245. border-radius: 3px;
  246. border: none;
  247. border-bottom: 1px solid #aaa;
  248. }
  249. #subscribeBox input:focus {
  250. border-bottom: 2px solid #3a9784;
  251. outline: none;
  252. }
  253. #subscribeBox li {
  254. margin: 3px 0;
  255. padding: 0;
  256. }
  257. #subscribeBox li img {
  258. width: 15px;
  259. height: 15px;
  260. vertical-align: bottom;
  261. }
  262. #subscribeBox li a {
  263. padding: 0 5px 0 0;
  264. }
  265. #subscribeBox button {
  266. font-size: 0.7em;
  267. background: #3a9784;
  268. border-radius: 3px;
  269. padding: 5px;
  270. color: white;
  271. cursor: pointer;
  272. }
  273. #subscribeBox button:hover {
  274. background: #317f6f;
  275. }
  276. }
  277. /** Detail view */
  278. #detail {
  279. display: none;
  280. position: absolute;
  281. z-index: 1;
  282. left: 8px;
  283. right: 8px;
  284. top: 0;
  285. bottom: 0;
  286. background: white;
  287. }
  288. #detail .detailDate {
  289. color: #888;
  290. font-size: 0.9em;
  291. }
  292. #detail .detailMessage {
  293. margin-bottom: 20px;
  294. font-size: 1.1em;
  295. }
  296. #detail #detailMain {
  297. max-width: 900px;
  298. margin: 0 auto;
  299. position: relative; /* required for close button's "position: absolute" */
  300. padding-bottom: 50px; /* Chrome and Firefox behave differently regarding bottom margin */
  301. }
  302. #detail #detailCloseButton {
  303. background: #eee;
  304. border-radius: 5px;
  305. border: none;
  306. padding: 5px;
  307. position: absolute;
  308. right: 0;
  309. top: 10px;
  310. display: block;
  311. }
  312. #detail #detailCloseButton:hover {
  313. padding: 5px;
  314. background: #ccc;
  315. }
  316. #detail #detailCloseButton img {
  317. display: block; /* get rid of the weird bottom border */
  318. }
  319. #detail #detailNotificationsDisallowed {
  320. display: none;
  321. color: darkred;
  322. }
  323. #detail #events {
  324. max-width: 900px;
  325. margin: 0 auto 50px auto;
  326. }