Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show progress in improve view #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 37 additions & 41 deletions src/sidebar/base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:root {
--paper: #F8FAFB;
--bg: #f8fafb;
--paper: white;
--ink: #222222;
--link: #3366cc;
--mark: #eaf3ff;
Expand All @@ -15,12 +16,13 @@

@media (prefers-color-scheme: dark) {
:root {
--paper: #27292D;
--ink: #F7F8F9;
--link: #7198F7;
--mark: #27292D;
--code: #55595D;
--shadow: #F7F8F911;
--bg: #27292d;
--paper: #2e3136;
--ink: #f7f8f9;
--link: #7198f7;
--mark: #27292d;
--code: #55595d;
--shadow: #f7f8f911;
}
}

Expand All @@ -29,34 +31,34 @@ html {
}

@font-face {
font-family: 'base-icons';
font-family: "base-icons";
src: url("res/icons.woff2");
unicode-range: U+2B9C,U+1F5D9;
unicode-range: U+2B9C, U+1F5D9;
}

@font-face {
font-family: 'pIqaD';
src: url("data:font/woff;charset=utf-8;base64,d09GMgABAAAAAAg4AA8AAAAAFJwAAAfaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGiQbMByBQgZWAIJSEQgKl0SQagtsAAE2AiQDgVQEIAWENweBfRvNDzOjwsYBICgvQPZfJmhHmPYuzIKJJm5FWcZQKbgVCrpRoisp+wC63ZckXYLmyWB/j7ZJEMVc1TNJDgCjDoGXD1G4J/3qywMLBaSB5Eu2wOtX03r725mtjEOUvgG7Uo9THjmhOyPPFnfu1w4RqWy68LTMuR00Yg5oD+9+duMIUA90QL7Gh+z/79fbar93vd+XO0S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icode-range: U+F8D0-F8E9, U+F8F0-F8F9, U+F8FD-F8FF;
}

body {
background: var(--paper);
background: var(--bg);
color: var(--ink);
font-family: 'base-icons',-apple-system,'BlinkMacSystemFont','Segoe UI','Roboto','Lato','Helvetica','Arial', 'pIqaD',sans-serif;
font-family: "base-icons", -apple-system, "BlinkMacSystemFont", "Segoe UI",
"Roboto", "Lato", "Helvetica", "Arial", "pIqaD", sans-serif;
font-size: 14px;
line-height: 1.2;
margin: 0;
user-select: text;
}

mark {
background: #7198F7;
background: #7198f7;
display: inline-block;
padding: 0 .25em;
padding: 0 0.25em;
}


a:hover {
text-decoration: underline;
}
Expand All @@ -83,7 +85,7 @@ video {
.placeholder {
color: #eaecf0;
white-space: break-word;
font-size: .6em;
font-size: 0.6em;
}

.url {
Expand All @@ -92,7 +94,7 @@ video {

h2 {
font-size: 1.7em;
font-family: "Linux Libertine", "Georgia", "Times", 'pIqaD', serif;
font-family: "Linux Libertine", "Georgia", "Times", "pIqaD", serif;
font-weight: normal;
}

Expand All @@ -113,18 +115,18 @@ figure {
}

figcaption {
font-size: .35em;
font-size: 0.35em;
line-height: 1;
}

code {
font-family: 'Menlo','Consolas','Liberation Mono','Courier New',monospace;
font-family: "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;
border: solid 1px var(--code);
white-space: nowrap;
padding: .05em .5em;
padding: 0.05em 0.5em;
display: inline-block;
max-width: calc(100% - 1em);
font-size: .8em;
font-size: 0.8em;
overflow: auto;
scrollbar-width: thin;
vertical-align: bottom;
Expand Down Expand Up @@ -163,7 +165,7 @@ form button,
}

button[disabled] {
opacity: .5;
opacity: 0.5;
}

form input {
Expand All @@ -186,35 +188,29 @@ form input {

@media (prefers-color-scheme: dark) {
.footer {
background: #2F3136;
border-top-color: #27292D;
background: #2f3136;
border-top-color: #27292d;
}
}

#content {
min-height: 100vh;
background: white;
background: var(--paper);
padding: 1em;
}

@media (prefers-color-scheme: dark) {
#content {
background: #2E3136;
}
}

#footer:empty {
display: none;
}

#footer {
border-top: 1px solid #CCD0D4;
border-top: 1px solid #ccd0d4;
padding: 1em 0;
}

@media (prefers-color-scheme: dark) {
#footer {
border-top-color: #44464A;
border-top-color: #44464a;
}
}

Expand All @@ -225,11 +221,11 @@ summary {

blockquote {
border-left: 3px solid #c8ccd1;
font-family: 'Linux Libertine','Georgia','Times','pIqaD',serif;
font-size: 1.1em;
overflow: hidden;
margin: 1em 0;
padding: 0 1em;
font-family: "Linux Libertine", "Georgia", "Times", "pIqaD", serif;
font-size: 1.1em;
overflow: hidden;
margin: 1em 0;
padding: 0 1em;
}

h2 {
Expand All @@ -238,4 +234,4 @@ h2 {

section {
margin: 1em 0;
}
}
44 changes: 22 additions & 22 deletions src/sidebar/components/actions/actions.tpl.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
const actions = (title, items) => {
let wrapper = document.createElement('nav');
wrapper.classList.add('actions');
let wrapper = document.createElement("nav");
wrapper.classList.add("actions");

let headline = document.createElement('h2');
headline.classList.add('actions__headline')
let headline = document.createElement("h2");
headline.classList.add("actions__headline");
headline.innerText = title;

let list = document.createElement('ul');
list.classList.add('actions__actions')
let list = document.createElement("ul");
list.classList.add("actions__actions");

for (let item of items) {
let listItem = document.createElement('li');
let link = document.createElement('a');
let moji = document.createElement('img');
moji.classList.add('actions__moji');
let listItem = document.createElement("li");
let link = document.createElement("a");

let moji = document.createElement("img");
moji.classList.add("actions__moji");
moji.src = item.moji;
link.appendChild(moji);

let itemTitle = document.createElement('span');
itemTitle.classList.add('actions__title');
itemTitle.innerText = ' ' + item.title;
let itemTitle = document.createElement("span");
itemTitle.classList.add("actions__title");
itemTitle.innerText = " " + item.title;
link.appendChild(itemTitle);

let desc = document.createElement('span');
desc.classList.add('actions__desc');
desc.innerText = ' ' + item.desc;
let desc = document.createElement("span");
desc.classList.add("actions__desc");
desc.innerText = " " + item.desc;
link.appendChild(desc);

link.setAttribute('href', item.link);
link.setAttribute("href", item.link);
listItem.appendChild(link);
if (item.callback) {
link.addEventListener('click', item.callback);
link.addEventListener("click", item.callback);
}
link.classList.add('actions__action');
link.classList.add("actions__action");
list.appendChild(listItem);
}

wrapper.appendChild(headline);
wrapper.appendChild(list);

return wrapper;
}
};

export { actions }
export { actions };
27 changes: 12 additions & 15 deletions src/sidebar/components/annote/annote.tpl.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
const annote = (qualifiers) => {
let dl = document.createElement('dl');
dl.classList.add('annote');
import "./annote.css";

const annote = (qualifiers) => {
let dl = document.createElement("dl");
dl.classList.add("annote");

for (let group of qualifiers) {
let dt = document.createElement('dt');
dt.classList.add('annote__verb');
let dt = document.createElement("dt");
dt.classList.add("annote__verb");

dt.appendChild(group.prop);
dl.appendChild(dt);

for (let item of group.vals) {
let dd = document.createElement('dd');
dd.classList.add('annote__object');
let dd = document.createElement("dd");
dd.classList.add("annote__object");
dd.appendChild(item);
dl.appendChild(dd);
}
}

let style = document.createElement('link');
style.setAttribute('rel', "stylesheet");
style.setAttribute('href', "components/annote/annote.css");

dl.appendChild(style);
return dl;
}
};

export { annote }
export { annote };
52 changes: 18 additions & 34 deletions src/sidebar/components/bouncer/bouncer.css
Original file line number Diff line number Diff line change
@@ -1,66 +1,50 @@
.bouncer {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: white;
background: var(--paper);
position: relative;
}

@media (prefers-color-scheme: dark) {
.bouncer {
background: #27292D;
}
}


.bouncer__mover {
position: fixed;
left: 50%;
top: 50%;
white-space: nowrap;
transform: translate(-50%,-50%);
color: #72777d;
color: #72777d;
text-align: center;
padding: 2em 1em 1em;
}
.bouncer__mover > .bouncer__bounce,
.bouncer__mover:before,
.bouncer__mover:after {
content: '';
content: "";
background-color: currentColor;
display: block;
display: inline-block;
display: inline-block;
width: 12px;
height: 12px;
border-radius: 100%;
animation: bounce 1600ms ease-in-out -160ms infinite both
animation: bounce 1600ms ease-in-out -160ms infinite both;
}
.bouncer__mover:before {
margin-right: 4px;
animation-delay: -330ms
animation-delay: -330ms;
}
.bouncer__mover:after {
margin-left: 4px;
animation-delay: 0s
animation-delay: 0s;
}

@keyframes bounce {
0%,
50%,
100% {
transform: scale(.625)
transform: scale(0.625);
}
20% {
opacity: .87;
transform: scale(1)
opacity: 0.87;
transform: scale(1);
}
}

.bouncer__status {
margin-top: 1em;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 90vw;
white-space: normal;
text-align: center;
}
white-space: normal;
text-align: center;
min-height: 6em;
padding: 1em;
}
Loading