mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Directly include CSS from bootstrap and codemirror packages
This commit is contained in:
parent
e5409a25b5
commit
4a2d2a75c1
6 changed files with 15 additions and 13 deletions
|
@ -14,7 +14,10 @@ def compile_sass(group, srcs, deps = [], visibility = ["//visibility:private"]):
|
||||||
sourcemap = False,
|
sourcemap = False,
|
||||||
deps = deps,
|
deps = deps,
|
||||||
visibility = visibility,
|
visibility = visibility,
|
||||||
include_paths = ["external/ankidesktop"],
|
include_paths = [
|
||||||
|
"ts/sass",
|
||||||
|
"external/ankidesktop/ts/sass",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
native.filegroup(
|
native.filegroup(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@use 'ts/sass/base';
|
@use 'base';
|
||||||
@use 'ts/sass/scrollbar';
|
@use 'scrollbar';
|
||||||
|
|
||||||
.night-mode {
|
.night-mode {
|
||||||
@include scrollbar.night-mode;
|
@include scrollbar.night-mode;
|
||||||
|
|
|
@ -19,8 +19,8 @@ $utilities: (
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@import "ts/sass/bootstrap/bootstrap-reboot";
|
@import "bootstrap/scss/bootstrap-reboot";
|
||||||
@import "ts/sass/bootstrap/bootstrap-utilities";
|
@import "bootstrap/scss/bootstrap-utilities";
|
||||||
|
|
||||||
/* Bootstrap "extensions" */
|
/* Bootstrap "extensions" */
|
||||||
.flex-basis-100 {
|
.flex-basis-100 {
|
||||||
|
|
|
@ -9,7 +9,6 @@ vendor_js_lib(
|
||||||
],
|
],
|
||||||
base = "external/npm/node_modules/bootstrap/",
|
base = "external/npm/node_modules/bootstrap/",
|
||||||
pkg = pkg_from_name("bootstrap"),
|
pkg = pkg_from_name("bootstrap"),
|
||||||
strip_prefix = "scss/",
|
|
||||||
visibility = ["//visibility:private"],
|
visibility = ["//visibility:private"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@import "ts/sass/bootstrap/functions";
|
@import "bootstrap/scss/functions";
|
||||||
@import "ts/sass/bootstrap/variables";
|
@import "bootstrap/scss/variables";
|
||||||
|
|
||||||
@mixin btn-border-radius {
|
@mixin btn-border-radius {
|
||||||
border-top-left-radius: var(--border-left-radius);
|
border-top-left-radius: var(--border-left-radius);
|
||||||
|
|
|
@ -153,13 +153,13 @@ async function writeJs(
|
||||||
const preprocessOptions = preprocess({
|
const preprocessOptions = preprocess({
|
||||||
scss: {
|
scss: {
|
||||||
includePaths: [
|
includePaths: [
|
||||||
binDir,
|
`${binDir}/ts/sass`,
|
||||||
genDir,
|
`${genDir}/ts/sass`,
|
||||||
// a nasty hack to ensure ts/sass/... resolves correctly
|
// a nasty hack to ensure ts/sass/... resolves correctly
|
||||||
// when invoked from an external workspace
|
// when invoked from an external workspace
|
||||||
binDir + "/external/ankidesktop",
|
`${binDir}/external/ankidesktop/ts/sass`,
|
||||||
genDir + "/external/ankidesktop",
|
`${genDir}/external/ankidesktop/ts/sass`,
|
||||||
binDir + "/../../../external/ankidesktop",
|
`${binDir}/../../../external/ankidesktop/ts/sass`,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue