- Created static file structure: * static/css/components/ - reusable CSS components * static/css/pages/ - page-specific styles * static/js/utils/ - utility functions * static/js/components/ - interactive components - Created infrastructure files: * static/css/variables.css - CSS custom properties * static/css/components/index.css - CSS entry point * static/js/utils/index.js - JS utilities entry point * static/js/components/index.js - JS components entry point - Added comprehensive tests: * tests/test_static_files.py - 12 tests for structure, syntax, encoding - Updated .gitignore: * Added staticfiles/ to ignore list * Clarified that static/ sources are tracked - Added REFACTORING_PLAN.md: * New strategy: extract CSS/JS before HTML decomposition * Documented lessons learned from previous attempts * Defined phases 0-6 for systematic refactoring
22 lines
737 B
CSS
22 lines
737 B
CSS
/**
|
|
* CSS Components Index
|
|
*
|
|
* Этот файл служит единой точкой входа для всех CSS компонентов.
|
|
* Импортируйте компоненты по мере их создания.
|
|
*
|
|
* Использование в шаблонах:
|
|
* {% block extra_css %}
|
|
* <link rel="stylesheet" href="{% static 'css/components/index.css' %}">
|
|
* {% endblock %}
|
|
*/
|
|
|
|
/* Переменные (будут созданы далее) */
|
|
/* @import 'variables.css'; */
|
|
|
|
/* Общие компоненты (будут созданы в Фазе 3) */
|
|
/* @import 'feed-cards.css'; */
|
|
/* @import 'ios-search.css'; */
|
|
/* @import 'modals.css'; */
|
|
/* @import 'badges.css'; */
|
|
/* @import 'buttons.css'; */
|