Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/apps/block_scout_web/assets/css/components/_dashboard-banner.scss

132 lines
2.5 KiB

$dashboard-banner-gradient-start: $primary !default;
$dashboard-banner-gradient-end: lighten($dashboard-banner-gradient-start, 5%) !default;
$dashboard-banner-network-graph-background-color: #fff !default;
.dashboard-banner-container {
background-color: $primary;
background-image: linear-gradient(to bottom, $dashboard-banner-gradient-start, $dashboard-banner-gradient-end);
box-shadow: 0 5px 40px -5px rgba(#000, 0.25);
margin-top: -3rem;
padding: 48px 0 0 0;
position: relative;
&:after {
background-color: $dashboard-banner-network-graph-background-color;
bottom: 0;
content: "";
display: block;
left: 70%;
position: absolute;
right: 0;
top: 3rem;
@media (max-width: 992px) {
top: 2rem;
left: 80%;
}
}
}
.dashboard-banner {
align-items: flex-end;
display: flex;
justify-content: space-between;
margin-bottom: 3rem;
position: relative;
z-index: 9;
@media (max-width: 992px) {
flex-direction: column;
}
}
.dashboard-banner-chart {
height: calc(152px + 1rem);
padding: 1rem 1rem 1rem 0;
width: calc(350px + 1rem);
}
.dashboard-banner-chart-legend {
display: flex;
padding: 1rem 0.3rem;
&-item {
flex-grow: 1;
padding-left: 0.5rem;
&:first-of-type {
border-left: 4px solid $primary;
}
&:last-of-type {
border-left: 4px solid $secondary;
}
}
&-label {
color: $text-muted;
display: block;
}
&-value {
display: block;
}
}
.dashboard-banner-network-stats {
column-gap: 40px;
display: grid;
grid-template-columns: 1fr 1fr;
padding-bottom: 30px;
row-gap: 45px;
@media (max-width: 992px) {
align-items: flex-start;
flex-direction: column;
padding: 0.5rem 2rem;
}
&-item {
color: #fff;
padding-left: 1rem;
position: relative;
&::before {
background-color: rgba(#fff, 0.5);
border-radius: 2px;
content: "";
height: 100%;
left: -4px;
position: absolute;
top: 0;
width: 4px;
}
}
&-label {
display: block;
white-space: nowrap;
}
&-value {
display: block;
font-size: 1.5rem;
font-weight: 200;
white-space: nowrap;
@media (max-width: 992px) {
font-size: 1.25rem;
}
}
}
.dashboard-banner-network-graph {
align-items: center;
background-color: $dashboard-banner-network-graph-background-color;
border-top-left-radius: 10px;
display: flex;
height: 205px;
justify-content: space-around;
margin: 0 0 0 60px;
width: 750px;
}