callumalpass_tasknotes/styles
2026-05-18 19:37:53 +10:00
..
advanced-calendar-view.css soften calendar linked hover highlight 2026-05-18 19:21:48 +10:00
agenda-view.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
base.css Clean up CSS lint issues 2026-05-14 21:06:30 +10:00
bases-views.css replace calendar event emoji marker 2026-05-18 19:33:29 +10:00
calendar-view.css fix mini calendar sidebar controls 2026-05-18 13:34:24 +10:00
date-picker.css use native date input for task date picker 2026-05-18 19:30:44 +10:00
file-selector-modal.css refactor: consolidate file selector modals into FileSelectorModal 2025-11-30 11:32:47 +11:00
filter-bar-bem.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
filter-heading.css feat: add filter heading display to TaskListView 2025-08-18 00:24:32 +12:00
index.css feat: add filter heading display to TaskListView 2025-08-18 00:24:32 +12:00
kanban-view.css mark unknown kanban status columns 2026-05-18 14:21:59 +10:00
modal-bem.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
note-card-bem.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
pomodoro-stats-view.css Add Pomodoro session deletion 2026-05-18 02:33:53 +10:00
pomodoro-view.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
README.md feat: Remove legacy class names, cleanup legacy styles, and update code for BEM consistency 2025-06-09 13:01:19 +10:00
relationships.css Align note widgets with editor margins 2026-05-18 01:25:05 +10:00
reminder-modal.css Improve mobile reminder delete target 2026-05-18 05:40:45 +10:00
search-box.css fix: improve search UX with no-results feedback and hide empty groups 2025-11-25 20:52:45 +11:00
settings-view.css remove settings search 2026-05-18 19:37:53 +10:00
static-style-utilities.css Improve pomodoro timer and stats bases 2026-05-17 00:01:14 +10:00
stats-view.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
status-bar.css Improve pomodoro timer and stats bases 2026-05-17 00:01:14 +10:00
task-action-palette-modal.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
task-card-bem.css improve mobile task widget targets 2026-05-18 14:53:03 +10:00
task-card-note-widget.css Align note widgets with editor margins 2026-05-18 01:25:05 +10:00
task-inline-widget.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
task-list-view.css replace calendar event emoji marker 2026-05-18 19:33:29 +10:00
task-modal.css replace calendar event emoji marker 2026-05-18 19:33:29 +10:00
task-selector-with-create-modal.css Fix create task footer activation 2026-05-17 22:35:17 +10:00
time-entry-editor-modal.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
unscheduled-tasks-selector-modal.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
utilities.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00
UTILITIES.md Refactor and add complete BEM‐based, scoped CSS for TaskNotes 2025-06-09 12:20:19 +10:00
UTILITY-USAGE-GUIDE.md Refactor and add complete BEM‐based, scoped CSS for TaskNotes 2025-06-09 12:20:19 +10:00
variables.css Honor Obsidian task font size 2026-05-18 05:34:28 +10:00
webhook-settings.css Use clickable cursor variable for TaskNotes controls 2026-05-17 14:28:33 +10:00

CSS Build System

This directory contains the modular CSS source files for the TaskNotes plugin. The main styles.css file is generated from these source files during the build process.

File Structure

Core System Files

  • variables.css - CSS custom properties and design system variables
  • utilities.css - Utility classes for layout, spacing, typography, and states
  • base.css - Basic styles, animations, card components, and layout
  • components.css - Reusable UI components, utilities, and modals

BEM Component Files (NEW)

  • task-card-bem.css - BEM TaskCard component with proper scoping
  • note-card-bem.css - BEM NoteCard component with proper scoping
  • filter-bar-bem.css - BEM FilterBar component with proper scoping
  • modal-bem.css - BEM Modal components with proper scoping

View-Specific Files (NEW)

  • task-list-view.css - BEM TaskListView component
  • calendar-view.css - BEM CalendarView component
  • kanban-view.css - BEM KanbanView component
  • agenda-view.css - BEM AgendaView component
  • notes-view.css - BEM NotesView component
  • pomodoro-view.css - BEM PomodoroView component
  • pomodoro-stats-view.css - BEM PomodoroStatsView component
  • settings-view.css - BEM SettingsView component

Legacy Files (Remaining)

  • pomodoro.css - Pomodoro view specific styles (to be deprecated)
  • settings.css - Settings page styles (to be deprecated)
  • tasks-legacy.css - Legacy task styles for backwards compatibility

Documentation Files

  • index.css - Documentation file (not included in build)
  • README.md - This documentation file
  • UTILITIES.md - Utility class documentation
  • UTILITY-USAGE-GUIDE.md - Guide for using utility classes

Development Workflow

Making Changes

  1. Edit the appropriate CSS file in this directory
  2. Run npm run build-css to regenerate the main styles.css file
  3. Test your changes in the application
  4. Commit your changes to the source files (the generated styles.css is ignored by git)

Build Commands

  • npm run build-css - Build CSS only
  • npm run dev - Build CSS + start development server
  • npm run build - Build CSS + full production build

File Loading Order

The CSS files are concatenated in dependency order:

  1. variables.css (CSS custom properties - loaded first)
  2. utilities.css (utility classes)
  3. base.css (foundational styles)
  4. task-card-bem.css (BEM TaskCard component)
  5. note-card-bem.css (BEM NoteCard component)
  6. filter-bar-bem.css (BEM FilterBar component)
  7. modal-bem.css (BEM Modal components)
  8. View-specific BEM files (task-list-view, calendar-view, kanban-view, etc.)
  9. components.css (general components)
  10. Legacy files (pomodoro.css, settings.css)

CI/CD Process

The GitHub Actions workflow automatically:

  1. Builds the CSS from source files during release
  2. Includes the generated styles.css in the release artifacts
  3. Ensures the plugin has all necessary files for distribution

Important Notes

  • Never edit styles.css directly - it will be overwritten during builds
  • The styles.css file is not tracked in git - only source files are committed
  • All CSS variables should be defined in variables.css
  • Follow the existing patterns and naming conventions
  • Use CSS custom properties (variables) instead of hardcoded values
  • Test changes across different views (Calendar, Tasks, Kanban, etc.)

Troubleshooting

If styles aren't updating:

  1. Run npm run build-css to regenerate the CSS
  2. Check that your changes are in the correct source file
  3. Verify the build completed without errors
  4. Clear browser cache if testing in development

If the build fails:

  1. Check the console output for specific error messages
  2. Verify all CSS files exist and are readable
  3. Check for syntax errors in your CSS
  4. Ensure file paths in build-css.mjs are correct