mirror of
https://github.com/Juicysteak117/pghrt.git
synced 2025-12-21 15:35:25 +00:00
211 lines
4.7 KiB
CSS
211 lines
4.7 KiB
CSS
@font-face {
|
|
font-family: 'bold';
|
|
src: url('font/bold.otf') format('opentype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'ital';
|
|
src: url('font/italics.otf') format('opentype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'crm';
|
|
src: url('font/crm.otf') format('opentype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'boit';
|
|
src: url('font/boit.otf') format('opentype');
|
|
}
|
|
|
|
/*default for light*/
|
|
:root {
|
|
--font-color: #000;
|
|
--link-color:blue;
|
|
--main-bg: #fff;
|
|
--toc-bg: #eee;
|
|
--toc-hover: #ccc;
|
|
--toc-accent: #ddd;
|
|
--typewriter-bg: #ddd;
|
|
--snackbar-bg: #333;
|
|
--snackbar-color: #fff;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--font-color: #000;
|
|
--link-color:blue;
|
|
--main-bg: #fff;
|
|
--toc-bg: #eee;
|
|
--toc-hover: #ccc;
|
|
--toc-accent: #ddd;
|
|
--typewriter-bg: #ddd;
|
|
--snackbar-bg: #333;
|
|
--snackbar-color: #fff;
|
|
}
|
|
|
|
|
|
body {
|
|
font-family: 'crm';
|
|
padding: 0 0px 0 0;
|
|
margin: 0;
|
|
font-size: 17px;
|
|
font-variant-ligatures: none;
|
|
}
|
|
|
|
.ltx_TOC a:link, .ltx_TOC a:visited, .ltx_p a:link, .ltx_p a:visited { color: var(--link-color) !important; }
|
|
.ltx_personname a:link, .ltx_personname a:visited { color: fuchsia; }
|
|
|
|
.ltx_title_abstract, .ltx_title, .ltx_font_bold { font-family: 'bold'; font-weight: bold;}
|
|
.ltx_font_italic { font-family: 'ital';}
|
|
.ltx_font_bold.ltx_font_italic { font-family: 'boit' !important; }
|
|
|
|
#menu {
|
|
content: '\09776';
|
|
min-height: 5vh;
|
|
height: 5vh;
|
|
width: 5vw;
|
|
}
|
|
.header { display: none; }
|
|
|
|
.ltx_font_typewriter {
|
|
background-color: var(--typewriter-bg);
|
|
}
|
|
|
|
.ltx_page_main { margin-left: 400px; transition: margin 0.2s ease-out; padding: min(1em,1.5%) min(3em,4.5%) min(1em,1.5%) min(3em, 4.5%); width: 50%;}
|
|
.ltx_TOC a { display: block; width: 100%; }
|
|
.ltx_TOC { position: fixed; overflow-y: scroll; width: 400px; background-color: var(--toc-bg); transition: width 0.2s ease-out; top: 0; bottom: 0; }
|
|
.ltx_TOC.show { width: 100vw; visibility: visible; }
|
|
#menu { display: none; }
|
|
|
|
|
|
.ltx_toclist { padding: 0; }
|
|
.ltx_tocentry { padding-left: 20px }
|
|
.ltx_title_contents {text-align:center; font-size: 120%; font-weight:bold; margin-top: 1em; margin-bottom: 1em; }
|
|
.ltx_tag_section { margin-right: .5em }
|
|
.ltx_p { line-height: 1.4; text-align: justify; }
|
|
|
|
.ltx_tocentry_section {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ltx_graphics {
|
|
object-fit: contain;
|
|
height: auto !important;
|
|
width: 100% !important;
|
|
max-width: max-content;
|
|
}
|
|
|
|
.ltx_eqn_center_padleft, .ltx_eqn_center_padright {
|
|
min-width: 0;
|
|
}
|
|
|
|
.chain {
|
|
text-decoration:none;
|
|
font-size: 80%;
|
|
}
|
|
|
|
/*side bar*/
|
|
ol[class="ltx_toclist ltx_toclist_section"]{
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.2s ease-out;
|
|
width: 97%;
|
|
}
|
|
|
|
.ltx_tocentry_subsection:hover, .ltx_ref.active:hover {
|
|
background-color: var(--toc-hover);
|
|
}
|
|
*
|
|
.ltx_tocentry_section:hover {
|
|
background-color: var(--toc-accent);
|
|
}
|
|
|
|
|
|
/* +/- handling */
|
|
|
|
.ltx_tocentry.ltx_tocentry_section > .ltx_ref:after {
|
|
content: '\02795'; /* Unicode character for "plus" sign (+) */
|
|
font-size: 16px;
|
|
color: white;
|
|
float: right;
|
|
margin-right: 5px;
|
|
position: relative;
|
|
z-index: 100;
|
|
font-family: serif;
|
|
}
|
|
|
|
.ltx_tocentry.ltx_tocentry_section > .ltx_ref.active:after {
|
|
content: "\2796"; /* Unicode character for "minus" sign (-) */
|
|
position: relative;
|
|
z-index: 100;
|
|
font-family: serif;
|
|
}
|
|
|
|
/* removing +/- from any without subs*/
|
|
.del:after {
|
|
content: "" !important;
|
|
}
|
|
|
|
/* i'm just copying this shit from w3schools ngl */
|
|
|
|
#snackbar {
|
|
visibility: hidden;
|
|
min-width: 250px;
|
|
margin-left: -125px;
|
|
background-color: var(--snackbar-bg);
|
|
color: var(--snackbar-color);
|
|
text-align: center;
|
|
border-radius: 2px;
|
|
padding: 16px;
|
|
position: fixed;
|
|
z-index: 1;
|
|
left: 50%;
|
|
bottom: 30px;
|
|
font-size: 17px;
|
|
}
|
|
|
|
#snackbar.show {
|
|
visibility: visible;
|
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
|
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
|
}
|
|
|
|
@-webkit-keyframes fadein {
|
|
from {bottom: 0; opacity: 0;}
|
|
to {bottom: 30px; opacity: 1;}
|
|
}
|
|
|
|
@keyframes fadein {
|
|
from {bottom: 0; opacity: 0;}
|
|
to {bottom: 30px; opacity: 1;}
|
|
}
|
|
|
|
@-webkit-keyframes fadeout {
|
|
from {bottom: 30px; opacity: 1;}
|
|
to {bottom: 0; opacity: 0;}
|
|
}
|
|
|
|
@keyframes fadeout {
|
|
from {bottom: 30px; opacity: 1;}
|
|
to {bottom: 0; opacity: 0;}
|
|
}
|
|
|
|
@media screen AND (max-width:1000px) {
|
|
.ltx_TOC { width: 0; visibility: hidden; top: 5vh; }
|
|
#menu { display: block; width: 100%; padding: 0; border-radius: 0; border-top: none; border-left: none; border-right: none;}
|
|
.header { display: block; position: sticky; width: 100%; top: 0; padding: 0;}
|
|
.ltx_page_main { margin: 0px; width: 90% !important;}
|
|
.ltx_eqn_table {width: 90% !important;}
|
|
|
|
.ltx_tocentry.ltx_tocentry_section > .ltx_ref:after { margin-right: 20px; }
|
|
|
|
}
|
|
|
|
|
|
@media screen AND (max-width:500px) {
|
|
|
|
.ltx_eqn_table {font-size: 15px; }
|
|
|
|
|
|
}
|