Skip to content

Commit 618c394

Browse files
committed
Added mobile support for Trac.
1 parent 7d7f39e commit 618c394

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

scss/trachacks.scss

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

trac-env/templates/site_head.html

+1
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)