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

173 lines
2.9 KiB

.tile {
font-size: 12px;
color: $text-muted;
border-radius: 2px;
line-height: 1.4rem;
border: 1px solid $border-color;
border-left: 4px solid $primary;
border-radius: 2px;
padding: 1rem;
box-shadow: 0 1px 5px rgba($black, 0.15);
& + & {
margin-top: 1rem;
}
@media (max-width: 767.98px) {
margin-bottom: 1rem;
}
&-type {
&-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-left: 4px solid $orange;
.tile-label {
color: $orange;
}
}
&-internal-transaction {
border-left: 4px solid $teal;
.tile-label {
color: $teal;
}
}
&-api-documentation {
border-left: 4px solid $primary;
background-color: transparent;
width: 100%;
text-align: left;
padding: 15px;
cursor: pointer;
.tile-label {
color: $primary;
}
}
}
&-status {
&--failed {
border-top: 1px solid lighten($danger, 10%);
border-right: 1px solid lighten($danger, 10%);
border-bottom: 1px solid lighten($danger, 10%);
.tile-status-label {
color: $danger;
}
}
&--out_of_gas {
border-top: 1px solid lighten($warning, 10%);
border-right: 1px solid lighten($warning, 10%);
border-bottom: 1px solid lighten($warning, 10%);
.tile-status-label {
color: $warning;
}
}
}
}
.tile-title {
font-size: 12px;
font-weight: 600;
color: $gray-700;
margin-bottom: 0;
&-hash {
font-weight: 300;
}
}
.tile-badge {
margin-bottom: 0.1rem;
padding: 0;
width: 2.5rem;
line-height: 1.25rem;
text-align: center;
}
.tile-muted {
border-left: 1px solid $border-color;
background-color: $gray-100;
box-shadow: none;
}
.tile-function-response {
span.function-response-item {
display: block;
margin-left: 1rem;
&:not(:last-of-type)::after {
content: ",";
}
}
p {
margin: 0;
}
}
.token-tile-more {
line-height: 0.5;
text-align: center;
&:hover, :focus {
text-decoration: none;
}
}
.token-tile-more span {
display: inline-block;
position: relative;
}
.token-tile-more span:before,
.token-tile-more span:after {
content: "";
position: absolute;
height: 5px;
border-bottom: 1px solid $border-color;
border-top: 1px solid $border-color;
top: 0;
width: 400px;
}
.token-tile-more span:before {
right: 55%;
margin-right: 15px;
}
.token-tile-more span:after {
left: 55%;
margin-left: 15px;
}