home.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /* general styling */
  2. #site {
  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. #site a, a:visited {
  11. color: #338574;
  12. }
  13. #site a:hover {
  14. text-decoration: none;
  15. color: #317f6f;
  16. }
  17. #site h1 {
  18. margin-top: 35px;
  19. margin-bottom: 30px;
  20. font-size: 2.5em;
  21. word-wrap: break-word; /* For very long topics */
  22. padding-right: 40px; /* For the X on the detail page */
  23. font-weight: 300;
  24. color: #666;
  25. }
  26. #site h2 {
  27. margin-top: 30px;
  28. margin-bottom: 5px;
  29. font-size: 1.8em;
  30. font-weight: 300;
  31. color: #333;
  32. }
  33. #site h3 {
  34. margin-top: 25px;
  35. margin-bottom: 5px;
  36. font-size: 1.3em;
  37. font-weight: 300;
  38. color: #333;
  39. }
  40. #site p {
  41. margin-top: 10px;
  42. margin-bottom: 20px;
  43. line-height: 160%;
  44. font-weight: 400;
  45. }
  46. #site p.smallMarginBottom {
  47. margin-bottom: 10px;
  48. }
  49. #site b {
  50. font-weight: 500;
  51. }
  52. #site tt {
  53. background: #eee;
  54. padding: 2px 7px;
  55. border-radius: 3px;
  56. }
  57. #site code {
  58. display: block;
  59. background: #eee;
  60. font-family: monospace;
  61. padding: 20px;
  62. border-radius: 3px;
  63. margin-top: 10px;
  64. margin-bottom: 20px;
  65. overflow-x: auto;
  66. white-space: nowrap;
  67. }
  68. /* Main page */
  69. #site #main {
  70. max-width: 900px;
  71. margin: 0 auto 50px auto;
  72. padding: 0 10px;
  73. }
  74. #site #error {
  75. color: darkred;
  76. font-style: italic;
  77. }
  78. #site #ironicCenterTagDontFreakOut {
  79. color: #666;
  80. }
  81. /* Anchors */
  82. .anchor .anchorLink {
  83. color: #ccc;
  84. text-decoration: none;
  85. padding: 0 5px;
  86. visibility: hidden;
  87. }
  88. .anchor:hover .anchorLink {
  89. visibility: visible;
  90. }
  91. .anchor .anchorLink:hover {
  92. color: #338574;
  93. visibility: visible;
  94. }
  95. /* Figures */
  96. #site figure {
  97. text-align: center;
  98. }
  99. #site figure img, figure video {
  100. filter: drop-shadow(3px 3px 3px #ccc);
  101. border-radius: 7px;
  102. max-width: 100%;
  103. }
  104. #site figure video {
  105. width: 100%;
  106. max-height: 450px;
  107. }
  108. #site figcaption {
  109. text-align: center;
  110. font-style: italic;
  111. padding-top: 10px;
  112. }
  113. /* Screenshots */
  114. #site #screenshots {
  115. text-align: center;
  116. }
  117. #site #screenshots img {
  118. height: 190px;
  119. margin: 3px;
  120. border-radius: 5px;
  121. filter: drop-shadow(2px 2px 2px #ddd);
  122. }
  123. #site #screenshots .nowrap {
  124. white-space: nowrap;
  125. }
  126. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  127. .lightbox {
  128. opacity: 0;
  129. visibility: hidden;
  130. position: fixed;
  131. left:0;
  132. right: 0;
  133. top: 0;
  134. bottom: 0;
  135. z-index: -1;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. transition: all 0.15s ease-in;
  140. }
  141. .lightbox.show {
  142. background-color: rgba(0,0,0, 0.75);
  143. opacity: 1;
  144. visibility: visible;
  145. z-index: 1000;
  146. }
  147. .lightbox img {
  148. max-width: 90%;
  149. max-height: 90%;
  150. filter: drop-shadow(5px 5px 10px #222);
  151. border-radius: 5px;
  152. }
  153. .lightbox .close-lightbox {
  154. cursor: pointer;
  155. position: absolute;
  156. top: 30px;
  157. right: 30px;
  158. width: 20px;
  159. height: 20px;
  160. }
  161. .lightbox .close-lightbox::after,
  162. .lightbox .close-lightbox::before {
  163. content: '';
  164. width: 3px;
  165. height: 20px;
  166. background-color: #ddd;
  167. position: absolute;
  168. border-radius: 5px;
  169. transform: rotate(45deg);
  170. }
  171. .lightbox .close-lightbox::before {
  172. transform: rotate(-45deg);
  173. }
  174. .lightbox .close-lightbox:hover::after,
  175. .lightbox .close-lightbox:hover::before {
  176. background-color: #fff;
  177. }
  178. /* Header */
  179. #site #header {
  180. background: #338574;
  181. background: linear-gradient(150deg, rgba(51,133,116,1) 0%, rgba(86,189,168,1) 100%); filter: drop-shadow(0 5px 10px #ccc);
  182. height: 70px;
  183. }
  184. #site #header #headerBox {
  185. max-width: 900px;
  186. margin: 0 auto;
  187. padding: 0 10px;
  188. }
  189. #site #header #logo {
  190. margin-top: 14px;
  191. width: 48px;
  192. float: left;
  193. }
  194. #site #header #name {
  195. float: left;
  196. color: white;
  197. font-size: 1.7em;
  198. font-weight: 400;
  199. margin: 12px 0 0 10px;
  200. }
  201. #site #header #menu {
  202. list-style-type: none;
  203. float: right;
  204. margin-top: 16px;
  205. }
  206. #site #header #menu li {
  207. display: inline-block;
  208. padding: 3px 10px;
  209. font-weight: 400;
  210. border-radius: 5px;
  211. }
  212. #site #header #menu li {
  213. font-size: 1em;
  214. }
  215. #site #header #menu li a,
  216. #site #header #menu li a:visited {
  217. color: white;
  218. text-decoration: none;
  219. }
  220. #site #header #menu li:hover {
  221. background: #3f9a86;
  222. }
  223. #site li {
  224. padding: 4px 0;
  225. margin: 4px 0;
  226. font-size: 0.9em;
  227. }
  228. /* Hide top menu SMALL SCREEN */
  229. @media only screen and (max-width: 780px) {
  230. #header #menu {
  231. display: none;
  232. }
  233. }