Skip to content

Commit cd03f9e

Browse files
committed
Revert to linear gradient, fix webkit-scrollbar
1 parent 00b0eb2 commit cd03f9e

File tree

3 files changed

+53
-46
lines changed

3 files changed

+53
-46
lines changed

templates/repo/header.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
<div class="df">
168168
<div class="ui tabs divider f1"></div>
169169
<div class="ui tabs divider container mx-0"></div>
170+
<div class="ui tabs divider spacer"></div>
170171
<div class="ui tabs divider f1"></div>
171172
</div>
172173
{{end}}

web_src/less/_base.less

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ a.muted:hover,
249249

250250
.page-content {
251251
margin-top: 15px;
252-
}
253252

254-
.page-content .header-wrapper,
255-
.page-content .new-menu {
256-
margin-top: -15px !important;
257-
padding-top: 15px !important;
253+
.header-wrapper,
254+
.new-menu {
255+
margin-top: -15px !important;
256+
padding-top: 15px !important;
257+
}
258258
}
259259

260260
.ui.input.focus > input,
@@ -1238,35 +1238,33 @@ footer {
12381238
margin-bottom: 15px;
12391239
background: var(--color-navbar);
12401240
border-bottom: 1px solid var(--color-secondary) !important;
1241-
overflow: auto;
1242-
1243-
@media @mediaSm {
1244-
& {
1245-
overflow: visible !important;
1246-
}
1247-
}
1241+
overflow-y: visible;
12481242

1249-
&::before,
1250-
&::after {
1251-
height: 38px !important;
1252-
}
1253-
}
1243+
.new-menu-inner {
1244+
display: flex;
1245+
overflow-x: auto;
1246+
overflow-y: hidden;
1247+
margin-left: auto;
1248+
margin-right: auto;
12541249

1255-
.ui.menu.new-menu .new-menu-inner {
1256-
display: flex;
1257-
margin-left: auto;
1258-
margin-right: auto;
1250+
@media @mediaSm {
1251+
& {
1252+
flex-wrap: wrap;
1253+
overflow: visible !important;
1254+
margin-left: 0;
1255+
margin-right: 0;
1256+
}
1257+
}
12591258

1260-
@media @mediaSm {
1261-
& {
1262-
flex-wrap: wrap;
1263-
margin-left: 0;
1264-
margin-right: 0;
1259+
&::before,
1260+
&::after {
1261+
height: 38px !important;
12651262
}
12661263
}
12671264
}
12681265

12691266
.ui.menu.new-menu .item {
1267+
height: 40px;
12701268
margin: 0 !important;
12711269
}
12721270

@@ -1276,12 +1274,8 @@ footer {
12761274
}
12771275
}
12781276

1279-
.ui.menu.new-menu .item:last-child {
1280-
padding-right: 30px !important;
1281-
}
1282-
12831277
.ui.tabs.container .ui.menu,
1284-
.ui.menu.new-menu {
1278+
.ui.menu.new-menu .new-menu-inner {
12851279
&::before,
12861280
&::after {
12871281
content: "";
@@ -1294,31 +1288,34 @@ footer {
12941288
}
12951289

12961290
&::before {
1297-
background: radial-gradient(circle at 1100% 0, var(--color-navbar-transparent) 90.625%, var(--color-navbar) 95%);
1291+
background: linear-gradient(to left, var(--color-navbar-transparent), var(--color-navbar) 75%);
12981292
left: 0;
12991293
z-index: 1;
13001294
}
13011295

13021296
&::after {
1303-
background: radial-gradient(circle at -1000% 0, var(--color-navbar-transparent) 90.625%, var(--color-navbar) 95%);
1297+
background: linear-gradient(to right, var(--color-navbar-transparent), var(--color-navbar) 75%);
13041298
right: 0;
13051299
}
13061300

13071301
&::-webkit-scrollbar {
1308-
height: 6px;
1302+
height: 10px;
13091303
display: none;
13101304
}
13111305

13121306
&::-webkit-scrollbar-track {
1313-
background: none !important;
1314-
}
1315-
1316-
&::-webkit-scrollbar-thumb {
1317-
box-shadow: none !important;
1307+
background: none;
13181308
}
1309+
/* Exclude Firefox */
1310+
@supports (-webkit-appearance:none) and (not (-moz-appearance:none)) {
1311+
&:hover {
1312+
overflow-x: scroll !important;
1313+
margin-bottom: -10px !important;
13191314

1320-
&:hover::-webkit-scrollbar {
1321-
display: block;
1315+
&::-webkit-scrollbar {
1316+
display: block;
1317+
}
1318+
}
13221319
}
13231320
}
13241321

web_src/less/_repository.less

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
justify-content: space-between;
4040

4141
.ui.label {
42-
margin-left: 7px;
43-
padding: 3px 5px;
42+
margin: -3px 0;
43+
margin-left: 7px !important;
44+
padding: 3px 5px !important;
4445
}
4546
}
4647

@@ -185,8 +186,11 @@
185186
overflow-x: auto;
186187
overflow-y: hidden;
187188

188-
.spacer:last-child {
189-
min-width: 1em;
189+
/* Firefox and Safari < 14 need a spacer */
190+
@supports (-moz-appearance:none) or (not (text-orientation:inherit)) {
191+
.spacer:last-child {
192+
min-width: 1em;
193+
}
190194
}
191195

192196
&::before {
@@ -212,7 +216,12 @@
212216
width: calc(100% - 2em);
213217
}
214218

215-
&:not(.container) {
219+
&.spacer {
220+
width: 1.25em;
221+
}
222+
223+
&:first-child,
224+
&:last-child {
216225
z-index: 2;
217226
}
218227
}

0 commit comments

Comments
 (0)