navid/veinsforge / 7946f29afb883551834b94abc11ca8b57d1c78c154d96be4b40191eedc400018 / internal/web/static/app.css
app.css
← internal/web/static · 15430 bytes · raw · download
/* veinsforge */
:root {
--font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
--max: 880px;
}
:root[data-theme="dark"] {
--bg: #0a0a0a;
--panel: #0b1220;
--panel-2: #101a2c;
--ink: #dce4f0;
--ink-soft: #b7c2d2;
--muted: #7f8da3;
--line: #22314a;
--line-strong: #3a4f70;
--red: #e04448;
--red-soft: #ff6b6f;
--code-bg: #05090f;
--code-ink: #d7e0ee;
--code-muted: #596b83;
--add: #78c7a6;
--add-bg: rgba(57, 153, 118, 0.12);
--del: #ff7c7c;
--del-bg: rgba(224, 68, 72, 0.12);
}
:root[data-theme="light"] {
--bg: #f6f5ef;
--panel: #fbfaf5;
--panel-2: #eeebe2;
--ink: #101620;
--ink-soft: #303a48;
--muted: #65707f;
--line: #cec8b9;
--line-strong: #8a8272;
--red: #b9161d;
--red-soft: #8f1016;
--code-bg: #171e29;
--code-ink: #e2e8f2;
--code-muted: #7b8ca3;
--add: #1f7a59;
--add-bg: rgba(31, 122, 89, 0.09);
--del: #a61c21;
--del-bg: rgba(185, 22, 29, 0.08);
}
* {
box-sizing: border-box;
}
html {
color-scheme: dark light;
}
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: var(--font-body);
font-size: 15px;
line-height: 1.55;
min-height: 100vh;
display: flex;
flex-direction: column;
}
a {
color: var(--ink);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
a:hover {
color: var(--red);
}
h1,
h2,
h3 {
font-weight: 700;
line-height: 1.2;
margin: 1.8rem 0 0.6rem;
}
h1 {
font-size: clamp(1.65rem, 4vw, 2.25rem);
letter-spacing: -0.02em;
margin-top: 1.4rem;
}
h2 {
font-size: 1.15rem;
}
h3 {
font-size: 1rem;
}
p {
margin: 0 0 0.95rem;
}
ul,
ol {
margin: 0 0 1rem;
padding-left: 1.3rem;
}
li {
margin: 0.15rem 0;
}
hr {
border: 0;
border-top: 1px solid var(--line);
margin: 1.5rem 0;
}
pre {
margin: 0 0 1rem;
}
img {
max-width: 100%;
}
code,
pre,
.mono {
font-family: var(--font-mono);
font-size: 0.9em;
}
code {
color: var(--ink-soft);
}
.skip {
position: absolute;
left: -9999px;
top: 0;
padding: 0.4rem 0.7rem;
background: var(--red);
color: #fff;
z-index: 10;
}
.skip:focus {
left: 0.5rem;
}
.wrap {
width: min(var(--max), calc(100% - 2.4rem));
margin: 0 auto;
}
.site-header {
border-bottom: 1px solid var(--line-strong);
background: var(--bg);
}
.header-inner {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding: 0.9rem 0;
flex-wrap: wrap;
}
.brand {
font-family: var(--font-mono);
font-size: 1.05rem;
font-weight: 700;
text-decoration: none;
color: var(--ink);
}
.brand:hover {
color: var(--red);
}
.nav {
display: flex;
align-items: baseline;
gap: 0.85rem;
flex-wrap: wrap;
font-family: var(--font-mono);
font-size: 0.8rem;
}
.nav a {
text-decoration: none;
}
.nav a:hover {
text-decoration: underline;
}
.nav-user {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.inline {
display: inline;
margin: 0;
}
.link,
.linkbtn {
border: 0;
background: none;
color: var(--ink);
padding: 0;
font: inherit;
cursor: pointer;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.link:hover,
.linkbtn:hover {
color: var(--red);
}
.theme-toggle {
font-family: var(--font-mono);
font-size: 0.8rem;
}
main {
flex: 1;
padding: 0.5rem 0 3rem;
}
.flash-ok,
.flash-error {
margin: 1rem 0;
font-family: var(--font-mono);
font-size: 0.82rem;
}
.flash-ok {
color: var(--add);
}
.flash-error {
color: var(--red);
}
.flash-ok::before {
content: "[ok] ";
}
.flash-error::before {
content: "[error] ";
}
.muted {
color: var(--muted);
}
.small,
small {
font-size: 0.83rem;
}
.break {
word-break: break-all;
overflow-wrap: anywhere;
}
.nowrap {
white-space: nowrap;
}
.kicker {
font-family: var(--font-mono);
font-size: 0.76rem;
color: var(--muted);
margin: 1.4rem 0 0.2rem;
}
.kicker a {
color: var(--muted);
}
.kicker a:hover {
color: var(--red);
}
.btn {
display: inline-block;
border: 1px solid var(--line-strong);
background: transparent;
color: var(--ink);
font-family: var(--font-mono);
font-size: 0.8rem;
padding: 0.35rem 0.6rem;
cursor: pointer;
line-height: 1.3;
}
.btn:hover {
border-color: var(--red);
color: var(--red);
}
.btn-primary {
border-color: var(--red);
color: var(--red);
}
.btn-primary:hover {
background: var(--red);
color: #fff;
}
.btn-danger {
border-color: var(--red);
color: var(--red);
}
.btn-danger:hover {
background: var(--red);
color: #fff;
}
.btn-small {
padding: 0.2rem 0.4rem;
font-size: 0.74rem;
}
.btn-block {
display: block;
width: 100%;
text-align: center;
}
.count {
opacity: 0.8;
}
input,
select,
textarea {
width: 100%;
border: 1px solid var(--line-strong);
background: var(--panel);
color: var(--ink);
font-family: var(--font-mono);
font-size: 0.85rem;
padding: 0.4rem 0.5rem;
border-radius: 0;
outline: none;
}
input:focus,
select:focus,
textarea:focus {
border-color: var(--red);
}
textarea {
resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
width: auto;
accent-color: var(--red);
}
input[type="file"] {
border-style: dashed;
padding: 0.3rem;
}
label {
display: flex;
flex-direction: column;
gap: 0.2rem;
margin-bottom: 0.8rem;
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--ink-soft);
}
label small {
font-family: var(--font-body);
color: var(--muted);
}
label.checkbox,
label.radio {
flex-direction: row;
align-items: flex-start;
gap: 0.45rem;
font-family: var(--font-body);
font-size: 0.9rem;
color: var(--ink-soft);
}
label.radio span {
display: flex;
flex-direction: column;
}
fieldset {
border: 1px solid var(--line);
padding: 0.8rem;
}
legend {
font-family: var(--font-mono);
font-size: 0.78rem;
padding: 0 0.3rem;
}
.stack {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.form-narrow {
max-width: 480px;
margin: 1rem 0 1.5rem;
}
.inline-form {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.45rem;
margin: 1rem 0;
}
.inline-form input,
.inline-form select {
width: auto;
min-width: 9rem;
flex: 1 1 9rem;
}
.attach-form {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
align-items: center;
margin: 1rem 0;
max-width: 480px;
}
.attach-form input {
flex: 1 1 14rem;
}
.two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.checkbox-row {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
margin-bottom: 0.8rem;
}
.avatar {
border: 1px solid var(--line);
object-fit: cover;
vertical-align: middle;
}
.avatar-sm {
width: 20px;
height: 20px;
}
.avatar-lg {
width: 72px;
height: 72px;
}
.avatar-empty {
display: inline-block;
background: var(--panel-2);
}
.pager {
display: flex;
gap: 1rem;
align-items: baseline;
flex-wrap: wrap;
margin: 1.2rem 0;
font-family: var(--font-mono);
font-size: 0.8rem;
}
.repo-list,
.link-list,
.file-list,
.issue-list,
.commit-list,
.activity {
list-style: none;
padding: 0;
margin: 0.4rem 0 1.2rem;
}
.repo-list li,
.link-list li,
.issue-list li,
.commit-list li,
.activity li {
padding: 0.45rem 0;
border-bottom: 1px solid var(--line);
}
.repo-list li > a,
.link-list li > a {
font-weight: 600;
}
.repo-desc {
color: var(--ink-soft);
}
.repo-desc::before {
content: " — ";
color: var(--muted);
}
.repo-meta {
display: inline-block;
margin-left: 0.4rem;
font-family: var(--font-mono);
font-size: 0.73rem;
color: var(--muted);
}
.link-list li .muted,
.issue-list li .muted,
.commit-list li .muted {
font-family: var(--font-mono);
font-size: 0.78rem;
}
.file-list li {
padding: 0.15rem 0;
border-bottom: 1px dotted var(--line);
}
.file-list li a {
display: block;
font-family: var(--font-mono);
font-size: 0.86rem;
padding: 0.15rem 0;
}
.issue-list li > a {
font-weight: 600;
}
.state {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--muted);
margin-left: 0.35rem;
}
.state-open {
color: var(--add);
}
.state-merged {
color: var(--red);
}
.state-closed {
color: var(--muted);
}
.commit-strip {
display: flex;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
padding: 0.45rem 0;
margin: 0.4rem 0 1rem;
font-family: var(--font-mono);
font-size: 0.78rem;
}
.commit-strip span:first-child {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.commit-message {
white-space: pre-wrap;
font-family: var(--font-mono);
font-size: 0.88rem;
border-left: 2px solid var(--line-strong);
padding-left: 0.8rem;
margin: 1rem 0 1.5rem;
}
.tabs {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 1rem;
border-bottom: 1px solid var(--line-strong);
padding-bottom: 0.45rem;
margin: 1rem 0 1.2rem;
font-family: var(--font-mono);
font-size: 0.8rem;
}
.tabs a {
text-decoration: none;
color: var(--muted);
}
.tabs a:hover {
color: var(--red);
text-decoration: underline;
}
.tabs a.active {
color: var(--ink);
text-decoration: underline;
}
.repo-actions {
font-family: var(--font-mono);
font-size: 0.8rem;
}
.language-bar {
display: flex;
width: 100%;
height: 10px;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel-2);
margin: 0.9rem 0 0.55rem;
}
.language-bar span {
display: block;
height: 100%;
min-width: 2px;
}
.language-bar span + span {
box-shadow: -1px 0 0 var(--bg);
}
.language-legend {
display: flex;
flex-wrap: wrap;
gap: 0.2rem 1rem;
list-style: none;
padding: 0;
margin: 0 0 1rem;
font-family: var(--font-mono);
font-size: 0.75rem;
}
.language-legend li {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin: 0;
}
.language-dot {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
flex: none;
}
.profile-head {
display: flex;
gap: 1.1rem;
align-items: flex-start;
margin: 1.4rem 0 1.6rem;
}
.profile-head h1 {
margin-top: 0;
}
.post {
margin: 1rem 0 1.4rem;
}
.post > .muted {
border-bottom: 1px solid var(--line);
padding-bottom: 0.25rem;
}
.markdown {
color: var(--ink-soft);
}
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
color: var(--ink);
margin-top: 1.4em;
}
.markdown h1 {
font-size: 1.6rem;
}
.markdown h2 {
font-size: 1.25rem;
}
.markdown h3 {
font-size: 1.05rem;
}
.markdown a {
color: var(--red);
}
.markdown code {
background: var(--panel-2);
padding: 0.05rem 0.2rem;
}
.markdown pre {
background: var(--code-bg);
color: var(--code-ink);
padding: 0.8rem;
overflow-x: auto;
border: 1px solid var(--line-strong);
}
.markdown pre code {
background: none;
color: inherit;
padding: 0;
}
.markdown blockquote {
border-left: 2px solid var(--line-strong);
margin: 1rem 0;
padding-left: 0.8rem;
color: var(--muted);
}
.markdown img {
border: 1px solid var(--line);
}
.markdown table,
.table {
border-collapse: collapse;
width: 100%;
margin: 0.5rem 0 1.2rem;
font-size: 0.88rem;
}
.markdown th,
.markdown td,
.table th,
.table td {
border-bottom: 1px solid var(--line);
padding: 0.4rem 0.5rem;
text-align: left;
vertical-align: top;
}
.markdown th,
.table th {
font-family: var(--font-mono);
font-size: 0.75rem;
font-weight: 400;
color: var(--muted);
}
.actions-cell {
font-family: var(--font-mono);
font-size: 0.78rem;
}
.actions-cell form {
margin-right: 0.5rem;
}
.actions-cell input {
width: 9rem;
display: inline-block;
}
pre.code,
pre.diff,
.code,
.diff,
.code-block {
background: var(--code-bg);
color: var(--code-ink);
border: 1px solid var(--line-strong);
overflow-x: auto;
font-family: var(--font-mono);
font-size: 0.8rem;
line-height: 1.55;
}
pre.code,
.code {
padding: 0.6rem 0;
}
.code-line {
display: flex;
min-width: max-content;
}
.lineno {
width: 4ch;
flex: 0 0 4ch;
text-align: right;
padding-right: 0.7rem;
margin-right: 0.7rem;
color: var(--code-muted);
border-right: 1px solid var(--line);
user-select: none;
}
.code-text {
white-space: pre;
}
pre.diff,
.diff {
padding: 0.5rem 0;
}
.diff-line {
display: block;
padding: 0 0.7rem;
white-space: pre;
min-width: max-content;
}
.diff-file {
color: #9fb2cc;
font-weight: 700;
}
.diff-hunk {
color: #83b9e8;
}
.diff-add {
color: var(--add);
background: var(--add-bg);
}
.diff-del {
color: var(--del);
background: var(--del-bg);
}
.diff-meta,
.diff-meta.diff-line {
color: var(--code-muted);
}
pre > code {
white-space: pre;
}
.settings-grid {
display: block;
}
.settings-card {
border: 0;
border-top: 1px solid var(--line);
padding: 0.2rem 0 1rem;
margin-top: 1.4rem;
}
.settings-card h2 {
margin-top: 0.8rem;
}
.settings-card.wide,
.settings-card.danger {
border-top: 1px solid var(--line);
}
.settings-card.danger h2 {
color: var(--red);
}
.avatar-editor {
display: flex;
gap: 1rem;
align-items: flex-start;
}
.team-card {
border-top: 1px solid var(--line);
padding: 0.7rem 0;
}
.team-head {
display: flex;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.member-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1rem;
margin: 0.4rem 0;
font-family: var(--font-mono);
font-size: 0.78rem;
}
.member {
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.table-wrap {
overflow-x: auto;
}
.facts {
display: grid;
grid-template-columns: max-content 1fr;
gap: 0.2rem 0.8rem;
font-size: 0.86rem;
}
.facts dt {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--muted);
}
.facts dd {
margin: 0;
}
.admin-nav {
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
font-family: var(--font-mono);
font-size: 0.8rem;
}
.search-line {
display: flex;
gap: 0.4rem;
align-items: center;
max-width: 560px;
margin: 1rem 0;
}
.search-line input {
flex: 1;
}
.search-line a {
font-family: var(--font-mono);
font-size: 0.8rem;
}
.site-footer {
border-top: 1px solid var(--line-strong);
padding: 1rem 0 1.5rem;
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--muted);
display: flex;
gap: 0.45rem;
flex-wrap: wrap;
}
.site-footer a {
color: var(--muted);
}
@media (max-width: 700px) {
.wrap {
width: calc(100% - 1.6rem);
}
.header-inner {
align-items: flex-start;
}
.nav {
gap: 0.55rem;
font-size: 0.75rem;
}
.profile-head {
flex-direction: column;
}
.two-col {
grid-template-columns: 1fr;
}
.commit-strip {
flex-direction: column;
gap: 0.2rem;
}
.actions-cell input {
width: 100%;
margin-top: 0.2rem;
}
}
@media (prefers-reduced-motion: reduce) {
* {
scroll-behavior: auto !important;
}
}
.page-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
flex-wrap: wrap;
}
.page-head-actions {
font-family: var(--font-mono);
font-size: 0.8rem;
}
.table-wrap table {
border-collapse: collapse;
width: 100%;
font-size: 0.88rem;
}
.table-wrap th,
.table-wrap td {
border-bottom: 1px solid var(--line);
padding: 0.4rem 0.5rem;
text-align: left;
vertical-align: top;
}
.table-wrap th {
font-family: var(--font-mono);
font-size: 0.75rem;
font-weight: 400;
color: var(--muted);
}