mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-15 21:18:11 -07:00
website_next: part 3
This commit is contained in:
@@ -19,14 +19,25 @@
|
||||
}
|
||||
|
||||
> header {
|
||||
--block-title-height-color: var(--gray);
|
||||
--block-title-height-line-height: var(--line-height-lg);
|
||||
--block-title-height-size: var(--font-size-lg);
|
||||
--block-title-label-size: 2.5rem;
|
||||
|
||||
display: grid;
|
||||
padding-bottom: 1.25rem;
|
||||
|
||||
:is([data-block-title], [data-block-meta]) {
|
||||
[data-block-title] {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 0.35rem 1rem;
|
||||
align-items: baseline;
|
||||
align-items: start;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-block-main] {
|
||||
display: grid;
|
||||
gap: 0.15rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@@ -38,24 +49,10 @@
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
font-family: var(--font-mono);
|
||||
font-weight: 400;
|
||||
font-weight: var(--font-weight-regular);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
[data-title-label] {
|
||||
font-family: var(--font-serif);
|
||||
font-size: 2.5rem;
|
||||
font-style: italic;
|
||||
line-height: 0.9;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
[data-title-height] {
|
||||
color: var(--gray);
|
||||
font-size: var(--font-size-lg);
|
||||
line-height: var(--line-height-lg);
|
||||
}
|
||||
|
||||
[data-block-date],
|
||||
[data-block-hash-line] {
|
||||
color: var(--gray);
|
||||
@@ -66,6 +63,32 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
[data-block-side] {
|
||||
display: grid;
|
||||
gap: 0.15rem;
|
||||
justify-items: end;
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
[data-block-actions] {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
min-width: 0;
|
||||
|
||||
button {
|
||||
padding: 0.375rem 0.5rem;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
[data-receipt-button] {
|
||||
padding: 0.25rem 0.375rem;
|
||||
}
|
||||
}
|
||||
|
||||
[data-block-hash-line] {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
@@ -85,325 +108,26 @@
|
||||
align-content: start;
|
||||
gap: 0.75rem;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-group="mining"] {
|
||||
--section-color: var(--orange);
|
||||
:is(#block-details > header, dialog[data-block-receipt] [data-receipt-head]) {
|
||||
[data-title-label] {
|
||||
font-family: var(--font-serif);
|
||||
font-size: var(--block-title-label-size);
|
||||
font-style: italic;
|
||||
line-height: 0.9;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
[data-miner-pane] {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
min-width: 0;
|
||||
}
|
||||
[data-title-height] {
|
||||
color: var(--block-title-height-color);
|
||||
font-size: var(--block-title-height-size);
|
||||
line-height: var(--block-title-height-line-height);
|
||||
}
|
||||
|
||||
[data-miner-head] {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-miner-identity] {
|
||||
display: grid;
|
||||
gap: 0.125rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-miner-title] {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
align-items: baseline;
|
||||
min-width: 0;
|
||||
|
||||
> strong {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--white);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 450;
|
||||
line-height: var(--line-height-sm);
|
||||
}
|
||||
|
||||
> span {
|
||||
color: var(--gray);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
}
|
||||
}
|
||||
|
||||
[data-miner-slug] {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--gray);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
}
|
||||
|
||||
[data-miner-logo] {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
[data-coinbase-message] {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--white);
|
||||
font-size: var(--font-size-sm);
|
||||
font-style: italic;
|
||||
line-height: var(--line-height-sm);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-group="difficulty"] {
|
||||
--section-color: var(--orange);
|
||||
|
||||
[data-metric-list] {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-metric-stat] {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
|
||||
> span {
|
||||
color: var(--section-color);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
strong {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--white);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 450;
|
||||
line-height: var(--line-height-sm);
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
[data-epoch] {
|
||||
display: grid;
|
||||
gap: 0.25rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-epoch-head] {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
|
||||
> span {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--epoch-color);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: var(--white);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 450;
|
||||
line-height: var(--line-height-sm);
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
[data-epoch-bar] {
|
||||
display: flex;
|
||||
gap: 0.125rem;
|
||||
height: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-epoch-segment] {
|
||||
width: var(--share);
|
||||
border-radius: 0.125rem;
|
||||
|
||||
&[data-epoch-segment="done"] {
|
||||
background: var(--epoch-color);
|
||||
}
|
||||
|
||||
&[data-epoch-segment="remaining"] {
|
||||
background: color-mix(in oklch, var(--gray) 35%, transparent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[data-group="block"] {
|
||||
--section-color: var(--cyan);
|
||||
|
||||
[data-block-box] {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
border: 1px solid
|
||||
color-mix(in oklch, var(--section-color) 35%, transparent);
|
||||
border-radius: 0.25rem;
|
||||
padding: 0.75rem;
|
||||
|
||||
&[data-block-box="tx"] {
|
||||
border-color: color-mix(in oklch, var(--orange) 35%, transparent);
|
||||
}
|
||||
|
||||
&[data-block-box="input"] {
|
||||
border-color: color-mix(in oklch, var(--yellow) 55%, transparent);
|
||||
}
|
||||
|
||||
&[data-block-box="output"] {
|
||||
border-color: color-mix(in oklch, var(--red) 55%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
[data-inline-row] {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
|
||||
> span {
|
||||
color: var(--section-color);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
strong {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
min-width: 0;
|
||||
color: var(--section-color);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 450;
|
||||
line-height: var(--line-height-sm);
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
[data-block-io] {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 0.75rem;
|
||||
min-width: 0;
|
||||
|
||||
[data-block-box] {
|
||||
align-content: center;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
[data-inline-row] {
|
||||
grid-template-columns: auto auto;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
[data-block-box="tx"] > [data-inline-row] {
|
||||
> span,
|
||||
strong {
|
||||
color: var(--orange);
|
||||
}
|
||||
}
|
||||
|
||||
:is([data-block-box="input"], [data-block-box="output"]) > [data-inline-row] {
|
||||
> span,
|
||||
strong {
|
||||
color: var(--block-box-color);
|
||||
}
|
||||
}
|
||||
|
||||
[data-block-box="input"] {
|
||||
--block-box-color: var(--yellow);
|
||||
}
|
||||
|
||||
[data-block-box="output"] {
|
||||
--block-box-color: var(--red);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-group="rewards"] {
|
||||
--section-color: var(--orange);
|
||||
|
||||
[data-rewards-pane] {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-reward-total] {
|
||||
display: grid;
|
||||
gap: 0.125rem;
|
||||
justify-items: start;
|
||||
min-width: 0;
|
||||
color: var(--gray);
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
text-align: left;
|
||||
|
||||
strong {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--white);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 450;
|
||||
line-height: var(--line-height-sm);
|
||||
}
|
||||
|
||||
> span:first-child {
|
||||
color: var(--section-color);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
[data-reward-bar] {
|
||||
display: flex;
|
||||
gap: 0.125rem;
|
||||
height: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-reward-segment] {
|
||||
width: var(--share);
|
||||
border-radius: 0.125rem;
|
||||
transition: opacity var(--transition-duration) ease;
|
||||
|
||||
&[data-reward-segment="subsidy"] {
|
||||
background: var(--orange);
|
||||
}
|
||||
|
||||
&[data-reward-segment="fees"] {
|
||||
background: var(--green);
|
||||
}
|
||||
|
||||
&[data-muted] {
|
||||
opacity: 0.25;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[data-group="fees"] {
|
||||
figure[data-fee-chart] {
|
||||
--chart-xy-height: 7.5rem;
|
||||
}
|
||||
}
|
||||
[data-title-height] [data-dim] {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user