caddy-website/src/resources/css/docs.css

1031 lines
14 KiB
CSS
Raw Normal View History

2020-03-26 12:57:10 -06:00
body {
font-family: Maven Pro, sans-serif;
background: #f1f4f5;
2020-03-26 12:57:10 -06:00
}
2020-01-24 12:47:52 -07:00
header {
padding: 20px 40px;
2020-01-24 12:47:52 -07:00
}
#logo-container {
display: flex;
align-items: center;
line-height: 0;
}
#logo {
height: 25px;
line-height: 0;
}
#logo-docs {
font-family: Montserrat, sans-serif;
font-weight: bold;
2020-01-24 12:47:52 -07:00
text-transform: uppercase;
color: #0e495e;
2020-01-24 12:47:52 -07:00
margin-left: 10px;
font-size: 12px;
}
2020-11-25 10:46:20 -07:00
#zerossl-project {
font-size: 12px;
line-height: 1em;
padding-left: 1.5em;
}
2020-04-04 16:17:54 -06:00
#search {
margin-top: 0;
}
2020-01-24 12:47:52 -07:00
header nav {
font-size: 16px;
line-height: 2em;
}
header nav .button {
padding-top: 4px;
padding-bottom: 4px;
}
.breadcrumbs {
padding: 10px 20px !important;
margin-bottom: 0 !important;
color: #2861aa;
2020-01-24 12:47:52 -07:00
font-size: 16px;
font-weight: bold;
line-height: 1.75em;
}
#top-breadcrumb {
font-weight: bold;
}
#top-breadcrumb:not(:hover) {
color: #2861aa;
}
2020-01-24 12:47:52 -07:00
.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;
}
main {
display: flex;
2020-09-25 12:53:11 -06:00
justify-content: space-between;
2020-01-24 12:47:52 -07:00
}
main > .sidebar {
width: 18%;
2020-01-24 12:47:52 -07:00
flex-shrink: 0;
flex-grow: 1;
padding: 20px;
max-width: 400px;
2020-01-24 12:47:52 -07:00
}
main > .sidebar:last-child {
flex-shrink: 1;
}
main > nav.sidebar {
2020-01-24 12:47:52 -07:00
position: relative;
font-size: 16px;
2020-01-24 12:47:52 -07:00
}
2020-09-25 12:53:11 -06:00
main nav li img,
article li img {
2020-06-02 20:03:43 -06:00
max-height: .9em;
}
2020-01-24 12:47:52 -07:00
main nav ul {
list-style-type: none;
}
main nav li {
position: relative;
}
main nav li a {
display: block;
text-decoration: none;
color: inherit;
border-radius: 1.5em;
padding: 6px 18px 6px 28px;
color: #546c75;
2020-01-24 12:47:52 -07:00
}
2020-01-24 12:47:52 -07:00
main nav li a:hover {
color: #01324b;
2020-01-24 12:47:52 -07:00
}
main nav li a:before {
content: '\203A';
font-weight: bold;
font-size: 20px;
line-height: 1rem;
position: absolute;
opacity: 0;
left: 0;
2020-01-24 12:47:52 -07:00
transition: left .15s, opacity .15s;
}
main nav li a:hover:before {
opacity: 1;
left: .75em;
2020-01-24 12:47:52 -07:00
}
main nav li li a:hover:before {
left: 1.25em;
}
main nav li a.current {
background-color: #e0e8f0;
2020-01-24 12:47:52 -07:00
}
main nav li.heading {
font-weight: bold;
text-transform: uppercase;
font-size: 90%;
letter-spacing: 1px;
padding: 10px 20px 10px 2em;
2020-01-24 12:47:52 -07:00
}
main nav li.heading:not(:first-child) {
margin-top: 20px;
}
main nav li li a {
padding-top: 6px;
padding-bottom: 4px;
padding-left: 3em;
2020-01-24 12:47:52 -07:00
font-size: 90%;
}
.paper {
width: 100%;
background: white;
border-radius: 4px;
box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, .15);
}
#paper1,
#paper2 {
background: #f8fafb;
max-height: 1500px;
}
#paper1 {
2022-05-11 13:28:10 -04:00
margin-top: -20px;
margin-left: 20px;
transform: rotate(3deg);
2022-05-11 13:28:10 -04:00
z-index: -1;
}
#paper2 {
2022-05-11 13:28:10 -04:00
margin-top: 30px;
margin-left: calc(-100% - 20px);
transform: rotate(-5deg);
2022-05-11 13:28:10 -04:00
z-index: -1;
}
.paper3 {
2022-05-11 13:28:10 -04:00
margin-top: 20px;
margin-left: -100%;
}
2020-01-24 12:47:52 -07:00
.article-container {
display: flex;
align-content: flex-start;
2020-01-24 12:47:52 -07:00
flex-grow: 1;
min-width: 0;
margin: 20px;
2022-05-11 13:28:10 -04:00
margin-bottom: 0;
width: 100%;
max-width: 1100px;
2020-01-24 12:47:52 -07:00
}
.pad {
padding-top: 8%;
}
2020-01-24 12:47:52 -07:00
article {
padding-top: 8%;
padding-bottom: 8%;
2020-01-24 12:47:52 -07:00
font-size: 20px;
word-wrap: break-word;
}
/*
while we want most elements that are rendered
server-side from markdown to have a constrained
width, a few elements should be allowed to
extend to the borders of the page
*/
article > :not(.fullwidth),
article > .fullwidth > *,
.pad {
padding-left: 8%;
padding-right: 8%;
}
article > :not(h1),
dd,
2020-01-24 12:47:52 -07:00
article p,
article ol,
2020-01-24 12:47:52 -07:00
article ul,
article pre,
article table {
margin-bottom: 1.5rem;
}
article > .fullwidth { margin-bottom: 1.5rem; }
article > .fullwidth > * { margin-bottom: 0; }
article > pre.chroma > code {
background: none;
padding: 0;
}
article > pre.chroma {
padding-top: 2em;
padding-bottom: 2em;
2020-01-24 12:47:52 -07:00
}
article ul,
article ol,
#hovercard ul,
#hovercard ol {
margin-left: 2.5em;
}
article ul ul,
article ol ol,
article ol ul,
article ul ol {
margin-bottom: 0;
}
2020-01-24 12:47:52 -07:00
article p,
article li {
line-height: 1.5em;
}
article li p,
article li ul,
article li ol {
margin-bottom: .5em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
/* to ensure that the anchor-link icons stay inside the heading */
position: relative;
}
h1,
h2 {
text-align: center;
}
2020-01-24 12:47:52 -07:00
h1 {
font-size: 72px;
color: #0e3e5b;
letter-spacing: -2px;
margin-bottom: 50px;
2020-01-24 12:47:52 -07:00
}
h2 {
font-size: 46px;
padding-bottom: 15px;
border-bottom: 4px solid #72abe8;
margin: 100px 0 40px !important;
2020-01-24 12:47:52 -07:00
}
h3 {
font-size: 34px;
margin: 50px 0 20px;
}
h4 {
font-size: 24px;
margin: 25px 0 15px;
}
h5 {
font-size: 22px;
margin: 2em 0 1em;
}
.anchor-link {
opacity: 0;
font-size: .6em;
border-radius: 10px;
padding: .3em .5em;
margin-left: .25em;
position: absolute;
top: 5px;
}
*:hover > .anchor-link,
.anchor-link:focus {
opacity: 1;
text-decoration: none;
}
.anchor-link:hover {
background-color: rgba(0, 0, 0, .075);
}
2020-01-24 12:47:52 -07:00
code {
background-color: #e9f1fb;
border-radius: 5px;
2020-01-24 12:47:52 -07:00
}
code.cmd {
background-color: #333;
color: #eaeaea;
}
pre > code,
pre.chroma,
.group {
display: block;
white-space: pre;
}
pre > code,
article > pre {
2020-01-24 12:47:52 -07:00
padding: 1em;
overflow: auto;
}
pre > code.cmd {
border-radius: 5px;
}
code.cmd.bash,
code.cmd .bash,
code.cmd.bash-continuation,
code.cmd .bash-continuation {
2020-01-24 12:47:52 -07:00
font-weight: bold;
}
code.cmd.bash::before,
code.cmd .bash::before {
content: '$';
margin-right: .5rem;
}
code.cmd.bash-continuation::before,
code.cmd .bash-continuation::before {
content: '>';
2020-01-24 12:47:52 -07:00
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-top: 2em;
2020-01-24 12:47:52 -07:00
font-weight: bold;
margin-bottom: .5em;
}
.inline-link {
text-decoration: none;
position: absolute;
margin-left: -1.5em;
/* margin-top: -.1em; */
padding-right: .3em;
2020-01-24 12:47:52 -07:00
padding-left: .2em;
visibility: hidden;
}
.inline-link:hover {
text-decoration: none;
}
hr {
border: none;
border-top: 8px solid #34669b;
margin: 4em 0;
2020-01-24 12:47:52 -07:00
}
article img {
max-width: 100%;
}
iframe {
margin: 1em 0 2em;
}
.nonstandard-notice {
font-size: 14px;
max-width: 500px;
margin: 25px auto;
border: 1px solid #ecd200;
background: #fffddf;
border-radius: 5px;
padding: 10px;
color: #886c00;
line-height: 1.4em;
display: none;
}
.nonstandard {
color: rgb(214, 145, 16);
}
.standard-flag,
.nonstandard-flag {
cursor: help;
font-size: 8px;
line-height: 1em;
padding: 4px 8px;
text-transform: uppercase;
font-weight: bold;
color: white;
border-radius: 4px;
white-space: nowrap;
vertical-align: middle;
}
.standard-flag {
background-color: rgb(34, 163, 23);
}
.nonstandard-flag {
background-color: rgb(238, 167, 34);
}
.module-repo-differentiator {
font-size: 11px;
font-weight: bold;
color: #555;
line-height: 1em;
}
2020-01-24 12:47:52 -07:00
.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([href]) { color: #222; }
article .json a {
2020-01-24 12:47:52 -07:00
text-decoration: none;
font-weight: bold;
}
.json .has-popup { border-bottom: 1px dashed #222; }
.json a[href].has-popup { border-bottom-color: #1c82dc; }
2020-01-24 12:47:52 -07:00
.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;
/* TODO: This would be nice, but it breaks the arrow-box... */
/* max-height: 50%;
overflow-y: auto; */
2020-01-24 12:47:52 -07:00
}
#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 .nonstandard-flag {
float: right;
}
2020-01-24 12:47:52 -07:00
#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;
}
article aside {
position: relative;
font-size: 16px;
margin: 2em auto 3em !important;
max-width: 800px;
2020-01-24 12:47:52 -07:00
}
article aside.tip,
article aside.advice {
padding-left: calc(8% + 50px) !important;
}
article aside.tip::before,
article aside.advice::before {
font-size: 45px;
2020-01-24 12:47:52 -07:00
position: absolute;
top: -4px;
left: 8%;
2020-01-24 12:47:52 -07:00
}
article aside.tip {
color: #706b95;
}
article aside.advice {
color: #826848;
2020-01-24 12:47:52 -07:00
}
article aside.tip:nth-child(even)::before {
content: '💁‍♀️';
}
article aside.tip:nth-child(odd)::before {
content: '💁‍♂️';
2020-01-24 12:47:52 -07:00
}
article aside.advice::before {
content: '🤦';
2020-01-24 12:47:52 -07:00
}
article aside.complete {
color: #6b6b6b;
border: 2px dotted #88db88;
text-align: center;
max-width: 500px;
padding: 15px 25px !important;
2020-01-24 12:47:52 -07:00
}
article aside.complete::before {
content: '✅ complete';
color: #39c849;
text-transform: uppercase;
font-size: 14px;
font-weight: bold;
letter-spacing: 1px;
margin-right: 2em;
margin-bottom: .5em;
2020-01-24 12:47:52 -07:00
}
table {
table-layout: fixed;
border-collapse: collapse;
font-size: 16px;
}
article > table {
margin: 25px auto;
2020-01-24 12:47:52 -07:00
}
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;
}
#module-docs-container,
#module-list-container,
#module-template {
display: none;
}
#module-list-container {
overflow-x: auto;
}
#module-list {
margin-top: 50px;
}
#module-list td:first-child {
word-wrap: break-word;
max-width: 400px;
}
#module-list .module-link {
font-weight: bold;
font-size: 20px;
}
#module-multiple-repos {
display: none;
margin: 25px;
}
.module-repo-selector {
font-size: 26px;
padding: 25px;
font-weight: bold;
border-bottom: 1px solid #888;
cursor: pointer;
}
.module-repo-selector:hover {
color: #009cda;
background: rgb(246, 250, 252);
}
.module-repo-selector-arrow {
margin: 10px;
}
2020-01-24 12:47:52 -07:00
@media (max-width: 1400px) {
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: 1100px) {
header {
padding-bottom: 0;
2020-01-24 12:47:52 -07:00
}
main > .sidebar {
min-width: 200px;
padding: 20px 10px 0 0;
2020-01-24 12:47:52 -07:00
}
main > .sidebar:last-child {
display: none;
2020-01-24 12:47:52 -07:00
}
#paper1,
#paper2 {
display: none;
2020-01-24 12:47:52 -07:00
}
.paper3 {
2022-05-17 22:34:33 -04:00
margin-top: 0;
margin-left: 0;
2020-01-24 12:47:52 -07:00
}
article {
2020-01-24 12:47:52 -07:00
font-size: 18px;
padding-top: 40px;
padding-bottom: 40px;
2020-01-24 12:47:52 -07:00
}
article > :not(.fullwidth),
article > .fullwidth > * {
padding-left: 40px;
padding-right: 40px;
2020-01-24 12:47:52 -07:00
}
article > :not(h1) {
margin-bottom: 1.5rem;
}
article > pre.chroma {
padding-top: 1em;
padding-bottom: 1em;
}
h1 {
font-size: 45px;
2020-01-24 12:47:52 -07:00
}
h2 {
font-size: 32px;
}
}
2020-01-24 12:47:52 -07:00
2020-04-04 16:17:54 -06:00
@media (max-width: 900px) {
#logo-container {
display: block;
}
2020-11-25 10:46:20 -07:00
#zerossl-project {
text-align: center;
margin-bottom: 1em;
}
2020-01-24 12:47:52 -07:00
#logo-docs {
display: none;
}
main {
flex-direction: column-reverse;
align-items: center;
2020-01-24 12:47:52 -07:00
}
main > .sidebar {
width: 100%;
border-width: 0;
border-top-width: 2px;
}
.article-container {
max-width: 100%; /* TODO: why is this necessary?? without it, article overflows super wide on narrow screen */
margin: 20px 0;
}
.paper {
border-radius: 0;
box-shadow: none;
}
2020-01-24 12:47:52 -07:00
}
@media (prefers-color-scheme: dark) {
body {
background-color: #060e17;
color: #bdd6f7;
}
header nav .new {
color: black;
}
/* Algolia DocSearch */
#search {
--docsearch-searchbox-background: rgb(28, 52, 79);
--docsearch-searchbox-focus-background: rgb(28, 52, 79);
--docsearch-text-color: #bdd6f7;
--docsearch-muted-color: #96a9c4;
--docsearch-key-gradient: linear-gradient(-26.5deg, #060e17 0%, rgb(47, 62, 72) 100%);
--docsearch-key-shadow: inset 0 -2px 0 0 #4c4c56, inset 0 0 1px 1px rgb(70, 70, 70), 0 1px 2px 1px rgba(77, 79, 91, 0.4);
}
/* End Algolia DocSearch */
#paper1,
#paper2 {
background-color: #030a11;
}
.paper3 {
background-color: #051628;
2020-01-24 12:47:52 -07:00
}
#logo {
filter: invert(1);
}
#zerossl-logo {
filter: invert(1) hue-rotate(180deg);
}
#footer-logo {
filter: invert(1) hue-rotate(180deg);
2020-01-24 12:47:52 -07:00
}
#logo-docs {
color: #5aa3dc;
}
.breadcrumbs {
color: #5aa3dc;
}
main nav li a {
color: #668d9b;
}
2020-01-24 12:47:52 -07:00
main nav ul li a:hover {
color: #5aa3dc;
}
main nav ul li a.current {
background-color: #061b35;
}
.breadcrumbs {
2020-01-24 12:47:52 -07:00
border-color: #061b35;
}
h1 {
color: #5aa3dc;
}
code {
background-color: #122844;
}
code.cmd {
background-color: #000;
color: #ccc;
}
2020-03-22 16:14:17 -06:00
.json .key a:not([href]) {
color: #bdd6f7
}
2020-01-24 12:47:52 -07:00
#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;
}
article aside.tip {
color: #8c81e4;
2020-01-24 12:47:52 -07:00
}
th {
background-color: #142638;
}
th,
td {
border-bottom-color: #233444;
}
}