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

104 lines
1.9 KiB

$dropdown-menu-item-color: #333 !default;
$dropdown-menu-item-hover-color: $secondary !default;
$dropdown-menu-item-hover-background: rgba($secondary, 0.1) !default;
// These styles extend the default Bootstrap styles
.dropdown-menu {
border-bottom: 1px solid #e2e5ec;
border-left: 1px solid #e2e5ec;
border-radius: 0 0 2px 2px !important;
border-right: 1px solid #e2e5ec;
border-top: none;
box-shadow: $box-shadow;
padding: 0;
width: 100%;
&.right {
left: auto;
right: 0;
}
.nav-item & {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
top: 45px;
.dropdown-item:first-child {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
&.exponention-dropdown {
width: 100px;
min-width: 100px;
}
}
.dropdown-item {
color: $dropdown-menu-item-color;
font-size: 12px;
padding: 10px 20px;
transition: $transition-cont;
white-space: initial;
& {
&.active,
&:hover,
&:focus {
background-color: $dropdown-menu-item-hover-background;
color: $dropdown-menu-item-hover-color;
.external-link-icon {
path {
fill: $header-icon-color-hover;
}
}
}
}
&:first-child {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
&:last-child {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
&.header {
&,
&:hover,
&:active {
padding-left: 10px;
background-color: #fff !important;
cursor: default;
color: #333;
font-weight: 700;
}
}
&.division {
border-top: 1px solid $base-border-color;
}
}
.navbar .dropdown-menu {
border: none;
}
.dropdown-search-icon {
color: $gray-300;
left: 8px;
pointer-events: none;
top: 5px;
}
.dropdown-search-field {
padding-left: 2rem;
}
.dropdown-toggle::after {
margin-left: 0.71em;
}