mirror of
https://github.com/zulip/zulip.git
synced 2026-06-12 21:00:58 +08:00
Some checks failed
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-10.0, 10.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
Signed-off-by: Anders Kaseorg <[email protected]>
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
import path from "node:path";
|
|
|
|
import postcssExtendRule from "postcss-extend-rule";
|
|
import postcssImport from "postcss-import";
|
|
import postcssPrefixWrap from "postcss-prefixwrap";
|
|
import postcssPresetEnv from "postcss-preset-env";
|
|
import postcssSimpleVars from "postcss-simple-vars";
|
|
|
|
import {container_breakpoints, media_breakpoints} from "./src/css_variables.ts";
|
|
|
|
const config = ({file}) => ({
|
|
plugins: [
|
|
(file.basename ?? path.basename(file)) === "dark_theme.css" &&
|
|
// Add postcss-import plugin with postcss-prefixwrap to handle
|
|
// the flatpickr dark theme. We do this because flatpickr themes
|
|
// are not scoped. See https://github.com/flatpickr/flatpickr/issues/2168.
|
|
postcssImport({
|
|
plugins: [postcssPrefixWrap("%dark-theme")],
|
|
}),
|
|
postcssExtendRule,
|
|
postcssSimpleVars({variables: {...container_breakpoints, ...media_breakpoints}}),
|
|
postcssPresetEnv({
|
|
features: {
|
|
"is-pseudo-class": true, // Needed for postcss-extend-rule
|
|
"nesting-rules": true,
|
|
},
|
|
}),
|
|
],
|
|
});
|
|
export default config;
|