@braccato/core 2.0.0-beta.5 → 2.0.0-beta.6

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 CHANGED
@@ -124,6 +124,8 @@ the line as it is:
124
124
  --blyrics-line-hover-blur: 0; /* over the distance blur; px, rem or blur(…) */
125
125
  --blyrics-line-hover-scale: 1.04; /* over --blyrics-scale / --blyrics-active-scale */
126
126
  --blyrics-line-hover-color: white; /* the words' inactive colour; the sung part keeps its own */
127
+ --blyrics-line-hover-bg-color: rgb(255 255 255 / 0.1); /* the line's box, below */
128
+ --blyrics-line-hover-border-color: rgb(255 255 255 / 0.1);
127
129
  --blyrics-line-hover-duration: 0.2s;
128
130
  --blyrics-line-hover-easing: ease;
129
131
  }
@@ -152,13 +154,30 @@ A few more properties stand in for rules that styled lines and words by state:
152
154
  }
153
155
 
154
156
  .blyrics--line, .blyrics--translated {
155
- /* text-shadow's syntax; drawn once with the line, the same in every state */
157
+ /* text-shadow's syntax; drawn once with the line */
156
158
  --blyrics-text-shadow: 0 0.3rem 0.5rem rgb(0 0 0 / 0.15);
159
+ /* while the line is sung (over its scale transition), and while it is hovered; none for none */
160
+ --blyrics-active-text-shadow: 0 0 1rem rgb(255 255 255 / 0.4);
161
+ --blyrics-line-hover-text-shadow: 0 0 0.5rem rgb(255 255 255 / 0.3);
162
+ }
163
+
164
+ .blyrics--line {
165
+ /* a box behind the line, over its whole box (padding included), with the line's border-radius */
166
+ --blyrics-line-bg-color: rgb(255 255 255 / 0.06);
167
+ /* a border inside the box's edge */
168
+ --blyrics-line-border-color: rgb(255 255 255 / 0.1);
169
+ --blyrics-line-border-width: 1px;
170
+ border-radius: 1rem;
157
171
  }
158
172
  ```
159
173
 
160
- The shadow, the past opacity and the rest pose are read from each element, so selectors scope them
161
- as they do colours. The browsing opacity and the distance lists are read from the container.
174
+ The shadows, the box, the past opacity and the rest pose are read from each element, so selectors
175
+ scope them as they do colours: `[data-layout="stage"] > .blyrics--line` gives only the stage view's
176
+ lines a box, for instance. The box's corner is the line's `border-radius` as a length (a percentage
177
+ or an elliptical corner reads as square), and a line with nothing to draw, such as an empty blank
178
+ line, has no box. The browsing opacity and the distance lists are read from the container.
179
+ Each shadow is drawn once with the line and cross-fades with its state, so a sung or hovered shadow
180
+ eases in and out rather than moving from one offset to another.
162
181
 
163
182
  Instrumental lines and the no-lyrics message, which themes restyled with `::before` and `::after`,
164
183
  take these instead:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braccato/core",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Synchronized lyrics renderer with word-by-word animations, in Rust and WebGL2",
5
5
  "type": "module",
6
6
  "license": "MIT",
Binary file