361 lines
5 KiB
CSS
361 lines
5 KiB
CSS
:root {
|
|
--light: #f4f4f4;
|
|
--cyan: #509c93;
|
|
--light-gray: #eee;
|
|
--medium-gray: #ddd;
|
|
--gray: #6a6a6a;
|
|
--dark: #444;
|
|
--darker: #222;
|
|
|
|
--sans-font: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
|
|
--display-font: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
|
|
--mono-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace;
|
|
}
|
|
|
|
html {
|
|
background: var(--light);
|
|
-webkit-text-size-adjust: none;
|
|
font-family: var(--sans-font);
|
|
}
|
|
|
|
pre {
|
|
font-family: var(--mono-font);
|
|
}
|
|
|
|
::selection {
|
|
background: var(--medium-gray);
|
|
opacity: 0.3;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
max-width: 750px;
|
|
padding: 0 13px;
|
|
margin: 40px auto;
|
|
}
|
|
|
|
main, footer {
|
|
font-size: 1rem;
|
|
padding: 0;
|
|
line-height: 160%;
|
|
}
|
|
|
|
main h1, h2, h3, strong {
|
|
font-family: var(--display-font);
|
|
font-weight: 500;
|
|
}
|
|
|
|
strong {
|
|
font-weight: 500;
|
|
}
|
|
|
|
main h1 {
|
|
font-size: 20px;
|
|
padding: 10px 0 10px 0;
|
|
}
|
|
|
|
main h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
main h2, h3 {
|
|
padding: 20px 0 15px 0;
|
|
}
|
|
|
|
nav {
|
|
padding: 0.4rem 0 1.5rem 0;
|
|
}
|
|
|
|
nav ul {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
nav ul li {
|
|
padding-right: 10px;
|
|
display: inline-block;
|
|
}
|
|
|
|
a {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
text-decoration: none;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
a {
|
|
color: var(--darker);
|
|
border-bottom: 1.5px solid var(--medium-gray);
|
|
}
|
|
|
|
a:hover {
|
|
border-bottom: 1.5px solid var(--gray);
|
|
}
|
|
|
|
.index {
|
|
padding-top: 2em;
|
|
display: grid;
|
|
grid-template-columns: 6em 1fr minmax(0, 7em);
|
|
grid-row-gap: 0.5em;
|
|
min-width: 0;
|
|
}
|
|
|
|
.clone-url {
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.clone-url pre {
|
|
color: var(--dark);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.desc {
|
|
font-weight: normal;
|
|
color: var(--gray);
|
|
font-style: italic;
|
|
}
|
|
|
|
.tree td {
|
|
padding: 0.5em 0.5ch;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.mode, .size {
|
|
font-family: var(--mono-font);
|
|
width: 10ch;
|
|
white-space: nowrap;
|
|
}
|
|
.size {
|
|
text-align: right;
|
|
width: fit-content;
|
|
}
|
|
.log {
|
|
display: grid;
|
|
grid-template-columns: 20rem minmax(0, 1fr);
|
|
grid-row-gap: 0.8em;
|
|
grid-column-gap: 8rem;
|
|
margin-bottom: 2em;
|
|
padding-bottom: 1em;
|
|
border-bottom: 1.5px solid var(--medium-gray);
|
|
}
|
|
|
|
.log pre {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
|
|
|
|
.readme pre {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.readme {
|
|
background: var(--light-gray);
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.readme ul {
|
|
padding: revert;
|
|
}
|
|
|
|
.readme img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.diff {
|
|
margin: 1rem 0 1rem 0;
|
|
padding: 1rem 0 1rem 0;
|
|
border-bottom: 1.5px solid var(--medium-gray);
|
|
}
|
|
|
|
.diff pre {
|
|
overflow: scroll;
|
|
}
|
|
|
|
.diff-stat {
|
|
padding: 1rem 0 1rem 0;
|
|
}
|
|
|
|
.commit-hash, .commit-email {
|
|
font-family: var(--mono-font);
|
|
}
|
|
|
|
.commit-email:before {
|
|
content: '<';
|
|
}
|
|
|
|
.commit-email:after {
|
|
content: '>';
|
|
}
|
|
|
|
.commit {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.commit pre {
|
|
padding-bottom: 1rem;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.diff-stat ul li {
|
|
list-style: none;
|
|
padding-left: 0.5em;
|
|
}
|
|
|
|
.diff-add {
|
|
color: green;
|
|
}
|
|
|
|
.diff-del {
|
|
color: red;
|
|
}
|
|
|
|
.diff-noop {
|
|
color: var(--gray);
|
|
}
|
|
|
|
.ref {
|
|
font-family: var(--display-font);
|
|
font-size: 14px;
|
|
color: var(--gray);
|
|
display: inline-block;
|
|
padding-top: 0.7em;
|
|
}
|
|
|
|
.refs pre {
|
|
white-space: pre-wrap;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.refs h4 {
|
|
display: inline;
|
|
}
|
|
|
|
.refs ul {
|
|
list-style: none;
|
|
display: inline;
|
|
}
|
|
|
|
.refs ul li {
|
|
margin-left: 1ch;
|
|
display: inline;
|
|
}
|
|
|
|
.tag-entry {
|
|
padding-bottom: 1em;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.tag-entry:not(:last-child) {
|
|
border-bottom: 1px solid var(--medium-gray);
|
|
}
|
|
|
|
.tag-entry time {
|
|
color: var(--gray);
|
|
float: right;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.commit time, .log time {
|
|
display: block;
|
|
}
|
|
|
|
.line-numbers {
|
|
white-space: pre-line;
|
|
-moz-user-select: -moz-none;
|
|
-khtml-user-select: none;
|
|
-webkit-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
display: inline-block;
|
|
text-align: right;
|
|
float: left;
|
|
flex-direction: column;
|
|
margin-right: 1ch;
|
|
}
|
|
|
|
.file-wrapper {
|
|
background: var(--light-gray);
|
|
display: table;
|
|
padding: 0.5rem
|
|
margin-top: 0.5rem;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.file-content {
|
|
background: var(--light-gray);
|
|
overflow-y: hidden;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
@supports (display: flex) {
|
|
.file-wrapper {
|
|
width: 100%;
|
|
max-width: 750px;
|
|
}
|
|
.file-wrapper tr {
|
|
display:flex;
|
|
flex-direction: row;
|
|
width: 80vw;
|
|
max-width: 750px;
|
|
}
|
|
.line-numbers {
|
|
display: flex;
|
|
}
|
|
.file-content {
|
|
display: iniline-block;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.diff-type {
|
|
color: var(--gray);
|
|
}
|
|
|
|
.commit-info {
|
|
color: var(--gray);
|
|
padding-bottom: 1.5rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.index {
|
|
grid-row-gap: 0.8em;
|
|
}
|
|
|
|
.log {
|
|
grid-template-columns: 1fr;
|
|
grid-row-gap: 0em;
|
|
}
|
|
|
|
.index {
|
|
grid-template-columns: 1fr;
|
|
grid-row-gap: 0em;
|
|
}
|
|
|
|
.index-name:not(:first-child) {
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
.commit-info:not(:last-child) {
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
pre {
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.tree .size {
|
|
display: none;
|
|
}
|
|
}
|