mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-08 01:28:15 -07:00
website_next: part 2
This commit is contained in:
@@ -27,7 +27,7 @@ function populateCube(element, fill) {
|
||||
const rightFace = createFace("face-text", "right");
|
||||
const leftFace = createFace("face-text", "left");
|
||||
|
||||
element.classList.add("cube");
|
||||
element.dataset.cube = "";
|
||||
element.style.setProperty("--fill", String(fill));
|
||||
element.append(
|
||||
createFace("glass", "bottom"),
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
--cube-empty-alpha: 0.4;
|
||||
--face-step: 0.033;
|
||||
|
||||
&:not(.loading) .cube[data-enter] {
|
||||
&:not([data-loading]) [data-cube][data-enter] {
|
||||
animation: confirmed-cube-enter 180ms ease-out both;
|
||||
}
|
||||
|
||||
.cube {
|
||||
[data-cube] {
|
||||
--cube-width: calc(var(--cube-size) * 2 * var(--iso-scale));
|
||||
--cube-height: calc(var(--cube-size) * 2);
|
||||
|
||||
@@ -69,26 +69,26 @@
|
||||
}
|
||||
|
||||
&:is(button):active,
|
||||
&.selected {
|
||||
&[data-selected] {
|
||||
color: var(--black);
|
||||
--face-color-base: var(--orange);
|
||||
}
|
||||
|
||||
&[data-press]:not(.selected) {
|
||||
&[data-press]:not([data-selected]) {
|
||||
color: var(--background-color);
|
||||
--face-color-base: var(--inv-border-color);
|
||||
}
|
||||
|
||||
&:is(button):active,
|
||||
&.selected,
|
||||
&[data-press]:not(.selected) {
|
||||
&[data-selected],
|
||||
&[data-press]:not([data-selected]) {
|
||||
--face-top: var(--state-face-top);
|
||||
--face-right: var(--state-face-right);
|
||||
--face-left: var(--state-face-left);
|
||||
--face-bottom: var(--state-face-bottom);
|
||||
}
|
||||
|
||||
&.projected {
|
||||
&[data-projected] {
|
||||
animation: projected-cube-pulse 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&.skeleton .face-text {
|
||||
&[data-skeleton] .face-text {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user