참고소스 수정본
This commit is contained in:
@@ -0,0 +1,487 @@
|
||||
@import "https://neo4j.com/docs/assets/css/site.css";
|
||||
|
||||
#auth {
|
||||
padding-left: initial;
|
||||
}
|
||||
|
||||
.doc h1 {
|
||||
font-size: 1.75em;
|
||||
}
|
||||
|
||||
.doc p {
|
||||
margin-block-start: 1em;
|
||||
margin-block-end: 1em;
|
||||
margin-inline-start: 0;
|
||||
margin-inline-end: 0;
|
||||
}
|
||||
|
||||
.sphinx pre {
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.sphinx pre:not(.highlight) {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
background: light-dark(var(--theme-light-color-neutral-bg-on-bg-weak), #1a1b1d);
|
||||
border-radius: 0;
|
||||
border: 1px solid light-dark(var(--theme-light-color-neutral-border-strongest), var(--theme-dark-color-neutral-border-strongest));
|
||||
}
|
||||
|
||||
html.is-clipped--nav #searchbox {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body .sphinxsidebar {
|
||||
background: light-dark(var(--palette-neutral-15),var(--theme-dark-color-neutral-bg-weak));
|
||||
}
|
||||
|
||||
|
||||
body.sphinx a.external::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background-position: 50%;
|
||||
}
|
||||
|
||||
body.sphinx #searchbox {
|
||||
padding: 0 1.5rem 0.5rem;
|
||||
}
|
||||
|
||||
body.sphinx #indexlinkbox {
|
||||
padding: 0 1.5rem 0.5rem 0;
|
||||
}
|
||||
|
||||
body.sphinx #indexlinkbox .indexlinkwrapper > ul:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#indexlinklabel {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
body.sphinx #searchlabel,
|
||||
body.sphinx #indexlinklabel {
|
||||
margin: 0.8rem 0 0.5rem;
|
||||
}
|
||||
|
||||
body.sphinx #searchlabel,
|
||||
body.sphinx #indexlinklabel {
|
||||
margin: 0.8rem 0 0.5rem;
|
||||
}
|
||||
|
||||
body.sphinx #searchbox .search,
|
||||
body.sphinx .content .search {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
position: relative;
|
||||
background: initial;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1024px) {
|
||||
|
||||
body.sphinx .toolbar {
|
||||
box-shadow: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.navbar-item, .navbar-link {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
body.sphinx .nav-container {
|
||||
border: none;
|
||||
}
|
||||
|
||||
body.sphinx .nav,
|
||||
body.sphinx .nav-panel-menu {
|
||||
height: auto;
|
||||
background: initial;
|
||||
}
|
||||
|
||||
body.sphinx .sphinxsidebar {
|
||||
position: static;
|
||||
}
|
||||
|
||||
body.sphinx .sphinxsidebarwrapper {
|
||||
position: sticky;
|
||||
top: 3.77778rem;
|
||||
height: calc(100vh - 3.77778rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
body.sphinx .navbar-start {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
max-width: 63.11111rem;
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
margin-right: 2rem;
|
||||
}
|
||||
|
||||
body.sphinx .navbar-start .navbar-link {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item, .navbar-link {
|
||||
line-height: 1.8;
|
||||
padding: 0.5rem 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 769px) {
|
||||
.doc>.sect-header>h1.page:first-child {
|
||||
margin-top: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.doc>section>h1:first-child {
|
||||
font-size: 2rem;
|
||||
margin: 1.5rem 0.5rem 1.5rem 0;
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 {
|
||||
font-weight: 400;
|
||||
-webkit-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
line-height: 1.3;
|
||||
margin: 2rem 0 1rem;
|
||||
}
|
||||
|
||||
.doc a.headerlink {
|
||||
visibility: hidden;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
h1:hover > a.headerlink,
|
||||
h2:hover > a.headerlink,
|
||||
h3:hover > a.headerlink,
|
||||
h4:hover > a.headerlink,
|
||||
h5:hover > a.headerlink,
|
||||
h6:hover > a.headerlink,
|
||||
dt:hover > a.headerlink,
|
||||
caption:hover > a.headerlink,
|
||||
p.caption:hover > a.headerlink,
|
||||
div.code-block-caption:hover > a.headerlink {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.nav-menu .caption {
|
||||
padding: 0.5rem 1.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.nav-menu ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
|
||||
{% for level in range(1, 4) %}
|
||||
.nav-menu li.toctree-l{{ level }} {
|
||||
list-style: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-menu .toctree-l{{ level }}>a,
|
||||
.nav-menu .toctree-l{{ level }}>span {
|
||||
padding-left: {{ level }}.5rem;
|
||||
}
|
||||
|
||||
.nav-menu .toctree-l{{ level }}>a,
|
||||
.nav-menu .toctree-l{{ level }}>span {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.nav-menu .toctree-l{{ level }} a:hover,
|
||||
.nav-menu .toctree-l{{ level }} span:hover {
|
||||
background: light-dark(var(--theme-light-color-neutral-hover), var(--theme-dark-color-primary-hover-weak));
|
||||
}
|
||||
|
||||
.nav-menu .toctree-l{{ level }}>a.current {
|
||||
background: light-dark(var(--theme-light-color-neutral-hover), var(--theme-dark-color-primary-hover-weak));
|
||||
color: light-dark(var(--theme-light-color-primary-text), var(--theme-dark-color-primary-text));
|
||||
}
|
||||
|
||||
.nav-menu .toctree-l{{ level }}>a.current::before {
|
||||
content: "";
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.toctree-l{{ level }}>a, .toctree-l{{ level }}>span {
|
||||
position: relative;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
.nav-menu li a code {
|
||||
font-family: inherit
|
||||
}
|
||||
|
||||
.is-current-page>.nav-link,
|
||||
.is-current-page>.nav-text {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.nav-menu a, .nav-text {
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
|
||||
/* lists */
|
||||
|
||||
body.sphinx .doc ul li{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* functions */
|
||||
|
||||
body.sphinx .doc dl.py.function {
|
||||
padding: 0 1rem;
|
||||
/* border-top: 2px dotted #eee; */
|
||||
}
|
||||
|
||||
/* deprecated */
|
||||
|
||||
body.sphinx .deprecated::after,
|
||||
body.sphinx .deprecated > *::after {
|
||||
content: unset;
|
||||
}
|
||||
|
||||
body.sphinx .doc dl.deprecated dt:first-of-type span.sig-prename,
|
||||
body.sphinx .doc dl.deprecated dt:first-of-type span.sig-name {
|
||||
border-bottom: 1px solid var(--palette-lemon-30);
|
||||
}
|
||||
|
||||
body.sphinx .doc dl.deprecated {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
body.sphinx .doc div.deprecated {
|
||||
padding: 1rem 1rem 0.75rem;
|
||||
margin: 0.5rem 1.5rem;
|
||||
border-radius: .25rem;
|
||||
border-left: 2px solid var(--palette-lemon-30);
|
||||
}
|
||||
|
||||
.sphinx .doc .deprecated > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.sphinx .doc .deprecated > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: initial;
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition {
|
||||
margin: 0.5rem 1.5rem;
|
||||
border-left: 4px solid #2d3748;
|
||||
border-radius: .25rem;
|
||||
padding: 1rem 1rem 0.75rem;
|
||||
font-size: .88889rem
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition .admonition-title:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition .admonition-title,
|
||||
.sphinx .doc .admonition .admonition-title + p {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition > table {
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
position: relative;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition .content {
|
||||
padding: 1rem 1rem .75rem;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition .listingblock .content {
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition .icon {
|
||||
display: none
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition a.btn {
|
||||
display: inline-block;
|
||||
padding: .5rem 2rem;
|
||||
border-radius: .5rem
|
||||
color: light-dark(var(--theme-light-color-neutral-text-inverse), var(--theme-dark-color-neutral-text-inverse));
|
||||
background: light-dark(var(--theme-light-color-primary-text), var(--theme-dark-color-primary-text));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition a.btn::after {
|
||||
display: none !important
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.warning {
|
||||
background-color: light-dark(var(--theme-light-color-danger-bg-weak), var(--theme-dark-color-danger-bg-weak));
|
||||
border-color: light-dark(var(--theme-light-color-danger-border-weak), var(--theme-dark-color-danger-border-weak));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.warning a {
|
||||
color: light-dark(var(--theme-light-color-danger-bg-strong), var(--theme-dark-color-danger-bg-strong));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.caution {
|
||||
background-color: light-dark(var(--theme-light-color-warning-bg-weak), var(--theme-dark-color-warning-bg-weak));
|
||||
border-color: light-dark(var(--theme-light-color-warning-border-weak), var(--theme-dark-color-warning-border-weak));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.caution a {
|
||||
color: light-dark(var(--theme-light-color-warning-bg-strong), var(--theme-dark-color-warning-bg-strong));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.tip, .sphinx .doc .admonition.note {
|
||||
background-color: light-dark(var(--theme-light-color-success-bg-weak), var(--theme-dark-color-success-bg-weak));
|
||||
border-left-color: light-dark(var(--theme-light-color-success-border-weak), var(--theme-dark-color-success-border-weak));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.tip a, .sphinx .doc .admonition.note a {
|
||||
color: light-dark(var(--theme-light-color-success-bg-strong), var(--theme-dark-color-success-bg-strong));
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.seealso {
|
||||
background-color: light-dark(var(--palette-lavender-10), var(--palette-lavender-70));
|
||||
border-left-color: var(--palette-lavender-20);
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.important {
|
||||
background-color: light-dark(var(--palette-lavender-10), var(--palette-lavender-70));
|
||||
border-left-color: var(--palette-lavender-20);
|
||||
}
|
||||
|
||||
.sphinx .doc .admonition.important a {
|
||||
color: light-dark(var(--palette-lavender-70), var(--palette-lavender-10));
|
||||
}
|
||||
|
||||
dd > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.field-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
dl.field-list {
|
||||
display: grid;
|
||||
grid-template-columns: fit-content(30%) auto;
|
||||
}
|
||||
|
||||
dl.field-list > dt {
|
||||
font-weight: bold;
|
||||
/*word-break: break-word;*/
|
||||
padding-left: 0.5em;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
dl.field-list > dd {
|
||||
padding-left: 0.5em;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
dl > dd:last-child,
|
||||
dl > dd:last-child > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
dl.field-list > dd > ul,
|
||||
dl.field-list > dd > ol {
|
||||
padding-left: 1.9em;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.content ol li > p:first-of-type,
|
||||
.content ul li > p:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.content ol li > p:last-of-type,
|
||||
.content ul li > p:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
table.docutils {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.docutils td, table.docutils th {
|
||||
padding: 1px 8px 1px 5px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
table.docutils > tbody > tr:not(:last-child) > td,
|
||||
table.docutils > tbody > tr:not(:last-child) > td,
|
||||
table.docutils > thead > tr:not(:last-child) > td,
|
||||
table.docutils > thead > tr:not(:last-child) > td,
|
||||
table.docutils > tr:not(:last-child) > td,
|
||||
table.docutils > tr:not(:last-child) > td {
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
th > :first-child,
|
||||
td > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
th > :last-child,
|
||||
td > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.sig-name, code.descname {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sig-paren {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.versionmodified {
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic-ext.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic.woff2) format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-vietnamese.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin-ext.woff2) format('woff2');
|
||||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic-ext.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic.woff2) format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-vietnamese.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin-ext.woff2) format('woff2');
|
||||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic-ext.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic.woff2) format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-vietnamese.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin-ext.woff2) format('woff2');
|
||||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic-ext.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-cyrillic.woff2) format('woff2');
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-vietnamese.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin-ext.woff2) format('woff2');
|
||||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Nunito Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url(../fonts/nunito-sans-latin.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,53 @@
|
||||
;(function () {
|
||||
'use strict'
|
||||
|
||||
var article = document.querySelector('article.doc')
|
||||
var cheatSheet = document.querySelector('body.cheat-sheet')
|
||||
var toolbar = document.querySelector('.toolbar')
|
||||
var headerNavigationBar = document.querySelector('header > .navbar')
|
||||
|
||||
function decodeFragment (hash) {
|
||||
return hash && (~hash.indexOf('%') ? decodeURIComponent(hash) : hash).slice(1)
|
||||
}
|
||||
|
||||
function computePosition (el, sum) {
|
||||
if (article.contains(el)) {
|
||||
return computePosition(el.offsetParent, el.offsetTop + sum)
|
||||
} else {
|
||||
return sum
|
||||
}
|
||||
}
|
||||
|
||||
function jumpToAnchor (e) {
|
||||
if (e) {
|
||||
window.location.hash = '#' + this.id
|
||||
e.preventDefault()
|
||||
}
|
||||
var topOffset = toolbar ? toolbar.getBoundingClientRect().bottom : headerNavigationBar.getBoundingClientRect().bottom
|
||||
|
||||
if (cheatSheet) {
|
||||
var scrollTarget = this.closest('div')
|
||||
var selectorsTop = document.querySelector('.nav-container .selectors').querySelector('div').getBoundingClientRect().top
|
||||
if (this.tagName === 'H3') topOffset = selectorsTop
|
||||
window.scrollTo(0, computePosition(scrollTarget, 0) - topOffset)
|
||||
} else {
|
||||
window.scrollTo(0, computePosition(this, 0) - topOffset)
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('load', function jumpOnLoad (e) {
|
||||
var fragment, target
|
||||
if ((fragment = decodeFragment(window.location.hash)) && (target = document.getElementById(fragment))) {
|
||||
jumpToAnchor.bind(target)()
|
||||
setTimeout(jumpToAnchor.bind(target), 0)
|
||||
}
|
||||
window.removeEventListener('load', jumpOnLoad)
|
||||
})
|
||||
|
||||
Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]')).forEach(function (el) {
|
||||
var fragment, target
|
||||
if ((fragment = decodeFragment(el.hash)) && (target = document.getElementById(fragment))) {
|
||||
el.addEventListener('click', jumpToAnchor.bind(target))
|
||||
}
|
||||
})
|
||||
})()
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M35 19.772h55" fill="none" stroke="#222" stroke-width="8" stroke-opacity=".941"/><path fill="#222" d="M10 12.272h15v15H10z"/><path d="M43 63.678h45" fill="none" stroke="#222" stroke-width="5" stroke-opacity=".941"/><path fill="#222" d="M23 58.677h10v10H23z"/><path d="M43 82.727h45" fill="none" stroke="#222" stroke-width="5" stroke-opacity=".941"/><path fill="#222" d="M23 77.727h10v10H23z"/><path d="M43 44.628h45" fill="none" stroke="#222" stroke-width="5" stroke-opacity=".941"/><path fill="#222" d="M23 39.628h10v10H23z"/></svg>
|
||||
|
After Width: | Height: | Size: 605 B |
Reference in New Issue
Block a user