app.css 8.0 KB

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