PointsOfOrder/_static/custom_html.css

248 lines
3.8 KiB
CSS

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;1,400;1,600&family=Source+Serif+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');
body {
font-family: 'Source Serif Pro', serif;
}
div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
font-family: 'Source Sans Pro', sans-serif;
font-weight: 600;
}
div.sphinxsidebarwrapper h1.logo {
font-weight: 600;
}
/* Paragraph numbers */
div.body p {
position: relative;
}
span.paragraph-num {
width: 3rem;
position: absolute;
left: -3.5rem;
padding-right: 1rem; /* For mouseover bounding box */
text-align: right;
font-size: 0.8rem;
visibility: hidden;
}
span.paragraph-num a {
color: #aaa;
text-decoration: none;
}
span.paragraph-num a:hover {
border-bottom: 1px solid #aaa;
}
span.paragraph-num a::before {
content: '¶';
}
p:hover span.paragraph-num {
visibility: visible;
}
/* Remove underlining from links */
a, a.reference, a.footnote-reference {
border-bottom: none;
}
/* Footnotes */
dl.footnote dt {
position: relative;
}
span.fn-backref {
position: absolute;
background-color: white;
z-index: 999;
border: 1px solid #999;
border-radius: 4px;
padding: 2px;
top: -3px;
}
dl.footnote dt:hover span.fn-backref {
display: inline;
}
#footnote-preview {
position: fixed;
display: none;
color: #3E4349;
background-color: white;
z-index: 999;
border: 1px solid #999;
border-radius: 4px;
padding: 2px;
}
/* Sidebar */
div.sphinxsidebarwrapper p.caption {
display: none;
}
div.sphinxsidebarwrapper div.logo {
display: flex;
align-items: center;
}
div.sphinxsidebarwrapper div.logo a:not(:hover) {
border: none;
}
div.sphinxsidebarwrapper div.logo > a {
border: none;
max-width: 40%;
margin-right: 0.5em;
}
div.sphinxsidebarwrapper div.logo img.logo {
max-height: 10em;
}
/* Navigation */
.nav-page-prev, .nav-page-next {
color: #888;
text-decoration: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.nav-page-prev .arrow, .nav-page-next .arrow {
font-size: 3rem;
}
.nav-page-prev:hover, .nav-page-next:hover {
background-color: #f6f6f6;
color: #444;
text-decoration: none;
}
/* Footer(s) */
div.pre-footer {
margin: 20px auto 0 auto;
padding: 4px;
font-size: 16px;
text-align: center;
border: 1px solid #999;
}
div.pre-footer a {
color: #444;
}
/* Fix display on very narrow screens */
div.body {
min-width: 0;
}
/* Media queries */
@media screen and (max-width: 875px) {
/* Override narrow window list formatting */
ul {
margin-left: 30px;
}
/* Paragraph numbers */
span.paragraph-num {
left: -3.2rem;
}
/* Sidebar */
div.sphinxsidebar {
/* Use alternative way of calculating width/position to avoid white bar at right side */
position: absolute;
width: 100%;
box-sizing: border-box;
left: 0;
margin-left: 0;
}
div.sphinxsidebar ul {
color: #fff;
}
}
@media screen and (min-width: 875px) {
/* Use alternative calculations: fix sidebar display in combination with .nav-page-holder */
div.sphinxsidebar {
position: absolute;
top: 30px;
left: calc(50% - 470px);
margin-left: 0;
}
}
@media screen and (max-width: 1275px) {
/* Navigation */
.nav-page-prev, .nav-page-next {
padding-bottom: 1em;
width: 50%;
max-width: 150px;
}
.nav-page-prev {
float: left;
}
.nav-page-next {
float: right;
}
.nav-page-holder {
margin-top: 30px;
}
.nav-page-holder::after {
content: "";
display: block;
clear: both;
}
}
@media screen and (min-width: 1275px) {
/* Navigation */
.nav-page-prev, .nav-page-next {
position: fixed;
top: 0;
height: 100vh;
width: 150px;
}
.nav-page-prev {
left: 0;
margin-right: 50px;
}
.nav-page-next {
right: 0;
margin-left: 50px;
}
}