Move tab colors into .tab block

This commit is contained in:
Nick Krichevsky 2018-06-28 20:13:48 -04:00
parent b5bdb49e07
commit 604b8e8d91

View file

@ -1,22 +1,20 @@
$tab-color-1: #ced9e2;
$tab-color-2: #b7c3ce;
.tab-list { .tab-list {
list-style: none; list-style: none;
//Prevent margin breakout of lis //Prevent margin breakout of lis
overflow: auto; overflow: auto;
.tab { .tab {
$color-1: #ced9e2;
$color-2: #b7c3ce;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
padding: 5px 4px; padding: 5px 4px;
background-color: $tab-color-1; background-color: $color-1;
&:nth-child(2n) { &:nth-child(2n) {
background-color: $tab-color-2; background-color: $color-2;
} }
} }
} }