refactor: tab buttons

This commit is contained in:
cha0s 2021-01-30 21:39:18 -06:00
parent 4f5bbb5347
commit a15a921f68
2 changed files with 15 additions and 16 deletions

View File

@ -14,6 +14,21 @@
&:focus:after {
display: none;
}
> button {
background: none;
border: none;
line-height: 0;
margin-left: 0.25em;
padding: 0;
vertical-align: middle;
visibility: hidden;
&:hover {
background: none;
}
}
&:hover > button {
visibility: visible;
}
}
.react-tabs__tab--selected {
background-color: #171717;

View File

@ -16,22 +16,6 @@
}
}
.traits__tab-close {
background: none;
border: none;
line-height: 0;
margin-left: 0.25em;
padding: 0;
vertical-align: middle;
visibility: hidden;
&:hover {
background: none;
}
.react-tabs__tab:hover & {
visibility: visible;
}
}
.traits__tab-bar {
display: flex;
margin-bottom: 1em;