Skip to content

Commit

Permalink
Added mobile support for Trac.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahboyce committed Jun 25, 2023
1 parent c8ce786 commit a545bca
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scss/trachacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,25 @@ div[role="main"]{
}
}
}

/* Mobile */

@media (max-width: 767px) {
#metanav {
ul {
li {
padding: 1em 0.5em !important;
}
}
}

#filters {
min-width: inherit;
overflow: scroll;
}

div:has(.listing.tickets) {
min-width: inherit;
overflow: scroll;
}
}
1 change: 1 addition & 0 deletions trac-env/templates/site.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<head py:match="head" py:attrs="select('@*')">
${select('*|comment()|text()')}

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

0 comments on commit a545bca

Please sign in to comment.