Commit graph

14 commits

Author SHA1 Message Date
Filip Noetzel
04c19b818a Restore default styling for full-only unrated symbols 2025-06-24 08:14:42 +02:00
Filip Noetzel
ebcb212610 Replace default visual styles with sophisticated theming placeholder comments
- Replaced all default visual styling (opacity, filters) with comprehensive theming hook comments
- Updated main symbol state classes with detailed documentation for their purpose and usage
- Updated full-only symbol system styling with sophisticated placeholder comments
- Preserved accessibility styling for high contrast mode only
- Updated CSS-CUSTOMIZATION.md to reflect no default styling approach
- Added prominent warning about no default styling and provided quick start example
- Updated example numbering and added basic visual distinction example
- Enhanced accessibility section to clarify it's the only built-in styling

The plugin now provides pure theming hooks without imposing any visual choices, while maintaining comprehensive accessibility support and detailed documentation for users and developers.
2025-06-24 06:46:27 +02:00
Filip Noetzel
9b21e5e6bd Add distinct CSS class for half symbols and enhance customization
- Updated applySymbolState.ts to support 'half' state for half-filled symbols
- Modified renderRating.ts to apply 'half' state to half symbols (instead of 'rated')
- Updated previewRating.ts to use distinct states during hover preview for consistency
- Added CSS styling for .interactive-rating-symbol--half class with 80% opacity
- Added high contrast accessibility support for half symbols (60% opacity with enhanced contrast)
- Enhanced CSS-CUSTOMIZATION.md with comprehensive examples for half symbols including:
  * Basic color styling for filled/half/empty symbols
  * Gradient effects for half symbols
  * Enhanced hover effects for all three states
  * Different styling examples for various symbol types
  * Updated default styling documentation
  * Enhanced accessibility considerations
  * Updated migration guide

This completes the full CSS customization system with distinct classes for:
- .interactive-rating-symbol--rated (filled symbols)
- .interactive-rating-symbol--half (half symbols) 
- .interactive-rating-symbol--empty (empty symbols)
- .interactive-rating-symbol--unrated (full-only grayed symbols)
2025-06-24 06:36:18 +02:00
Filip Noetzel
eadace6854 Add distinct CSS classes for selected and non-selected rating symbols
- Updated applySymbolState.ts to support 'empty' state for unselected symbols
- Modified renderRating.ts to apply 'rated' state to filled symbols and 'empty' state to empty symbols
- Added CSS styling for .interactive-rating-symbol--empty class with 50% opacity
- Added high contrast accessibility support for empty symbols
- Created comprehensive CSS-CUSTOMIZATION.md guide with examples

This enables users to customize the appearance of filled vs empty symbols using CSS snippets, addressing the original request for better visual distinction between selected and non-selected symbols.
2025-06-24 06:29:55 +02:00
Filip Noetzel
cc7ea8ead9 Refactor inline styles to semantic CSS classes
- Removed all inline style assignments from RatingWidget.ts
- Added semantic CSS classes for symbol states (rated, unrated, normal)
- Implemented clean CSS class management with applySymbolState() method
- Updated styles.css with proper semantic class definitions
2025-06-10 09:19:58 +02:00
Filip Noetzel
1218efd3aa Add support for full-only rating symbols like 🎥
- Added fullOnly flag to SymbolSet interface
- Added 10 new full-only symbols (🎥, 🏆, , 💎, 🔥, , 🎯, 🚀, 💰, 🎖️)
- Visual: rated symbols full color, unrated grey 50% opacity
- Disk: only rated symbols saved (e.g., 🎥🎥🎥 (3/5))
- No 0 ratings, no half ratings for full-only symbols
- Updated CSS, tests, and documentation

Refactor full-only symbols: auto-detect, show denominator count, require rating text

- Remove fullOnly flag, auto-detect with isFullOnlySymbol()
- Visual: show denominator count (numerator color, rest grey)  
- Require rating text for denominator info
- Disk: save only rated symbols
- Updated docs and tests

Clarify and verify full-only symbol visual behavior

- Added debug test files to verify expected behavior
- Confirmed visual display always shows denominator count symbols
- Rated symbols in full color, unrated in grey 50% opacity
- Implementation already correct: displaySymbolCount uses denominator
- Added debug logging capability for troubleshooting
2025-06-09 22:54:41 +02:00
Filip Noetzel
4b4cef482c Remove all visual indicators, margins, borders while keeping CSS classes and cursor pointer functionality 2025-06-09 09:38:06 +02:00
Filip Noetzel
4a5e7d65f8 Remove support for editing ratings in reading mode - make widgets display-only while keeping edit mode interactive
Remove all reading mode support - edit mode only plugin

- Deleted markdown-postprocessor.ts (reading mode widgets)
- Deleted inline-rating-widget.ts (reading mode custom elements)  
- Updated plugin to only register editor extension
- Cleaned CSS to only include editor widget styles
- Updated README to clarify edit-mode-only functionality
- Bundle size reduced from 24.1kb to 16.1kb
2025-06-08 10:45:54 +02:00
Filip Noetzel
f7aa86a5bb Add half-symbol support to CodeMirror implementation
- Enhanced editor widget with click position detection for half vs full symbols
- Added hover preview with proper half-symbol rendering  
- Expanded symbol patterns with more half-symbol definitions
- Improved CSS styling with visual feedback for half-symbol interactions
- Added comprehensive test file with examples
2025-06-08 10:45:54 +02:00
Filip Noetzel
a8b30bea88 Add CodeMirror editor extension to make ratings interactive in editing mode 2025-06-08 10:45:54 +02:00
Filip Noetzel
bc8ea924b8 refactor: move static CSS to styles.css file
move all the static css (not the one calculated at runtime) to the styles.css file

```git-revs
77478de  (Base revision)
5b3d66e  Remove static CSS from ratings-overlay.ts and only keep dynamic styles
142a142  Remove static CSS from symbol span elements
c72fd23  Update the overlay CSS with static styles that were previously in JS
HEAD     Update symbol styles with static styles that were previously in JS
```

codemcp-id: 52-refactor-move-static-css-to-styles-css-file
2025-04-02 17:26:00 +02:00
Filip Noetzel
7194c97abb fix styles on mobile 2025-03-21 08:15:02 +01:00
Filip Noetzel
ee27475e1c initial mobile support 2025-03-21 08:15:02 +01:00
Filip Noetzel
7b1c6cc29f use styles.css instead 2025-03-18 15:01:31 +01:00