legit/static/style.css

303 lines
4.2 KiB
CSS
Raw Normal View History

2022-12-17 07:16:09 +00:00
:root {
--light: #f4f4f4;
--cyan: #509c93;
--light-gray: #eee;
--medium-gray: #ddd;
--gray: #6a6a6a;
--dark: #444;
--darker: #222;
2022-12-17 16:03:04 +00:00
--sans-font: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
--display-font: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
2022-12-22 08:57:54 +00:00
--mono-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace;
2022-12-17 07:16:09 +00:00
}
html {
background: var(--light);
-webkit-text-size-adjust: none;
2022-12-17 16:03:04 +00:00
font-family: var(--sans-font);
2022-12-17 07:16:09 +00:00
}
2022-12-22 08:57:54 +00:00
pre {
font-family: var(--mono-font);
}
2022-12-17 07:16:09 +00:00
::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 {
2022-12-17 16:03:04 +00:00
font-family: var(--display-font);
2022-12-17 07:16:09 +00:00
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 {
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 {
color: var(--darker);
border-bottom: 1.5px solid var(--medium-gray);
}
a:hover {
border-bottom: 1.5px solid var(--gray);
}
2022-12-17 07:17:54 +00:00
.index {
padding-top: 2em;
2022-12-17 07:16:09 +00:00
display: grid;
2022-12-17 16:03:04 +00:00
grid-template-columns: 6em 1fr minmax(0, 7em);
2022-12-17 07:16:09 +00:00
grid-row-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 {
color: var(--dark);
white-space: pre-wrap;
2022-12-18 14:30:19 +00:00
}
2022-12-17 16:03:04 +00:00
.desc {
font-weight: normal;
2022-12-17 16:03:04 +00:00
color: var(--gray);
font-style: italic;
}
.tree {
display: grid;
grid-template-columns: 8em minmax(0, 1fr);
grid-row-gap: 0.5em;
grid-column-gap: 1em;
min-width: 0;
}
.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);
2022-12-17 07:16:09 +00:00
}
2022-12-17 16:03:04 +00:00
.log pre {
white-space: pre-wrap;
}
.mode {
font-family: var(--mono-font);
}
.readme pre {
white-space: pre-wrap;
}
2022-12-18 14:30:19 +00:00
.readme {
2022-12-19 12:19:32 +00:00
background: var(--light-gray);
padding: 0.5rem;
2022-12-18 14:30:19 +00:00
}
2022-12-26 06:27:00 +00:00
.readme ul {
padding: revert;
}
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;
border-bottom: 1.5px solid var(--medium-gray);
2022-12-17 17:05:48 +00:00
}
.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: '>';
}
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 {
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;
}
2022-12-22 15:49:00 +00:00
.refs pre {
white-space: pre-wrap;
2022-12-24 09:43:40 +00:00
padding-bottom: 0.5rem;
2022-12-22 15:49:00 +00:00
}
2022-12-24 09:41:48 +00:00
.refs strong {
padding-right: 1em;
}
.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;
display: flex;
float: left;
flex-direction: column;
margin-right: 1ch;
}
.file-wrapper {
2022-12-19 12:19:32 +00:00
background: var(--light-gray);
display: table;
padding: 0.5rem
width: 100%;
margin-top: 0.5rem;
}
.file-content {
background: var(--light-gray);
overflow-y: hidden;
overflow-x: auto;
display: block;
}
2022-12-19 12:37:13 +00:00
.diff-type {
color: var(--gray);
}
2022-12-18 06:48:43 +00:00
.commit-info {
color: var(--gray);
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
pre {
font-size: 0.8rem;
}
2022-12-17 07:16:09 +00:00
}