mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-05 04:31:56 -07:00
global: snap
This commit is contained in:
@@ -1,19 +1,35 @@
|
||||
#explorer {
|
||||
width: 100%;
|
||||
height: 100dvh;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
|
||||
--cube: 4.5rem;
|
||||
|
||||
> * {
|
||||
padding: var(--main-padding);
|
||||
}
|
||||
|
||||
#chain {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: calc(var(--cube) * 0.66);
|
||||
padding: 2rem;
|
||||
flex-shrink: 0;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
|
||||
.blocks {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: calc(var(--cube) * 0.75);
|
||||
margin-right: var(--cube);
|
||||
margin-top: calc(var(--cube) * -0.25);
|
||||
}
|
||||
|
||||
.cube {
|
||||
margin-left: calc(var(--cube) * -0.25);
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
width: var(--cube);
|
||||
height: var(--cube);
|
||||
overflow: hidden;
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
--face-color: var(--border-color);
|
||||
@@ -42,14 +58,23 @@
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: 50ms;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
|
||||
&:hover {
|
||||
--face-color: var(--inv-border-color);
|
||||
color: var(--background-color);
|
||||
}
|
||||
&:active {
|
||||
|
||||
&:active,
|
||||
&.selected {
|
||||
color: var(--black);
|
||||
--face-color: var(--orange);
|
||||
}
|
||||
|
||||
> * {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.face {
|
||||
transform-origin: 0 0;
|
||||
position: absolute;
|
||||
@@ -98,4 +123,41 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#block-details {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
|
||||
h1 {
|
||||
margin-bottom: 1rem;
|
||||
|
||||
code {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 300 !important;
|
||||
font-family: Lilex;
|
||||
color: var(--off-color);
|
||||
letter-spacing: -0.05rem;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.25rem 0;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.label {
|
||||
opacity: 0.5;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.value {
|
||||
text-align: right;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user