@braccato/core 1.10.0 → 1.11.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.
- package/README.md +4 -0
- package/dist/README.md +4 -0
- package/dist/styles/lyrics.css +0 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,9 @@ than a shadow root, so the CSS already on your page reaches them.
|
|
|
7
7
|
Extracted from the [Better Lyrics](https://better-lyrics.boidu.dev) rendering engine, which is still
|
|
8
8
|
where it runs.
|
|
9
9
|
|
|
10
|
+
The [renderer guide](https://docs.betterlyrics.org/braccato/renderer) on the docs site covers properties, events,
|
|
11
|
+
scrolling and theming with lyrics from the Better Lyrics API. This README is still the full reference.
|
|
12
|
+
|
|
10
13
|
## Install
|
|
11
14
|
|
|
12
15
|
```bash
|
|
@@ -292,6 +295,7 @@ refactor. Import them from `@braccato/core/constants` instead of typing them out
|
|
|
292
295
|
| `BACKGROUND_LYRIC_CLASS` | `blyrics-background-lyric` | A background vocal, sung over the line it answers. |
|
|
293
296
|
| `USER_SCROLLING_CLASS` | `blyrics-user-scrolling` | Set while a reader has scrolled away and autoscroll waits. |
|
|
294
297
|
| `TRANSLATED_LYRICS_CLASS` | `blyrics--translated` | A translation hung off a line that was already built. |
|
|
298
|
+
| `EXPLICIT_WORD_CLASS` | `blyrics-explicit` | A word the lyrics flag as explicit. Unstyled unless a theme styles it. |
|
|
295
299
|
| `CUSTOM_THEME_STYLE_ID` | `blyrics-custom-style` | The id of the `<style>` the theme lands in. |
|
|
296
300
|
|
|
297
301
|
## Stylesheets
|
package/dist/README.md
CHANGED
|
@@ -7,6 +7,9 @@ than a shadow root, so the CSS already on your page reaches them.
|
|
|
7
7
|
Extracted from the [Better Lyrics](https://better-lyrics.boidu.dev) rendering engine, which is still
|
|
8
8
|
where it runs.
|
|
9
9
|
|
|
10
|
+
The [renderer guide](https://docs.betterlyrics.org/braccato/renderer) on the docs site covers properties, events,
|
|
11
|
+
scrolling and theming with lyrics from the Better Lyrics API. This README is still the full reference.
|
|
12
|
+
|
|
10
13
|
## Install
|
|
11
14
|
|
|
12
15
|
```bash
|
|
@@ -292,6 +295,7 @@ refactor. Import them from `@braccato/core/constants` instead of typing them out
|
|
|
292
295
|
| `BACKGROUND_LYRIC_CLASS` | `blyrics-background-lyric` | A background vocal, sung over the line it answers. |
|
|
293
296
|
| `USER_SCROLLING_CLASS` | `blyrics-user-scrolling` | Set while a reader has scrolled away and autoscroll waits. |
|
|
294
297
|
| `TRANSLATED_LYRICS_CLASS` | `blyrics--translated` | A translation hung off a line that was already built. |
|
|
298
|
+
| `EXPLICIT_WORD_CLASS` | `blyrics-explicit` | A word the lyrics flag as explicit. Unstyled unless a theme styles it. |
|
|
295
299
|
| `CUSTOM_THEME_STYLE_ID` | `blyrics-custom-style` | The id of the `<style>` the theme lands in. |
|
|
296
300
|
|
|
297
301
|
## Stylesheets
|
package/dist/styles/lyrics.css
CHANGED
|
@@ -215,11 +215,6 @@
|
|
|
215
215
|
color: color-mix(in srgb, var(--blyrics-lyric-inactive-color) 78%, transparent);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.blyrics-explicit {
|
|
219
|
-
text-decoration: line-through;
|
|
220
|
-
text-decoration-thickness: 0.08em;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
218
|
.blyrics--translated,
|
|
224
219
|
.blyrics--romanized {
|
|
225
220
|
animation: blyrics-decoration-in calc(var(--blyrics-animate-decoration-entry) * 0.35s)
|