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

87 lines
1.5 KiB

.button {
border: none;
display: inline-block;
text-align: center;
text-decoration: none;
white-space: nowrap;
padding: 8px 10px;
border-radius: 2px;
cursor: pointer;
-webkit-transition: all 0.25s;
transition: all 0.25s;
&--primary {
background-color: lighten($primary, 20%);
color: $white;
border: 1px solid lighten($primary, 20%);
&:hover,
&:focus {
background-color: $primary;
border-color: $primary;
text-decoration: none;
}
&:disabled {
background-color: $gray-300;
color: $gray-800;
text-decoration: none;
}
}
&--secondary {
border: 1px solid lighten($primary, 25%);
color: lighten($primary, 25%);
font-weight: 400;
&:hover,
&:focus {
background-color: $primary;
border-color: $primary;
color: $white;
text-decoration: none;
outline: none !important;
}
}
&--xsmall {
font-size: 11px;
padding: 6px 9px 6px !important;
}
&--small {
font-size: 12px;
padding: 10px 20px 10px;
}
&--medium {
font-size: 1.5rem;
padding: 15px 30px 15px;
}
&--large {
font-size: 1.5rem;
padding: 20px 60px 20px;
}
// Block button
// --------------------------------------------------
&--block {
display: block;
width: 100%;
}
&--disabled {
background-color: $gray-300;
color: $gray-500;
text-decoration: none;
}
}
// Vertically space out multiple block buttons
.button--block + .button--block {
margin-top: 5px;
}