Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a545bca

Browse files
Added mobile support for Trac.
1 parent c8ce786 commit a545bca

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
@@ -408,3 +408,25 @@ div[role="main"]{
408408
}
409409
}
410410
}
411+
412+
/* Mobile */
413+
414+
@media (max-width: 767px) {
415+
#metanav {
416+
ul {
417+
li {
418+
padding: 1em 0.5em !important;
419+
}
420+
}
421+
}
422+
423+
#filters {
424+
min-width: inherit;
425+
overflow: scroll;
426+
}
427+
428+
div:has(.listing.tickets) {
429+
min-width: inherit;
430+
overflow: scroll;
431+
}
432+
}

‎trac-env/templates/site.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<head py:match="head" py:attrs="select('@*')">
55
${select('*|comment()|text()')}
66

7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
78
<link rel="stylesheet" href="${href.chrome('site/css/output.css')}" />
89
<link rel="stylesheet" href="${href.chrome('site/css/trachacks.css')}" />
910
<!--! uncomment for local version of webfont loader if desired. -->

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /