This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This repository manages CSS for a MediaWiki site. The CSS is maintained as a single file (common.css) that gets uploaded to the MediaWiki:Common.css page on the target site.
The current structure is a single monolithic CSS file approach, but the user has indicated they want to transition to a modular system where CSS is constructed from multiple smaller, manageable files.
common.css- The main CSS file containing all styles (3172+ lines)upload.py- Python script for uploading CSS to MediaWiki siteCLAUDE.md- This documentation file
The current common.css contains:
- Font imports (Google Fonts)
- Table styling (sticky headers, wikitable styles)
- UI components (canyon popup, legends, diff views)
- Responsive design elements
- MediaWiki-specific overrides
python3 upload.pyRequires environment variables:
MEDIAWIKI_SITE_URLMEDIAWIKI_USERNAMEMEDIAWIKI_PASSWORD
Dependencies: mwclient Python package
wc -l common.cssWhen making changes:
- Edit the
common.cssfile directly (current approach) - Test changes locally if possible
- Use
upload.pyto deploy to MediaWiki site
The user wants to refactor this into a modular system where:
- CSS is split into multiple smaller, manageable files
- Files are concatenated/built into a single
common.cssfor upload - This would require implementing a build system
- CSS must be compatible with MediaWiki's CSS loading system
- Styles apply to all skins unless specifically targeted
- Font imports must be first in the file
- Some styles target MediaWiki-specific classes and IDs