/*********************************** Top level styling ************************************/ html { background: #eee; height: 100%; overflow: auto; } body { font-size: 16px; font-family: "Noto Sans", sans-serif; line-height: 1.5rem; width: 1080px; margin: auto; color: #232325; border-radius: 8px; padding: 32px; } header { margin: 0; font-size: 16px; text-align: center; border-radius: 0px 0px 3px 3px; padding: 0.25rem; } header > h1 { margin: 0rem; } header > h1 > a { color: inherit; text-decoration: inherit; } header > h1 > a:hover { font-weight: bold; opacity: 0.5; } main { display: flex; flex-direction: row; margin-bottom: 1rem; overflow-y: hidden; } /*********************************** Navbar stylings ************************************/ nav { padding-top: 1rem; position: sticky; width: 20%; min-width: 20%; max-width: 20%; margin-right: 5%; display: flex; flex-direction: column; text-align: left; font-size: 1rem; user-select: none; } .outer-tree { width: 100%; list-style: none; padding: 0; margin: 0; } .outer-tree > li { margin-bottom: 0.25rem; } .outer-tree > li > span { display: block; width: 100%; padding: 0.25rem; } .outer-tree > li > span > i { transform: rotate(0deg); transition: 100ms ease-in-out transform; } .outer-tree li > span > span { padding-left: 1rem;; } .inner-tree { margin-left: 0.5rem; padding-left: 1rem; list-style: none; border-left: 1px solid #232325; } .inner-tree > li { } .inner-tree > li > label { font-weight: bold; text-align: center; text-decoration: underline; } .inner-tree > li > a { margin-left: 0.5rem; } nav a { color: #232325; text-decoration: none; display: inline-block; min-width: 196px; } nav a:hover { opacity: 0.5; cursor: pointer; } .nav-selected { font-weight: bold; color: #ede68a; } .formula { width: 100%; text-align: center; font-style: italic; } .image { width: 100%; text-align: center; } .image img { border-radius: 3px; border: 1px solid #D0D0D0; } /*********************************** Content styling ************************************/ article { min-width: 75%; width: 75%; overflow-y: auto; } article > h1 { width: 100%; padding-bottom: 0.25rem; font-weight: 500; } section > p { padding-left: 0; } section > h2 { color: #0f3460; font-size: 20px; font-weight: 500; } #references a { color: inherit; text-decoration: none; } #references a:hover { opacity: 0.5; } /*********************************** Code stylings ************************************/ pre { background-color: white; border: 1px solid #D0D0D0; border-radius: 3px; overflow-x: auto; padding: 1rem; font-size: 0.8rem; line-height: 1.0rem; } code { font-family: Consolas,monaco,monospace; } .code_keyword { color: blue; font-weight: bold; } .code_constant { font-weight: bold; } .code_str { color: orange; } .code_comment { color: green; } /*********************************** WebGL container ************************************/ .opengl_canvas_container { position: relative; width: 100%; text-align: center; display: flex; flex-direction: column; justify-content: center; border-radius: 3px; } .opengl_canvas_container .play_button { all: unset; font-size: 2rem; width: 128px; height: 128px; position: absolute; top: calc(50% - 56px); left: calc(50% - 56px); border: 1px solid white; color: white; background-color: transparent; border-radius: 50%; display: flex; flex-direction: row; align-items: center; justify-content: center; cursor: pointer; } .opengl_canvas_container canvas { border-radius: 3px 3px 0px 0px; border: 1px solid #b0a565; width: 800px; height: 600px; } .opengl_canvas_container .stop_button { all: unset; font-size: 1rem; background-color: red; color: white; position: absolute; width: 128px; height: 2rem; border-radius: 2px; top: 0.5rem; left: 496px; display: none; cursor: pointer; }