Initial commit

This commit is contained in:
Matthew Holt 2020-01-24 12:47:52 -07:00
commit 03b6fddeb0
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
77 changed files with 7599 additions and 0 deletions

View file

@ -0,0 +1,155 @@
/*
Derived from https://gist.github.com/nicolashery/5765395
Adjusted to be high-contrast
*/
/*
Solarized Light (High Contrast)
Derived from http://ethanschoonover.com/solarized
*/
.chroma { background-color: #f0f9fb; color: #586e75 }
.chroma .c { color: #93a1a1 } /* Comment */
.chroma .err { color: #586e75 } /* Error */
.chroma .g { color: #586e75 } /* Generic */
.chroma .k { color: #577b00 } /* Keyword */
.chroma .l { color: #586e75 } /* Literal */
.chroma .n { color: #586e75 } /* Name */
.chroma .o { color: #577b00 } /* Operator */
.chroma .x { color: #d03d00 } /* Other */
.chroma .p { color: #586e75 } /* Punctuation */
.chroma .cm { color: #93a1a1 } /* Comment.Multiline */
.chroma .cp { color: #577b00 } /* Comment.Preproc */
.chroma .c1 { color: #93a1a1 } /* Comment.Single */
.chroma .cs { color: #577b00 } /* Comment.Special */
.chroma .gd { color: #008076 } /* Generic.Deleted */
.chroma .ge { color: #586e75; font-style: italic } /* Generic.Emph */
.chroma .gr { color: #dc322f } /* Generic.Error */
.chroma .gh { color: #d03d00 } /* Generic.Heading */
.chroma .gi { color: #577b00 } /* Generic.Inserted */
.chroma .go { color: #586e75 } /* Generic.Output */
.chroma .gp { color: #586e75 } /* Generic.Prompt */
.chroma .gs { color: #586e75; font-weight: bold } /* Generic.Strong */
.chroma .gu { color: #d03d00 } /* Generic.Subheading */
.chroma .gt { color: #586e75 } /* Generic.Traceback */
.chroma .kc { color: #d03d00 } /* Keyword.Constant */
.chroma .kd { color: #0673bf } /* Keyword.Declaration */
.chroma .kn { color: #577b00 } /* Keyword.Namespace */
.chroma .kp { color: #577b00 } /* Keyword.Pseudo */
.chroma .kr { color: #0673bf } /* Keyword.Reserved */
.chroma .kt { color: #dc322f } /* Keyword.Type */
.chroma .ld { color: #586e75 } /* Literal.Date */
.chroma .m { color: #008076 } /* Literal.Number */
.chroma .s { color: #008076 } /* Literal.String */
.chroma .na { color: #586e75 } /* Name.Attribute */
.chroma .nb { color: #B58900 } /* Name.Builtin */
.chroma .nc { color: #0673bf } /* Name.Class */
.chroma .no { color: #d03d00 } /* Name.Constant */
.chroma .nd { color: #0673bf } /* Name.Decorator */
.chroma .ni { color: #d03d00 } /* Name.Entity */
.chroma .ne { color: #d03d00 } /* Name.Exception */
.chroma .nf { color: #0673bf } /* Name.Function */
.chroma .nl { color: #586e75 } /* Name.Label */
.chroma .nn { color: #586e75 } /* Name.Namespace */
.chroma .nx { color: #586e75 } /* Name.Other */
.chroma .py { color: #586e75 } /* Name.Property */
.chroma .nt { color: #0673bf } /* Name.Tag */
.chroma .nv { color: #0673bf } /* Name.Variable */
.chroma .ow { color: #577b00 } /* Operator.Word */
.chroma .w { color: #586e75 } /* Text.Whitespace */
.chroma .mf { color: #008076 } /* Literal.Number.Float */
.chroma .mh { color: #008076 } /* Literal.Number.Hex */
.chroma .mi { color: #008076 } /* Literal.Number.Integer */
.chroma .mo { color: #008076 } /* Literal.Number.Oct */
.chroma .sb { color: #93a1a1 } /* Literal.String.Backtick */
.chroma .sc { color: #008076 } /* Literal.String.Char */
.chroma .sd { color: #586e75 } /* Literal.String.Doc */
.chroma .s2 { color: #008076 } /* Literal.String.Double */
.chroma .se { color: #d03d00 } /* Literal.String.Escape */
.chroma .sh { color: #586e75 } /* Literal.String.Heredoc */
.chroma .si { color: #008076 } /* Literal.String.Interpol */
.chroma .sx { color: #008076 } /* Literal.String.Other */
.chroma .sr { color: #dc322f } /* Literal.String.Regex */
.chroma .s1 { color: #008076 } /* Literal.String.Single */
.chroma .ss { color: #008076 } /* Literal.String.Symbol */
.chroma .bp { color: #0673bf } /* Name.Builtin.Pseudo */
.chroma .vc { color: #0673bf } /* Name.Variable.Class */
.chroma .vg { color: #0673bf } /* Name.Variable.Global */
.chroma .vi { color: #0673bf } /* Name.Variable.Instance */
.chroma .il { color: #008076 } /* Literal.Number.Integer.Long */
@media (prefers-color-scheme: dark) {
/*
Solarized Dark (High Contrast)
Derived from http://ethanschoonover.com/solarized
*/
.chroma { background-color: #002b36; color: #93a1a1 }
.chroma .c { color: #586e75 } /* Comment */
.chroma .err { color: #93a1a1 } /* Error */
.chroma .g { color: #93a1a1 } /* Generic */
.chroma .k { color: #76a507 } /* Keyword */
.chroma .l { color: #93a1a1 } /* Literal */
.chroma .n { color: #93a1a1 } /* Name */
.chroma .o { color: #76a507 } /* Operator */
.chroma .x { color: #ec662e } /* Other */
.chroma .p { color: #93a1a1 } /* Punctuation */
.chroma .cm { color: #586e75 } /* Comment.Multiline */
.chroma .cp { color: #76a507 } /* Comment.Preproc */
.chroma .c1 { color: #586e75 } /* Comment.Single */
.chroma .cs { color: #76a507 } /* Comment.Special */
.chroma .gd { color: #09a598 } /* Generic.Deleted */
.chroma .ge { color: #93a1a1; font-style: italic } /* Generic.Emph */
.chroma .gr { color: #dc322f } /* Generic.Error */
.chroma .gh { color: #ec662e } /* Generic.Heading */
.chroma .gi { color: #76a507 } /* Generic.Inserted */
.chroma .go { color: #93a1a1 } /* Generic.Output */
.chroma .gp { color: #93a1a1 } /* Generic.Prompt */
.chroma .gs { color: #93a1a1; font-weight: bold } /* Generic.Strong */
.chroma .gu { color: #ec662e } /* Generic.Subheading */
.chroma .gt { color: #93a1a1 } /* Generic.Traceback */
.chroma .kc { color: #ec662e } /* Keyword.Constant */
.chroma .kd { color: #0090f5 } /* Keyword.Declaration */
.chroma .kn { color: #76a507 } /* Keyword.Namespace */
.chroma .kp { color: #76a507 } /* Keyword.Pseudo */
.chroma .kr { color: #0090f5 } /* Keyword.Reserved */
.chroma .kt { color: #dc322f } /* Keyword.Type */
.chroma .ld { color: #93a1a1 } /* Literal.Date */
.chroma .m { color: #09a598 } /* Literal.Number */
.chroma .s { color: #09a598 } /* Literal.String */
.chroma .na { color: #93a1a1 } /* Name.Attribute */
.chroma .nb { color: #B58900 } /* Name.Builtin */
.chroma .nc { color: #0090f5 } /* Name.Class */
.chroma .no { color: #ec662e } /* Name.Constant */
.chroma .nd { color: #0090f5 } /* Name.Decorator */
.chroma .ni { color: #ec662e } /* Name.Entity */
.chroma .ne { color: #ec662e } /* Name.Exception */
.chroma .nf { color: #0090f5 } /* Name.Function */
.chroma .nl { color: #93a1a1 } /* Name.Label */
.chroma .nn { color: #93a1a1 } /* Name.Namespace */
.chroma .nx { color: #93a1a1 } /* Name.Other */
.chroma .py { color: #93a1a1 } /* Name.Property */
.chroma .nt { color: #0090f5 } /* Name.Tag */
.chroma .nv { color: #0090f5 } /* Name.Variable */
.chroma .ow { color: #76a507 } /* Operator.Word */
.chroma .w { color: #93a1a1 } /* Text.Whitespace */
.chroma .mf { color: #09a598 } /* Literal.Number.Float */
.chroma .mh { color: #09a598 } /* Literal.Number.Hex */
.chroma .mi { color: #09a598 } /* Literal.Number.Integer */
.chroma .mo { color: #09a598 } /* Literal.Number.Oct */
.chroma .sb { color: #586e75 } /* Literal.String.Backtick */
.chroma .sc { color: #09a598 } /* Literal.String.Char */
.chroma .sd { color: #93a1a1 } /* Literal.String.Doc */
.chroma .s2 { color: #09a598 } /* Literal.String.Double */
.chroma .se { color: #ec662e } /* Literal.String.Escape */
.chroma .sh { color: #93a1a1 } /* Literal.String.Heredoc */
.chroma .si { color: #09a598 } /* Literal.String.Interpol */
.chroma .sx { color: #09a598 } /* Literal.String.Other */
.chroma .sr { color: #dc322f } /* Literal.String.Regex */
.chroma .s1 { color: #09a598 } /* Literal.String.Single */
.chroma .ss { color: #09a598 } /* Literal.String.Symbol */
.chroma .bp { color: #0090f5 } /* Name.Builtin.Pseudo */
.chroma .vc { color: #0090f5 } /* Name.Variable.Class */
.chroma .vg { color: #0090f5 } /* Name.Variable.Global */
.chroma .vi { color: #0090f5 } /* Name.Variable.Instance */
.chroma .il { color: #09a598 } /* Literal.Number.Integer.Long */
}

View file

@ -0,0 +1,373 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Maven Pro, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
tab-size: 4;
-moz-tab-size: 4;
}
#v1-banner {
display: block;
background: #5ea9a2;
color: #fff;
text-align: center;
padding: 15px 25px;
font-size: 18px;
text-decoration: none;
}
#v1-banner:hover {
background: #4e968f;
}
.wrapper {
max-width: 1400px;
margin-left: auto;
margin-right: auto;
padding-left: 40px;
padding-right: 40px;
}
.text-center {
text-align: center;
}
a {
color: #0694f1;
text-decoration: none;
}
a:hover {
color: #ff3f2c;
}
header {
display: flex;
justify-content: space-between;
padding: 25px 0;
}
#logo {
height: 40px;
}
header nav {
text-align: right;
line-height: 40px;
}
header nav a {
display: inline-block;
padding-left: 10px;
padding-right: 10px;
text-decoration: none;
color: inherit;
}
header nav a:hover {
color: #ff3f2c;
}
header nav a.current {
font-weight: bold;
}
header nav .button {
margin: 0 0 0 10px;
padding-top: 2px;
padding-bottom: 2px;
}
.button {
border-radius: 2em;
padding: 10px 20px;
margin: 15px 30px 15px 0;
height: auto;
transition: all .2s;
text-decoration: none;
display: inline-block;
}
.button:hover {
transform: scale(1.05);
}
.button:active {
transform: translateY(2px);
}
.button.red {
background-color: #d9552b;
color: white;
}
.button.red:hover {
background-color: #fd511a;
}
.button.blue {
background-color: #009ae6;
color: white;
}
.button.blue:hover {
background-color: #00aaff;
}
.button.gray {
background-color: #4c6a79;
color: white;
}
.button.gray:hover {
background-color: #4f8098;
}
.button.big {
font-size: 125%;
text-transform: uppercase;
font-weight: bold;
padding: 20px 50px;
margin-right: 20px;
}
p .button {
font-size: 18px;
padding: 12px 30px;
}
article a:hover {
text-decoration: underline;
}
footer {
display: flex;
justify-content: space-between;
margin-top: 100px;
border-top: 1px solid #CCC;
padding-top: 50px;
padding-bottom: 100px;
line-height: 125%;
}
footer > div {
width: 50%;
}
#footer-logo {
float: left;
max-width: 175px;
margin-right: 35px;
vertical-align: middle;
margin-top: -4px;
}
.copyright {
text-align: right;
font-size: 14px;
color: #999;
}
@media (max-width: 900px) {
footer {
flex-direction: column;
margin-top: 0;
padding: 20px 0;
}
footer > div {
width: initial;
text-align: center;
margin: 10px 0;
}
#footer-logo {
float: none;
display: block;
margin: 0 auto 25px;
}
.copyright {
text-align: center;
}
}
/* font resources */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("/resources/fonts/Inter-Thin-BETA.woff2") format("woff2"),
url("/resources/fonts/Inter-Thin-BETA.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 100;
font-display: swap;
src: url("/resources/fonts/Inter-ThinItalic-BETA.woff2") format("woff2"),
url("/resources/fonts/Inter-ThinItalic-BETA.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 200;
font-display: swap;
src: url("/resources/fonts/Inter-ExtraLight-BETA.woff2") format("woff2"),
url("/resources/fonts/Inter-ExtraLight-BETA.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 200;
font-display: swap;
src: url("/resources/fonts/Inter-ExtraLightItalic-BETA.woff2") format("woff2"),
url("/resources/fonts/Inter-ExtraLightItalic-BETA.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url("/resources/fonts/Inter-Light-BETA.woff2") format("woff2"),
url("/resources/fonts/Inter-Light-BETA.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url("/resources/fonts/Inter-LightItalic-BETA.woff2") format("woff2"),
url("/resources/fonts/Inter-LightItalic-BETA.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/resources/fonts/Inter-Regular.woff2") format("woff2"),
url("/resources/fonts/Inter-Regular.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("/resources/fonts/Inter-Italic.woff2") format("woff2"),
url("/resources/fonts/Inter-Italic.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("/resources/fonts/Inter-Medium.woff2") format("woff2"),
url("/resources/fonts/Inter-Medium.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url("/resources/fonts/Inter-MediumItalic.woff2") format("woff2"),
url("/resources/fonts/Inter-MediumItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("/resources/fonts/Inter-SemiBold.woff2") format("woff2"),
url("/resources/fonts/Inter-SemiBold.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 600;
font-display: swap;
src: url("/resources/fonts/Inter-SemiBoldItalic.woff2") format("woff2"),
url("/resources/fonts/Inter-SemiBoldItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/resources/fonts/Inter-Bold.woff2") format("woff2"),
url("/resources/fonts/Inter-Bold.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url("/resources/fonts/Inter-BoldItalic.woff2") format("woff2"),
url("/resources/fonts/Inter-BoldItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("/resources/fonts/Inter-ExtraBold.woff2") format("woff2"),
url("/resources/fonts/Inter-ExtraBold.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 800;
font-display: swap;
src: url("/resources/fonts/Inter-ExtraBoldItalic.woff2") format("woff2"),
url("/resources/fonts/Inter-ExtraBoldItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("/resources/fonts/Inter-Black.woff2") format("woff2"),
url("/resources/fonts/Inter-Black.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 900;
font-display: swap;
src: url("/resources/fonts/Inter-BlackItalic.woff2") format("woff2"),
url("/resources/fonts/Inter-BlackItalic.woff") format("woff");
}

View file

@ -0,0 +1,28 @@
pre > code.json {
background-color: #f0f9f8;
}
#renderbox {
border-radius: 0;
font-size: 20px;
line-height: 1.6em;
}
.toggle-obj {
padding: 0 .5em;
visibility: hidden;
}
.group:hover > .toggle-obj {
visibility: visible;
}
.collapsed {
display: none;
}
@media (prefers-color-scheme: dark) {
pre > code.json {
background-color: #07212b;
}
}

735
src/resources/css/docs.css Normal file
View file

@ -0,0 +1,735 @@
header {
border-bottom: 1px solid #f0f6f7;
padding: 10px 20px;
}
#logo-container {
display: flex;
align-items: center;
line-height: 0;
}
#logo {
height: 25px;
line-height: 0;
}
#logo-docs {
font-family: Montserrat, sans-serif;
text-transform: uppercase;
color: #196165;
margin-left: 10px;
font-size: 12px;
}
header nav {
font-size: 16px;
line-height: 2em;
}
header nav .button {
padding-top: 4px;
padding-bottom: 4px;
}
.breadcrumbs {
color: #196165;
border-bottom: 1px solid #f0f6f7;
font-size: 16px;
padding: 10px 20px;
font-weight: bold;
line-height: 1.75em;
}
.breadcrumbs a {
font-weight: normal;
text-decoration: none;
}
.breadcrumb-siblings-title {
padding: 10px;
font-weight: bold;
}
.breadcrumb-siblings a {
display: block;
padding: 0 10px;
text-decoration: none;
}
.breadcrumb-siblings a+a {
padding-top: 10px;
}
.breadcrumb-siblings a:last-child {
padding-bottom: 10px;
}
#top-breadcrumb {
font-weight: bold;
}
#top-breadcrumb:not(:hover) {
color: #196165;
}
main {
display: flex;
}
main > .sidebar,
article aside {
width: 20%;
}
main > .sidebar {
flex-shrink: 0;
padding: 20px 0;
border: 0px solid #f0f6f7;
}
main nav {
border-right-width: 1px;
position: relative;
font-size: 18px;
}
main nav ul {
list-style-type: none;
}
main nav li {
position: relative;
}
main nav li a {
padding: 8px 22px;
}
main nav li a {
display: block;
text-decoration: none;
color: inherit;
}
main nav li a:hover {
background-color: #f8fcff;
color: #196165;
}
main nav li a:before {
content: '\203A';
font-weight: bold;
font-size: 20px;
line-height: 1rem;
position: absolute;
opacity: 0;
left: 5px;
transition: left .15s, opacity .15s;
}
main nav li a:hover:before {
opacity: 1;
left: 10px;
}
main nav li li a:hover:before {
left: 1.25em;
}
main nav li a.current {
background-color: #f0f6f7;
}
main nav li.heading {
font-weight: bold;
font-size: 120%;
padding: 10px 20px 5px;
}
main nav li.heading:not(:first-child) {
margin-top: 20px;
}
main nav li li a {
padding-top: 6px;
padding-bottom: 4px;
padding-left: 2.5em;
font-size: 90%;
}
.article-container {
flex-grow: 1;
min-width: 0;
}
article,
.content {
margin: 0 auto;
max-width: 950px;
}
article {
padding: 40px;
font-size: 20px;
word-wrap: break-word;
}
article p,
article pre > code,
article pre.chroma,
article ul,
article ol {
margin-bottom: 1em;
}
article ul,
article ol,
#hovercard ul,
#hovercard ol {
margin-left: 2.5em;
}
article p,
article li {
line-height: 1.5em;
}
h1 {
font-size: 80px;
color: #196165;
margin-bottom: 25px;
}
h2 {
font-size: 46px;
padding-bottom: 15px;
border-bottom: 4px solid #a6d0da;
margin: 100px 0 40px;
}
h3 {
font-size: 34px;
margin: 50px 0 20px;
}
h4 {
font-size: 24px;
margin: 25px 0 15px;
}
h5 {
font-size: 22px;
margin: 2em 0 1em;
}
code,
pre.chroma {
font-family: 'PT Mono', 'Source Code Pro', monospace;
padding: 3px 6px;
border-radius: 5px;
font-size: 90%;
line-height: 1.4em;
}
code {
background-color: #f0f9fb;
}
code.cmd {
background-color: #333;
color: #eaeaea;
}
pre > code,
pre.chroma,
.group {
display: block;
white-space: pre;
}
pre > code,
pre.chroma {
padding: 1em;
border-radius: 10px;
overflow: auto;
}
pre > code.cmd {
border-radius: 5px;
tab-size: 2;
}
code.cmd.bash,
code.cmd .bash {
font-weight: bold;
}
code.cmd.bash::before,
code.cmd .bash::before {
content: '$';
margin-right: .5rem;
}
dt:hover .inline-link {
visibility: visible;
}
dd {
margin-left: 1em;
}
#field-list-header {
display: none;
}
.field-name {
display: block;
font-family: 'Source Code Pro', monospace;
margin: 0;
font-weight: bold;
margin-bottom: .5em;
}
.inline-link {
text-decoration: none;
position: absolute;
margin-left: -1.4em;
margin-top: -.1em;
padding-right: .2em;
padding-left: .2em;
visibility: hidden;
}
.inline-link:hover {
text-decoration: none;
}
hr {
border: none;
border-top: 5px solid #186165;
margin: 2em 0;
}
article img {
max-width: 100%;
}
iframe {
margin: 1em 0 2em;
}
main > .sidebar:not(:last-child) {
border-right-width: 1px;
}
.json {
line-height: 1.5em;
}
.json .qu { color: #5c91bf; }
.json .key { color: #1c83dc; font-weight: bold; }
.json .str { color: #2f8598; }
.json .num { color: #038a3f; }
.json .bool { color: #9b5e14; }
.json .key a:not(:hover) { color: inherit; }
.json a {
text-decoration: none;
font-weight: bold;
}
.json .has-popup { border-bottom: 1px dashed #1c82dc; }
.json .has-popup.module { border-bottom: none; }
#hovercard {
max-width: 450px;
border-radius: 10px;
filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .25));
position: absolute;
font-size: 16px;
transition: transform .25s ease-in-out, opacity .25s ease-in-out;
}
#hovercard:not(.popup) {
opacity: 0;
display: none;
transform: translateY(0);
}
.popup {
display: block;
opacity: 1;
transform: translateY(-10px);
}
.arrow-box {
position: relative;
background: white;
}
.arrow-box:after {
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: white;
border-width: 10px;
margin-left: -10px;
}
#hovercard p {
padding: 1em;
line-height: 1.4em;
}
#hovercard p+p {
padding-top: 0;
}
#hovercard li {
margin: .25em;
}
#hovercard pre > code {
border-radius: 0;
}
#hovercard li {
padding-top: 0;
padding-bottom: 0;
}
#hovercard .module-link {
display: block;
text-decoration: none;
font-size: 18px;
line-height: 1em;
font-weight: bold;
padding: .5em 1em;
}
#hovercard .module-link:hover {
background: #f5f5f5;
}
#hovercard .module-link:last-child {
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
#hovercard .module-link-description {
font-size: 14px;
color: #555;
margin-left: .5em;
font-weight: normal;
}
#hovercard-namespace-box,
#hovercard-inline-link {
border: 0px solid #f0f6f7;
}
#hovercard-namespace-box {
border-bottom-width: 1px;
}
#hovercard-inline-link {
border-top-width: 1px;
}
#hovercard-inline-link a {
display: block;
padding: 8px 10px;
text-decoration: none;
font-size: 85%;
font-weight: bold;
text-align: center;
}
#hovercard-namespace {
font-weight: bold;
}
.explain {
font-style: italic;
color: #777;
}
.beta-warning {
font-size: 14px;
padding: 10px;
border-bottom: 1px solid orange;
background: #fff5e2;
line-height: 1.4em;
}
article aside {
position: absolute;
right: 0;
font-size: 16px;
color: #146673;
line-height: 1.4em;
padding: 10px 3.5% 10px 20px;
border: 0px solid #dff9ff;
border-top-width: 1px;
border-left-width: 1px;
background: -webkit-radial-gradient(top left, #d6f0f3, transparent 65%);
background: -moz-radial-gradient(top left, #d6f0f3, transparent 65%);
background: radial-gradient(top left, #d6f0f3, transparent 65%);
}
article aside.complete::before,
article aside.tip::before {
text-transform: uppercase;
display: block;
line-height: 1em;
font-weight: 900;
}
article aside.complete::before {
content: 'complete';
font-size: 14px;
letter-spacing: 2px;
color: #3ea78a;
margin-bottom: 10px;
}
article aside.tip::before {
content: 'tip';
color: #d0efef;
position: absolute;
top: -30px;
font-size: 35px;
}
article aside.warning {
border-top-color: #ffd6a4;
color: #bd6800;
background: -webkit-radial-gradient(top left, #ffd6a4, transparent 65%);
background: -moz-radial-gradient(top left, #ffd6a4, transparent 65%);
background: radial-gradient(top left, #ffd6a4, transparent 65%);
}
article aside.warning::before {
content: 'warning';
color: #ffd6a4;
position: absolute;
top: -30px;
font-size: 35px;
}
table {
table-layout: fixed;
border-collapse: collapse;
font-size: 16px;
margin: 25px 0;
}
th, td {
border-bottom: 1px solid #ddd;
padding: 10px;
line-height: 1.4em;
vertical-align: top;
word-wrap: break-word;
}
th {
text-align: left;
background: #eee;
}
td code {
font-size: 14px;
word-wrap: break-word;
}
@media (max-width: 1400px) {
article aside {
font-size: 14px;
}
table {
font-size: 14px;
}
h1 {
font-size: 60px;
}
h2 {
font-size: 38px;
margin-top: 65px;
}
h3 {
font-size: 28px;
margin-top: 40px;
}
}
@media (max-width: 1000px) {
main > .sidebar:last-child,
article aside {
display: none;
}
main > .sidebar {
width: 30%;
padding: 10px 0;
}
article {
padding: 20px;
}
}
@media (max-width: 1000px) and (min-width: 600px) {
main nav li a {
padding: 8px 12px;
}
main nav li li a {
padding-left: 1.5em;
}
main nav li a:before {
font-size: 18px;
left: -5px;
}
main nav li a:hover:before {
left: 2px;
}
main nav li li a:hover:before {
left: .5em;
}
}
@media (max-width: 600px) {
#logo-docs {
display: none;
}
main {
flex-direction: column-reverse;
}
main > .sidebar {
width: 100%;
border-width: 0;
border-top-width: 2px;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #060e17;
color: #bdd6f7;
}
header,
main > .sidebar,
footer {
border-color: #061b35;
}
#logo {
/* TODO: Add some color */
filter: invert(1) opacity(.35);
}
#logo-docs {
color: #5aa3dc;
}
.breadcrumbs {
color: #5aa3dc;
}
main nav ul li a:hover {
background-color: #13243a;
color: #5aa3dc;
}
main nav ul li a.current {
background-color: #061b35;
}
.breadcrumbs,
main nav {
border-color: #061b35;
}
h1 {
color: #5aa3dc;
}
code {
background-color: #122844;
}
code.cmd {
background-color: #000;
color: #ccc;
}
#hovercard,
.arrow-box {
background-color: #0a192b;
}
.arrow-box:after {
border-bottom-color: #0a192b;
}
#hovercard .module-link:hover {
background: #0f2c50;
}
#hovercard .module-link-description {
color: rgb(167, 167, 167);
}
#hovercard-namespace-box,
#hovercard-inline-link {
border-color: #0a2b53;
}
.beta-warning {
background-color: #462e00;
color: #ffa500;
}
article aside {
background: -webkit-radial-gradient(top left, #00515a, transparent 65%);
background: -moz-radial-gradient(top left, #00515a, transparent 65%);
background: radial-gradient(top left, #00515a, transparent 65%);
color: #37c3a9;
border-color: #08575a;
}
article aside.tip:before {
color: #185f5b;
}
th {
background-color: #142638;
}
th,
td {
border-bottom-color: #233444;
}
}

350
src/resources/css/home.css Normal file
View file

@ -0,0 +1,350 @@
body {
font-family: 'Inter', sans-serif;
}
.hero {
background-image: url('/resources/images/bg-teal.jpg');
background-repeat: no-repeat;
background-size: cover;
padding-bottom: 100px;
}
h1 {
text-transform: uppercase;
font-size: 70px;
font-family: Montserrat, sans-serif;
text-align: center;
margin: 70px 0 20px;
}
h2 {
font-size: 28px;
font-weight: normal;
text-align: center;
max-width: 60rem;
margin: 0 auto 50px;
line-height: 1.5em;
}
h3 {
font-family: Montserrat, sans-serif;
font-weight: 400;
font-size: 55px;
}
p {
font-size: 20px;
max-width: 600px;
margin-top: 20px;
line-height: 1.5em;
}
.download-container {
text-align: center;
margin-top: 50px;
}
.download-container .button.big {
margin-bottom: 15px;
}
section {
padding: 100px 0;
}
section.alternate:nth-child(even) {
background-color: #f5f8f9;
}
section.alternate:nth-child(odd) .side-by-side {
flex-direction: row-reverse;
}
.side-by-side {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.side-by-side > * {
width: 48%;
}
.side-by-side img {
max-height: 400px;
}
.code-caption {
font-size: 24px;
font-weight: bold;
margin: 75px auto 20px;
}
code {
font-family: 'PT Mono', monospace;
}
code.block {
display: block;
background: #2f2f2f;
color: #eee;
font-size: 20px;
padding-top: 30px;
padding-bottom: 30px;
line-height: 1.25em;
white-space: pre-wrap;
}
.actions {
padding-top: 100px;
}
code.caddyfile {
background-color: #dbebf3;
color: black;
}
.cf-key {
color: #d22500;
font-weight: bold;
}
.cf-comment {
color: #7291a0;
}
.cf-dir {
color: #006c96;
font-weight: bold;
}
.cf-arg {
color: #008000;
}
.cf-subdir {
color: #835234;
}
code.rest {
background-color: #f0f5f4; /*#073d59;*/
color: #253a28;
}
.footnote {
font-size: 18px;
text-align: center;
}
iframe.github-stars {
margin-left: 20px;
vertical-align: middle;
}
@media (max-width: 1100px) {
.side-by-side,
section.alternate:nth-child(odd) .side-by-side {
flex-direction: column;
}
section.alternate:nth-child(odd) .side-by-side > img {
flex-direction: column-reverse;
margin-bottom: 50px;
}
.side-by-side-content {
margin-bottom: 50px;
}
.side-by-side > * {
width: initial;
}
p {
max-width: 900px;
}
}
@media (max-width: 900px) {
header {
flex-direction: column;
}
#logo-container {
text-align: center;
}
header nav {
text-align: center;
}
h1 {
font-size: 50px;
word-wrap: break-word;
}
h2 {
font-size: 24px;
}
}
/* TODO: */
/* TAKEN FROM features.css */
.features-start {
background: linear-gradient(0deg, #13a8f5 0%, #18b125 100%);
color: white;
padding: 35px 0;
}
.main-features {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding-top: 2rem;
}
.main-feature {
text-align: center;
padding: 0 2rem;
margin: 3rem 0;
width: 25%;
}
.main-feature img {
height: 130px;
margin-bottom: 15px;
}
.main-feature .title {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
}
.main-feature p {
text-align: left;
font-size: 16px;
margin: 0;
}
.feature-points {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
font-size: 28px;
}
.feature-point {
width: 33.333%;
min-width: 300px;
padding: 1rem 3rem;
}
#features-title {
width: 80%;
max-width: 700px;
display: block;
margin: 50px auto 0;
position: relative;
top: 40px;
}
.features-area h3 {
border-bottom: 3px solid #2BABED;
}
.features-area h4 {
text-align: center;
padding-top: 80px;
padding-bottom: 40px;
font-family: Montserrat, sans-serif;
font-size: 40px;
}
.features-area h5 {
font-size: 18px;
text-transform: uppercase;
letter-spacing: 1px;
}
.section-heading {
font-style: italic;
font-size: 20px;
line-height: 2rem;
color: #000;
max-width: 550px;
text-align: center;
margin: 2rem auto 0;
}
.features {
display: flex;
flex-wrap: wrap;
}
.feature {
width: 33.333%;
padding: 25px;
}
.feature p {
margin-top: 5px;
color: #333;
font-size: 18px;
}
@media (max-width: 900px) {
.main-feature {
width: 50%;
margin: 3rem 0;
padding: 0 1rem;
}
.feature {
width: 50%;
}
}
@media (max-width: 700px) {
.pitch {
width: 100%;
border-right: none;
}
.feature-highlight {
padding: 1rem;
}
}
@media (max-width: 500px) {
.main-feature {
width: 100%;
}
.feature {
width: 100%;
}
}