mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-20 07:28:11 -07:00
website: redesign part 1
This commit is contained in:
@@ -1,283 +0,0 @@
|
||||
.chart {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
|
||||
label,
|
||||
select {
|
||||
margin: -0.375rem;
|
||||
padding: 0.375rem;
|
||||
}
|
||||
|
||||
select {
|
||||
width: auto;
|
||||
background: none;
|
||||
}
|
||||
|
||||
> div {
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
margin-right: var(--negative-main-padding);
|
||||
margin-left: var(--negative-main-padding);
|
||||
|
||||
& > legend,
|
||||
& table > tr > td:not(:last-child) legend {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 20;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
pointer-events: none;
|
||||
padding: 0;
|
||||
top: 0;
|
||||
text-transform: lowercase;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: var(--main-padding);
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&::before {
|
||||
left: 0;
|
||||
background-image: linear-gradient(
|
||||
to left,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
&::after {
|
||||
right: 0;
|
||||
background-image: linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
select {
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
> div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow-x: auto;
|
||||
padding-inline: var(--main-padding);
|
||||
padding-block-start: 0.375rem;
|
||||
|
||||
@media (pointer: coarse) {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
> * {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
> *:nth-child(2) {
|
||||
color: var(--gray);
|
||||
padding-inline: 0.75rem;
|
||||
}
|
||||
|
||||
small {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
> div:last-child {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
> div {
|
||||
flex: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
> label {
|
||||
> span {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
&:has(input:not(:checked)) {
|
||||
> span.main > span.name {
|
||||
text-decoration: line-through 1.5px var(--color);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
* {
|
||||
color: var(--off-color);
|
||||
}
|
||||
|
||||
> span.main > span.name {
|
||||
text-decoration-color: var(--orange);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: var(--orange);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> a {
|
||||
padding-inline: 0.375rem;
|
||||
margin-inline: -0.375rem;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& table > tr > td:not(:last-child) legend > div {
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
:is(fieldset:has(> label > input[type="radio"]), label:has(> select)) {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
gap: 0.375rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
table > tr {
|
||||
&:first-child > td:nth-child(2) {
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: calc(var(--main-padding) * 2);
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
var(--background-color),
|
||||
transparent
|
||||
);
|
||||
z-index: 10;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child > td {
|
||||
border-top: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
td:last-child > fieldset:has(> label > input[type="radio"]) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
z-index: 50;
|
||||
display: inline-flex;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
align-items: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
tr:not(:last-child)
|
||||
> td:last-child
|
||||
> fieldset:has(> label > input[type="radio"]) {
|
||||
top: 0;
|
||||
right: 0;
|
||||
gap: 0.375rem;
|
||||
background-color: var(--background-color);
|
||||
padding-left: 0.625rem;
|
||||
padding-top: 0.375rem;
|
||||
padding-bottom: 0.125rem;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1rem;
|
||||
background-image: linear-gradient(
|
||||
to top,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
> legend {
|
||||
top: auto;
|
||||
bottom: 1.8rem;
|
||||
left: calc(var(--main-padding) * -1);
|
||||
right: 50px;
|
||||
text-transform: uppercase;
|
||||
|
||||
> div {
|
||||
padding-bottom: 0.375rem;
|
||||
|
||||
button {
|
||||
color: var(--off-color);
|
||||
padding: 0.375rem 0.5rem;
|
||||
margin: -0.375rem 0;
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: -0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button.capture {
|
||||
position: absolute;
|
||||
bottom: 0.375rem;
|
||||
right: -0.75rem;
|
||||
z-index: 50;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
color: var(--off-color);
|
||||
}
|
||||
}
|
||||
|
||||
> div.chart-hint {
|
||||
position: absolute;
|
||||
bottom: 4rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
height: auto;
|
||||
margin: 0;
|
||||
z-index: 40;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
color: var(--off-color);
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
animation: chart-hint 4s 0.2s ease-in-out both;
|
||||
|
||||
&.done {
|
||||
animation: none;
|
||||
opacity: 0;
|
||||
transition: opacity 250ms ease;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes chart-hint {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
15%,
|
||||
85% {
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
#share-div {
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
padding: 1.5rem;
|
||||
backdrop-filter: blur(12px);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
z-index: 999;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
> #share-content-div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 10rem;
|
||||
background-color: var(--white);
|
||||
padding: 1rem;
|
||||
box-shadow: 0 0 2rem 1rem var(--border-color);
|
||||
border-radius: 1px;
|
||||
|
||||
a {
|
||||
color-scheme: light;
|
||||
margin-top: 0.5rem;
|
||||
display: block;
|
||||
font-style: italic;
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
img {
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fieldset {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
|
||||
&:has(> label > input[type="radio"]) {
|
||||
gap: 1rem;
|
||||
|
||||
> label {
|
||||
flex-shrink: 0;
|
||||
padding: 0.5rem;
|
||||
margin: -0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#chart > fieldset {
|
||||
text-transform: lowercase;
|
||||
flex-shrink: 0;
|
||||
margin: -0.5rem var(--negative-main-padding);
|
||||
padding: 0.75rem var(--main-padding);
|
||||
overflow-x: auto;
|
||||
min-width: 0;
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
}
|
||||
@@ -1,314 +0,0 @@
|
||||
* {
|
||||
border-width: 0;
|
||||
border-color: var(--border-color) !important;
|
||||
border-style: solid !important;
|
||||
|
||||
background-color: transparent;
|
||||
|
||||
&::selection {
|
||||
color: var(--white);
|
||||
background-color: var(--orange);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
display: flow-root;
|
||||
text-decoration-style: dotted;
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration-color: var(--off-color);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
text-decoration-style: solid;
|
||||
}
|
||||
|
||||
&:active {
|
||||
text-decoration-color: inherit;
|
||||
}
|
||||
|
||||
&[target="_blank"] {
|
||||
&::after {
|
||||
color: var(--off-color);
|
||||
content: "↗";
|
||||
font-weight: 400;
|
||||
font-size: 1rem;
|
||||
|
||||
margin-top: 0.1rem;
|
||||
margin-left: 0.375rem;
|
||||
line-height: 1;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
&:active::after {
|
||||
color: var(--orange);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
aside {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
grid-row: 1;
|
||||
grid-column: 1;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
background: var(--background-color);
|
||||
container-type: inline-size;
|
||||
container-name: aside;
|
||||
|
||||
html[data-layout="split"] & {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / -1;
|
||||
border-left: 1px;
|
||||
|
||||
&[hidden] {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font-weight: var(--font-weight-base);
|
||||
height: 100dvh;
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
grid-template-columns: 1fr;
|
||||
position: relative;
|
||||
|
||||
html[data-layout="split"] & {
|
||||
grid-template-columns:
|
||||
minmax(min-content, var(--sidebar-width, max-content))
|
||||
1fr;
|
||||
|
||||
html[data-display="standalone"] & {
|
||||
border-top: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
text-transform: inherit;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
min-inline-size: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
line-height: var(--line-height-xl);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: var(--line-height-lg);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-family: var(--font-serif);
|
||||
letter-spacing: 0.05rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
html {
|
||||
background-color: var(--background-color);
|
||||
color: var(--color);
|
||||
scrollbar-color: var(--off-color) transparent;
|
||||
scrollbar-width: thin;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
letter-spacing: inherit;
|
||||
|
||||
&::placeholder {
|
||||
color: var(--off-color);
|
||||
}
|
||||
|
||||
label > & {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
&:has(input) {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
color: var(--off-color);
|
||||
position: relative;
|
||||
pointer-events: all;
|
||||
|
||||
> span.main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
|
||||
> span.colors {
|
||||
display: flex;
|
||||
width: 0.625rem;
|
||||
height: 0.625rem;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border-radius: 9999px;
|
||||
|
||||
> span {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: var(--orange);
|
||||
}
|
||||
|
||||
> *:not(input) {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
> *:not(input) + * {
|
||||
margin-top: -0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
&:has(input:checked) {
|
||||
color: var(--color);
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
cursor: pointer;
|
||||
appearance: none;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
text-transform: uppercase;
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
:is(input, select):focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
small {
|
||||
color: var(--off-color);
|
||||
font-weight: var(--font-weight-base);
|
||||
|
||||
select + & {
|
||||
font-size: var(--font-size-xs);
|
||||
|
||||
+ span {
|
||||
color: var(--off-color);
|
||||
font-weight: 400;
|
||||
font-size: 1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
&.name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
list-style: none;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
&::marker,
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> small {
|
||||
margin-left: 0.375rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&:hover > small {
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
&:active > small {
|
||||
color: var(--orange);
|
||||
}
|
||||
}
|
||||
|
||||
:is(a, button, summary) {
|
||||
&:hover {
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: var(--orange);
|
||||
}
|
||||
}
|
||||
|
||||
html[data-layout="split"] .full-only {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#layout-button {
|
||||
@media (max-width: 767px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "Split";
|
||||
}
|
||||
|
||||
html[data-layout="split"] &::after {
|
||||
content: "Full";
|
||||
}
|
||||
}
|
||||
|
||||
[data-resize] {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
font-display: block;
|
||||
}
|
||||
|
||||
/* Preloaded in index.html — keep URL in sync. */
|
||||
@font-face {
|
||||
font-family: Instrument;
|
||||
src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
|
||||
@@ -29,6 +30,14 @@
|
||||
font-display: block;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-mono:
|
||||
"Lilex", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
||||
"Liberation Mono", "Courier New", monospace;
|
||||
--font-serif:
|
||||
Instrument, Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
@@ -1,162 +0,0 @@
|
||||
main {
|
||||
grid-row: 1;
|
||||
grid-column: 1;
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&::before {
|
||||
top: 0;
|
||||
height: var(--main-padding);
|
||||
background-image: linear-gradient(
|
||||
to top,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
&::after {
|
||||
bottom: 0;
|
||||
height: var(--main-padding);
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
html[data-layout="full"] & {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
html[data-layout="split"] & {
|
||||
overflow-x: hidden;
|
||||
contain: inline-size;
|
||||
}
|
||||
|
||||
> nav,
|
||||
> search {
|
||||
flex: 1;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: var(--main-padding);
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 12rem;
|
||||
}
|
||||
}
|
||||
|
||||
#resize-bar {
|
||||
display: none;
|
||||
grid-column: 1;
|
||||
grid-row: 1 / -1;
|
||||
justify-self: end;
|
||||
width: 8px;
|
||||
margin: 0 -4px;
|
||||
z-index: 50;
|
||||
position: relative;
|
||||
cursor: col-resize;
|
||||
touch-action: none;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 2px;
|
||||
translate: -50% 0;
|
||||
background: transparent;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--border-color);
|
||||
|
||||
&::after {
|
||||
background: var(--color);
|
||||
}
|
||||
}
|
||||
|
||||
html[data-resize] &::after {
|
||||
background: var(--color);
|
||||
}
|
||||
|
||||
html[data-layout="split"] & {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-row: 2;
|
||||
grid-column: 1 / -1;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: var(--main-padding);
|
||||
|
||||
html[data-layout="split"] & {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: var(--main-padding);
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&::before {
|
||||
left: 0;
|
||||
background-image: linear-gradient(
|
||||
to left,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
&::after {
|
||||
right: 0;
|
||||
background-image: linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
> fieldset {
|
||||
display: flex;
|
||||
gap: 1.125rem;
|
||||
overflow-x: auto;
|
||||
min-width: 0;
|
||||
margin: -0.5rem 0;
|
||||
padding: 0.5rem var(--main-padding);
|
||||
pointer-events: auto;
|
||||
|
||||
> label,
|
||||
> button {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
> button {
|
||||
color: var(--off-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
nav {
|
||||
font-size: var(--font-size-base);
|
||||
line-height: var(--line-height-base);
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
> ul > li {
|
||||
text-transform: uppercase;
|
||||
|
||||
& + * {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
> details,
|
||||
> label {
|
||||
ul {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
a,
|
||||
summary {
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
font-style: italic;
|
||||
/*color: var(--orange);*/
|
||||
}
|
||||
|
||||
ul {
|
||||
color: var(--off-color);
|
||||
overflow: hidden;
|
||||
|
||||
li {
|
||||
text-transform: lowercase;
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 0.75rem;
|
||||
border-left: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li[data-highlight] {
|
||||
> details > summary,
|
||||
> a {
|
||||
text-transform: uppercase;
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
> details > summary > small {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
> a::after,
|
||||
> details:not([open]) > summary::after {
|
||||
content: "";
|
||||
background-color: var(--orange);
|
||||
width: 0.375rem;
|
||||
height: 0.375rem;
|
||||
border-radius: 9999px;
|
||||
display: inline-block;
|
||||
margin-bottom: 0.125rem;
|
||||
margin-left: 0.375rem;
|
||||
}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
#chart {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
padding: var(--main-padding);
|
||||
background-color: var(--background-color);
|
||||
position: relative;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: var(--main-padding);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&::before {
|
||||
left: 0;
|
||||
z-index: 50;
|
||||
background-image: linear-gradient(
|
||||
to left,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
&::after {
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
background-image: linear-gradient(
|
||||
to right,
|
||||
transparent,
|
||||
var(--background-color)
|
||||
);
|
||||
}
|
||||
|
||||
header {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
white-space: nowrap;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 0.25rem;
|
||||
margin-bottom: -0.25rem;
|
||||
padding-left: var(--main-padding);
|
||||
margin-left: var(--negative-main-padding);
|
||||
padding-right: var(--main-padding);
|
||||
margin-right: var(--negative-main-padding);
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
letter-spacing: 0.05rem;
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.chart {
|
||||
flex: 1;
|
||||
margin-bottom: -0.25rem;
|
||||
z-index: 20;
|
||||
}
|
||||
}
|
||||
@@ -1,561 +0,0 @@
|
||||
#explorer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
transition: opacity 200ms ease;
|
||||
|
||||
/* Held invisible while the chain rebuilds and scrolls to the target,
|
||||
then faded in so the layout settling isn't visible. */
|
||||
&.loading {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.dim {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@container aside (max-width: 767px) {
|
||||
overflow-y: auto;
|
||||
padding: var(--main-padding) 0;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/*> * {
|
||||
padding: 0 var(--main-padding);
|
||||
|
||||
@container aside (min-width: 768px) {
|
||||
padding: var(--main-padding);
|
||||
}
|
||||
}*/
|
||||
|
||||
/*#chain {
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
|
||||
@container aside (min-width: 768px) {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.chain-scroll {
|
||||
padding: 0 var(--main-padding);
|
||||
|
||||
@container aside (max-width: 767px) {
|
||||
padding-bottom: 1rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@container aside (min-width: 768px) {
|
||||
padding: var(--main-padding);
|
||||
padding-right: calc(var(--main-padding) / 2);
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.chain-edge {
|
||||
position: absolute;
|
||||
font-size: var(--font-size-xs);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
font-weight: 500;
|
||||
|
||||
@container aside (max-width: 767px) {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: var(--main-padding);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
writing-mode: vertical-lr;
|
||||
text-orientation: upright;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@container aside (min-width: 768px) {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: var(--main-padding);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: calc(var(--main-padding) / 2);
|
||||
}
|
||||
}
|
||||
|
||||
.tip {
|
||||
@container aside (min-width: 768px) {
|
||||
top: 0;
|
||||
}
|
||||
@container aside (max-width: 767px) {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.gen {
|
||||
@container aside (min-width: 768px) {
|
||||
bottom: 0;
|
||||
}
|
||||
@container aside (max-width: 767px) {
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.blocks {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
--min-gap: calc(var(--cube) * -1);
|
||||
--max-gap: calc(var(--cube) * 6);
|
||||
--min-dt: 0;
|
||||
--max-dt: 10800;
|
||||
|
||||
@container aside (max-width: 767px) {
|
||||
--min-gap: 0rem;
|
||||
flex-direction: row-reverse;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
@container aside (min-width: 768px) {
|
||||
padding-bottom: 6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.cube {
|
||||
--t: pow(
|
||||
clamp(
|
||||
0,
|
||||
(var(--dt, 600) - var(--min-dt)) / (var(--max-dt) - var(--min-dt)),
|
||||
1
|
||||
),
|
||||
0.7
|
||||
);
|
||||
--block-gap: calc(
|
||||
var(--min-gap) + var(--t) * (var(--max-gap) - var(--min-gap))
|
||||
);
|
||||
--empty-alpha: 0.4;
|
||||
|
||||
--face-right: var(--cube-neutral-right);
|
||||
--face-left: var(--cube-neutral-left);
|
||||
--face-top: var(--cube-neutral-top);
|
||||
--face-bottom: var(--cube-neutral-bottom);
|
||||
|
||||
--liquid-y: calc(var(--iso-scale) * var(--fill));
|
||||
--glass-y: calc(var(--iso-scale) * (1 - var(--fill)));
|
||||
--is-full: round(down, var(--fill), 1);
|
||||
--is-empty: round(down, calc(1 - var(--fill)), 1);
|
||||
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
width: var(--cube-w);
|
||||
height: var(--cube-h);
|
||||
overflow: visible;
|
||||
text-decoration: none;
|
||||
--state-ease: 50ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
color: var(--color);
|
||||
transition: color var(--state-ease);
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--background-color);
|
||||
--face-right: var(--cube-hover-right);
|
||||
--face-left: var(--cube-hover-left);
|
||||
--face-top: var(--cube-hover-top);
|
||||
--face-bottom: var(--cube-hover-bottom);
|
||||
}
|
||||
|
||||
&:active,
|
||||
&.selected {
|
||||
color: var(--black);
|
||||
--face-right: var(--cube-selected-right);
|
||||
--face-left: var(--cube-selected-left);
|
||||
--face-top: var(--cube-selected-top);
|
||||
--face-bottom: var(--cube-selected-bottom);
|
||||
}
|
||||
|
||||
&.skeleton .face-text {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.face {
|
||||
position: absolute;
|
||||
transform-origin: 0 0;
|
||||
box-sizing: border-box;
|
||||
width: var(--cube);
|
||||
height: var(--cube);
|
||||
transform: translateY(50%) var(--orient)
|
||||
translate(calc(var(--cube) * var(--x)), calc(var(--cube) * var(--y)))
|
||||
scale(var(--sx, 1), var(--sy));
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.liquid,
|
||||
.glass {
|
||||
will-change: background-color;
|
||||
transition: background-color var(--state-ease);
|
||||
}
|
||||
.liquid {
|
||||
background: var(--fc);
|
||||
opacity: calc(1 - var(--is-empty));
|
||||
--sy: var(--liquid-y);
|
||||
--y-offset: var(--glass-y);
|
||||
}
|
||||
.glass {
|
||||
background: oklch(from var(--fc) l c h / var(--empty-alpha));
|
||||
--sy: var(--glass-y);
|
||||
--y-offset: 0;
|
||||
}
|
||||
.glass.top {
|
||||
opacity: calc(1 - var(--is-full));
|
||||
}
|
||||
|
||||
.face-text {
|
||||
--sy: var(--iso-scale);
|
||||
--y-offset: 0;
|
||||
pointer-events: none;
|
||||
padding: 0.1rem;
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 450;
|
||||
}
|
||||
.face-text.top,
|
||||
.face-text.right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.face-text.top {
|
||||
justify-content: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.face-text.right {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.face-text p {
|
||||
margin: 0;
|
||||
}
|
||||
.face-text .height {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: normal;
|
||||
}
|
||||
.face-text .fees {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.face-text .pool {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.1em;
|
||||
width: 100%;
|
||||
}
|
||||
.face-text .pool img {
|
||||
width: 1.25em;
|
||||
height: 1.25em;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.face-text .pool span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.top,
|
||||
.bottom {
|
||||
--orient: rotate(30deg) skewX(-30deg);
|
||||
--sy: var(--iso-scale);
|
||||
}
|
||||
.right,
|
||||
.rear-left {
|
||||
--orient: rotate(-30deg) skewX(-30deg);
|
||||
}
|
||||
.left,
|
||||
.rear-right {
|
||||
--orient: rotate(30deg) skewX(30deg);
|
||||
}
|
||||
|
||||
.top,
|
||||
.rear-right {
|
||||
--y: calc(var(--y-offset) - var(--iso-scale));
|
||||
}
|
||||
.left,
|
||||
.rear-left {
|
||||
--y: var(--y-offset);
|
||||
}
|
||||
.right {
|
||||
--y: calc(var(--y-offset) + var(--iso-scale));
|
||||
}
|
||||
.bottom {
|
||||
--y: 0;
|
||||
}
|
||||
|
||||
.top {
|
||||
--fc: var(--face-top);
|
||||
--x: var(--top-x-shift, 0);
|
||||
}
|
||||
.bottom {
|
||||
--fc: var(--face-bottom);
|
||||
--x: 1;
|
||||
}
|
||||
.right {
|
||||
--fc: var(--face-right);
|
||||
--x: 1;
|
||||
}
|
||||
.left {
|
||||
--fc: var(--face-left);
|
||||
--x: 0;
|
||||
}
|
||||
.rear-right {
|
||||
--fc: var(--face-left);
|
||||
--x: 1;
|
||||
}
|
||||
.rear-left {
|
||||
--fc: var(--face-top);
|
||||
--x: 1;
|
||||
--sx: -1;
|
||||
}
|
||||
.liquid.top {
|
||||
--top-x-shift: calc(1 - var(--fill));
|
||||
}
|
||||
|
||||
& + & {
|
||||
margin-bottom: var(--block-gap);
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
width: 1px;
|
||||
height: var(--block-gap);
|
||||
background: var(--border-color);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@container aside (max-width: 767px) {
|
||||
margin-bottom: 0;
|
||||
margin-right: var(--block-gap);
|
||||
|
||||
&::before {
|
||||
bottom: auto;
|
||||
left: auto;
|
||||
right: calc(-1 * var(--block-gap));
|
||||
top: 50%;
|
||||
width: var(--block-gap);
|
||||
height: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
#block-details,
|
||||
#tx-details,
|
||||
#addr-details {
|
||||
flex: 1;
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
|
||||
/* #explorer supplies only vertical padding on mobile. */
|
||||
@container aside (max-width: 767px) {
|
||||
padding: 0 var(--main-padding);
|
||||
}
|
||||
|
||||
/* Full padding, halved on the side facing the chain so its halved
|
||||
right padding and this halved left padding form one gutter. */
|
||||
@container aside (min-width: 768px) {
|
||||
overflow-y: auto;
|
||||
padding: var(--main-padding);
|
||||
padding-left: calc(var(--main-padding) / 2);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 1rem;
|
||||
|
||||
code {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 300;
|
||||
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 {
|
||||
color: var(--off-color);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.value {
|
||||
text-align: right;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.transactions {
|
||||
margin-top: 1rem;
|
||||
|
||||
.tx-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
h2 {
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-sm);
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
|
||||
button {
|
||||
color: var(--off-color);
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.25;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tx {
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-block-size: auto 8rem;
|
||||
|
||||
.tx-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
|
||||
.txid {
|
||||
font-family: Lilex;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
color: var(--off-color);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tx-time {
|
||||
flex-shrink: 0;
|
||||
color: var(--off-color);
|
||||
}
|
||||
}
|
||||
|
||||
.tx-body {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-xs);
|
||||
}
|
||||
|
||||
.tx-inputs,
|
||||
.tx-outputs {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.125rem;
|
||||
}
|
||||
|
||||
.tx-outputs {
|
||||
padding-left: 0.5rem;
|
||||
border-left: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.tx-io {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
|
||||
.addr {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
color: var(--off-color);
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.addr-head {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.addr-tail {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
&.coinbase {
|
||||
color: var(--orange);
|
||||
}
|
||||
|
||||
.coinbase-sig {
|
||||
font-family: Lilex;
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--off-color);
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&.op-return {
|
||||
color: var(--off-color);
|
||||
}
|
||||
}
|
||||
|
||||
.amount {
|
||||
flex-shrink: 0;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.show-more {
|
||||
color: var(--off-color);
|
||||
font-size: var(--font-size-xs);
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
|
||||
.tx-foot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
padding-top: 0.5rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
color: var(--off-color);
|
||||
|
||||
.total {
|
||||
color: var(--orange);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
search {
|
||||
text-transform: uppercase;
|
||||
gap: 1rem;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
@@ -33,12 +33,6 @@
|
||||
--inv-border-color: light-dark(var(--dark-gray), var(--light-gray));
|
||||
--off-border-color: light-dark(var(--dark-white), var(--light-black));
|
||||
|
||||
--font-mono:
|
||||
"Lilex", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
||||
"Liberation Mono", "Courier New", monospace;
|
||||
--font-serif:
|
||||
Instrument, Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
|
||||
|
||||
--font-size-xs: 0.75rem;
|
||||
--line-height-xs: calc(1 / 0.75);
|
||||
--font-size-sm: 0.875rem;
|
||||
@@ -51,10 +45,12 @@
|
||||
--line-height-xl: calc(1.75 / 1.25);
|
||||
|
||||
--main-padding: 2rem;
|
||||
/*@media (max-width: 767px) {
|
||||
--main-padding: 1.5rem;
|
||||
}*/
|
||||
--negative-main-padding: calc(-1 * var(--main-padding));
|
||||
--font-weight-base: 400;
|
||||
--max-main-width: 70dvw;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
background: var(--black);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user