1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Make tabs smaller (#12003)

* Make tabs smaller

Fomantic's tabs are excessively wide and with another tab added on the
repo tabbar (https://github.com/go-gitea/gitea/pull/8346) it would break
the layout on the english language.

Globally reduce tab bar padding to around half of the previous values.

* disable no-duplicate-selectors linter rule

* more tab bar tweaks

* more tweaks

* merge rules and nesting

* remove arc-green weird hover color

* few more arc-green tweaks

* restore to 12px

* tweaks

* use half width height padding

* final tweak

* 10px

* remove min-height

* 11px

* remve new-menu background on light theme too

* background fixes for new-menu

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind
2020-06-22 18:44:06 +02:00
committed by GitHub
parent 4dee08a6b4
commit b948ecb2d2
3 changed files with 42 additions and 26 deletions

View File

@@ -887,7 +887,7 @@ footer {
padding-top: 15px !important;
margin-top: -15px !important;
margin-bottom: 15px !important;
background-color: #fafafa !important;
background: #fafafa;
border-width: 1px !important;
}
@@ -895,7 +895,7 @@ footer {
.ui.menu.new-menu {
overflow-x: auto !important;
justify-content: left !important;
padding-bottom: 5px;
padding-bottom: 2px;
}
.ui.menu.new-menu::-webkit-scrollbar {
@@ -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;
@@ -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;
}