Skip to content

Commit 922f06b

Browse files
committed
Added mobile support for Trac.
1 parent 72f85ef commit 922f06b

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

scss/trachacks.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,25 @@ div[role="main"]{
434434
}
435435
}
436436
}
437+
438+
/* Mobile */
439+
440+
@media (max-width: 767px) {
441+
#metanav {
442+
ul {
443+
li {
444+
padding: 1em 0.5em !important;
445+
}
446+
}
447+
}
448+
449+
#filters {
450+
min-width: inherit;
451+
overflow: scroll;
452+
}
453+
454+
div:has(.listing.tickets) {
455+
min-width: inherit;
456+
overflow: scroll;
457+
}
458+
}

trac-env/templates/site_head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<meta name="viewport" content="width=device-width, initial-scale=1" />
12
<link rel="stylesheet" href="${href.chrome('site/css/output.css')}" />
23
<link rel="stylesheet" href="${href.chrome('site/css/trachacks.css')}" />
34
<!--! uncomment for local version of webfont loader if desired. -->

0 commit comments

Comments
 (0)