anki/qt/aqt/data/web/js/compile_ts.bzl
Henrik Giesel 09c29219b4
Several CSS fixes - Editor Cleanup (#1470)
* Refactor editor css, fix editor button highlight

- Avoid using webview.css
- Move more buttons css into button_mixins

* Fix DropdownItem appearance

* Fix the visuals of tags

* Make dropdown font slightly smaller

* Give SelectOption a background color

* Move some css from deck-options-base to CardStateCustomizer

* Avoid using core.scss for CardStats

* Avoid using sass/core in congrats package

* Inline core.scss into webview.scss

* Include fusion-vars for base.scss

* need to keep core.scss around for now (dae)
2021-10-31 08:29:22 +10:00

20 lines
453 B
Python

def compile_ts(group, srcs):
css_files = []
for ts_file in srcs:
name = ts_file.replace(".ts", "") + "_ts"
css_file = name + ".css"
css_files.append(css_file)
sass_binary(
name = name,
src = ts_file,
sourcemap = False,
deps = [],
)
native.filegroup(
name = group,
srcs = css_files,
visibility = ["//qt:__subpackages__"],
)