mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Correctly include editable css
This commit is contained in:
parent
1465d3a848
commit
cd36fe2518
5 changed files with 14 additions and 2 deletions
|
@ -47,6 +47,7 @@ filegroup(
|
||||||
srcs = [
|
srcs = [
|
||||||
"css_local",
|
"css_local",
|
||||||
"editor",
|
"editor",
|
||||||
|
"editable",
|
||||||
"reviewer",
|
"reviewer",
|
||||||
],
|
],
|
||||||
visibility = ["//qt:__subpackages__"],
|
visibility = ["//qt:__subpackages__"],
|
||||||
|
|
|
@ -65,6 +65,7 @@ esbuild(
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"editable",
|
"editable",
|
||||||
|
"editable_scss",
|
||||||
"svelte_components",
|
"svelte_components",
|
||||||
"//ts/components",
|
"//ts/components",
|
||||||
"//ts/components:svelte_components",
|
"//ts/components:svelte_components",
|
||||||
|
|
|
@ -12,4 +12,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
$: converted = convertMathjax(`${delimiters[0]}${mathjax}${delimiters[1]}`);
|
$: converted = convertMathjax(`${delimiters[0]}${mathjax}${delimiters[1]}`);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{@html converted}
|
<div on:click={console.log}>
|
||||||
|
{@html converted}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
div {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class EditableContainer extends HTMLDivElement {
|
||||||
|
|
||||||
const rootStyle = document.createElement("link");
|
const rootStyle = document.createElement("link");
|
||||||
rootStyle.setAttribute("rel", "stylesheet");
|
rootStyle.setAttribute("rel", "stylesheet");
|
||||||
rootStyle.setAttribute("href", "./_anki/css/editable.css");
|
rootStyle.setAttribute("href", "./_anki/css/editable-build.css");
|
||||||
shadow.appendChild(rootStyle);
|
shadow.appendChild(rootStyle);
|
||||||
|
|
||||||
this.baseStyle = document.createElement("style");
|
this.baseStyle = document.createElement("style");
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
|
import "./editable-base.css";
|
||||||
import "./editable-container";
|
import "./editable-container";
|
||||||
import "./editable";
|
import "./editable";
|
||||||
|
import "./mathjax-components";
|
||||||
|
|
Loading…
Reference in a new issue