[docs] misc theming
This commit is contained in:
parent
b5a7439749
commit
d821f6c9a5
219
docs/index.html
219
docs/index.html
|
@ -52,10 +52,216 @@
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
||||||
<style>
|
<style>
|
||||||
|
.markdown-section pre>code {
|
||||||
|
background: #383838;
|
||||||
|
}
|
||||||
|
.markdown-section pre {
|
||||||
|
background: #383838;
|
||||||
|
}
|
||||||
|
|
||||||
|
code[class*="lang-"],
|
||||||
|
pre[class*="lang-"] {
|
||||||
|
color: white !important;
|
||||||
|
background: none !important;
|
||||||
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
|
||||||
|
text-align: left !important;
|
||||||
|
text-shadow: 0 -.1em .2em black !important;
|
||||||
|
white-space: pre !important;
|
||||||
|
word-spacing: normal !important;
|
||||||
|
word-break: normal !important;
|
||||||
|
word-wrap: normal !important;
|
||||||
|
line-height: 1.5 !important;
|
||||||
|
|
||||||
|
-moz-tab-size: 4 !important;
|
||||||
|
-o-tab-size: 4 !important;
|
||||||
|
tab-size: 4 !important;
|
||||||
|
|
||||||
|
-webkit-hyphens: none !important;
|
||||||
|
-moz-hyphens: none !important;
|
||||||
|
-ms-hyphens: none !important;
|
||||||
|
hyphens: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="lang-"],
|
||||||
|
:not(pre) > code[class*="lang-"] {
|
||||||
|
background: hsl(0, 0%, 8%) !important; /* #141414 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code blocks */
|
||||||
|
pre[class*="lang-"] {
|
||||||
|
border-radius: .5em !important;
|
||||||
|
border: .3em solid hsl(0, 0%, 33%) !important; /* #282A2B */
|
||||||
|
box-shadow: 1px 1px .5em black inset !important;
|
||||||
|
margin: .5em 0 !important;
|
||||||
|
overflow: auto !important;
|
||||||
|
padding: 1em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="lang-"]::-moz-selection {
|
||||||
|
/* Firefox */
|
||||||
|
background: hsl(200, 4%, 16%) !important; /* #282A2B */
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="lang-"]::selection {
|
||||||
|
/* Safari */
|
||||||
|
background: hsl(200, 4%, 16%) !important; /* #282A2B */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text Selection colour */
|
||||||
|
pre[class*="lang-"]::-moz-selection, pre[class*="lang-"] ::-moz-selection,
|
||||||
|
code[class*="lang-"]::-moz-selection, code[class*="lang-"] ::-moz-selection {
|
||||||
|
text-shadow: none !important;
|
||||||
|
background: hsla(0, 0%, 93%, 0.15) !important; /* #EDEDED */
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[class*="lang-"]::selection, pre[class*="lang-"] ::selection,
|
||||||
|
code[class*="lang-"]::selection, code[class*="lang-"] ::selection {
|
||||||
|
text-shadow: none !important;
|
||||||
|
background: hsla(0, 0%, 93%, 0.15) !important; /* #EDEDED */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inline code */
|
||||||
|
:not(pre) > code[class*="lang-"] {
|
||||||
|
border-radius: .3em !important;
|
||||||
|
border: .13em solid hsl(0, 0%, 33%) !important; /* #545454 */
|
||||||
|
box-shadow: 1px 1px .3em -.1em black inset !important;
|
||||||
|
padding: .15em .2em .05em !important;
|
||||||
|
white-space: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.comment,
|
||||||
|
.token.prolog,
|
||||||
|
.token.doctype,
|
||||||
|
.token.cdata {
|
||||||
|
color: hsl(0, 0%, 58%) !important; /* #777777 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.punctuation {
|
||||||
|
opacity: .7 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.namespace {
|
||||||
|
opacity: .7 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.tag,
|
||||||
|
.token.boolean,
|
||||||
|
.token.number,
|
||||||
|
.token.deleted {
|
||||||
|
color: hsl(14, 58%, 55%) !important; /* #CF6A4C */
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.keyword,
|
||||||
|
.token.property,
|
||||||
|
.token.selector,
|
||||||
|
.token.constant,
|
||||||
|
.token.symbol,
|
||||||
|
.token.builtin {
|
||||||
|
color: hsl(27, 80%, 56%) !important; /* #F9EE98 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.attr-name,
|
||||||
|
.token.attr-value,
|
||||||
|
.token.string,
|
||||||
|
.token.char,
|
||||||
|
.token.operator,
|
||||||
|
.token.entity,
|
||||||
|
.token.url,
|
||||||
|
.lang-css .token.string,
|
||||||
|
.style .token.string,
|
||||||
|
.token.variable,
|
||||||
|
.token.inserted {
|
||||||
|
color: hsl(37, 100%, 80%) !important; /* #8F9D6A */
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.atrule {
|
||||||
|
color: hsl(218, 22%, 55%) !important; /* #7587A6 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.regex,
|
||||||
|
.token.important {
|
||||||
|
color: hsl(42, 75%, 65%) !important; /* #E9C062 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.important,
|
||||||
|
.token.bold {
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
.token.italic {
|
||||||
|
font-style: italic !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.token.entity {
|
||||||
|
cursor: help !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre[data-line] {
|
||||||
|
padding: 1em 0 1em 3em !important;
|
||||||
|
position: relative !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Markup */
|
||||||
|
.language-markup .token.tag,
|
||||||
|
.language-markup .token.attr-name,
|
||||||
|
.language-markup .token.punctuation {
|
||||||
|
color: hsl(33, 33%, 52%) !important; /* #AC885B */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Make the tokens sit above the line highlight so the colours don't look faded. */
|
||||||
|
.token {
|
||||||
|
position: relative !important;
|
||||||
|
z-index: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-highlight {
|
||||||
|
background: hsla(0, 0%, 33%, 0.25) !important; /* #545454 */
|
||||||
|
background: linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0)) !important; /* #545454 */
|
||||||
|
border-bottom: 1px dashed hsl(0, 0%, 33%) !important; /* #545454 */
|
||||||
|
border-top: 1px dashed hsl(0, 0%, 33%) !important; /* #545454 */
|
||||||
|
left: 0 !important;
|
||||||
|
line-height: inherit !important;
|
||||||
|
margin-top: 0.75em !important; /* Same as .prism’s padding-top */
|
||||||
|
padding: inherit 0 !important;
|
||||||
|
pointer-events: none !important;
|
||||||
|
position: absolute !important;
|
||||||
|
right: 0 !important;
|
||||||
|
white-space: pre !important;
|
||||||
|
z-index: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-highlight:before,
|
||||||
|
.line-highlight[data-end]:after {
|
||||||
|
background-color: hsl(215, 15%, 59%) !important; /* #8794A6 */
|
||||||
|
border-radius: 999px !important;
|
||||||
|
box-shadow: 0 1px white !important;
|
||||||
|
color: hsl(24, 20%, 95%) !important; /* #F5F2F0 */
|
||||||
|
content: attr(data-start) !important;
|
||||||
|
font: bold 65%/1.5 sans-serif !important;
|
||||||
|
left: .6em !important;
|
||||||
|
min-width: 1em !important;
|
||||||
|
padding: 0 .5em !important;
|
||||||
|
position: absolute !important;
|
||||||
|
text-align: center !important;
|
||||||
|
text-shadow: none !important;
|
||||||
|
top: .4em !important;
|
||||||
|
vertical-align: .3em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-highlight[data-end]:after {
|
||||||
|
bottom: .4em !important;
|
||||||
|
content: attr(data-end) !important;
|
||||||
|
top: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-top: 35px;
|
padding-top: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-link:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.app-name-link {
|
.app-name-link {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +320,10 @@
|
||||||
color: #e88634;
|
color: #e88634;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
a:-webkit-any-link:hover {
|
||||||
|
text-decoration:none !important;
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
.rnfirebase-header > span > a {
|
.rnfirebase-header > span > a {
|
||||||
border:none;
|
border:none;
|
||||||
outline:none;
|
outline:none;
|
||||||
|
@ -138,11 +347,11 @@
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: -6px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
top: -16px;
|
top: -16px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: 111px;
|
width: 110px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
||||||
|
@ -150,8 +359,12 @@
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
||||||
|
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-javascript.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-javascript.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
|
||||||
|
<script src="//unpkg.com/prismjs/components/prism-ruby.min.js"></script>
|
||||||
|
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
|
||||||
|
<script src="//unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-swift.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-swift.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue