home.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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: #338574;
  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. /* 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: #338574;
  98. visibility: visible;
  99. }
  100. /* Figures */
  101. figure {
  102. text-align: center;
  103. }
  104. figure img, figure video {
  105. filter: drop-shadow(3px 3px 3px #ccc);
  106. border-radius: 7px;
  107. max-width: 100%;
  108. }
  109. figure video {
  110. width: 100%;
  111. max-height: 450px;
  112. }
  113. figcaption {
  114. text-align: center;
  115. font-style: italic;
  116. padding-top: 10px;
  117. }
  118. /* Screenshots */
  119. #screenshots {
  120. text-align: center;
  121. }
  122. #screenshots img {
  123. height: 190px;
  124. margin: 3px;
  125. border-radius: 5px;
  126. filter: drop-shadow(2px 2px 2px #ddd);
  127. }
  128. #screenshots .nowrap {
  129. white-space: nowrap;
  130. }
  131. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  132. .lightbox {
  133. opacity: 0;
  134. visibility: hidden;
  135. position: fixed;
  136. left:0;
  137. right: 0;
  138. top: 0;
  139. bottom: 0;
  140. z-index: -1;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. transition: all 0.15s ease-in;
  145. }
  146. .lightbox.show {
  147. background-color: rgba(0,0,0, 0.75);
  148. opacity: 1;
  149. visibility: visible;
  150. z-index: 1000;
  151. }
  152. .lightbox img {
  153. max-width: 90%;
  154. max-height: 90%;
  155. filter: drop-shadow(5px 5px 10px #222);
  156. border-radius: 5px;
  157. }
  158. .lightbox .close-lightbox {
  159. cursor: pointer;
  160. position: absolute;
  161. top: 30px;
  162. right: 30px;
  163. width: 20px;
  164. height: 20px;
  165. }
  166. .lightbox .close-lightbox::after,
  167. .lightbox .close-lightbox::before {
  168. content: '';
  169. width: 3px;
  170. height: 20px;
  171. background-color: #ddd;
  172. position: absolute;
  173. border-radius: 5px;
  174. transform: rotate(45deg);
  175. }
  176. .lightbox .close-lightbox::before {
  177. transform: rotate(-45deg);
  178. }
  179. .lightbox .close-lightbox:hover::after,
  180. .lightbox .close-lightbox:hover::before {
  181. background-color: #fff;
  182. }
  183. /* Header */
  184. #header {
  185. background: #338574;
  186. height: 130px;
  187. }
  188. #header #headerBox {
  189. max-width: 900px;
  190. margin: 0 auto;
  191. padding: 0 10px;
  192. }
  193. #header #logo {
  194. margin-top: 23px;
  195. float: left;
  196. }
  197. #header #name {
  198. float: left;
  199. color: white;
  200. font-size: 2.6em;
  201. font-weight: 300;
  202. margin: 35px 0 0 20px;
  203. }
  204. #header ol {
  205. list-style-type: none;
  206. float: right;
  207. margin-top: 80px;
  208. }
  209. #header ol li {
  210. display: inline-block;
  211. margin: 0 10px;
  212. font-weight: 400;
  213. }
  214. #header ol li a, nav ol li a:visited {
  215. color: white;
  216. text-decoration: none;
  217. }
  218. #header ol li a:hover {
  219. text-decoration: underline;
  220. }
  221. li {
  222. padding: 4px 0;
  223. margin: 4px 0;
  224. font-size: 0.9em;
  225. }
  226. /* Hide top menu SMALL SCREEN */
  227. @media only screen and (max-width: 780px) {
  228. #header ol {
  229. display: none;
  230. }
  231. }