You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CSS-CUSTOMIZATION.md
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,14 @@
2
2
3
3
This guide explains how to customize the appearance of interactive rating symbols using CSS snippets in Obsidian.
4
4
5
-
## ⚠️ Important: No Default Visual Styling
5
+
## ⚠️ Important: Minimal Default Styling
6
6
7
-
**The Interactive Ratings plugin provides NO default visual styling for rating symbols.** All CSS classes are neutral theming hooks that allow complete customization freedom. Without custom CSS, all symbols will appear identical using your theme's default text styling.
**To get started quickly, try the "Basic Styling" example below** to add visual distinction between filled, half, and empty symbols.
9
+
-**Regular rating systems** (★☆): No default styling - symbols are visually distinct by character
10
+
-**Full-only rating systems** (★★★★★): Essential default styling preserved - without it, ratings would be unreadable
11
+
12
+
**To get started with regular rating systems, try the "Basic Styling" example below** to add visual distinction between filled, half, and empty symbols.
10
13
11
14
## New Feature: Distinct CSS Classes for Selected/Unselected Symbols
12
15
@@ -21,16 +24,18 @@ The Interactive Ratings plugin provides distinct CSS classes for selected (fille
21
24
-`.interactive-rating-symbol--normal` - Legacy class (no longer used for filled/empty distinction)
22
25
23
26
#### For Full-Only Rating Systems (symbols that don't have empty variants):
24
-
-`.interactive-rating-symbol--rated` - Applied to symbols within the rating
25
-
-`.interactive-rating-symbol--unrated` - Applied to symbols beyond the rating (grayed out)
27
+
-`.interactive-rating-symbol--rated` - Applied to symbols within the rating (has default styling)
28
+
-`.interactive-rating-symbol--unrated` - Applied to symbols beyond the rating (has default styling)
29
+
30
+
**Important:** Full-only systems have essential default styling preserved because without it, all symbols would look identical and ratings would be unreadable. You can still override these defaults with your own CSS.
26
31
27
32
### Example CSS Snippets
28
33
29
34
Here are some examples of how you can customize the appearance of rating symbols:
30
35
31
36
#### 🚀 Quick Start: Basic Visual Distinction
32
37
```css
33
-
/* Add this snippet to get started with basic visual distinction */
38
+
/* Add this snippet to get started with basic visual distinction for regular rating systems */
34
39
.interactive-rating-symbol--rated {
35
40
opacity: 1;
36
41
color: inherit;
@@ -44,10 +49,7 @@ Here are some examples of how you can customize the appearance of rating symbols
44
49
opacity: 0.4;
45
50
}
46
51
47
-
.interactive-rating-symbol--unrated {
48
-
opacity: 0.3;
49
-
filter: grayscale(100%);
50
-
}
52
+
/* Note: .interactive-rating-symbol--unrated (full-only systems) already has default styling */
51
53
```
52
54
53
55
#### 2. Make Empty Symbols More Subtle
@@ -156,14 +158,19 @@ Here are some examples of how you can customize the appearance of rating symbols
156
158
157
159
### Default Styling
158
160
159
-
**The plugin applies NO default visual styling to symbol states.** All symbol state classes are provided as neutral theming hooks:
161
+
**The plugin applies minimal default styling to maintain functionality:**
160
162
163
+
**Regular Rating Systems** (★☆ - with distinct filled/empty symbols):
161
164
-**Filled symbols** (`.interactive-rating-symbol--rated`): No default styling - add your own
162
165
-**Half symbols** (`.interactive-rating-symbol--half`): No default styling - add your own
163
166
-**Empty symbols** (`.interactive-rating-symbol--empty`): No default styling - add your own
164
-
-**Unrated symbols** (`.interactive-rating-symbol--unrated`): No default styling - add your own
165
167
166
-
**Accessibility styling is preserved:** High contrast mode will automatically apply enhanced contrast styling only when users have high contrast preferences enabled. This ensures accessibility while maintaining theme neutrality in normal viewing modes.
168
+
**Full-Only Rating Systems** (★★★★★ - single symbol type):
169
+
-**Rated symbols** (`.interactive-rating-symbol--rated`): Default styling preserved (opacity: 1, no filter)
-**Reason**: Without default styling, full-only systems would be unreadable (all symbols would look identical)
172
+
173
+
**Accessibility styling is preserved:** High contrast mode will automatically apply enhanced contrast styling only when users have high contrast preferences enabled.
0 commit comments