Skip to content

Commit b948ecb

Browse files
silverwindlafrikstechknowlogick
authored
Make tabs smaller (#12003)
* Make tabs smaller Fomantic's tabs are excessively wide and with another tab added on the repo tabbar (#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 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 4dee08a commit b948ecb

File tree

3 files changed

+42
-26
lines changed

3 files changed

+42
-26
lines changed

web_src/less/_base.less

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -887,15 +887,15 @@ footer {
887887
padding-top: 15px !important;
888888
margin-top: -15px !important;
889889
margin-bottom: 15px !important;
890-
background-color: #fafafa !important;
890+
background: #fafafa;
891891
border-width: 1px !important;
892892
}
893893

894894
@media only screen and (max-width: 1200px) {
895895
.ui.menu.new-menu {
896896
overflow-x: auto !important;
897897
justify-content: left !important;
898-
padding-bottom: 5px;
898+
padding-bottom: 2px;
899899
}
900900

901901
.ui.menu.new-menu::-webkit-scrollbar {
@@ -1011,19 +1011,6 @@ footer {
10111011
margin-top: 3em !important;
10121012
}
10131013

1014-
/* Tab color tweaks */
1015-
.ui.tabular.menu .item {
1016-
color: rgba(0, 0, 0, .5);
1017-
}
1018-
1019-
.ui.tabular.menu .item:hover {
1020-
color: rgba(0, 0, 0, .8);
1021-
}
1022-
1023-
.ui.tabular.menu .item.active {
1024-
color: rgba(0, 0, 0, .9);
1025-
}
1026-
10271014
/* multiple radio or checkboxes as inline element */
10281015
.inline-grouped-list {
10291016
display: inline-block;
@@ -1300,3 +1287,23 @@ i.icon.centerlock {
13001287
.ui.sub.header {
13011288
text-transform: none;
13021289
}
1290+
1291+
.ui.tabular.menu {
1292+
.item {
1293+
padding: 11px 12px;
1294+
color: rgba(0, 0, 0, .5);
1295+
}
1296+
1297+
.item:hover {
1298+
color: rgba(0, 0, 0, .8);
1299+
}
1300+
1301+
.item.active {
1302+
color: rgba(0, 0, 0, .9);
1303+
margin-top: 1px; /* offset fomantic's margin-bottom: -1px */
1304+
}
1305+
}
1306+
1307+
.ui.secondary.pointing.menu .item {
1308+
padding: 12px;
1309+
}

web_src/less/_repository.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,3 +3037,13 @@ td.blob-excerpt {
30373037
.added-code {
30383038
background-color: #99ff99;
30393039
}
3040+
3041+
.repository .ui.menu.new-menu {
3042+
background: none !important;
3043+
3044+
@media only screen and (max-width: 1200px) {
3045+
&:after {
3046+
background: none !important;
3047+
}
3048+
}
3049+
}

web_src/less/themes/theme-arc-green.less

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,13 @@ a.ui.basic.green.label:hover {
516516
}
517517

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

521521
.item.active {
522522
border-top-color: transparent;
523523
border-left-color: transparent;
524524
border-right-color: transparent;
525-
background: #404552;
525+
background: #383c4a;
526526
color: #dbdbdb;
527527
}
528528

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

537537
&.navbar {
538538
.item.active {
539-
background: #383c4a;
540539
border-left-color: transparent;
541540
border-right-color: transparent;
542-
border-top: none;
543541
}
544542
}
545543
}
@@ -857,20 +855,20 @@ a.ui.basic.green.label:hover {
857855
background: #353945;
858856
}
859857

858+
.ui.secondary.pointing.menu {
859+
border-bottom-color: rgba(255, 255, 255, .15);
860+
}
861+
860862
.ui.secondary.pointing.menu .active.item {
861863
color: #dbdbdb;
862-
border: 0;
863-
background: #383c4a;
864864
}
865865

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

870870
.ui.secondary.pointing.menu .active.item:hover {
871-
border-color: #af8b4c;
872871
color: #dbdbdb;
873-
background: #4b5162;
874872
}
875873

876874
.ui.secondary.pointing.menu .dropdown.item:hover,
@@ -902,11 +900,12 @@ a.ui.basic.green.label:hover {
902900
}
903901

904902
.ui.menu.new-menu {
905-
background-color: #2a2e3a !important;
903+
background: #2a2e3a;
904+
border-color: transparent !important;
906905

907906
@media only screen and (max-width: 1200px) {
908907
&:after {
909-
background-image: linear-gradient(to right, rgba(42, 46, 42, 0), rgba(42, 46, 42, 1) 100%);
908+
background: linear-gradient(to right, transparent 0%, #2a2e3a 100%);
910909
}
911910
}
912911
}
@@ -1359,7 +1358,7 @@ a.ui.labels .label:hover {
13591358
background: #404552;
13601359
}
13611360

1362-
border-color: rgba(187, 187, 187, .24);
1361+
border-color: rgba(255, 255, 255, .15);
13631362
}
13641363

13651364
.footer {

0 commit comments

Comments
 (0)