mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 19:43:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			870 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			870 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| const path = require("path");
 | |
| 
 | |
| const {media_breakpoints} = require("./static/js/css_variables");
 | |
| 
 | |
| module.exports = ({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.
 | |
|             require("postcss-import")({
 | |
|                 plugins: [require("postcss-prefixwrap")("%dark-theme-block")],
 | |
|             }),
 | |
|         require("postcss-nested"),
 | |
|         require("postcss-extend-rule"),
 | |
|         require("postcss-simple-vars")({variables: media_breakpoints}),
 | |
|         require("postcss-calc"),
 | |
|         require("postcss-media-minmax"),
 | |
|         require("autoprefixer"),
 | |
|     ],
 | |
| });
 |