mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 21:11:34 +03:00
15 lines
502 B
Plaintext
15 lines
502 B
Plaintext
// Quick notes about adding images:
|
|
// This uses an external pipeline in default.nix to replace the @SVG_* tokens
|
|
// with files from this directory with their name uppercased.
|
|
|
|
#svg(@svg) {
|
|
// ugh, that's an ugly hack... but escape() apparently doesn't deal well with percent signs.
|
|
@_data: replace(escape(@svg), "%", "PERCENT");
|
|
background-image: replace(~"url('data:image/svg+xml;utf8,@{_data}')", "PERCENT", "%");
|
|
}
|
|
|
|
#svg-logo() {
|
|
// The NixOS logo, in white.
|
|
#svg(@SVG_LOGO);
|
|
}
|