Commit

Author:

Hash:

Timestamp:

+19 -74 +/-12 browse

Kevin Schoon [me@kevinschoon.com]

f01f1a37ac4786bc1b8997c13ddce18449073721

Sat, 17 May 2025 12:10:31 +0000 (6 months ago)

various style fixups
1diff --git a/ayllu/templates/authors.html b/ayllu/templates/authors.html
2deleted file mode 100644
3index 1fe63c5..0000000
4--- a/ayllu/templates/authors.html
5+++ /dev/null
6 @@ -1,20 +0,0 @@
7- {% extends "base.html" %}
8- {% block content %}
9- <header>
10- <h1>Authors</h1>
11- </header>
12- {% for author in authors %}
13- <article>
14- <div class="wide">
15- <div>
16- <a href="/{{ collection }}/{{ name }}/log?username={{ author.username | urlencode }}&email={{ author.email | urlencode }}">{{ author.username }}</a>
17- </div>
18- <div>
19- <span class="positive">+{{ author.lines_added }}</span>
20- <span class="negative">-{{ author.lines_removed }}</span>
21- {{ author.percentage }}% ({{ author.count }})
22- </div>
23- </div>
24- </article>
25- {% endfor %}
26- {% endblock %}
27 diff --git a/ayllu/templates/blame.html b/ayllu/templates/blame.html
28deleted file mode 100644
29index 11fd2a1..0000000
30--- a/ayllu/templates/blame.html
31+++ /dev/null
32 @@ -1,35 +0,0 @@
33- {% import "macros.html" as macros %}
34- {% extends "base.html" %}
35- {% block content %}
36- <header>
37- {% call macros::navigation(items=subnav_elements, title="Blame") %}
38- </header>
39- <section id="blame">
40- {% if is_renderable %}
41- <section id="blame-left">
42- <table>
43- <tbody>
44- {%- for line in blame_lines -%}
45- <tr>
46- <td>
47- {{ line.author_name }} <a href="/{{ collection }}/{{ name }}/commit/{{ line.commit_id }}">{{ line.timestamp }}</a>
48- </td>
49- {%- for space in line.spaces -%}
50- <tr>
51- <td>&nbsp;</td>
52- <td></td>
53- </tr>
54- {%- endfor -%}
55- </tr>
56- {% endfor %}
57- </tbody>
58- </table>
59- </section>
60- <section id="blame-right">
61- {{ content.1 | safe }}
62- </section>
63- {% else %}
64- <h2>This content is not blameable</h2>
65- {% endif %}
66- </section>
67- {% endblock %}
68 diff --git a/ayllu/templates/blob.html b/ayllu/templates/blob.html
69index 09988f7..6483265 100644
70--- a/ayllu/templates/blob.html
71+++ b/ayllu/templates/blob.html
72 @@ -5,7 +5,7 @@
73 {% call macros::navigation(items=subnav_elements, title="Blob") %}
74 <section class="raised">
75 <section class="flex-group info-bar">
76- <section>
77+ <section class="title">
78 {%- if let Some((hint, color)) = hint -%}
79 <span class="hint" style="color: {{ color }}">{{ hint }}</span>
80 {%- endif -%}
81 diff --git a/ayllu/templates/collection.html b/ayllu/templates/collection.html
82index 3d19242..bfd6941 100644
83--- a/ayllu/templates/collection.html
84+++ b/ayllu/templates/collection.html
85 @@ -2,7 +2,7 @@
86 {% block content %}
87 <section class="raised">
88 <section class="info-bar flex-group single">
89- <section>
90+ <section class="title">
91 <a href="/{{ collection.name }}">{{ collection.name }}</a>
92 {%- if is_hidden %} <span class="negative">[hidden]</span> {%- endif -%}
93 </section>
94 diff --git a/ayllu/templates/commit.html b/ayllu/templates/commit.html
95index d76e6c2..07ff4ac 100644
96--- a/ayllu/templates/commit.html
97+++ b/ayllu/templates/commit.html
98 @@ -3,7 +3,7 @@
99 {% block content %}
100 <section id="commit" class="raised">
101 <section class="info-bar">
102- Commit
103+ <section class="title">Commit</section>
104 </section>
105 <section class="lower-half">
106 <section id="commit-details" class="raised flex-group dense">
107 diff --git a/ayllu/templates/config.html b/ayllu/templates/config.html
108index f7c3b7b..6700130 100644
109--- a/ayllu/templates/config.html
110+++ b/ayllu/templates/config.html
111 @@ -2,7 +2,8 @@
112 {% block content %}
113 <section id="config-panel" class="raised">
114 <section class="info-bar">
115- Configuration
116+ <section class="title">Configuration</section>
117+ <section> Site Configuration </section>
118 </section>
119 <section class="lower-half">
120 <form action="/config" method="post">
121 diff --git a/ayllu/templates/index.html b/ayllu/templates/index.html
122index 6383f27..6b7d057 100644
123--- a/ayllu/templates/index.html
124+++ b/ayllu/templates/index.html
125 @@ -3,7 +3,7 @@
126 {% block content %}
127 <section id="index" class="raised">
128 <section class="info-bar flex-group single">
129- <section>
130+ <section class="title">
131 Collections
132 </section>
133 <section>
134 @@ -13,7 +13,7 @@
135 <section class="scrollable raised">
136 {% for collection in collections %}
137 <section class="info-bar flex-group">
138- <section>
139+ <section class="title">
140 <a href="/{{collection.name}}">{{ collection.name }}</a>
141 </section>
142 {%- if let Some(description) = collection.description -%}
143 diff --git a/ayllu/templates/log.html b/ayllu/templates/log.html
144index 2026b28..26e4d9a 100644
145--- a/ayllu/templates/log.html
146+++ b/ayllu/templates/log.html
147 @@ -6,7 +6,7 @@
148 {% call macros::navigation(items=subnav_elements, title="Log") %}
149 {% endif %}
150 <section class="info-bar">
151- Log
152+ <section class="title"> Log </section>
153 </section>
154 <section class="lower-half">
155 <table class="data-table">
156 diff --git a/ayllu/templates/refs.html b/ayllu/templates/refs.html
157index 95c0844..64c774b 100644
158--- a/ayllu/templates/refs.html
159+++ b/ayllu/templates/refs.html
160 @@ -4,7 +4,7 @@
161 <section id="refs-page">
162 <section id="refs" class="scrollable raised">
163 <section class="info-bar">
164- Tags
165+ <section class="title"> Tags </section>
166 </section>
167 <section id="tags" class="lower-half">
168 <table class="data-table">
169 @@ -36,7 +36,7 @@
170 </section>
171 <section id="branches" class="scrollable raised">
172 <section class="info-bar">
173- Branches
174+ <section class="title"> Branches </section>
175 </section>
176 <section id="branches" class="lower-half">
177 <table class="data-table">
178 @@ -67,7 +67,7 @@
179 </section>
180 <section id="notes" class="scrollable raised">
181 <section class="info-bar">
182- Notes
183+ <section class="title"> Notes </section>
184 </section>
185 <section id="notes" class="lower-half">
186 <table class="data-table">
187 diff --git a/ayllu/templates/repo.html b/ayllu/templates/repo.html
188index 471f095..cde065c 100644
189--- a/ayllu/templates/repo.html
190+++ b/ayllu/templates/repo.html
191 @@ -3,7 +3,7 @@
192 {% block content %}
193 <section>
194 <section class="info-bar">
195- Project
196+ <section class="title"> Project </section>
197 </section>
198 <section id="repo-action-panel" class="raised flex-group lower-half">
199 <section id="project-details" class="dense">
200 @@ -97,7 +97,7 @@
201 <section class="raised">
202 {% if let Some(file_name) = rendered_file_name %}
203 <section class="flex-group info-bar">
204- <section>
205+ <section class="title">
206 {{ file_name }}
207 </section>
208 {% if let Some(rendered_file_size) = rendered_file_size %}
209 diff --git a/ayllu/templates/tag.html b/ayllu/templates/tag.html
210index 442a885..17c417d 100644
211--- a/ayllu/templates/tag.html
212+++ b/ayllu/templates/tag.html
213 @@ -4,7 +4,7 @@
214 <section class="raised">
215 <section id="ref" class="scrollable raised">
216 <section class="info-bar">
217- <h1>Tag: {{ tag.name }}</h1>
218+ <section class="title">Tag: {{ tag.name }}</section>
219 </section>
220 <section class="lower-half">
221 <section id="commit-details" class="flex-group dense">
222 diff --git a/ayllu/themes/base.css b/ayllu/themes/base.css
223index 6c61e28..ae6d88a 100644
224--- a/ayllu/themes/base.css
225+++ b/ayllu/themes/base.css
226 @@ -81,9 +81,12 @@ section.info-bar {
227 border-radius: revert;
228 border: 2px outset;
229 padding: 5px;
230+ font-family: monospace;
231+ }
232+
233+ section.info-bar > .title {
234 font-weight: bold;
235 font-size: large;
236- font-family: monospace;
237 text-decoration: underline;
238 }
239
240 @@ -209,15 +212,11 @@ section#repo-details-panel {
241 padding: 1em;
242 }
243
244- section#config-panel {
245- max-width: 400px;
246- }
247-
248 section#config-panel > section {
249 padding: 1em;
250 }
251
252- section#config-panel > form > button {
253+ section#config-panel > section > form > button {
254 margin-top: 1em;
255 display: block;
256 }