anki/qt/aqt/data/web/css/BUILD.bazel
2021-01-31 19:03:40 +01:00

38 lines
686 B
Python

load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("//qt/aqt/data/web/pages:defs.bzl", "copy_page")
load("compile_sass.bzl", "compile_sass")
compile_sass(
srcs = glob(
["*.scss"],
exclude = ["_*.scss"],
),
group = "css_local",
visibility = ["//visibility:private"],
)
copy_file(
name = "core_css",
src = "//ts/sass:core.css",
out = "core.css",
)
copy_page(
name = "editor",
srcs = [
"editor.css",
"editable.css",
],
package = "//ts/editor",
)
filegroup(
name = "css",
srcs = [
"core.css",
"css_local",
"editor",
],
visibility = ["//qt:__subpackages__"],
)