docs: new site
This commit is contained in:
parent
43ccd7389d
commit
719a563feb
43 changed files with 1185 additions and 1899 deletions
8
resources/theme/404.html
Normal file
8
resources/theme/404.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>404</h2>
|
||||
<p>Page not found.</p>
|
||||
|
||||
{% endblock %}
|
||||
119
resources/theme/base.html
Normal file
119
resources/theme/base.html
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="{{ config.site_description }}" />
|
||||
<link rel="shortcut icon" href="{{ config.theme.favicon|url }}">
|
||||
|
||||
<title>{% if page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
|
||||
<link rel="stylesheet" href="{{ "/extensions/admonition.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/extensions/codehilite.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/styles.css"|url }}">
|
||||
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css">
|
||||
{% block extrahead %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="d-header">
|
||||
<div class="wrap">
|
||||
<div class="contents">
|
||||
<div class="title">
|
||||
<a href="{{ "/"|url }}"><img src="{{ "/img/logo_discourse.png"|url }}"/></a>
|
||||
</div>
|
||||
<div class="header-buttons-panel">
|
||||
<span class="header-buttons">
|
||||
<div role="search">
|
||||
<form action="{{ "search.html"|url }}" method="get">
|
||||
<input id="mkdocs-search-query" type="search" name="q" placeholder="Search" />
|
||||
</form>
|
||||
</div>
|
||||
<a href="{{ "/"|url}}" class="{% if page.is_homepage %}active{% endif %}">Home</a>
|
||||
<a href="{{ "/docs"|url }}" class="{% if not page.is_homepage %}active{% endif %}">Docs</a>
|
||||
<a href="https://github.com/jean-emmanuel/open-stage-control" target="_blank">Bug Tracker</a>
|
||||
<a href="https://openstagecontrol.discourse.group">Community</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if page.is_homepage %}
|
||||
<div id="jumbotron" class="bg-secondary">
|
||||
<!-- <div class="bg" style="background-image:url({{base_url}}/img/ardour-osc.png)"></div> -->
|
||||
<div class="wrap">
|
||||
<h1 class="text-dark">{{ config.site_name }}</h1>
|
||||
<h2 class="text-dark">{{ config.site_description }}</h2>
|
||||
<br/>
|
||||
<div class="">
|
||||
{% for link in config.extra.links %}
|
||||
<a class="btn {% if link.primary %}btn-primary{% endif %}" href="{{link.url}}">{{link.title}}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="main" class="wrap">
|
||||
{% if not page.is_homepage %}
|
||||
{% set ns = namespace(navigation=[]) %}
|
||||
{% for nav_item in nav %}
|
||||
{% if nav_item.children %}
|
||||
{% set ns.navigation = nav_item %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="col-left">
|
||||
<ul class="nav">
|
||||
{% for nav_item in ns.navigation.children %}
|
||||
{% if nav_item.active or nav_item.abs_url == '/docs/getting-started/' and page.abs_url == '/docs/' %}
|
||||
{% set active = True %}
|
||||
{% endif %}
|
||||
<li class="nav-item {% if active%}active{% endif %}">
|
||||
<a href="{{ nav_item.url }}">{{ nav_item.title }}</a>
|
||||
{% if active %}
|
||||
{% set toc_ = page.toc %}
|
||||
|
||||
<!--
|
||||
(@MaterialMkdocs)
|
||||
Hack: check whether the content contains a h1 headline. If it does, the
|
||||
top-level anchor must be skipped, since it would be redundant to the link
|
||||
to the current page that is located just above the anchor. Therefore we
|
||||
directly continue with the children of the anchor.
|
||||
-->
|
||||
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
|
||||
{% set toc_ = (toc_ | first).children %}
|
||||
{% endif %}
|
||||
{% if toc_ | first is defined %}
|
||||
<ul class="nav">
|
||||
{% for toc_item in toc_ %}
|
||||
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
||||
{% for toc_item in toc_item.children %}
|
||||
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div class="col-right">
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{{ "/scripts.js"|url }}"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
|
||||
<script src="{{ "search/main.js"|url }}" defer></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
57
resources/theme/extensions/admonition.css
Normal file
57
resources/theme/extensions/admonition.css
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
div.admonition {
|
||||
font-size: 0.9em;
|
||||
border: 1px solid #cccccc;
|
||||
background-color: #fafafa;
|
||||
padding: 0;
|
||||
border-radius: 3px;
|
||||
margin: 0 0 1.2rem;
|
||||
}
|
||||
|
||||
div.admonition p {
|
||||
margin: 0.5em 1em 0.5em 1em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.admonition li p {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
div.admonition pre, div.warning pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.admonition p.admonition-title {
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
background-color: #165e83;
|
||||
}
|
||||
|
||||
div.danger { border: 1px solid #b7282e;}
|
||||
div.error { border: 1px solid #b7282e;}
|
||||
div.warning { border: 1px solid #f19072;}
|
||||
div.caution { border: 1px solid #f19072;}
|
||||
div.attention { border: 1px solid #f19072;}
|
||||
div.important { border: 1px solid #f8b862;}
|
||||
div.note { border: 1px solid #f8b862;}
|
||||
div.hint { border: 1px solid #7ebea5;}
|
||||
div.tip { border: 1px solid #7ebea5;}
|
||||
|
||||
div.danger p.admonition-title, div.error p.admonition-title {
|
||||
background-color: #b7282e;
|
||||
}
|
||||
|
||||
div.caution p.admonition-title,
|
||||
div.warning p.admonition-title,
|
||||
div.attention p.admonition-title {
|
||||
background-color: #f19072;
|
||||
}
|
||||
|
||||
div.note p.admonition-title, div.important p.admonition-title {
|
||||
background-color: #f8b862;
|
||||
}
|
||||
|
||||
div.hint p.admonition-title, div.tip p.admonition-title {
|
||||
background-color: #7ebea5;
|
||||
}
|
||||
316
resources/theme/extensions/codehilite.css
Normal file
316
resources/theme/extensions/codehilite.css
Normal file
|
|
@ -0,0 +1,316 @@
|
|||
/* https://raw.githubusercontent.com/simonsmith/syntax.css */
|
||||
|
||||
.codehilite {
|
||||
background: #ffffff;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.codehilite .c {
|
||||
color: #999988;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment */
|
||||
.codehilite .err {
|
||||
color: #a61717;
|
||||
background-color: #e3d2d2
|
||||
}
|
||||
|
||||
/* Error */
|
||||
.codehilite .k {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword */
|
||||
.codehilite .o {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Operator */
|
||||
.codehilite .cm {
|
||||
color: #999988;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment.Multiline */
|
||||
.codehilite .cp {
|
||||
color: #999999;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Comment.Preproc */
|
||||
.codehilite .c1 {
|
||||
color: #999988;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment.Single */
|
||||
.codehilite .cs {
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Comment.Special */
|
||||
.codehilite .gd {
|
||||
color: #000000;
|
||||
background-color: #ffdddd
|
||||
}
|
||||
|
||||
/* Generic.Deleted */
|
||||
.codehilite .gd .x {
|
||||
color: #000000;
|
||||
background-color: #ffaaaa
|
||||
}
|
||||
|
||||
/* Generic.Deleted.Specific */
|
||||
.codehilite .ge {
|
||||
font-style: italic
|
||||
}
|
||||
|
||||
/* Generic.Emph */
|
||||
.codehilite .gr {
|
||||
color: #aa0000
|
||||
}
|
||||
|
||||
/* Generic.Error */
|
||||
.codehilite .gh {
|
||||
color: #999999
|
||||
}
|
||||
|
||||
/* Generic.Heading */
|
||||
.codehilite .gi {
|
||||
color: #000000;
|
||||
background-color: #ddffdd
|
||||
}
|
||||
|
||||
/* Generic.Inserted */
|
||||
.codehilite .gi .x {
|
||||
color: #000000;
|
||||
background-color: #aaffaa
|
||||
}
|
||||
|
||||
/* Generic.Inserted.Specific */
|
||||
.codehilite .go {
|
||||
color: #888888
|
||||
}
|
||||
|
||||
/* Generic.Output */
|
||||
.codehilite .gp {
|
||||
color: #555555
|
||||
}
|
||||
|
||||
/* Generic.Prompt */
|
||||
.codehilite .gs {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Generic.Strong */
|
||||
.codehilite .gu {
|
||||
color: #aaaaaa
|
||||
}
|
||||
|
||||
/* Generic.Subheading */
|
||||
.codehilite .gt {
|
||||
color: #aa0000
|
||||
}
|
||||
|
||||
/* Generic.Traceback */
|
||||
.codehilite .kc {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Constant */
|
||||
.codehilite .kd {
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
/* Keyword.Declaration */
|
||||
.codehilite .kp {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Pseudo */
|
||||
.codehilite .kr {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Reserved */
|
||||
.codehilite .kt {
|
||||
color: #445588;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Keyword.Type */
|
||||
.codehilite .m {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number */
|
||||
.codehilite .s {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String */
|
||||
.codehilite .na {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Attribute */
|
||||
.codehilite .nb {
|
||||
color: #0086B3
|
||||
}
|
||||
|
||||
/* Name.Builtin */
|
||||
.codehilite .nc {
|
||||
color: #445588;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Name.Class */
|
||||
.codehilite .no {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Constant */
|
||||
.codehilite .ni {
|
||||
color: #800080
|
||||
}
|
||||
|
||||
/* Name.Entity */
|
||||
.codehilite .ne {
|
||||
color: #990000;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Name.Exception */
|
||||
.codehilite .nf {
|
||||
color: #990000;
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Name.Function */
|
||||
.codehilite .nn {
|
||||
color: #555555
|
||||
}
|
||||
|
||||
/* Name.Namespace */
|
||||
.codehilite .nt {
|
||||
color: #000080
|
||||
}
|
||||
|
||||
/* Name.Tag */
|
||||
.codehilite .nv {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable */
|
||||
.codehilite .ow {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
/* Operator.Word */
|
||||
.codehilite .w {
|
||||
color: #bbbbbb
|
||||
}
|
||||
|
||||
/* Text.Whitespace */
|
||||
.codehilite .mf {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Float */
|
||||
.codehilite .mh {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Hex */
|
||||
.codehilite .mi {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Integer */
|
||||
.codehilite .mo {
|
||||
color: #009999
|
||||
}
|
||||
|
||||
/* Literal.Number.Oct */
|
||||
.codehilite .sb {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Backtick */
|
||||
.codehilite .sc {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Char */
|
||||
.codehilite .sd {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Doc */
|
||||
.codehilite .s2 {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Double */
|
||||
.codehilite .se {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Escape */
|
||||
.codehilite .sh {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Heredoc */
|
||||
.codehilite .si {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Interpol */
|
||||
.codehilite .sx {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Other */
|
||||
.codehilite .sr {
|
||||
color: #009926
|
||||
}
|
||||
|
||||
/* Literal.String.Regex */
|
||||
.codehilite .s1 {
|
||||
color: #d14
|
||||
}
|
||||
|
||||
/* Literal.String.Single */
|
||||
.codehilite .ss {
|
||||
color: #990073
|
||||
}
|
||||
|
||||
/* Literal.String.Symbol */
|
||||
.codehilite .bp {
|
||||
color: #999999
|
||||
}
|
||||
|
||||
/* Name.Builtin.Pseudo */
|
||||
.codehilite .vc {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable.Class */
|
||||
.codehilite .vg {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable.Global */
|
||||
.codehilite .vi {
|
||||
color: #008080
|
||||
}
|
||||
|
||||
/* Name.Variable.Instance */
|
||||
.codehilite .il {
|
||||
color: #009999
|
||||
}
|
||||
1
resources/theme/icons.min.css
vendored
Normal file
1
resources/theme/icons.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
resources/theme/main.html
Normal file
1
resources/theme/main.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{% extends "base.html" %}
|
||||
349
resources/theme/normalize.css
vendored
Normal file
349
resources/theme/normalize.css
vendored
Normal file
|
|
@ -0,0 +1,349 @@
|
|||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the `main` element consistently in IE.
|
||||
*/
|
||||
|
||||
main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input { /* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select { /* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
||||
9
resources/theme/scripts.js
Normal file
9
resources/theme/scripts.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var offset = 82
|
||||
function offsetScroll(){
|
||||
if (document.location.hash) {
|
||||
var el = document.getElementById(document.location.hash.substring(1))
|
||||
if (el) document.body.scrollTop = document.documentElement.scrollTop = el.offsetTop - offset
|
||||
}
|
||||
}
|
||||
window.addEventListener('hashchange', offsetScroll)
|
||||
setTimeout(offsetScroll, 250)
|
||||
14
resources/theme/search.html
Normal file
14
resources/theme/search.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block extrahead %}
|
||||
<script>var base_url = '{{ "/"|url }}';</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2 id="search">Search Results</h2>
|
||||
|
||||
<div id="mkdocs-search-results">
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
246
resources/theme/styles.css
Normal file
246
resources/theme/styles.css
Normal file
|
|
@ -0,0 +1,246 @@
|
|||
body {
|
||||
color: #333;
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
font-size: 15px;
|
||||
line-height: 1.4;
|
||||
background-color: #fff;
|
||||
overflow-y: scroll;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.wrap {
|
||||
max-width: 1110px;
|
||||
}
|
||||
@media (max-width: 570px)
|
||||
.wrap, .full-width {
|
||||
min-width: 0;
|
||||
}
|
||||
.wrap {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
padding: 0 8px;
|
||||
}
|
||||
.d-header>.wrap {
|
||||
width: calc(100% - 16px);
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
.d-header {
|
||||
left: 0;
|
||||
height: 4em;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.d-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background-color: #333;
|
||||
box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25);
|
||||
}
|
||||
|
||||
.d-header>.wrap .contents {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wrap .contents {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.d-header .title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.d-header .title img {
|
||||
height: 2.57em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.d-header .header-buttons-panel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
margin-left: auto;
|
||||
align-items: center;
|
||||
}
|
||||
.d-header .header-buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
|
||||
.d-header .header-buttons a {
|
||||
padding: 6px 10px;
|
||||
color: #fff;
|
||||
font-size: 1.1487em;
|
||||
}
|
||||
|
||||
.d-header .header-buttons a {
|
||||
opacity: 0.5;
|
||||
transition: opacity .25s;
|
||||
text-decoration: none;
|
||||
}
|
||||
.d-header .header-buttons a:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
.d-header .header-buttons a.active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#jumbotron {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
padding: 8em 0 4em;
|
||||
}
|
||||
#jumbotron .bg {
|
||||
position: absolute;
|
||||
top:0px;left:0px;right:0px;bottom:0px;
|
||||
background-size: cover;
|
||||
z-index: -1;
|
||||
opacity: 0.5;
|
||||
/* filter: blur(5px); */
|
||||
|
||||
}
|
||||
|
||||
#jumbotron + #main {
|
||||
padding-top: 2em;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
#main {
|
||||
padding-top: 5.8572em;
|
||||
padding-bottom: 4em;
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.col-left {
|
||||
width:240px;
|
||||
}
|
||||
.col-left > ul {
|
||||
top: 5.8572em;
|
||||
width: 230px;
|
||||
position: fixed;
|
||||
overflow-y: auto;
|
||||
bottom: 0;
|
||||
padding-left: 2px;
|
||||
}
|
||||
.col-left > ul ul {
|
||||
line-height: 1
|
||||
}
|
||||
.col-right {
|
||||
flex: 1
|
||||
}
|
||||
|
||||
#main img {
|
||||
max-width: 100%;
|
||||
border-radius: 3px;
|
||||
/* box-shadow: 0 2px 8px 0 rgba(0,0,0,0.5); */
|
||||
}
|
||||
|
||||
.codehilite {
|
||||
background-color: #fafafa;
|
||||
color: #37474f;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.codehilite pre {
|
||||
padding: 12px;
|
||||
white-space: pre;
|
||||
font-feature-settings: "kern";
|
||||
/* font-family: "Roboto Mono","Courier New",Courier,monospace; */
|
||||
direction: ltr;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
table {
|
||||
border: 1px solid #eee;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
margin: 0 0 1.2rem;
|
||||
}
|
||||
|
||||
table tr:nth-child(2n +1) {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding: 10px;
|
||||
}
|
||||
table h4 {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table th {
|
||||
font-weight: bold;
|
||||
background-color: #888;
|
||||
color: #fff;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
code, tt {
|
||||
padding: 0 5px;
|
||||
white-space: nowrap;
|
||||
border: 1px solid #eaeaea;
|
||||
border-radius: 3px;
|
||||
background-color: #f8f8f8;
|
||||
color: #333333; }
|
||||
|
||||
|
||||
code {
|
||||
background-color: #fafafa;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
table code {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
table .thead2 {
|
||||
background: #ddd!important;
|
||||
color: #666;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
.headerlink {
|
||||
font-size:50%;
|
||||
opacity: 0.25;
|
||||
vertical-align: super;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h1:first-child {
|
||||
margin-top:0;
|
||||
}
|
||||
|
||||
#mkdocs-search-query {
|
||||
border: 1px solid #333;
|
||||
background:rgba(0,0,0,0.25);
|
||||
border-radius: 15px;
|
||||
color: #eee;
|
||||
outline: none;
|
||||
padding:6px 12px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue