Skip to content

Commit da6be03

Browse files
committed
Updated Trac query styling to be more compact.
1 parent 1da2291 commit da6be03

3 files changed

Lines changed: 24 additions & 4 deletions

File tree

scss/trachacks.scss

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,26 @@ pre.wiki {
143143
white-space: pre-wrap;
144144
}
145145

146-
#content.ticket {
147-
width: auto;
146+
// Reduce the options available to guests.
147+
body.guest #query .option {
148+
display: none;
149+
}
150+
151+
#content {
152+
margin-top: 1em;
153+
.ticket {
154+
width: auto;
155+
}
156+
.report-result {
157+
margin-top: 1em;
158+
}
159+
.paging {
160+
margin: 0;
161+
}
162+
// Hide the first paging options as also available at the bottom.
163+
.report-result + .paging {
164+
display: none;
165+
}
148166
}
149167

150168
.foldable {
@@ -246,6 +264,7 @@ div[role="main"]{
246264
li {
247265
border-right: 0;
248266
padding: 1em;
267+
margin-top: 0;
249268

250269
a {
251270
font-size: 16px;

trac-env/htdocs/css/output.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

trac-env/templates/django_theme.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ <h2>${_("Context Navigation")}</h2>
8181
</head>
8282

8383
{# we don't use the modernizer js lib anymore, but the css still uses some classes from it #}
84-
<body class="mdzr-boxshadow mdzr-svg">
84+
# set guest_class = "guest" if not req.is_authenticated else ""
85+
<body class="mdzr-boxshadow mdzr-svg ${guest_class}">
8586
# block body
8687

8788
# include 'site_header.html' ignore missing

0 commit comments

Comments
 (0)