@dsebastien/music-notation 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,190 @@
1
+ /* Music notation. Colors follow Obsidian's theme variables when present, with fallbacks for any page. */
2
+ .mn-block,
3
+ .mn-svg,
4
+ .mn-chart {
5
+ --mn-fg: var(--text-normal, currentColor);
6
+ --mn-muted: var(--text-muted, #8a8a8a);
7
+ --mn-faint: var(--background-modifier-border, #d0d0d0);
8
+ --mn-accent: var(--interactive-accent, #7c3aed);
9
+ --mn-on-accent: var(--text-on-accent, #fff);
10
+ /* Dark enough for white labels in light and dark themes. */
11
+ --mn-root: #c2410c;
12
+ /* Piano keys keep their real colors in every theme. */
13
+ --mn-key-white: #fafafa;
14
+ --mn-key-black: #222;
15
+ font-family: var(--font-interface, system-ui, sans-serif);
16
+ }
17
+
18
+ .mn-block {
19
+ color: var(--mn-fg);
20
+ margin: 0.5em 0;
21
+ overflow-x: auto;
22
+ }
23
+
24
+ .mn-svg {
25
+ display: block;
26
+ max-width: 100%;
27
+ height: auto;
28
+ }
29
+
30
+ .mn-svg text {
31
+ fill: var(--mn-fg);
32
+ font-size: 11px;
33
+ }
34
+
35
+ .mn-svg .mn-title {
36
+ font-size: 14px;
37
+ font-weight: 600;
38
+ }
39
+
40
+ .mn-svg .mn-string,
41
+ .mn-svg .mn-fret {
42
+ stroke: var(--mn-muted);
43
+ stroke-width: 1;
44
+ }
45
+
46
+ .mn-svg .mn-nut {
47
+ stroke: var(--mn-fg);
48
+ stroke-width: 4;
49
+ }
50
+
51
+ .mn-svg .mn-dot,
52
+ .mn-svg .mn-barre {
53
+ fill: var(--mn-accent);
54
+ }
55
+
56
+ .mn-svg .mn-dot.mn-root {
57
+ fill: var(--mn-root);
58
+ }
59
+
60
+ .mn-svg .mn-dot-text {
61
+ fill: var(--mn-on-accent);
62
+ font-size: 10px;
63
+ font-weight: 600;
64
+ }
65
+
66
+ .mn-svg .mn-open {
67
+ fill: none;
68
+ stroke: var(--mn-fg);
69
+ stroke-width: 1.5;
70
+ }
71
+
72
+ .mn-svg .mn-open.mn-root {
73
+ stroke: var(--mn-root);
74
+ }
75
+
76
+ .mn-svg .mn-muted,
77
+ .mn-svg .mn-base-fret,
78
+ .mn-svg .mn-fret-number,
79
+ .mn-svg .mn-string-name {
80
+ fill: var(--mn-muted);
81
+ }
82
+
83
+ .mn-svg .mn-inlay {
84
+ fill: var(--mn-faint);
85
+ }
86
+
87
+ .mn-svg .mn-key-white {
88
+ fill: var(--mn-key-white);
89
+ stroke: #888;
90
+ }
91
+
92
+ .mn-svg .mn-key-black {
93
+ fill: var(--mn-key-black);
94
+ stroke: var(--mn-key-black);
95
+ }
96
+
97
+ .mn-svg .mn-key-white.mn-on,
98
+ .mn-svg .mn-key-black.mn-on {
99
+ fill: var(--mn-accent);
100
+ }
101
+
102
+ .mn-svg .mn-key-white.mn-on.mn-root,
103
+ .mn-svg .mn-key-black.mn-on.mn-root {
104
+ fill: var(--mn-root);
105
+ }
106
+
107
+ .mn-svg .mn-key-label {
108
+ font-size: 10px;
109
+ fill: var(--mn-on-accent);
110
+ font-weight: 600;
111
+ }
112
+
113
+ /* Chord charts */
114
+ .mn-chart {
115
+ line-height: 1.3;
116
+ }
117
+
118
+ .mn-chart-title {
119
+ font-size: 1.3em;
120
+ font-weight: 700;
121
+ }
122
+
123
+ .mn-chart-subtitle,
124
+ .mn-chart-meta {
125
+ color: var(--mn-muted);
126
+ }
127
+
128
+ .mn-chart-meta {
129
+ font-size: 0.9em;
130
+ margin-top: 0.2em;
131
+ }
132
+
133
+ .mn-section {
134
+ margin-top: 0.9em;
135
+ }
136
+
137
+ .mn-section-chorus {
138
+ border-left: 3px solid var(--mn-accent);
139
+ padding-left: 0.75em;
140
+ }
141
+
142
+ .mn-section-label {
143
+ font-weight: 600;
144
+ font-size: 0.85em;
145
+ color: var(--mn-muted);
146
+ text-transform: uppercase;
147
+ letter-spacing: 0.04em;
148
+ }
149
+
150
+ .mn-line {
151
+ display: flex;
152
+ flex-wrap: wrap;
153
+ align-items: flex-end;
154
+ min-height: 1.3em;
155
+ }
156
+
157
+ .mn-seg {
158
+ display: inline-flex;
159
+ flex-direction: column;
160
+ min-width: 0;
161
+ max-width: 100%;
162
+ white-space: pre-wrap;
163
+ }
164
+
165
+ .mn-chord {
166
+ color: var(--mn-accent);
167
+ font-weight: 700;
168
+ min-height: 1.3em;
169
+ padding-right: 0.4em;
170
+ }
171
+
172
+ .mn-chords-only .mn-seg {
173
+ margin-right: 0.6em;
174
+ }
175
+
176
+ .mn-comment {
177
+ font-style: italic;
178
+ color: var(--mn-muted);
179
+ }
180
+
181
+ .mn-pre {
182
+ font-family: var(--font-monospace, ui-monospace, monospace);
183
+ margin: 0;
184
+ white-space: pre;
185
+ }
186
+
187
+ .mn-error-message {
188
+ color: var(--text-error, #c92a2a);
189
+ font-size: 0.9em;
190
+ }