1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 06:07:06 +01:00
metamask-extension/ui/components/multichain/app-header/app-header.scss
David Walsh 995887aa92
UX: Multichain: Ensure network picker renders properly for long and short names (#18974)
* UX: Multichain: Ensure network picker renders properly for long and short network names

* Updatte ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.scss

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.scss

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Fix jest issue

---------

Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-05-08 09:50:13 -05:00

71 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;
}
&__network-picker {
max-width: 250px;
}
&--avatar-network {
padding: 0; // TODO: Remove once https://github.com/MetaMask/metamask-extension/pull/17006 is merged
}
}
&__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;
}