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/_tile.scss

238 lines
3.8 KiB

$tile-type-block-border-color: $primary !default;
.tile {
border-radius: 4px;
border: 1px solid $border-color;
box-shadow: 0 1px 5px rgba($black, 0.15);
color: $text-muted;
font-size: 12px;
line-height: 1.4rem;
padding: 1rem;
&.n-p {
padding: 0;
}
& + & {
margin-top: 1rem;
}
@include media-breakpoint-down(md) {
margin-bottom: 1rem;
}
&-type {
&-block {
border-left: 4px solid $tile-type-block-border-color;
.tile-label {
color: $tile-type-block-border-color;
}
}
&-uncle {
border-left: 4px solid $cyan;
.tile-label {
color: $cyan;
}
}
&-reorg {
border-left: 4px solid $purple;
.tile-label {
color: $purple;
}
}
&-emission-reward {
border-left: 4px solid $lilac;
.tile-label {
color: $lilac;
}
}
&-transaction {
border-left: 4px solid $blue;
.tile-label {
color: $blue;
}
}
&-contract-call {
border-left: 4px solid $green;
.tile-label {
color: $green;
}
}
&-contract-creation {
border-left: 4px solid $pink;
.tile-label {
color: $pink;
}
.tile-text-highlight {
text-decoration: underline;
text-decoration-style: dashed;
}
}
&-token {
border: 1px solid $border-color;
}
&-token-transfer {
border-left: 4px solid $orange;
padding-bottom: 10px;
.tile-label {
color: $orange;
}
&-short-name {
max-width: 45%;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
}
}
&-unique-token {
border-left: 4px solid $orange;
padding: 35px 0;
.tile-label {
color: $orange;
}
}
&-unique-token-image{
border-left: 4px solid $orange;
padding: 0;
.tile-label {
color: $orange;
}
& .tile-content {
padding: 45px 0;
}
}
&-internal-transaction {
border-left: 4px solid $teal;
.tile-label {
color: $teal;
}
}
&-api-documentation {
background-color: transparent;
border-left: 4px solid $primary;
cursor: pointer;
padding: 15px;
text-align: left;
width: 100%;
.tile-label {
color: $primary;
}
}
}
&-status {
&--error--reason {
border-bottom: 2px solid lighten($danger, 10%);
border-right: 2px solid lighten($danger, 10%);
border-top: 2px solid lighten($danger, 10%);
.tile-status-label {
color: $danger;
}
}
&--awaiting-internal-transactions {
border-bottom: 2px solid lighten($warning, 10%);
border-right: 2px solid lighten($warning, 10%);
border-top: 2px solid lighten($warning, 10%);
.tile-status-label {
color: $warning;
}
}
}
}
.tile-title {
color: #333;
font-size: 12px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 12px;
padding: 1rem 1rem 0 1rem;
&-hash {
font-weight: 300;
}
&-lg {
color: $body-color;
font-size: 16px;
}
}
.tile-bottom-contents {
background-color: #f6f7f9;
font-size: 12px;
line-height: 1.2;
padding: 0.8rem 1rem;
}
.tile-transactions {
color: #a3a9b5;
font-size: 12px;
font-weight: 400;
line-height: 1.2;
margin-bottom: 10px;
text-align: left;
}
.tile-badge {
line-height: 1.25rem;
margin-bottom: 0.1rem;
padding: 0;
text-align: center;
width: 2.5rem;
}
.tile-muted {
background-color: $gray-100;
border-left: 1px solid $border-color;
box-shadow: none;
}
.tile-function-response {
span.function-response-item {
display: block;
margin-left: 1rem;
&:not(:last-of-type)::after {
content: ",";
}
}
p {
margin: 0;
}
}
.tile-image {
max-height: 140px;
max-width: 140px;
}