mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 14:34:19 +01:00
touch up
This commit is contained in:
10
index.html
10
index.html
@@ -194,14 +194,16 @@
|
|||||||
#version {
|
#version {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 96vh;
|
top: 96vh;
|
||||||
font-size: 75%;
|
font-size: .6rem;
|
||||||
background: #1a1a1a;
|
background: #1a1a1a;
|
||||||
color: white;
|
color: white;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
padding: 10px;
|
padding: 8px;
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
transition: top 0.3s;
|
transition: top 0.3s;
|
||||||
|
border-radius: .35rem;
|
||||||
|
border: 1px solid #3a4816;
|
||||||
}
|
}
|
||||||
|
|
||||||
#version:hover {
|
#version:hover {
|
||||||
@@ -295,8 +297,8 @@
|
|||||||
const { versions } = Pear
|
const { versions } = Pear
|
||||||
process.env.WS_NO_BUFFER_UTIL = false // ws buffer-util opt-out
|
process.env.WS_NO_BUFFER_UTIL = false // ws buffer-util opt-out
|
||||||
versions().then(({ app, platform }) => {
|
versions().then(({ app, platform }) => {
|
||||||
document.querySelector('#platform-version').innerText = `Pear version: ${platform.fork}.${platform.length}.${platform.key}`
|
document.querySelector('#platform-version').innerText = `Pear Runtime ${platform.fork}.${platform.length}.${platform.key}`
|
||||||
document.querySelector('#app-version').innerText = `App version: ${app.fork}.${app.length}.${app.key}`
|
document.querySelector('#app-version').innerText = `Pear Rtm App ${app.fork}.${app.length}.${app.key}`
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<script type='module' src='./lib/devtools.js'></script>
|
<script type='module' src='./lib/devtools.js'></script>
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ customElements.define('docs-viewer', class extends HTMLElement {
|
|||||||
this.template.innerHTML = `
|
this.template.innerHTML = `
|
||||||
<div>
|
<div>
|
||||||
<style>
|
<style>
|
||||||
|
:host { display: block; padding-bottom: 3rem }
|
||||||
ul { list-style-type: none; }
|
ul { list-style-type: none; }
|
||||||
ul li::before { content: '❥ '; margin-right: 0.5em; }
|
ul li::before { content: '❥ '; margin-right: 0.5em; }
|
||||||
a:visited, a:active, a { color: #B0D944; outline: none; text-decoration: none; background-color: #151517 }
|
a:visited, a:active, a { color: #B0D944; outline: none; text-decoration: none; background-color: #151517 }
|
||||||
|
|||||||
Reference in New Issue
Block a user