/docs/docs.css

https://github.com/jawj/zapatos · CSS · 338 lines · 333 code · 5 blank · 0 comment · 0 complexity · ef1709ba7f0d558ab4464a6a8eba6d7a MD5 · raw file

  1. body {
  2. padding: 30px 12.5%;
  3. font: 12pt/1.667 source-serif-pro, Georgia, serif;
  4. background: #fff;
  5. color: #444;
  6. text-size-adjust: none;
  7. -webkit-text-size-adjust: none;
  8. }
  9. .logos {
  10. margin-bottom: 15px;
  11. }
  12. .pg-logo {
  13. padding-right: 10px;
  14. }
  15. .testimonials-window {
  16. width: 100%;
  17. overflow: hidden;
  18. }
  19. .testimonials {
  20. width: 500%;
  21. margin-top: 30px;
  22. animation-name: carousel;
  23. animation-duration: 35s;
  24. animation-iteration-count: infinite;
  25. }
  26. .testimonials:hover {
  27. animation-play-state: paused;
  28. }
  29. .testimonials:hover .testimonial {
  30. border-top: 2px solid #555;
  31. }
  32. .testimonial {
  33. background: #def;
  34. border-top: 2px solid #36e;
  35. padding: 2px 20px;
  36. width: 20%;
  37. float: left;
  38. box-sizing: border-box;
  39. }
  40. .quote p {
  41. margin-bottom: 0;
  42. font-style: italic;
  43. }
  44. .quote p::before {
  45. content: '“';
  46. }
  47. .quote p::after {
  48. content: '”';
  49. }
  50. .attribution p {
  51. margin-top: 0;
  52. }
  53. .attribution p::before {
  54. content: "— ";
  55. }
  56. @keyframes carousel {
  57. 0% {
  58. transform: translate(0, 0);
  59. }
  60. 18% {
  61. transform: translate(0, 0);
  62. }
  63. 20% {
  64. transform: translate(-20%, 0);
  65. }
  66. 38% {
  67. transform: translate(-20%, 0);
  68. }
  69. 40% {
  70. transform: translate(-40%, 0);
  71. }
  72. 58% {
  73. transform: translate(-40%, 0);
  74. }
  75. 60% {
  76. transform: translate(-60%, 0);
  77. }
  78. 78% {
  79. transform: translate(-60%, 0);
  80. }
  81. 80% {
  82. transform: translate(-80%, 0);
  83. }
  84. 98% {
  85. transform: translate(-80%, 0);
  86. }
  87. 100% {
  88. transform: translate(0, 0);
  89. }
  90. }
  91. h1 {
  92. margin: 0 0 60px;
  93. }
  94. h2, h3, h4, h5, h6 {
  95. margin: 40px 0 20px;
  96. border-bottom: 1px #ddd solid;
  97. padding-bottom: 5px;
  98. }
  99. h1, h2, h3, h4, h5 {
  100. line-height: 1.1;
  101. color: #000;
  102. }
  103. a {
  104. color: #36e;
  105. text-decoration: none;
  106. }
  107. li {
  108. margin-top: 0;
  109. margin-bottom: 0;
  110. }
  111. p {
  112. margin: 12px 0;
  113. }
  114. code, pre {
  115. font: 11pt/1.5 source-code-pro, Menlo, Monaco, monospace;
  116. font-weight: inherit;
  117. background: #f4f4f4;
  118. }
  119. pre {
  120. padding: 9px 12px;
  121. margin: 15px 0 20px;
  122. white-space: pre-wrap;
  123. overflow-wrap: anywhere; /* Chrome */
  124. word-break: break-word; /* Safari */
  125. counter-reset: line-no;
  126. }
  127. pre .indent-line {
  128. display: inline-block;
  129. }
  130. pre code {
  131. background: transparent;
  132. }
  133. #monaco-overlay {
  134. position: fixed;
  135. background: rgba(0,0,0,0.667);
  136. top: 0;
  137. left: 0;
  138. right: 0;
  139. bottom: 0;
  140. z-index: 10;
  141. display: none;
  142. }
  143. #ts-editor {
  144. position: fixed;
  145. top: 10%;
  146. right: 10%;
  147. bottom: 10%;
  148. left: 10%;
  149. background: #fff;
  150. }
  151. #closemonaco {
  152. display: block;
  153. position: fixed;
  154. color: #fff;
  155. font: 50px source-code-pro;
  156. top: 10%;
  157. left: 90%;
  158. line-height: 0.45;
  159. padding-left: 5px;
  160. }
  161. .runnable {
  162. position: relative;
  163. margin-top: 30px;
  164. padding-top: 20px;
  165. }
  166. .sqlstuff {
  167. border: 1px solid #eee;
  168. padding: 5px;
  169. }
  170. .sqltext, .sqlvalues, .sqlresult, .transactionlog, .console {
  171. position: relative;
  172. margin: 0;
  173. }
  174. .sqltext::before, .sqlvalues::before, .sqlresult::before, .transactionlog::before, .console::before, .openmonaco, .toggleimports {
  175. background: #444;
  176. color: #fff;
  177. position: absolute;
  178. top: 0;
  179. right: 0;
  180. font-weight: bold;
  181. font-size: 9pt;
  182. display: inline-block;
  183. padding: 0 7px;
  184. }
  185. .openmonaco, .toggleimports {
  186. color: #36e;
  187. border: 1px solid #36e;
  188. background: #fff;
  189. right: 10px;
  190. top: -9px;
  191. border-radius: 10px;
  192. padding: 0 10px;
  193. }
  194. .toggleimports {
  195. right: auto;
  196. left: 10px;
  197. color: #999;
  198. border: 1px solid #999;
  199. }
  200. .imports {
  201. display: none;
  202. border-bottom: 1px dotted #ccc;
  203. padding-bottom: 10px;
  204. margin-bottom: 9px;
  205. }
  206. .sqltext, .language-sql {
  207. background: #eeeeff;
  208. }
  209. .sqltext::before {
  210. content: 'SQL';
  211. }
  212. .sqlvalues {
  213. background: #ffeeff;
  214. margin-top: 0;
  215. }
  216. .sqlvalues::before {
  217. content: '+ $1, $2, ...';
  218. }
  219. .sqlresult {
  220. background: #ffeedd;
  221. margin: 15px 0 20px;
  222. }
  223. .sqlresult::before {
  224. content: '⟶ result';
  225. }
  226. .transactionlog::before {
  227. content: 'Transactions';
  228. }
  229. .console {
  230. margin: 15px 0 20px;
  231. }
  232. .console::before {
  233. content: 'Console';
  234. }
  235. code {
  236. display: inline-block;
  237. padding: 0 2px;
  238. }
  239. pre > code {
  240. display: unset;
  241. padding: unset;
  242. }
  243. #content {
  244. margin-left: 260px;
  245. padding-left: 50px;
  246. }
  247. #outer-toc {
  248. position: fixed;
  249. line-height: 1.1;
  250. overflow-y: auto;
  251. box-sizing: border-box;
  252. width: 260px;
  253. height: 100%;
  254. top: 0;
  255. padding: 30px 0;
  256. }
  257. #toc-toggle {
  258. display: none;
  259. position: fixed;
  260. left: 0;
  261. bottom: 20px;
  262. padding: 5px 10px;
  263. border-top-right-radius: 10px;
  264. border-bottom-right-radius: 10px;
  265. background: #777;
  266. color: #fff;
  267. z-index: 1001;
  268. }
  269. p {
  270. max-width: 85%;
  271. }
  272. @media (max-width: 1280px) {
  273. body {
  274. padding-right: 2.5%;
  275. padding-left: 2.5%;
  276. }
  277. }
  278. @media (max-width: 900px) {
  279. #content {
  280. margin: 0;
  281. padding: 0;
  282. }
  283. #outer-toc {
  284. display: none;
  285. background: rgba(255, 255, 255, 0.95);
  286. border-right: 1px solid #ccc;
  287. width: 290px;
  288. padding-right: 30px;
  289. z-index: 1000;
  290. }
  291. #outer-toc.toc-shown {
  292. display: block;
  293. }
  294. #toc-toggle {
  295. display: block;
  296. }
  297. p {
  298. max-width: none;
  299. }
  300. }
  301. #toc ol {
  302. list-style-type: none;
  303. }
  304. #toc li {
  305. margin: 4px 0;
  306. }
  307. .toc-list {
  308. padding-left: 20px;
  309. }
  310. #toc > .toc-list {
  311. position: relative;
  312. overflow: hidden;
  313. }
  314. .toc-link {
  315. display: inline-block;
  316. padding: 5px 0;
  317. }
  318. .src-link {
  319. float: right;
  320. margin: 40px 0 0 30px;
  321. }
  322. .toc-link::before {
  323. margin-top: -5px;
  324. }
  325. h1 .extra-vowels {
  326. position: relative;
  327. top: -40px;
  328. transition: 0.45s all;
  329. opacity: 0;
  330. }
  331. h1 .extra-vowels.o {
  332. transition-delay: 0.15s;
  333. }