home.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. }