Sfoglia il codice sorgente

Make READMEs prettier

Lucas Stadler 8 anni fa
parent
commit
0d6851aec9
1 ha cambiato i file con 27 aggiunte e 2 eliminazioni
  1. 27 2
      quit.go

+ 27 - 2
quit.go

@ -229,7 +229,7 @@ var repoTmpl = template.Must(template.New("").Parse(`<!doctype html>
229 229
230 230
		{{ if .Repo.Commit.Readme }}
231 231
		<section id="file" class="readme">
232
			<h1>{{ .Repo.Commit.Readme.Name }}</h1>
232
			<h1 class="file-name">{{ .Repo.Commit.Readme.Name }}</h1>
233 233
			<div class="contents">
234 234
				{{ .Repo.Commit.Readme.Contents }}
235 235
			</div>
@ -286,7 +286,7 @@ body {
286 286
  width: 70vw;
287 287
}
288 288
289
.file-name {
289
#files .file-name {
290 290
  color: #00445a;
291 291
}
292 292
@ -303,4 +303,29 @@ body {
303 303
.file-type-tree:after {
304 304
  content: "/";
305 305
}
306
307
#file {
308
  width: 70vw;
309
}
310
311
#file .file-name {
312
  font-size: 90%;
313
  padding: 0.5em;
314
  margin-bottom: -1px;
315
  background-color: hsla(300, 70%, 80%, 0.2);
316
  border: 1px solid #fbd3f5;
317
  border-radius: 3px;
318
  border-bottom-left-radius: 0;
319
  border-bottom-right-radius: 0;
320
}
321
322
#file .contents {
323
  border: 1px solid #fbd3f5;
324
  padding: 0.5em 3em;
325
}
326
327
#file .contents > h1 {
328
  border-bottom: 1px solid #ddd;
329
  padding-bottom: 0.5em;
330
}
306 331
`