lesson.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. body {
  2. margin: 0;
  3. font-family: Georgia, serif;
  4. font-size: 19px;
  5. line-height: 150%;
  6. }
  7. p + p {
  8. margin-top: 1.5em;
  9. }
  10. li > p {
  11. width: calc(100% - 2em);
  12. }
  13. table {
  14. margin-top: 1em;
  15. margin-bottom: 1em;
  16. }
  17. pre.prettyprint {
  18. margin-top: 2em !important;
  19. margin-bottom: 2em !important;
  20. }
  21. pre.prettyprint li {
  22. white-space: pre;
  23. }
  24. .threejs_navbar>div,
  25. .lesson-title,
  26. .lesson-comments,
  27. .lesson-comment-sep,
  28. .lesson-main>* {
  29. margin: 0 auto 1em;
  30. max-width: 700px;
  31. width: calc(100% - 40px);
  32. }
  33. .lesson-main>.threejs_example_container {
  34. max-width: 90%;
  35. }
  36. .threejs_example {
  37. width: 100%;
  38. height: 500px;
  39. }
  40. .threejs_header {
  41. background-image: url(/threejs/lessons/resources/banner-00.jpg);
  42. background-size: cover;
  43. background-position: center, center;
  44. padding: 1em;
  45. text-align: center;
  46. }
  47. .threejs_header h1 {
  48. font-size: 5vw;
  49. margin: 0;
  50. background-image: url(/threejs/lessons/resources/logo.png);
  51. background-size: contain;
  52. background-position: center center;
  53. background-repeat: no-repeat;
  54. font-weight: bold;
  55. color: black;
  56. /*
  57. text-shadow: 0px 0px 15px #fff,
  58. 0px 0px 5px #fff,
  59. 0px 0px 10px #fff;
  60. */
  61. }
  62. .threejs_header a {
  63. color: rgba(0, 0, 0, 0);
  64. text-decoration: none;
  65. }
  66. .threejs_navbar {
  67. background: black;
  68. color: white;
  69. }
  70. .threejs_navbar a {
  71. color: white;
  72. }
  73. .threejs_navbar>div {
  74. margin: 0 auto;
  75. display: flex;
  76. justify-content: space-between;
  77. align-items: center;
  78. }
  79. .threejs_navbar>div>* {
  80. display: block;
  81. margin: .25em 0;
  82. }
  83. .threejs_navbar select {
  84. background: #444;
  85. border: none;
  86. font-size: large;
  87. color: white;
  88. }
  89. .home-lang select {
  90. font-size: large;
  91. }
  92. .fullscreen {
  93. position: fixed !important;
  94. left: 0;
  95. top: 0;
  96. width: 100vw !important;
  97. height: 100vh !important;
  98. z-index: 100;
  99. }
  100. .lesson-main>blockquote {
  101. background-color: #DEF;
  102. padding: 1em;
  103. }
  104. .lesson-title {
  105. margin-top: 3em;
  106. margin-bottom: 2em;
  107. }
  108. .lesson-main {
  109. gbackground-color: #ffe;
  110. }
  111. .lesson-sidebar {
  112. font-size: small;
  113. columns: 220px;
  114. padding: 1em;
  115. column-rule: dashed 1px #CCC;
  116. background: #eee;
  117. margin-bottom: 1em;
  118. }
  119. .lesson-sidebar>ul>li {
  120. line-height: 1.3em;
  121. }
  122. .lesson-sidebar ul {
  123. line-height: 1.3em;
  124. margin-bottom: 1em;
  125. }
  126. .lesson-sidebar ul {
  127. list-style-type: none;
  128. padding-left: 1em;
  129. text-indent: -1em;
  130. }
  131. h1, h2, h3, h4 {
  132. font-family: sans-serif;
  133. line-height: 1.2;
  134. }
  135. h3 {
  136. font-size: medium;
  137. }
  138. code {
  139. color: black;
  140. font-family: monospace;
  141. background-color: #ddd;
  142. padding: 0.1em 0.2em 0.1em 0.2em;
  143. border-radius: 0.5em;
  144. white-space: nowrap;
  145. }
  146. .threejs_table_div_center {
  147. text-align: center;
  148. }
  149. .threejs_table_center {
  150. margin-left: auto;
  151. margin-right: auto;
  152. }
  153. .threejs_center {
  154. margin-left: auto;
  155. margin-top: 1em;
  156. margin-bottom: 1em;
  157. margin-right: auto;
  158. display: block;
  159. text-align: center;
  160. max-width: 95%;
  161. }
  162. .threejs_image>img {
  163. width: 100%;
  164. }
  165. .threejs_math {
  166. margin-left: auto;
  167. margin-right: auto;
  168. display: inline-block;
  169. text-align: left;
  170. }
  171. .threejs_math_center {
  172. display: block;
  173. text-align: center;
  174. }
  175. .hcenter {
  176. display: -webkit-box;
  177. -webkit-box-orient: horizontal;
  178. -webkit-box-pack: center;
  179. -webkit-box-align: center;
  180. display: -moz-box;
  181. -moz-box-orient: horizontal;
  182. -moz-box-pack: center;
  183. -moz-box-align: center;
  184. display: box;
  185. box-orient: horizontal;
  186. box-pack: center;
  187. box-align: center;
  188. }
  189. table.vertex_table {
  190. border: 1px solid black;
  191. border-collapse: collapse;
  192. font-family: monospace;
  193. font-size: small;
  194. }
  195. table.vertex_table th {
  196. background-color: #88ccff;
  197. padding-right: 1em;
  198. padding-left: 1em;
  199. }
  200. table.vertex_table td {
  201. border: 1px solid black;
  202. text-align: right;
  203. padding-right: 1em;
  204. padding-left: 1em;
  205. }
  206. iframe {
  207. display: block;
  208. }
  209. iframe.body {
  210. height: 100vh;
  211. }
  212. iframe.threejs_example, iframe.threejs_diagram {
  213. border: none;
  214. margin-left: auto;
  215. margin-right: auto;
  216. display: block;
  217. }
  218. iframe.threejs_example {
  219. border: 1px solid black;
  220. }
  221. iframe.noborder {
  222. border: none !important;
  223. }
  224. iframe.external_diagram {
  225. border: none;
  226. margin-left: auto;
  227. margin-right: auto;
  228. display: block;
  229. }
  230. div.threejs_bottombar {
  231. border: 1px solid #000;
  232. background-color: #def;
  233. padding: 1em;
  234. width: calc(100% - 80px);
  235. }
  236. div.threejs_bottombar>h3 {
  237. font-size: x-large;
  238. font-weight: bold;
  239. margin-bottom: 1em;
  240. }
  241. div.threejs_bottombar code {
  242. background-color: #ccc;
  243. }
  244. /* --- Prettify --- */
  245. pre.prettyprint .nocode { background-color: none; color: #FFF }
  246. pre.prettyprint .str { color: #b9ca4a } /* string */
  247. pre.prettyprint .kwd { color: #c397d8 } /* keyword */
  248. pre.prettyprint .com { color: #f3efb2 } /* comment */
  249. pre.prettyprint .typ { color: #7aa6da } /* type */
  250. pre.prettyprint .lit { color: #45e7a6 } /* literal */
  251. pre.prettyprint .pun { color: #7ecce0 } /* punctuation */
  252. pre.prettyprint .pln { color: #eaeaea } /* plaintext */
  253. pre.prettyprint .tag { color: #d54e53 } /* html/xml tag */
  254. pre.prettyprint .atn { color: #e78c45 } /* attribute name */
  255. pre.prettyprint .atv { color: #70c0b1 } /* attribute value */
  256. pre.prettyprint .dec { color: #e78c45 } /* decimal */
  257. pre.prettyprint .var { color: #d54e53 } /* variable name */
  258. pre.prettyprint .fun { color: #7aa6da } /* function name */
  259. pre.prettyprint ul.modifiedlines {
  260. list-style-type: none;
  261. padding-left: 0;
  262. }
  263. pre.prettyprint ul.modifiedlines li.linemodified {
  264. list-style-type: none;
  265. background-color: #324840;
  266. }
  267. pre.prettyprint ul.modifiedlines li.linedeleted {
  268. list-style-type: none;
  269. background-color: #4c1414;
  270. text-decoration: line-through;
  271. }
  272. pre.prettyprint ul.modifiedlines li.lineadded {
  273. list-style-type: none;
  274. background-color: #3f4463;
  275. }
  276. pre.prettyprint, code.prettyprint {
  277. color: #FFF;
  278. background: #222;
  279. border: 1px solid #000;
  280. box-shadow: 10px 10px 0px #ccc;
  281. font-size: 9pt;
  282. font-family: "Lucida Console", Monaco, monospace;
  283. margin: auto;
  284. padding: 1em;
  285. text-align: left; /* override justify on body */
  286. /* this was disabled until 2016-08-26 but I don't know why */
  287. overflow: auto; /* allow scroll bar in case of long lines - goes together with white-space: nowrap! */
  288. white-space: pre; /* was nowrap, prevent line wrapping */
  289. line-height: 1.5em;
  290. width: calc(100% - 80px);
  291. }
  292. @media print {
  293. pre.prettyprint .str, code.prettyprint .str{color:#060}
  294. pre.prettyprint .kwd, code.prettyprint .kwd{color:#006;font-weight:bold}
  295. pre.prettyprint .com, code.prettyprint .com{color:#600;font-style:italic}
  296. pre.prettyprint .typ, code.prettyprint .typ{color:#404;font-weight:bold}
  297. pre.prettyprint .lit, code.prettyprint .lit{color:#044}
  298. pre.prettyprint .pun, code.prettyprint .pun{color:#440}
  299. pre.prettyprint .pln, code.prettyprint .pln{color:#000}
  300. pre.prettyprint .tag, code.prettyprint .tag{color:#006;font-weight:bold}
  301. pre.prettyprint .atn, code.prettyprint .atn{color:#404}
  302. pre.prettyprint .atv, code.prettyprint .atv{color:#060}
  303. pre.prettyprint, code.prettyprint {
  304. color: #000;
  305. background: #EEE;
  306. font-size: 8pt;
  307. font-family: "Lucida Console", Monaco, monospace;
  308. width: 95%;
  309. margin: auto;
  310. padding: 1em;
  311. text-align: left; /* override justify on body */
  312. overflow: visible;
  313. white-space: pre; /* was nowrap, prevent line wrapping */
  314. line-height: 1.5;
  315. }
  316. pre.prettyprint ul.modifiedlines li.linemodified {
  317. list-style-type: none;
  318. background-color: #DDD;
  319. }
  320. pre.prettyprint ul.modifiedlines li.linedeleted {
  321. list-style-type: none;
  322. background-color: #CCC;
  323. text-decoration: line-through;
  324. }
  325. pre.prettyprint ul.modifiedlines li.lineadded {
  326. list-style-type: none;
  327. background-color: #EEE;
  328. }
  329. body {
  330. margin: 10mm;
  331. }
  332. .doubleSpace p {
  333. line-height: 2.5;
  334. font-size: x-large;
  335. }
  336. .doubleSpace pre.prettyprint {
  337. font-size: 14pt;
  338. }
  339. .threejs_navbar,
  340. .lesson-comment-sep,
  341. .lesson-sidebar,
  342. .lesson-comments {
  343. display: none;
  344. }
  345. }
  346. @media (max-width: 720px) {
  347. body {
  348. font-size: 16px;
  349. }
  350. h1 {
  351. font-size: 24px;
  352. }
  353. .threejs_example {
  354. max-height: 400px;
  355. }
  356. iframe {
  357. max-width: 95%;
  358. }
  359. iframe.background {
  360. max-width: 100%;
  361. }
  362. }