app.css 9.3 KB

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