478b3a53f1
* Move some AddCards specific code to NoteCreator.svelte * Add new strings for Toggling the Visual / HTML editor * Set LabelContainer vertical-align to text-top - Makes them look more centered * Remove appendInParentheses helper * Make all ts/*.html files include only module.js and module.css * Move any JS from .html to index files * Remove .html files from ts modules * Remove Python with Starlark implemenation * Remove reference to non-existing file * Remove deck-option.html as well * fix change-notetype screen (dae)
31 lines
792 B
Python
31 lines
792 B
Python
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
|
|
|
|
def compile_sass(group, srcs, deps = [], visibility = ["//visibility:private"]):
|
|
css_files = []
|
|
for scss_file in srcs:
|
|
base = scss_file.replace(".scss", "")
|
|
name = base + "_sass"
|
|
|
|
sass_binary(
|
|
name = name,
|
|
src = scss_file,
|
|
sourcemap = False,
|
|
deps = deps,
|
|
visibility = visibility,
|
|
include_paths = [
|
|
".",
|
|
"sass",
|
|
"external/ankidesktop",
|
|
"external/ankidesktop/sass",
|
|
],
|
|
)
|
|
|
|
css_file = base + ".css"
|
|
css_files.append(css_file)
|
|
|
|
native.filegroup(
|
|
name = group,
|
|
srcs = css_files,
|
|
visibility = visibility,
|
|
)
|