/* dark mode */ @media (prefers-color-scheme: dark) { html{ background-color: #2d2a2e; color: #f7f6f3; } a { color: #ac9c6d; } header { background: #2d2a2e; border-bottom: 2px dotted #f7f6f3; } header a { color: #f7f6f3; } } /* light mode */ @media (prefers-color-scheme: light) { html{ background-color: #f7f6f3; color: #2d2a2e; } a { color: #846b1f; } header { background: #f7f6f3; border-bottom: 2px dotted #2d2a2e; } header a { color: #2d2a2e; } } body { max-width: 60%; margin: auto; padding: .2em; padding-top: 0; line-height: 1.5em; font-size: 24px; } h1 { line-height: 1.5em; } ul { list-style-type: none; } .menu{ text-align: center; } .menu li { display: inline-block; } .pull-left { float: left } .pull-right { float: right } a { text-decoration: none; } a:hover { text-decoration: underline; } /* Adjust background at your leisure! */ header { position: fixed; width: 60%; height: 2.2rem; font-size: 1.2rem; } .menu a { text-decoration: none; padding: 5px; border-radius: 5px; border-style: dotted; border-width: 1px; margin: 20px 0px 20px 0px; } header ul, header ol { margin: 0; padding: 0; list-style: none } header nav { padding: 0 0.5rem } header a { line-height: 1.75rem; padding: 0 0.5rem } footer { text-align: center; } /* Code Boxes */ pre { border: 2px solid #EBC3DB; padding: 1em; overflow-x: auto; } pre code { background: none; } code { background-color: light-dark(#D6D6D6, #888); border-radius: 3px; padding: 0.2em; overflow-x: auto; } /* Images, tables, misc. */ img, iframe, video { max-width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; } main { hyphens: auto; max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.7em; hyphens: auto; display: block; font-size: 1.1em; } main a { font-weight: bold; } .content-wrapper { padding: 40px 12px 0px 12px; } #personal { min-width: 40px; max-width: 270px; float: right; padding: 10px; display: block; } /* Small devices */ @media only screen and (max-width : 575px) { body { max-width: 100%; font-size: 19px; } #personal { min-width: 40px; max-width: 180px; float: center; padding: 0px 0px 0px 0px; display: block; } header { width: 100%; } header a { padding: 0px; margin-right: 5px; } .content-wrapper { padding: 40px 0px 10px 10px; } }