legit/static/style.css

412 lines
5.7 KiB
CSS
Raw Permalink Normal View History

2022-12-17 07:16:09 +00:00
html {
2023-02-04 17:07:44 +00:00
background: #000;
2022-12-17 07:16:09 +00:00
-webkit-text-size-adjust: none;
2023-02-04 17:07:44 +00:00
font-family: serif;
color: #c9c9c9;
font-size: 14px;
2022-12-17 07:16:09 +00:00
}
2022-12-22 08:57:54 +00:00
pre {
2023-02-04 17:07:44 +00:00
font-family: monospace;
2022-12-22 08:57:54 +00:00
}
2022-12-17 07:16:09 +00:00
::selection {
2023-02-04 17:07:44 +00:00
background: #1f9b92;
color: #000;
2022-12-17 07:16:09 +00:00
opacity: 0.3;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
padding: 0 13px;
margin: 40px auto;
}
2023-02-04 17:07:44 +00:00
main {
2022-12-17 07:16:09 +00:00
font-size: 1rem;
padding: 0;
line-height: 160%;
2023-02-04 17:07:44 +00:00
overflow-x: auto;
2022-12-17 07:16:09 +00:00
}
2023-02-04 16:34:21 +00:00
footer {
font-size: 85%;
padding: 1em;
text-align: center;
}
main h1, h2, h3, strong {
2022-12-17 07:16:09 +00:00
font-weight: 500;
2023-02-04 17:07:44 +00:00
width:fit-content;
2022-12-17 07:16:09 +00:00
}
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;
}
2023-02-04 17:07:44 +00:00
main h3 {
width: 80vw;
max-width: 500px;
margin-left: auto;
margin-right: auto;
text-transform: capitalize;
}
2022-12-17 07:16:09 +00:00
nav {
2022-12-18 16:38:03 +00:00
padding: 0.4rem 0 1.5rem 0;
2022-12-17 07:16:09 +00:00
}
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 {
2023-02-04 17:07:44 +00:00
color: #1f9b92;
text-decoration: none;
font-weight:bold;
2022-12-17 07:16:09 +00:00
}
a:hover {
2023-02-04 17:07:44 +00:00
color: #fff;
2022-12-17 07:16:09 +00:00
}
2022-12-17 07:17:54 +00:00
.index {
2023-02-04 17:07:44 +00:00
margin: 0px auto;
width: 80vw;
padding-top: 2em;
2022-12-17 07:16:09 +00:00
display: grid;
2023-02-04 17:07:44 +00:00
grid-template-columns: auto 1fr auto;
grid-gap: 0.5em;
2022-12-17 16:03:04 +00:00
min-width: 0;
2022-12-17 07:16:09 +00:00
}
2022-12-18 14:30:19 +00:00
.clone-url {
padding-top: 2rem;
}
.clone-url pre {
2023-02-04 17:07:44 +00:00
color: #1f9b92;
white-space: pre-wrap;
2022-12-18 14:30:19 +00:00
}
2022-12-17 16:03:04 +00:00
.desc {
2023-02-04 17:07:44 +00:00
}
.tree {
margin: 0px 10vw;
max-width: 80vw;
2022-12-17 16:03:04 +00:00
}
.tree td {
padding: 0.5em 0.5ch;
2023-02-04 17:07:44 +00:00
font-size: 14px;
box-sizing: content-box;
2022-12-17 16:03:04 +00:00
}
.mode, .size {
2023-02-04 17:07:44 +00:00
font-family: monospace;
width: 10ch;
2023-02-04 17:07:44 +00:00
white-space:nowrap;
}
2023-02-04 17:07:44 +00:00
.size {
text-align: right;
2023-02-04 15:19:23 +00:00
width: fit-content;
}
2023-02-04 17:07:44 +00:00
2022-12-17 16:03:04 +00:00
.log {
2023-02-04 17:07:44 +00:00
width:fit-content;
max-width: 80vw;
margin: 0 auto;
2022-12-17 16:03:04 +00:00
display: grid;
2023-02-04 17:07:44 +00:00
grid-template-columns: 1fr auto;
2022-12-17 16:03:04 +00:00
grid-row-gap: 0.8em;
grid-column-gap: 8rem;
margin-bottom: 2em;
2023-02-04 17:07:44 +00:00
padding-left: 1ch;
border-left: solid 2px #797979;
2022-12-17 07:16:09 +00:00
}
2023-02-04 17:07:44 +00:00
.commit-hash, .commit-email {
font-family: monospace;
2022-12-17 16:03:04 +00:00
}
2023-02-04 17:07:44 +00:00
.log pre, .commit pre {
white-space: pre-wrap;
font-family: serif;
}
2023-02-04 17:07:44 +00:00
.mode {
font-family: monospace;
}
2022-12-17 16:03:04 +00:00
.readme pre {
white-space: pre-wrap;
}
2023-02-04 17:07:44 +00:00
.readme * {
margin: 0 auto;
width: 80vw;
max-width: 500px;
}
.readme h1, .readme h2, .readme h3, .readme h4, .readme h5, .readme h6 {
text-transform: capitalize;
2022-12-18 14:30:19 +00:00
}
2022-12-26 06:27:00 +00:00
.readme ul {
padding: revert;
}
2023-02-04 17:07:44 +00:00
.readme table, .readme pre { width:fit-content;max-width:100vw;margin-left:max(10vw, max(0px, calc(50vw - 250px)));transform:translateX(max(min(0px, calc(min(40vw, 250px) - 50%)), min(-10vw, calc(250px - 50%)))); }
.readme p, .readme ul, .readme ol { line-height:150%;margin-top:1em;margin-bottom:1em; }
.readme li { margin-top:0.5em;margin-bottom:0.5em;width:100%; }
.readme code, .readme pre { background:#00263b;color:#93a1a1;padding:0.25em; }
.readme pre { white-space:pre;overflow-x:auto; }
.readme blockquote {padding-left:1ch;line-height:150%;border-left:solid 2px #797979; }
2022-12-26 06:27:00 +00:00
2022-12-26 06:34:09 +00:00
.readme img {
max-width: 100%;
}
2022-12-17 17:05:48 +00:00
.diff {
margin: 1rem 0 1rem 0;
padding: 1rem 0 1rem 0;
2022-12-17 17:05:48 +00:00
}
.diff pre {
2023-02-04 17:07:44 +00:00
background: #002b36;
color: #93a1a1;
2022-12-17 17:05:48 +00:00
overflow: scroll;
}
.diff-stat {
padding: 1rem 0 1rem 0;
}
.commit-email:before {
content: '<';
2023-02-04 17:07:44 +00:00
color: #c9c9c9 !important;
font-weight: normal;
}
.commit-email:after {
content: '>';
2023-02-04 17:07:44 +00:00
color: #c9c9c9 !important;
font-weight: normal;
}
2022-12-18 06:48:43 +00:00
.commit {
margin-bottom: 1rem;
}
2022-12-17 17:05:48 +00:00
.commit pre {
padding-bottom: 1rem;
white-space: pre-wrap;
}
.diff-stat ul li {
list-style: none;
padding-left: 0.5em;
}
.diff-add {
2023-02-04 17:07:44 +00:00
color: #1f9b92;
2022-12-17 17:05:48 +00:00
}
.diff-del {
2023-02-04 17:07:44 +00:00
color: #dc322f;
2022-12-17 17:05:48 +00:00
}
.diff-noop {
}
2023-02-04 17:07:44 +00:00
.refs {
width: 80vw;
max-width: 500px;
margin: 0 auto;
}
.refs ul {
list-style: none;
display: inline;
}
.refs ul li {
2023-02-04 17:07:44 +00:00
display: inline;
margin: 0;
margin-left: 1ch;
2023-02-04 17:07:44 +00:00
}
.branches {
padding-left: 2ch;
border-left: 2px solid #797979;
}
.refs h4 {
display: inline;
}
2023-02-04 17:07:44 +00:00
.tags time {
float: right;
font-size: 85%;
}
.commit-info time {
display: block;
}
time {
font-style: italic;
}
.tag-entry {
2023-02-04 17:07:44 +00:00
padding-left: 2ch;
border-left: 2px solid #797979;
margin-bottom: 2em;
}
2023-02-04 17:07:44 +00:00
.refs pre {
font-family: serif;
white-space: pre-wrap;
padding-bottom: 0.5rem;
}
2023-02-04 17:07:44 +00:00
.tag-entry details pre, .commit-info details pre {
font-family: monospace;
font-size: 1.0rem;
}
2023-02-04 17:07:44 +00:00
.ref {
font-family: monospace;
font-size: 75%;
}
.refs strong {
padding-right: 1em;
2022-12-24 09:41:48 +00:00
}
.line-numbers {
white-space: pre-line;
2022-12-18 05:34:11 +00:00
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
2023-02-04 17:07:44 +00:00
display:inline-block;
flex-direction:column;
margin-right: 1ch;
2023-02-04 17:07:44 +00:00
font-size: 14px;
font-family:monospace;
text-align:right;
}
.file-wrapper {
display: table;
2023-02-04 17:07:44 +00:00
margin-top: 0.5em;
}
.file-content {
2023-02-04 17:07:44 +00:00
color: #93a1a1;
background: #002b36;
overflow-y: hidden;
overflow-x: auto;
2023-02-04 17:07:44 +00:00
font-size: 14px;
}
2023-02-04 00:30:37 +00:00
@supports (display: flex) {
.line-numbers {
display: flex;
}
.file-content {
2023-02-04 17:07:44 +00:00
display: inline-block;
2023-02-04 00:30:37 +00:00
width: 100%;
}
2023-02-04 17:07:44 +00:00
.file-wrapper {
width: 100%;
}
.file-wrapper tr {
display: flex;
flex-direction: row;
width: 100%;
}
2023-02-04 00:30:37 +00:00
}
2022-12-19 12:37:13 +00:00
.diff-type {
2023-02-04 17:07:44 +00:00
color: #000;
background: #c9c9c9;
padding: 2px 4px;
2022-12-19 12:37:13 +00:00
}
2022-12-18 06:48:43 +00:00
.commit-info {
2022-12-18 14:30:19 +00:00
padding-bottom: 1.5rem;
2022-12-22 15:49:00 +00:00
font-size: 0.85rem;
2022-12-18 06:48:43 +00:00
}
2022-12-17 16:03:04 +00:00
@media (max-width: 600px) {
2022-12-17 07:17:54 +00:00
.index {
2022-12-17 07:16:09 +00:00
grid-row-gap: 0.8em;
}
2022-12-17 16:03:04 +00:00
.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;
}
2022-12-17 16:03:04 +00:00
.commit-info:not(:last-child) {
padding-bottom: 1.5rem;
}
2022-12-22 15:49:00 +00:00
2022-12-17 07:16:09 +00:00
}
@media (max-width: 420px) {
2023-02-04 17:07:44 +00:00
.tree {
grid-template-columns: 8em 1fr;
}
.tree .size {
display: none;
}
}