Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tabs smaller #12003

Merged
merged 18 commits into from
Jun 22, 2020
Merged
35 changes: 21 additions & 14 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ footer {
.ui.menu.new-menu {
overflow-x: auto !important;
justify-content: left !important;
padding-bottom: 5px;
padding-bottom: 2px;
lafriks marked this conversation as resolved.
Show resolved Hide resolved
}

.ui.menu.new-menu::-webkit-scrollbar {
Expand Down Expand Up @@ -1011,19 +1011,6 @@ footer {
margin-top: 3em !important;
}

/* Tab color tweaks */
.ui.tabular.menu .item {
color: rgba(0, 0, 0, .5);
}

.ui.tabular.menu .item:hover {
color: rgba(0, 0, 0, .8);
}

.ui.tabular.menu .item.active {
color: rgba(0, 0, 0, .9);
}

/* multiple radio or checkboxes as inline element */
.inline-grouped-list {
display: inline-block;
Expand Down Expand Up @@ -1300,3 +1287,23 @@ i.icon.centerlock {
.ui.sub.header {
text-transform: none;
}

.ui.tabular.menu {
.item {
padding: 11px 12px;
color: rgba(0, 0, 0, .5);
}

.item:hover {
color: rgba(0, 0, 0, .8);
}

.item.active {
color: rgba(0, 0, 0, .9);
margin-top: 1px; /* offset fomantic's margin-bottom: -1px */
}
}

.ui.secondary.pointing.menu .item {
padding: 12px;
}
21 changes: 10 additions & 11 deletions web_src/less/themes/theme-arc-green.less
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,13 @@ a.ui.basic.green.label:hover {
}

.ui.tabular.menu {
border-bottom-color: rgba(187, 187, 187, .24);
border-bottom-color: rgba(255, 255, 255, .1);

.item.active {
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
background: #404552;
background: #383c4a;
color: #dbdbdb;
}

Expand All @@ -536,10 +536,8 @@ a.ui.basic.green.label:hover {

&.navbar {
.item.active {
background: #383c4a;
border-left-color: transparent;
border-right-color: transparent;
border-top: none;
}
}
}
Expand Down Expand Up @@ -857,20 +855,20 @@ a.ui.basic.green.label:hover {
background: #353945;
}

.ui.secondary.pointing.menu {
border-bottom-color: rgba(255, 255, 255, .15);
}

.ui.secondary.pointing.menu .active.item {
color: #dbdbdb;
border: 0;
background: #383c4a;
}

.ui.user.list .item:not(:first-child) {
border-top: 1px solid #4c505c;
}

.ui.secondary.pointing.menu .active.item:hover {
border-color: #af8b4c;
color: #dbdbdb;
background: #4b5162;
}

.ui.secondary.pointing.menu .dropdown.item:hover,
Expand Down Expand Up @@ -902,11 +900,12 @@ a.ui.basic.green.label:hover {
}

.ui.menu.new-menu {
background-color: #2a2e3a !important;
background-color: #383c4a !important;
border-color: rgba(255, 255, 255, .15) !important;

@media only screen and (max-width: 1200px) {
&:after {
background-image: linear-gradient(to right, rgba(42, 46, 42, 0), rgba(42, 46, 42, 1) 100%);
background-image: linear-gradient(to right, transparent 0%, #383c4a 100%);
}
}
}
Expand Down Expand Up @@ -1359,7 +1358,7 @@ a.ui.labels .label:hover {
background: #404552;
}

border-color: rgba(187, 187, 187, .24);
border-color: rgba(255, 255, 255, .15);
}

.footer {
Expand Down