Initial commit

This commit is contained in:
allegroai
2021-05-14 02:48:51 +03:00
parent dc5a4e8a0d
commit 77c9a91a95
645 changed files with 37481 additions and 14 deletions

748
src/css/custom.css Normal file
View File

@@ -0,0 +1,748 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
html {
scroll-behavior: smooth;
}
:root {
--ifm-color-primary: #14aa8c;
--ifm-color-primary-dark: #109177;
--ifm-color-primary-darker: #0d7560;
--ifm-color-primary-darkest: #085344;
--ifm-color-primary-light: #17c5a2;
--ifm-color-primary-lighter: #2edfbb;
--ifm-color-primary-lightest: #51f1d1;
--ifm-toc-background-color: #141722;
--ifm-code-font-size: 95%;
--search-local-modal-width: 480px;
--ifm-navbar-item-padding-horizontal: 1rem;
--ifm-hr-margin-vertical: 4rem;
--max-page-width: 1600px;
--docusaurus-announcement-bar-height: 40px !important;
}
html[data-theme="dark"] {
--ifm-background-color: #1a1e2c;
--ifm-footer-background-color: #1a1e2c;
--ifm-footer-link-color: #a4a5aa;
--ifm-footer-link-hover-color: #14aa8c;
--ifm-dropdown-background-color: #2c3246;
--ifm-table-stripe-background: #141722;
}
@media (min-width: 1400px) {
/* Expand sidebar width above 1400px */
html[data-theme="light"],
html[data-theme="dark"] {
--doc-sidebar-width: 400px;
}
}
/* ===LAYOUT=== */
/* sidebar & content in the center of the page */
.navbar__inner,
.main-wrapper > div {
margin: 0 auto;
max-width: var(--max-page-width);
}
/* Scrollbar style in dark-mode */
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
background: #565b6b;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
background: #70778b;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
background: transparent;
}
/* Announcement Bar (above header) */
div[role="banner"] {
height: var(--docusaurus-announcement-bar-height);
display: flex;
align-items: center;
justify-content: center;
}
div[role="banner"] > div {
padding-left: 55px;
}
html[data-theme="light"] div[role="banner"] {
background-color: #0b2471 !important;
color: #fff !important;
border-bottom:1px solid rgba(255,255,255,0.1);
}
html[data-theme="dark"] div[role="banner"] {
background-color: #141722 !important;
color: #fff !important;
border-bottom:1px solid rgba(255,255,255,0.1);
}
.docusaurus-highlight-code-line {
background-color: rgb(72, 77, 91);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}
/* ===NAVBAR=== */
.navbar--dark {
background-color: #0b2471;
}
html[data-theme="dark"] .navbar--dark {
background-color: #141722;
}
.navbar--dark.navbar .navbar__toggle {
color: white; /* opener icon color */
}
/* ===HEADER=== */
/* header content */
.hero--primary {
background: linear-gradient(180deg, rgba(11,36,113,1) 0%, rgba(21,170,140,1) 100%);
}
@media only screen and (min-width: 767px) {
.hero--primary h1 {
text-align: left;
}
}
img[class^="heroLogo"] {
width: 300px;
}
.hero .button {
position:relative;
top:0;
}
.hero .button:active {
top:1px;
}
.hero .button.button--secondary.button--outline:not(.button--active):not(:hover) {
color:#fff;
}
.hero .button.button--primary {
background-color: #afe61e;
border-color: #afe61e;
}
.hero .button.button--primary:hover {
background-color: #c0f830;
border-color: #c0f830;
box-shadow: none !important;
}
.button.button--rounded {
border-radius: 6rem;
}
html[data-theme="light"] .hero .button.button--primary{
color: var(--ifm-color-primary-darkest);
}
.col--feature {
margin-top: 3rem;
}
.col--feature h3 {
color: var(--ifm-color-primary);
}
.col--feature img {
height: 84px;
width: auto;
}
.col--feature h3,
.col--feature p {
padding-left: 0.5rem;
}
/* header social icons */
.header-ico--github {
background-image: url(/img/ico-github.svg);
margin-right: calc(var(--ifm-navbar-item-padding-horizontal) * 2);
}
.header-ico--twitter {
background-image: url(/img/ico-twitter.svg);
}
.header-ico--youtube {
background-image: url(/img/ico-youtube.svg);
}
.header-ico--slack {
background-image: url(/img/ico-slack.svg);
}
.header-ico {
width:24px;
height:24px;
padding:0 calc(var(--ifm-navbar-item-padding-horizontal) * 1.2);
background-repeat: no-repeat;
background-position: center;
background-size: 24px;
}
.header-ico:hover {
opacity: 0.8;
}
/* social icon tooltip */
.header-ico[aria-label]:hover:after {
opacity: 1;
transition: opacity 0.25s ease, visibility 0.25s ease;
visibility: visible;
}
.header-ico[aria-label]:after {
content: attr(aria-label);
padding: 0.5rem 1rem;
color: #fff;
background-color: #10141f;
border-radius: 4px;
font-size: 0.875rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -4rem;
z-index: 100;
white-space: nowrap;
opacity: 0;
visibility: hidden;
}
.header-ico[aria-label] {
position: relative;
display: flex;
align-items: center;
}
@media (max-width: 600px) {
.header-ico[aria-label] {
display:none;
}
}
/* ===SIDEBAR=== */
@media (min-width: 997px) {
[class^="sidebarLogo"] {
padding:0 1rem;
margin: 0 !important;
}
html[data-theme="dark"] .docSidebarContainer_node_modules-\@docusaurus-theme-classic-lib-next-theme-DocPage- {
border-right-color: rgba(255,255,255,0.1) !important;
}
}
html[data-theme="light"] [class^="sidebarLogo"] {
background: url(/img/logo--on-light.svg) 1rem center no-repeat;
background-size: 6rem;
}
html[data-theme="light"] [class^="sidebarLogo"] > img {
visibility: hidden;
}
.menu__list {
font-size: 0.875rem;
}
.menu__link--sublist:after {
background-size: 1.25rem;
background-repeat: no-repeat;
}
html[data-theme="light"] .menu__link--active {color: #14aa8c;}
html[data-theme="dark"] .menu__link--active {color: #14aa8c;}
/* ===NAV-SIDEBAR=== */
html[data-theme="light"] .navbar-sidebar {
background-color: white;
}
html[data-theme="dark"] .navbar-sidebar {
background-color: #141722;
}
html[data-theme="light"] .navbar-sidebar .navbar__brand {
background: url(/img/logo--on-light.svg) 0 center no-repeat;
background-size: 5.5rem;
}
html[data-theme="light"] .navbar-sidebar .navbar__logo {
visibility: hidden;
}
html[data-theme="dark"] .menu--show {
background-color: #141722;
}
.navbar-sidebar .menu__link.header-ico--slack {
margin-top:3rem;
}
.navbar-sidebar .menu__link.header-ico--slack:before {
content: "";
position:absolute;
left:0;
top:-1.8rem;
height:1px;
width: var(--ifm-navbar-sidebar-width);
}
html[data-theme="light"] .navbar-sidebar .menu__link.header-ico--slack:before {
background-color: rgba(0,0,0,0.1);
}
html[data-theme="dark"] .navbar-sidebar .menu__link.header-ico--slack:before {
background-color: rgba(255,255,255,0.1);
}
.navbar-sidebar .menu__link.header-ico--slack:hover {
background: url(/img/ico-slack.svg) no-repeat center;
}
.navbar-sidebar .menu__link.header-ico--twitter:hover {
background: url(/img/ico-twitter.svg) no-repeat center;
}
.navbar-sidebar .menu__link.header-ico--github:hover {
background: url(/img/ico-github.svg) no-repeat center;
}
.navbar-sidebar .menu__link.header-ico--youtube:hover {
background: url(/img/ico-youtube.svg) no-repeat center;
}
.menu__link.header-ico {
margin: 1rem 0 0 0.5rem;
background-size: 20px;
}
.menu__link.header-ico[aria-label]:after {
position: static;
color: white;
transform: unset;
background: unset;
padding: 0 0 0 1.5rem;
opacity: 1;
visibility: visible;
}
html[data-theme="light"] .menu__link.header-ico {
filter: brightness(0.5);
}
/* ===TABLE OF CONTENT=== */
/* _toc */
.table-of-contents {
padding:1rem;
border-radius: 6px;
}
html[data-theme="light"] .table-of-contents {
box-shadow: 0 0 0 2px rgba(0,0,0,0.1) inset;
}
html[data-theme="dark"] .table-of-contents {
background-color: var(--ifm-toc-background-color);
box-shadow: 0 0 0 2px rgba(0,0,0,0.4) inset;
}
.table-of-contents__left-border {
border:none;
}
a.table-of-contents__link--active:before {
content: "";
position: absolute;
left: 0;
height: 10px;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 6px solid var(--ifm-color-primary);
transform: translateY(5px);
}
html[data-theme="light"] .table-of-contents__link:not(.table-of-contents__link--active) {
color: rgba(0,0,0,0.9);
}
/* toc: show "..." inside code tag */
.table-of-contents code {
width: 22px;
margin: 0 6px;
padding: 0;
overflow: hidden;
white-space: nowrap;
color: transparent;
background: transparent;
vertical-align: middle;
display: inline-block;
}
.table-of-contents code:before {
content: "...";
color: var(--ifm-color-primary-darker);
}
/* ===FOOTER=== */
.footer__item {
font-size: 0.875rem;
}
.footer__copyright {
font-size: 0.75rem;
}
html[data-theme="light"] .footer {
border-top: 1px solid rgba(0,0,0,0.1);
}
html[data-theme="dark"] .footer {
border-top: 1px solid rgba(255,255,255,0.1);
}
html[data-theme="dark"] .footer__copyright {
color: rgba(255,255,255,0.4);
}
/* social links icons */
.footer__link-item[href*="slack"] {
padding-left: 1.4rem;
background: url(/img/ico-slack.svg) no-repeat left center;
background-size: 1rem;
}
.footer__link-item[href*="youtube"] {
padding-left: 1.4rem;
background: url(/img/ico-youtube.svg) no-repeat left center;
background-size: 1rem;
}
.footer__link-item[href*="twitter"] {
padding-left: 1.4rem;
background: url(/img/ico-twitter.svg) no-repeat left center;
background-size: 1rem;
}
.footer__link-item[href*="stackoverflow"] {
padding-left: 1.4rem;
background: url(/img/ico-stackoverflow.svg) no-repeat left center;
background-size: 1rem;
}
html[data-theme="light"] .footer__link-item[href*="slack"],
html[data-theme="light"] .footer__link-item[href*="youtube"],
html[data-theme="light"] .footer__link-item[href*="twitter"],
html[data-theme="light"] .footer__link-item[href*="stackoverflow"] {
filter: brightness(0.5);
}
/* ===MARKDOWN=== */
.markdown img[src*="png"],
.markdown img[src*="gif"] {
border:1px solid #2c3246;
}
.getting-started-buttons > .col {
margin-top: 1rem;
}
.getting-started-buttons .button {
font-size: 1rem;
padding: 1rem;
white-space: unset; /* allow wrap text when minimize */
}
/* disable medium-zoom-image on svg icons */
.markdown img.medium-zoom-image[src*="svg"] {
pointer-events: none;
}
/* table */
.markdown table {
border-spacing: 0;
border-collapse: separate;
}
.markdown thead th {
text-align: left;
font-size: var(--ifm-h6-font-size);
}
.markdown thead th:not(:last-child) {
border-right: none;
}
.markdown table tbody td:not(tr:last-child td) {
border-bottom: none;
}
.markdown table tbody td:not(:last-child) {
border-right: none;
}
.markdown table thead tr:first-child th:first-child {
border-top-left-radius: var(--ifm-card-border-radius);
}
.markdown table thead tr:first-child th:last-child {
border-top-right-radius: var(--ifm-card-border-radius);
}
.markdown table tbody tr:last-child td:first-child {
border-bottom-left-radius: var(--ifm-card-border-radius);
}
.markdown table tbody tr:last-child td:last-child {
border-bottom-right-radius: var(--ifm-card-border-radius);
}
html[data-theme="dark"] .markdown thead th {
color: var(--ifm-color-gray-600);
}
html[data-theme="light"] .markdown table td {
border-color: rgba(0,0,0,0.2);
}
html[data-theme="dark"] .markdown table th {
border-color: var(--ifm-color-gray-800);
}
html[data-theme="dark"] .markdown table td {
border-color: var(--ifm-color-gray-800);
}
/* icons */
.icon {
position: relative;
vertical-align: middle;
transform: translateY(-2px);
}
.size-sm {
width: 16px;
height: 16px;
}
.size-md {
width: 24px;
height: 24px;
}
.size-lg {
width: 32x;
height: 32px;
}
html[data-theme="light"] .icon {
filter: brightness(0.8);
}
.space-sm {
margin: 0 0.5rem;
}
.space-md {
margin: 0 1rem;
}
.space-lg {
margin: 0 1.5rem;
}
.center-md {
left: calc(50% - 10px);
}
/* expansion panel */
.cml-expansion-panel {
position: relative;
padding: 0;
background-color: var(--ifm-toc-background-color);
border-left: 4px solid transparent;
border-radius: 4px;
transition: border-left 0.4s ease;
}
.cml-expansion-panel-summary {
outline: none;
color: #8f9dc9;
padding: 8px 24px 8px 32px;
line-height: 1.6rem;
cursor: pointer;
position: relative;
transition: color 0.4s ease;
}
.cml-expansion-panel-summary:before {
content:"";
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 24px;
line-height: 16px;
position: absolute;
left: 8px;
top: 8px;
background-color: var(--ifm-toc-background-color);
background-repeat: no-repeat;
background-position: center;
}
.cml-expansion-panel-summary:after {
content:"";
position: absolute;
right: 12px;
top: 8px;
width: 24px;
height: 24px;
transform: rotate(0);
transition: 0.25s;
background: url(/icons/ico-chevron-down.svg) no-repeat center;
}
/* expansion content */
.cml-expansion-panel-content {
padding:16px;
}
/* icon types */
/* -> info */
.cml-expansion-panel.info .cml-expansion-panel-summary:before {
background-image: url(/icons/ico-info-circle.svg);
}
/* -> tips */
.cml-expansion-panel.tips .cml-expansion-panel-summary:before {
background-image: url(/icons/ico-tips.svg);
}
/* -> alert */
.cml-expansion-panel.alert .cml-expansion-panel-summary:before {
background-image: url(/icons/ico-alert.svg);
}
/* -> screenshot */
.cml-expansion-panel.screenshot .cml-expansion-panel-summary:before {
background-image: url(/icons/ico-image.svg);
}
/* -> configuration */
.cml-expansion-panel.configuration .cml-expansion-panel-summary:before {
background-image: url(/icons/ico-config.svg);
}
/* light mode */
html[data-theme="light"] .cml-expansion-panel[open] {
border-left-color: var(--ifm-color-primary);
}
html[data-theme="light"] .cml-expansion-panel,
html[data-theme="light"] .cml-expansion-panel-summary:before {
background-color: #f2f2f2;
}
html[data-theme="light"] .cml-expansion-panel-summary {
color: #5a668d;
}
/* opened expansion */
.cml-expansion-panel[open] {
border-left-color: var(--ifm-color-primary-dark);
}
.cml-expansion-panel[open] .cml-expansion-panel-summary:after {
transform: rotate(-180deg);
}
/* md headding style */
/* <h3> */
.markdown h3 {
font-size: 1.6rem;
}
html[data-theme="light"] h3 {
color: var(--ifm-color-primary-darker);
}
html[data-theme="dark"] h3 {
color: var(--ifm-color-primary-lightest);
}
/* <hr> */
.markdown hr {
border-bottom: none;
}
html[data-theme="dark"] .markdown hr {
border-color: rgba(255,255,255,0.1);
}
/* admonition */
.admonition {
overflow: hidden;
border:none;
font-size: 0.875rem;
padding: 0.875rem;
}
.admonition .admonition-heading {
margin: -1rem -1rem 1rem -1rem;
padding: 0.45rem 0.75rem 0.05rem 0.75rem;
background: rgba(255,255,255,0.2);
}
.admonition .admonition-icon {
margin-right: 0.5rem;
}
.admonition .admonition-heading h5 {
display: flex;
align-items: center;
font-size: 0.75rem;
line-height: normal;
margin-bottom: 0.25rem;
}
.admonition-content code {
font-size: 0.75rem;
}
/* danger (red) */
.alert--danger {
--ifm-alert-background-color: var(--ifm-color-danger-light);
}
html[data-theme="dark"] .admonition.alert--danger {
--ifm-alert-background-color: var(--ifm-color-danger-lightest);
}
/* info (blue) */
.alert--info {
--ifm-alert-background-color: var(--ifm-color-info-darker);
}
html[data-theme="dark"] .alert--info {
--ifm-alert-background-color: var(--ifm-color-info);
}
/* show visual identification for external links */
.markdown a[href^="https://"] {
background: url(/icons/ico-open-in-new.svg) center right no-repeat;
background-size: 0.9rem;
margin-right: 0.4rem;
padding-right: 1rem;
}
/* supported storages */
.supported-storages {
margin: 1rem auto;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
}
.supported-storages > div {
padding: 1.6rem 1rem 0;
width: 8rem;
min-height: 8rem;
text-align: center;
font-size: 0.875rem;
font-weight: 500;
line-height: 1.2;
display: flex;
flex-direction: column;
align-items: center;
background-color: var(--ifm-toc-background-color);
border-radius: 1rem;
}
html[data-theme="light"] .supported-storages > div {
background-color: var(--ifm-color-secondary);
}
.supported-storages img {
width: 48px;
height: 48px;
margin-bottom: 0.5rem;
}
@media only screen and (min-width: 767px) {
.supported-storages {
width: 80%;
}
}