1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00
metamask-extension/ui/components/multichain/app-header/app-header.scss
David Walsh eb51460cae
UX: Multichain: App header (#18363)
* UX: Multichain: App header

* Export app header, provide required information, put feature flag in place

* Provide available data

* Implement account picker -- centered and opens account popover

* Remove backgrounds, use isUnlocked

* Fix placement of the global menu

* Show logo when unlocked

* Add selector for getting current network, provide props to AvatarNetwork and PickerNetwork

* Wire up the network menu to the header

* fixed ui for all the screens

* updated story for header

* fixed import and header settings

* updated lint error

* fixed tests

* updated header

* removed test

* updated snapshot test

* updated network menu

* updated changes

* removed comment from menu bar

* updated css

* updated test for network list menu

* updated stylesheet

* updated ButtonIcon import

---------

Co-authored-by: NidhiKJha <menidhikjha@gmail.com>
2023-04-13 22:24:03 +05:30

75 lines
1.3 KiB
SCSS

.multichain-app-header {
$height-screen-sm-max: 100%;
$width-screen-sm-min: 85vw;
$width-screen-md-min: 80vw;
$width-screen-lg-min: 62vw;
flex-flow: column nowrap;
z-index: 55;
min-height: 64px;
&__contents {
display: grid;
grid-template-columns: 1fr 2fr 1fr;
height: 64px;
@include screen-sm-max {
height: $height-screen-sm-max;
}
@include screen-sm-min {
width: $width-screen-sm-min;
}
@include screen-md-min {
width: $width-screen-md-min;
}
@include screen-lg-min {
width: $width-screen-lg-min;
}
&--avatar-network {
background-color: transparent;
width: min-content;
padding: 8px;
&:hover,
&:active {
box-shadow: none;
background: transparent;
}
}
}
&__lock-contents {
flex-flow: row nowrap;
height: 64px;
@include screen-sm-max {
height: $height-screen-sm-max;
}
@include screen-sm-min {
width: $width-screen-sm-min;
}
@include screen-md-min {
width: $width-screen-md-min;
}
@include screen-lg-min {
width: $width-screen-lg-min;
}
}
}
.multichain-app-header-shadow {
box-shadow: var(--shadow-size-md) var(--color-shadow-default);
}
.multichain-app-header-logo {
height: 75px;
flex: 0 0 auto;
}