2018-07-26 04:28:12 +08:00
|
|
|
/* CSS for UI elements (a.k.a. chrome) */
|
|
|
|
|
|
|
|
@import 'variables.css';
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
background: var(--bg);
|
|
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background: var(--scrollbar);
|
|
|
|
}
|
2019-07-29 03:01:33 +08:00
|
|
|
html {
|
|
|
|
scrollbar-color: var(--scrollbar) var(--bg);
|
|
|
|
}
|
2018-07-26 04:28:12 +08:00
|
|
|
#searchresults a,
|
|
|
|
.content a:link,
|
|
|
|
a:visited,
|
|
|
|
a > .hljs {
|
|
|
|
color: var(--links);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Menu Bar */
|
|
|
|
|
|
|
|
#menu-bar {
|
|
|
|
position: -webkit-sticky;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 101;
|
2018-07-26 05:02:31 +08:00
|
|
|
margin: auto calc(0px - var(--page-padding));
|
2018-07-26 04:28:12 +08:00
|
|
|
}
|
|
|
|
#menu-bar > #menu-bar-sticky-container {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
background-color: var(--bg);
|
|
|
|
border-bottom-color: var(--bg);
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
border-bottom-style: solid;
|
|
|
|
}
|
|
|
|
.js #menu-bar > #menu-bar-sticky-container {
|
|
|
|
transition: transform 0.3s;
|
|
|
|
}
|
2018-07-26 05:02:31 +08:00
|
|
|
#menu-bar.bordered > #menu-bar-sticky-container {
|
2018-07-26 04:28:12 +08:00
|
|
|
border-bottom-color: var(--table-border-color);
|
|
|
|
}
|
|
|
|
#menu-bar i, #menu-bar .icon-button {
|
|
|
|
position: relative;
|
2018-07-31 08:03:29 +08:00
|
|
|
padding: 0 8px;
|
2018-07-26 04:28:12 +08:00
|
|
|
z-index: 10;
|
|
|
|
line-height: 50px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color 0.5s;
|
|
|
|
}
|
2018-07-27 03:26:34 +08:00
|
|
|
@media only screen and (max-width: 420px) {
|
2018-07-26 04:28:12 +08:00
|
|
|
#menu-bar i, #menu-bar .icon-button {
|
2018-07-31 08:03:29 +08:00
|
|
|
padding: 0 5px;
|
2018-07-26 04:28:12 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
.icon-button i {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2018-10-13 19:17:33 +08:00
|
|
|
.right-buttons {
|
2018-07-26 04:28:12 +08:00
|
|
|
margin: 0 15px;
|
|
|
|
}
|
2018-10-13 19:17:33 +08:00
|
|
|
.right-buttons a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2018-07-26 04:28:12 +08:00
|
|
|
|
|
|
|
html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-container {
|
|
|
|
transform: translateY(-60px);
|
|
|
|
}
|
|
|
|
|
2018-07-31 08:03:29 +08:00
|
|
|
.left-buttons {
|
|
|
|
display: flex;
|
|
|
|
margin: 0 5px;
|
|
|
|
}
|
2018-12-13 03:31:01 +08:00
|
|
|
.no-js .left-buttons {
|
2018-07-31 08:03:29 +08:00
|
|
|
display: none;
|
|
|
|
}
|
2018-07-26 04:28:12 +08:00
|
|
|
|
|
|
|
.menu-title {
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: 200;
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 50px;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
flex: 1;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
.js .menu-title {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-bar,
|
|
|
|
.menu-bar:visited,
|
|
|
|
.nav-chapters,
|
|
|
|
.nav-chapters:visited,
|
|
|
|
.mobile-nav-chapters,
|
|
|
|
.mobile-nav-chapters:visited,
|
|
|
|
.menu-bar .icon-button,
|
|
|
|
.menu-bar a i {
|
|
|
|
color: var(--icons);
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-bar i:hover,
|
|
|
|
.menu-bar .icon-button:hover,
|
|
|
|
.nav-chapters:hover,
|
|
|
|
.mobile-nav-chapters i:hover {
|
|
|
|
color: var(--icons-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Nav Icons */
|
|
|
|
|
|
|
|
.nav-chapters {
|
|
|
|
font-size: 2.5em;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
position: fixed;
|
2019-08-03 22:56:25 +08:00
|
|
|
top: 0;
|
2018-07-26 04:28:12 +08:00
|
|
|
bottom: 0;
|
|
|
|
margin: 0;
|
|
|
|
max-width: 150px;
|
|
|
|
min-width: 90px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2019-08-03 22:56:25 +08:00
|
|
|
transition: color 0.5s, background-color 0.5s;
|
2018-07-26 04:28:12 +08:00
|
|
|
}
|
|
|
|
|
2019-08-03 22:56:25 +08:00
|
|
|
.nav-chapters:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: var(--theme-hover);
|
|
|
|
transition: background-color 0.15s, color 0.15s;
|
|
|
|
}
|
2018-07-26 04:28:12 +08:00
|
|
|
|
|
|
|
.nav-wrapper {
|
|
|
|
margin-top: 50px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-12-13 03:31:01 +08:00
|
|
|
.mobile-nav-chapters {
|
2018-07-26 04:28:12 +08:00
|
|
|
font-size: 2.5em;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
width: 90px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: var(--sidebar-bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.previous {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.next {
|
|
|
|
float: right;
|
|
|
|
right: var(--page-padding);
|
|
|
|
}
|
|
|
|
|
2018-07-27 03:26:34 +08:00
|
|
|
@media only screen and (max-width: 1080px) {
|
2018-07-26 04:28:12 +08:00
|
|
|
.nav-wide-wrapper { display: none; }
|
|
|
|
.nav-wrapper { display: block; }
|
|
|
|
}
|
|
|
|
|
2018-07-27 03:26:34 +08:00
|
|
|
@media only screen and (max-width: 1380px) {
|
2018-07-26 04:28:12 +08:00
|
|
|
.sidebar-visible .nav-wide-wrapper { display: none; }
|
|
|
|
.sidebar-visible .nav-wrapper { display: block; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
|
|
|
|
:not(pre) > .hljs {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
padding: 0.1em 0.3em;
|
|
|
|
border-radius: 3px;
|
2019-05-03 02:07:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
:not(pre):not(a) > .hljs {
|
2018-07-26 04:28:12 +08:00
|
|
|
color: var(--inline-code-color);
|
2019-05-08 06:30:28 +08:00
|
|
|
overflow-x: initial;
|
2018-07-26 04:28:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a:hover > .hljs {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
pre > .buttons {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 100;
|
|
|
|
right: 5px;
|
|
|
|
top: 5px;
|
|
|
|
|
|
|
|
color: var(--sidebar-fg);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
pre > .buttons :hover {
|
|
|
|
color: var(--sidebar-active);
|
|
|
|
}
|
|
|
|
pre > .buttons i {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
pre > .buttons button {
|
|
|
|
color: inherit;
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
pre > .result {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Search */
|
|
|
|
|
|
|
|
#searchresults a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
mark {
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0 3px 1px 3px;
|
|
|
|
margin: 0 -3px -1px -3px;
|
|
|
|
background-color: var(--search-mark-bg);
|
|
|
|
transition: background-color 300ms linear;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
mark.fade-out {
|
|
|
|
background-color: rgba(0,0,0,0) !important;
|
|
|
|
cursor: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchbar-outer {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
max-width: var(--content-max-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
#searchbar {
|
|
|
|
width: 100%;
|
|
|
|
margin: 5px auto 0px auto;
|
|
|
|
padding: 10px 16px;
|
|
|
|
transition: box-shadow 300ms ease-in-out;
|
|
|
|
border: 1px solid var(--searchbar-border-color);
|
|
|
|
border-radius: 3px;
|
|
|
|
background-color: var(--searchbar-bg);
|
|
|
|
color: var(--searchbar-fg);
|
|
|
|
}
|
|
|
|
#searchbar:focus,
|
|
|
|
#searchbar.active {
|
|
|
|
box-shadow: 0 0 3px var(--searchbar-shadow-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchresults-header {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1em;
|
|
|
|
padding: 18px 0 0 5px;
|
|
|
|
color: var(--searchresults-header-fg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.searchresults-outer {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
max-width: var(--content-max-width);
|
|
|
|
border-bottom: 1px dashed var(--searchresults-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
ul#searchresults {
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
ul#searchresults li {
|
|
|
|
margin: 10px 0px;
|
|
|
|
padding: 2px;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
ul#searchresults li.focus {
|
|
|
|
background-color: var(--searchresults-li-bg);
|
|
|
|
}
|
|
|
|
ul#searchresults span.teaser {
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
margin: 5px 0 0 20px;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
ul#searchresults span.teaser em {
|
|
|
|
font-weight: bold;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar */
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: var(--sidebar-width);
|
|
|
|
font-size: 0.875em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
overscroll-behavior-y: contain;
|
|
|
|
background-color: var(--sidebar-bg);
|
|
|
|
color: var(--sidebar-fg);
|
|
|
|
}
|
2018-12-13 03:43:02 +08:00
|
|
|
.sidebar-resizing {
|
|
|
|
-moz-user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
.js:not(.sidebar-resizing) .sidebar {
|
2018-07-26 04:28:12 +08:00
|
|
|
transition: transform 0.3s; /* Animation: slide away */
|
|
|
|
}
|
|
|
|
.sidebar code {
|
|
|
|
line-height: 2em;
|
|
|
|
}
|
2018-12-13 03:31:01 +08:00
|
|
|
.sidebar .sidebar-scrollbox {
|
|
|
|
overflow-y: auto;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 10px 10px;
|
|
|
|
}
|
|
|
|
.sidebar .sidebar-resize-handle {
|
|
|
|
position: absolute;
|
|
|
|
cursor: col-resize;
|
|
|
|
width: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
.js .sidebar .sidebar-resize-handle {
|
|
|
|
cursor: col-resize;
|
|
|
|
width: 5px;
|
|
|
|
}
|
2018-07-26 04:28:12 +08:00
|
|
|
.sidebar-hidden .sidebar {
|
2018-07-26 05:02:31 +08:00
|
|
|
transform: translateX(calc(0px - var(--sidebar-width)));
|
2018-07-26 04:28:12 +08:00
|
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar {
|
|
|
|
background: var(--sidebar-bg);
|
|
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-thumb {
|
|
|
|
background: var(--scrollbar);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-visible .page-wrapper {
|
|
|
|
transform: translateX(var(--sidebar-width));
|
|
|
|
}
|
2018-07-27 03:26:34 +08:00
|
|
|
@media only screen and (min-width: 620px) {
|
2018-07-26 04:28:12 +08:00
|
|
|
.sidebar-visible .page-wrapper {
|
|
|
|
transform: none;
|
|
|
|
margin-left: var(--sidebar-width);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter {
|
|
|
|
list-style: none outside none;
|
|
|
|
padding-left: 0;
|
|
|
|
line-height: 2.2em;
|
|
|
|
}
|
|
|
|
.chapter li {
|
|
|
|
color: var(--sidebar-non-existant);
|
|
|
|
}
|
|
|
|
.chapter li a {
|
|
|
|
display: block;
|
|
|
|
padding: 0;
|
|
|
|
text-decoration: none;
|
2018-11-29 09:05:37 +08:00
|
|
|
color: var(--sidebar-fg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter li a:hover {
|
|
|
|
color: var(--sidebar-active);
|
2018-07-26 04:28:12 +08:00
|
|
|
}
|
2018-11-29 09:05:37 +08:00
|
|
|
|
|
|
|
.chapter li .active {
|
2018-07-26 04:28:12 +08:00
|
|
|
color: var(--sidebar-active);
|
|
|
|
}
|
|
|
|
|
|
|
|
.spacer {
|
|
|
|
width: 100%;
|
|
|
|
height: 3px;
|
|
|
|
margin: 5px 0px;
|
|
|
|
}
|
|
|
|
.chapter .spacer {
|
|
|
|
background-color: var(--sidebar-spacer);
|
|
|
|
}
|
|
|
|
|
2018-12-13 03:31:01 +08:00
|
|
|
@media (-moz-touch-enabled: 1), (pointer: coarse) {
|
2018-07-26 04:28:12 +08:00
|
|
|
.chapter li a { padding: 5px 0; }
|
|
|
|
.spacer { margin: 10px 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
|
|
|
list-style: none outside none;
|
|
|
|
padding-left: 20px;
|
|
|
|
line-height: 1.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Theme Menu Popup */
|
|
|
|
|
|
|
|
.theme-popup {
|
|
|
|
position: absolute;
|
|
|
|
left: 10px;
|
2018-07-31 08:03:29 +08:00
|
|
|
top: 50px;
|
2018-07-26 04:28:12 +08:00
|
|
|
z-index: 1000;
|
|
|
|
border-radius: 4px;
|
|
|
|
font-size: 0.7em;
|
|
|
|
color: var(--fg);
|
|
|
|
background: var(--theme-popup-bg);
|
|
|
|
border: 1px solid var(--theme-popup-border);
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.theme-popup .default {
|
|
|
|
color: var(--icons);
|
|
|
|
}
|
|
|
|
.theme-popup .theme {
|
2018-07-27 04:21:22 +08:00
|
|
|
width: 100%;
|
2018-07-26 04:28:12 +08:00
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 2px 10px;
|
|
|
|
line-height: 25px;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: left;
|
|
|
|
cursor: pointer;
|
|
|
|
color: inherit;
|
|
|
|
background: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
.theme-popup .theme:hover {
|
|
|
|
background-color: var(--theme-hover);
|
|
|
|
}
|
|
|
|
.theme-popup .theme:hover:first-child,
|
|
|
|
.theme-popup .theme:hover:last-child {
|
|
|
|
border-top-left-radius: inherit;
|
|
|
|
border-top-right-radius: inherit;
|
|
|
|
}
|