Pārlūkot izejas kodu

Center content on the page

Lucas Stadler 8 gadi atpakaļ
vecāks
revīzija
1a38d70850
1 mainītis faili ar 9 papildinājumiem un 7 dzēšanām
  1. 9 7
      quit.go

+ 9 - 7
quit.go

@ -484,6 +484,8 @@ var repoTmpl = template.Must(template.New("").Funcs(repoFuncs).Parse(`<!doctype
484 484
	</head>
485 485
486 486
	<body>
487
		<div id="container">
488
487 489
		<section id="repo" class="repo-info">
488 490
			<a id="commits" class="repo-stat" href="#"><span class="icon">⏲</span><span class="count">{{ .Repo.CommitCount }}</span> commits</a>
489 491
			<a id="branches" class="repo-stat" href="#"><span class="icon">⛗</span><span class="count">{{ len .Repo.Branches }}</span> branches</a>
@ -531,6 +533,8 @@ var repoTmpl = template.Must(template.New("").Funcs(repoFuncs).Parse(`<!doctype
531 533
			</div>
532 534
		</section>
533 535
		{{ end }}
536
537
		</div>
534 538
	</body>
535 539
</html>
536 540
`))
@ -544,10 +548,14 @@ body {
544 548
  font-family: Arial, sans-serif;
545 549
}
546 550
551
#container {
552
	width: 70vw;
553
	margin: 0 auto;
554
}
555
547 556
#repo {
548 557
	display: flex;
549 558
	justify-content: center;
550
	width: 70vw;
551 559
	border: 1px solid #ddd;
552 560
	border-radius: 3px;
553 561
	padding: 0.75em;
@ -583,7 +591,6 @@ body {
583 591
584 592
#language-bar {
585 593
  display: flex;
586
  width: 70vw;
587 594
  height: 0.5em;
588 595
  margin: -1em 0 1em;
589 596
}
@ -593,7 +600,6 @@ body {
593 600
  justify-content: space-between;
594 601
  align-items: baseline;
595 602
  padding: 0.6em 0.5em;
596
  width: 70vw;
597 603
  background-color: hsla(300, 70%, 80%, 0.2);
598 604
  border: 1px solid rgba(200, 0, 255, 0.15);
599 605
  border-radius: 3px;
@ -644,10 +650,6 @@ body {
644 650
  content: "/";
645 651
}
646 652
647
#file {
648
  width: 70vw;
649
}
650
651 653
#file .file-name {
652 654
  font-size: 90%;
653 655
  padding: 0.5em;