gshr
git static host repo -- generates static html for repos
git clone https://git.vogt.world/gshr.git
Log | Files | README.md | LICENSE
← Commit log
commit
message
Changing default style
author
Ben Vogt <[email protected]>
date
2023-04-03 22:10:37
stats
3 file(s) changed, 96 insertions(+), 85 deletions(-)
files
Makefile
main.go
styles.css
  1diff --git a/Makefile b/Makefile
  2index 95f6d58..01f7a8b 100644
  3--- a/Makefile
  4+++ b/Makefile
  5@@ -24,7 +24,7 @@ target/gshr-${OS}-${ARCH}-${ENVIRONMENT}.bin:
  6 
  7 dev: target output cloning target/gshr-${OS}-${ARCH}-${ENVIRONMENT}.bin
  8 	./target/gshr-${OS}-${ARCH}-${ENVIRONMENT}.bin \
  9-    --repo=/Users/bvogt/dev/src/ben/www \
 10+    --repo=/Users/bvogt/dev/src/ben/gshr \
 11     --output=$(PWD)/target/output \
 12     --clone=$(PWD)/target/cloning \
 13 		&& \
 14diff --git a/main.go b/main.go
 15index 7ee0128..7babcba 100644
 16--- a/main.go
 17+++ b/main.go
 18@@ -122,7 +122,7 @@ func (f *TrackedFile) SaveTemplate(t *template.Template) {
 19 	if lexer == nil {
 20 		lexer = lexers.Fallback
 21 	}
 22-	style := styles.Get("fruity")
 23+	style := styles.Get("borland")
 24 	if style == nil {
 25 		style = styles.Fallback
 26 	}
 27diff --git a/styles.css b/styles.css
 28index 2cfa342..9f3d604 100644
 29--- a/styles.css
 30+++ b/styles.css
 31@@ -19,9 +19,6 @@
 32   --link-color: var(--blue);
 33   --link-underline-color: var(--blue);
 34   --bg: white;
 35-  --code-bg: #f0f3f3;
 36-  --code-color: #3c3836;
 37-  --code-border-color: #b4b4ae;
 38   --blockquote-color: #606060;
 39   --blockquote-border: #424242;
 40   --log-hr: #c2c2c2;
 41@@ -343,6 +340,8 @@ div.content div.file {
 42 div.content pre {
 43   overflow-x: auto;
 44   padding: 1em;
 45+  border: solid 1px gainsboro;
 46+  border-radius: 4px;
 47 }
 48 
 49 div.content code {
 50@@ -402,8 +401,12 @@ div.content>*>td {
 51 }
 52 
 53 .chroma {
 54-  color: #ffffff;
 55-  background-color: #111111;
 56+  background-color: #ffffff;
 57+}
 58+
 59+.chroma .err {
 60+  color: #a61717;
 61+  background-color: #e3d2d2
 62 }
 63 
 64 .chroma .lnlinks {
 65@@ -427,7 +430,7 @@ div.content>*>td {
 66 }
 67 
 68 .chroma .hl {
 69-  background-color: #282828
 70+  background-color: #e5e5e5
 71 }
 72 
 73 .chroma .lnt {
 74@@ -453,210 +456,216 @@ div.content>*>td {
 75 }
 76 
 77 .chroma .k {
 78-  color: #fb660a;
 79+  color: #000080;
 80   font-weight: bold
 81 }
 82 
 83 .chroma .kc {
 84-  color: #fb660a;
 85+  color: #000080;
 86   font-weight: bold
 87 }
 88 
 89 .chroma .kd {
 90-  color: #fb660a;
 91+  color: #000080;
 92   font-weight: bold
 93 }
 94 
 95 .chroma .kn {
 96-  color: #fb660a;
 97+  color: #000080;
 98   font-weight: bold
 99 }
100 
101 .chroma .kp {
102-  color: #fb660a
103+  color: #000080;
104+  font-weight: bold
105 }
106 
107 .chroma .kr {
108-  color: #fb660a;
109+  color: #000080;
110   font-weight: bold
111 }
112 
113 .chroma .kt {
114-  color: #cdcaa9;
115+  color: #000080;
116   font-weight: bold
117 }
118 
119 .chroma .na {
120-  color: #ff0086;
121-  font-weight: bold
122-}
123-
124-.chroma .no {
125-  color: #0086d2
126-}
127-
128-.chroma .nf {
129-  color: #ff0086;
130-  font-weight: bold
131+  color: #ff0000
132 }
133 
134 .chroma .nt {
135-  color: #fb660a;
136+  color: #000080;
137   font-weight: bold
138 }
139 
140-.chroma .nv {
141-  color: #fb660a
142-}
143-
144 .chroma .s {
145-  color: #0086d2
146+  color: #0000ff
147 }
148 
149 .chroma .sa {
150-  color: #0086d2
151+  color: #0000ff
152 }
153 
154 .chroma .sb {
155-  color: #0086d2
156+  color: #0000ff
157 }
158 
159 .chroma .sc {
160-  color: #0086d2
161+  color: #800080
162 }
163 
164 .chroma .dl {
165-  color: #0086d2
166+  color: #0000ff
167 }
168 
169 .chroma .sd {
170-  color: #0086d2
171+  color: #0000ff
172 }
173 
174 .chroma .s2 {
175-  color: #0086d2
176+  color: #0000ff
177 }
178 
179 .chroma .se {
180-  color: #0086d2
181+  color: #0000ff
182 }
183 
184 .chroma .sh {
185-  color: #0086d2
186+  color: #0000ff
187 }
188 
189 .chroma .si {
190-  color: #0086d2
191+  color: #0000ff
192 }
193 
194 .chroma .sx {
195-  color: #0086d2
196+  color: #0000ff
197 }
198 
199 .chroma .sr {
200-  color: #0086d2
201+  color: #0000ff
202 }
203 
204 .chroma .s1 {
205-  color: #0086d2
206+  color: #0000ff
207 }
208 
209 .chroma .ss {
210-  color: #0086d2
211+  color: #0000ff
212 }
213 
214 .chroma .m {
215-  color: #0086f7;
216-  font-weight: bold
217+  color: #0000ff
218 }
219 
220 .chroma .mb {
221-  color: #0086f7;
222-  font-weight: bold
223+  color: #0000ff
224 }
225 
226 .chroma .mf {
227-  color: #0086f7;
228-  font-weight: bold
229+  color: #0000ff
230 }
231 
232 .chroma .mh {
233-  color: #0086f7;
234-  font-weight: bold
235+  color: #0000ff
236 }
237 
238 .chroma .mi {
239-  color: #0086f7;
240-  font-weight: bold
241+  color: #0000ff
242 }
243 
244 .chroma .il {
245-  color: #0086f7;
246-  font-weight: bold
247+  color: #0000ff
248 }
249 
250 .chroma .mo {
251-  color: #0086f7;
252+  color: #0000ff
253+}
254+
255+.chroma .ow {
256   font-weight: bold
257 }
258 
259 .chroma .c {
260   color: #008800;
261-  background-color: #0f140f;
262   font-style: italic
263 }
264 
265 .chroma .ch {
266   color: #008800;
267-  background-color: #0f140f;
268   font-style: italic
269 }
270 
271 .chroma .cm {
272   color: #008800;
273-  background-color: #0f140f;
274   font-style: italic
275 }
276 
277 .chroma .c1 {
278   color: #008800;
279-  background-color: #0f140f;
280   font-style: italic
281 }
282 
283 .chroma .cs {
284   color: #008800;
285-  background-color: #0f140f;
286-  font-style: italic
287+  font-weight: bold
288 }
289 
290 .chroma .cp {
291-  color: #ff0007;
292-  background-color: #0f140f;
293-  font-weight: bold;
294-  font-style: italic
295+  color: #008080
296 }
297 
298 .chroma .cpf {
299-  color: #ff0007;
300-  background-color: #0f140f;
301-  font-weight: bold;
302+  color: #008080
303+}
304+
305+.chroma .gd {
306+  color: #000000;
307+  background-color: #ffdddd
308+}
309+
310+.chroma .ge {
311   font-style: italic
312 }
313 
314+.chroma .gr {
315+  color: #aa0000
316+}
317+
318 .chroma .gh {
319-  font-weight: bold
320+  color: #999999
321+}
322+
323+.chroma .gi {
324+  color: #000000;
325+  background-color: #ddffdd
326 }
327 
328 .chroma .go {
329-  color: #444444;
330-  background-color: #222222
331+  color: #888888
332 }
333 
334-.chroma .gu {
335+.chroma .gp {
336+  color: #555555
337+}
338+
339+.chroma .gs {
340   font-weight: bold
341 }
342 
343+.chroma .gu {
344+  color: #aaaaaa
345+}
346+
347+.chroma .gt {
348+  color: #aa0000
349+}
350+
351+.chroma .gl {
352+  text-decoration: underline
353+}
354+
355 .chroma .w {
356-  color: #888888
357+  color: #bbbbbb
358 }
359\ No newline at end of file