parent
72e887a777
commit
0466761253
@ -1,38 +1,43 @@ |
|||||||
.card { |
.card { |
||||||
border: none; |
border-radius: 10px; |
||||||
box-shadow: 0 5px 40px -5px rgba($black, 0.25); |
border: none; |
||||||
border-radius: 0; |
box-shadow: 0 5px 40px -5px rgba(#000, 0.25); |
||||||
margin-bottom: 3rem; |
margin-bottom: 3rem; |
||||||
|
|
||||||
&-primary { |
&-primary { |
||||||
background-color: $primary; |
background-color: $primary; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.card-header { |
.card-header { |
||||||
background-color: $white; |
background-color: #fff; |
||||||
|
|
||||||
&-tabs { |
&-tabs { |
||||||
margin: (-$card-spacer-y) (-$card-spacer-x); |
margin: (-$card-spacer-y) (-$card-spacer-x); |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.card-title { |
.card-title { |
||||||
line-height: 2.2rem; |
color: #333; |
||||||
margin-bottom: 2rem; |
font-size: 18px; |
||||||
|
font-weight: normal; |
||||||
|
line-height: 2.2rem; |
||||||
|
margin-bottom: 2rem; |
||||||
} |
} |
||||||
|
|
||||||
.card-body { |
.card-body { |
||||||
padding: 2.25rem 1.25rem; |
padding: 30px; |
||||||
} |
} |
||||||
|
|
||||||
.card-server-response-body { |
.card-server-response-body { |
||||||
max-height: 400px; |
max-height: 400px; |
||||||
overflow-y: auto; |
overflow-y: auto; |
||||||
} |
} |
||||||
|
|
||||||
.card-chain-blocks { |
.card-chain-blocks { |
||||||
height: auto; |
height: auto; |
||||||
|
|
||||||
@include media-breakpoint-down(md) { height: 595px; } |
@include media-breakpoint-down(md) { |
||||||
|
height: 595px; |
||||||
|
} |
||||||
} |
} |
@ -1,30 +1,32 @@ |
|||||||
<div class="col-lg-3 fade-up-blocks-chain" data-selector="chain-block" data-block-number="<%= @block.number %>"> |
<div class="col-lg-3 fade-up-blocks-chain" data-selector="chain-block" data-block-number="<%= @block.number %>"> |
||||||
<div class="tile tile-type-block d-flex flex-column"> |
<div class="tile tile-type-block n-p d-flex flex-column"> |
||||||
<%= link( |
<%= link( |
||||||
@block, |
@block, |
||||||
class: "tile-title", |
class: "tile-title", |
||||||
to: block_path(BlockScoutWeb.Endpoint, :show, @block), |
to: block_path(BlockScoutWeb.Endpoint, :show, @block), |
||||||
"data-selector": "block-number" |
"data-selector": "block-number" |
||||||
) %> |
) %> |
||||||
<div> |
<div class="tile-bottom-contents"> |
||||||
<span class="mr-2"> <%= gettext("%{count} Transactions", count: Enum.count(@block.transactions)) %> </span> |
<div class="tile-transactions"> |
||||||
<span class="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
<span class="mr-2"> <%= gettext("%{count} Transactions", count: Enum.count(@block.transactions)) %> </span> |
||||||
</div> |
<span class="text-nowrap" data-from-now="<%= @block.timestamp %>"> </span> |
||||||
<span class="text-truncate"> |
</div> |
||||||
<%= gettext "Miner" %> |
<div class="text-truncate"> |
||||||
|
<%= gettext "Miner" %> |
||||||
|
|
||||||
<%= render BlockScoutWeb.AddressView, |
<%= render BlockScoutWeb.AddressView, |
||||||
"_link.html", |
"_link.html", |
||||||
address: @block.miner, |
address: @block.miner, |
||||||
contract: false %> |
contract: false %> |
||||||
</span> |
</div> |
||||||
|
|
||||||
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
<%= if BlockScoutWeb.BlockView.show_reward?(@block.rewards) do %> |
||||||
<span class="text-truncate"> |
<div class="text-truncate"> |
||||||
<%= gettext "Reward" %> |
<%= gettext "Reward" %> |
||||||
|
|
||||||
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
<%= BlockScoutWeb.BlockView.combined_rewards_value(@block) %> |
||||||
</span> |
</div> |
||||||
<% end %> |
<% end %> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue