1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/ui/components/app/tab-bar/index.scss
George Marshall 8fcbebc546
Update design tokens library from 1.5 to 1.6 WIP (#14732)
* Updating account menu icon color

* Updating design-tokens and making appropriate updates to extension styles

* Adding more deprecated tags to colors

* Adding spinner and removing todo comment

* Remove comment

* Updates

* Updating snapshots

* More color and ui updates

* reverting transition change
2022-05-25 08:35:36 -07:00

102 lines
1.8 KiB
SCSS

.tab-bar {
display: flex;
flex-direction: column;
justify-content: flex-start;
&__tab {
@include Paragraph;
color: var(--color-text-default);
display: flex;
flex-flow: row nowrap;
align-items: center;
min-width: 0;
flex: 0 0 auto;
box-sizing: border-box;
opacity: 0.5;
transition: opacity 200ms ease-in-out;
background-color: unset;
text-align: start;
@media screen and (min-width: $break-large) {
&:hover {
opacity: 0.4;
}
&:active {
opacity: 0.6;
}
}
@media screen and (max-width: $break-small) {
@include H4;
border-bottom: 1px solid var(--color-border-muted);
opacity: 1;
}
&__content {
padding: 12px 18px;
display: flex;
flex: 1 1 auto;
align-items: center;
position: relative;
&__title {
@include H4;
@media screen and (min-width: $break-large) {
@include H6;
}
}
&__description {
display: none;
@media screen and (max-width: $break-small) {
@include H6;
display: block;
font-weight: 300;
margin-top: 8px;
min-height: 14px;
}
}
&__icon {
display: flex;
justify-content: center;
margin-inline-end: 16px;
flex: 0 0 18px;
color: var(--color-icon-alternative);
@media screen and (min-width: $break-large) {
flex: 0 0 14px;
}
}
}
&__caret {
display: none;
@media screen and (max-width: $break-small) {
display: block;
margin-inline-start: auto;
margin-inline-end: 8px;
[dir='rtl'] & {
transform: rotate(180deg);
}
}
}
&--active {
opacity: 1 !important;
}
}
&__grow-tab {
flex-grow: 1;
}
}