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

111 lines
2.1 KiB

$card-background-color: #fff !default;
$card-tab-active: $primary !default;
$card-default-border-radius: 10px !default;
$card-horizontal-padding: 30px;
$card-vertical-padding: 30px;
.card {
background-color: $card-background-color;
border-radius: $card-default-border-radius;
border: none;
box-shadow: 0 0 30px 0 rgba(202, 199, 226, 0.5);
margin-bottom: 3rem;
&-primary {
background-color: $primary;
}
}
.card-header {
background-color: #fff;
&-tabs {
margin: (-$card-spacer-y) (-$card-spacer-x);
}
}
.card-title {
color: #333;
font-size: 18px;
font-weight: normal;
line-height: 2.2rem;
margin-bottom: 2rem;
.card-title-container & {
line-height: 1.2;
margin: 0;
@include media-breakpoint-down(sm) {
margin-bottom: 25px;
}
}
}
.card-title-container {
align-items: center;
display: flex;
justify-content: space-between;
padding: 25px $card-horizontal-padding;
@include media-breakpoint-down(sm) {
flex-direction: column;
}
}
.card-body {
padding: $card-horizontal-padding;
}
.card-server-response-body {
max-height: 400px;
overflow-y: auto;
}
.card-chain-blocks {
height: auto;
@include media-breakpoint-down(md) {
height: 595px;
}
}
.card-tabs {
align-items: center;
border-top-left-radius: $card-default-border-radius;
border-top-right-radius: $card-default-border-radius;
border-bottom: 1px solid $base-border-color;
display: flex;
justify-content: flex-start;
overflow: hidden;
@include media-breakpoint-down(sm) {
flex-direction: column;
}
}
.card-tab {
background-color: $card-background-color;
color: #333;
cursor: pointer;
font-size: 14px;
font-weight: normal;
height: 70px;
line-height: 70px;
padding: 0 30px;
text-align: center;
&:hover {
text-decoration: underline;
}
&.active {
background-color: $card-tab-active;
color: #fff;
cursor: default;
text-decoration: none;
}
@include media-breakpoint-down(sm) {
width: 100%;
}
}