7d8f19e6e4
- The previous commits moved the majority of the remaining global css into components; move the remaining @emotion/css references into ticks.scss and the styling of the Graph.svelte. This is not as elegant as the emotion solution, but builds a whole lot faster, and most of our styling can be scoped to a component anyway. - Leave the .html files in ts/ for now. AnkiMobile uses them, and AnkiDroid likely will in the future too. In the long run we'll likely move to loading the JS into an existing page instead of loading a separate page, but at that point we can just exclude the .html file from copy_files_into_group() without affecting other clients. Closes #1074
14 lines
524 B
TypeScript
14 lines
524 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
// Global css classes used by subcomponents
|
|
|
|
// Graph.svelte
|
|
export const oddTickClass = "tick-odd";
|
|
export const clickableClass = "graph-element-clickable";
|
|
|
|
// It would be nice to define these in the svelte file that declares them,
|
|
// but currently this trips the tooling up:
|
|
// https://github.com/sveltejs/svelte/issues/5817
|
|
// export { oddTickClass, clickableClass } from "./Graph.svelte";
|