Files
Netbox-Store/store/public/assets/app.css
T
MrBlake f36d6be511
CI / php-store (push) Waiting to run
CI / python-components (push) Waiting to run
feat: add NetBox plugin store
2026-08-24 20:51:25 +02:00

275 lines
21 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
:root {
--ink: #102a43;
--ink-soft: #334e68;
--muted: #627d98;
--line: #d9e2ec;
--surface: #fff;
--surface-soft: #f4f7fa;
--navy: #102a43;
--blue: #1769e0;
--blue-dark: #1254b5;
--cyan: #21b6c7;
--green: #147d64;
--green-bg: #e6f6f1;
--amber: #9a6700;
--amber-bg: #fff5d6;
--red: #b42318;
--red-bg: #ffebe9;
--shadow: 0 16px 40px rgba(16, 42, 67, .09);
--radius: 18px;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--ink);
background: #f8fafc;
font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #f8fafc; color: var(--ink); line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
code { border-radius: 6px; background: #edf2f7; color: #243b53; padding: .12rem .35rem; font: .88em ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217,226,236,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--cyan)); font-weight: 800; box-shadow: 0 7px 18px rgba(23,105,224,.24); }
.brand span:last-child { display: grid; line-height: 1.05; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { padding: 9px 13px; border-radius: 9px; color: var(--ink-soft); font-size: .92rem; font-weight: 650; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: #edf5ff; }
.hero { overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(33,182,199,.28), transparent 34%), linear-gradient(130deg, #0b2035, #123c64 62%, #15566f); }
.hero-grid { min-height: 435px; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, .55fr); align-items: center; gap: 70px; padding-block: 70px; }
.eyebrow { display: block; margin-bottom: 12px; color: #50b9ff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: #6bd7e1; }
.hero-copy { max-width: 730px; margin: 27px 0 0; color: #c8d9e8; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-stat { position: relative; display: grid; padding: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.hero-stat strong { font-size: 4.4rem; line-height: 1; letter-spacing: -.06em; }
.hero-stat span { margin-top: 8px; font-weight: 700; }
.hero-stat small { margin-top: 22px; color: #b7d1e5; }
.catalog-section { padding-block: 0 80px; }
.filter-panel { position: relative; z-index: 2; display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; align-items: end; gap: 12px; margin-top: -35px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #bcccdc; border-radius: 9px; outline: none; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; font-size: .88rem; white-space: nowrap; }
.button.primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.button.primary:hover { border-color: var(--blue-dark); color: #fff; background: var(--blue-dark); }
.button.secondary { border-color: #b6c6d8; color: var(--ink); background: #fff; }
.button.quiet { color: var(--ink-soft); background: #edf2f7; }
.button.danger { color: var(--red); background: var(--red-bg); }
.button.wide { width: 100%; }
.notice { margin: 20px 0; padding: 13px 16px; border: 1px solid; border-radius: 10px; font-weight: 650; }
.notice.error { border-color: #f3b7b2; color: var(--red); background: var(--red-bg); }
.notice.success { border-color: #9dd8c8; color: var(--green); background: var(--green-bg); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 55px 0 22px; }
.catalog-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.035em; }
.catalog-heading .eyebrow { margin-bottom: 5px; color: var(--blue); }
.muted { color: var(--muted); }
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plugin-card { min-width: 0; display: flex; flex-direction: column; min-height: 305px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 3px 12px rgba(16,42,67,.035); transition: transform .18s, box-shadow .18s, border-color .18s; }
.plugin-card:hover { transform: translateY(-3px); border-color: #b6cce1; box-shadow: var(--shadow); }
.card-topline, .release-tags, .summary-status { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.card-topline { justify-content: space-between; }
.provider-pill, .status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.provider-pill { color: #526d82; background: #edf2f7; }
.status-pill.success { color: var(--green); background: var(--green-bg); }
.status-pill.warning { color: var(--amber); background: var(--amber-bg); }
.status-pill.danger { color: var(--red); background: var(--red-bg); }
.status-pill.neutral { color: #526d82; background: #edf2f7; }
.plugin-card h3 { margin: 22px 0 9px; font-size: 1.3rem; letter-spacing: -.025em; }
.plugin-card h3 a { color: var(--ink); }
.plugin-card > p { flex: 1; margin: 0; color: var(--muted); font-size: .92rem; }
.card-meta { display: flex; gap: 24px; margin: 22px 0 18px; }
.card-meta div { display: grid; }
.card-meta dt { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.card-meta dd { margin: 3px 0 0; color: var(--ink-soft); font-size: .86rem; font-weight: 700; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #e9eff5; }
.card-footer code { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow-link { font-size: .85rem; font-weight: 750; }
.empty-state, .error-page { display: grid; justify-items: center; padding: 80px 30px; border: 1px dashed #bcccdc; border-radius: var(--radius); text-align: center; background: #fff; }
.empty-state h2, .error-page h1 { margin: 12px 0 4px; }
.empty-state p, .error-page p { max-width: 600px; color: var(--muted); }
.empty-icon { font-size: 3rem; color: var(--blue); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 38px; }
.pagination a { padding: 8px 12px; border-radius: 8px; background: #fff; font-weight: 700; }
.pagination span { color: var(--muted); font-size: .88rem; }
.detail-hero { padding: 56px 0 62px; color: #fff; background: linear-gradient(130deg, #0c253d, #174f73); }
.back-link { display: inline-block; margin-bottom: 36px; color: #a8d8fb; font-size: .86rem; font-weight: 700; }
.back-link:hover { color: #fff; }
.detail-title-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.detail-title-row h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.05em; }
.detail-title-row p { max-width: 730px; margin: 18px 0 0; color: #c6d9e9; font-size: 1.08rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-actions .secondary { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; padding-block: 34px 80px; }
.readme-card, .side-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.section-label { padding: 14px 23px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.readme-content { padding: clamp(24px, 5vw, 48px); color: #243b53; overflow-wrap: anywhere; }
.readme-content > :first-child { margin-top: 0; }
.readme-content > :last-child { margin-bottom: 0; }
.readme-content h1, .readme-content h2, .readme-content h3 { margin-top: 1.7em; color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
.readme-content h1 { padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 2rem; }
.readme-content h2 { padding-bottom: .3em; border-bottom: 1px solid #e9eff5; font-size: 1.5rem; }
.readme-content pre { max-width: 100%; padding: 17px; overflow: auto; border-radius: 11px; background: #0e2438; color: #e3edf5; }
.readme-content pre code { padding: 0; background: transparent; color: inherit; }
.readme-content img { max-width: 100%; height: auto; }
.readme-content blockquote { margin-inline: 0; padding: 2px 18px; border-left: 4px solid var(--cyan); color: var(--muted); }
.readme-content table { width: 100%; border-collapse: collapse; }
.readme-content th, .readme-content td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.detail-sidebar { display: grid; gap: 18px; }
.side-card { padding: 21px; }
.side-card h2 { margin: 0 0 17px; font-size: 1rem; }
.side-list { margin: 0; }
.side-list div { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid #e9eff5; }
.side-list dt { color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.side-list dd { margin: 0; font-size: .88rem; font-weight: 650; }
.side-heading { display: flex; align-items: center; justify-content: space-between; }
.side-heading span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #edf2f7; font-size: .75rem; font-weight: 800; }
.release-warning { padding: 13px; border: 1px solid #f1d38a; border-radius: 10px; color: #714b00; background: var(--amber-bg); }
.release-warning p { margin: 6px 0 0; font-size: .82rem; }
.release-list { margin: 0; padding: 0; list-style: none; }
.release-list li { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid #e9eff5; }
.release-list li > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.release-list span { color: var(--muted); font-size: .75rem; }
.hash { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-footer { padding: 38px 0; border-top: 1px solid var(--line); color: #829ab1; background: #0b2035; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 6px 0 0; font-size: .85rem; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: #b8d3e6; font-size: .86rem; }
.error-page { min-height: 500px; margin-block: 45px; align-content: center; }
.error-code { color: var(--blue); font-size: 4.4rem; font-weight: 850; line-height: 1; }
.login-page { min-height: 680px; display: grid; place-items: center; padding-block: 60px; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; letter-spacing: -.035em; }
.login-card > p { color: var(--muted); }
.stack-form { display: grid; gap: 17px; margin-top: 25px; }
.admin-hero { padding: 40px 0; border-bottom: 1px solid #214761; color: #fff; background: #102a43; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-title-row h1 { margin: 0; font-size: 2.25rem; letter-spacing: -.04em; }
.admin-title-row p { margin: 7px 0 0; color: #b8cfdf; }
.admin-layout { padding-block: 28px 80px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.admin-stats div { display: grid; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-stats strong { font-size: 1.9rem; line-height: 1; }
.admin-stats span { margin-top: 7px; color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.admin-section { margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 2px 8px rgba(16,42,67,.03); }
.admin-section-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.admin-section-heading > div { display: flex; align-items: baseline; gap: 12px; }
.admin-section-heading .eyebrow { margin: 0; color: var(--blue); }
.admin-section-heading h2 { margin: 0; font-size: 1.18rem; }
.admin-section-heading > p { margin: 0; color: var(--muted); font-size: .82rem; }
.create-source { position: relative; }
.create-source > summary { list-style: none; }
.create-source > summary::-webkit-details-marker { display: none; }
.popover-form { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; width: min(650px, calc(100vw - 50px)); padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 20px 50px rgba(16,42,67,.18); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.check-field { display: flex; grid-template-columns: auto 1fr; align-items: center; align-self: end; min-height: 43px; }
.check-field input { width: 18px; min-height: 18px; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-actions small { color: var(--muted); }
.table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th { padding: 11px 15px; color: var(--muted); background: #f6f8fa; font-size: .67rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 14px 15px; border-top: 1px solid #e8eef4; vertical-align: middle; }
.admin-table tbody tr:hover { background: #fbfdff; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { margin-top: 3px; color: var(--muted); }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.action-row form { margin: 0; }
.mini-button { padding: 5px 8px; border: 1px solid #b8c7d5; border-radius: 7px; color: var(--ink-soft); background: #fff; font-size: .72rem; font-weight: 750; }
.mini-button.approve { border-color: #8bcab9; color: var(--green); background: var(--green-bg); }
.mini-button.reject { border-color: #efb1aa; color: var(--red); background: var(--red-bg); }
.moderation-list { display: grid; }
.moderation-item { border-bottom: 1px solid var(--line); }
.moderation-item:last-child { border-bottom: 0; }
.moderation-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; cursor: pointer; list-style: none; }
.moderation-item > summary::-webkit-details-marker { display: none; }
.moderation-item > summary::before { content: "+"; order: 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--blue); background: #edf5ff; font-size: 1.15rem; }
.moderation-item[open] > summary::before { content: ""; }
.moderation-item > summary > span:first-of-type { display: grid; }
.moderation-item summary small { color: var(--muted); }
.moderation-body { padding: 20px; border-top: 1px solid #e8eef4; background: #fbfcfe; }
.validation-box { margin-bottom: 17px; padding: 12px 15px; border-left: 4px solid var(--amber); border-radius: 6px; color: #714b00; background: var(--amber-bg); }
.validation-box ul { margin: 6px 0 0; padding-left: 20px; font-size: .82rem; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.moderation-actions form { margin: 0; }
.release-admin-table { min-width: 960px; }
.artifact-details { max-width: 330px; margin-top: 7px; }
.artifact-details summary { color: var(--blue); cursor: pointer; font-size: .72rem; font-weight: 750; }
.artifact-details a { display: block; margin-top: 5px; font-size: .7rem; }
.artifact-details strong { display: block; margin-top: 7px; color: var(--muted); font-size: .64rem; text-transform: uppercase; }
.break-value, .full-hash { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.full-hash { display: block; max-width: 270px; font-size: .7rem; }
.text-danger { color: var(--red) !important; }
.empty-row { padding: 30px !important; color: var(--muted); text-align: center !important; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compact-section { min-width: 0; }
.timeline { max-height: 430px; margin: 0; padding: 7px 20px 18px; overflow: auto; list-style: none; }
.timeline li { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #e8eef4; }
.timeline li:last-child { border-bottom: 0; }
.timeline-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.timeline-dot.success, .timeline-dot.audit { background: var(--green); }
.timeline-dot.partial { background: var(--amber); }
.timeline-dot.failed { background: var(--red); }
.timeline strong { font-size: .84rem; text-transform: capitalize; }
.timeline p { margin: 2px 0; color: var(--ink-soft); font-size: .8rem; }
.timeline small { color: var(--muted); font-size: .72rem; }
.sync-errors { margin-top: 7px; color: var(--ink-soft); font-size: .72rem; }
.sync-errors summary { color: var(--blue); cursor: pointer; font-weight: 750; }
.sync-errors ul { margin: 7px 0 0; padding-left: 18px; }
.sync-errors li { display: list-item; padding: 3px 0; border: 0; overflow-wrap: anywhere; }
@media (max-width: 980px) {
.hero-grid { grid-template-columns: 1fr; gap: 35px; }
.hero-stat { width: min(350px, 100%); }
.filter-panel { grid-template-columns: 2fr 1fr; }
.plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-layout { grid-template-columns: 1fr; }
.detail-sidebar { grid-template-columns: 1fr 1fr; }
.admin-columns { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
.shell { width: min(100% - 24px, 1180px); }
.header-inner { min-height: 66px; }
.brand small { display: none; }
.main-nav a { padding: 8px; font-size: .82rem; }
.hero-grid { min-height: 0; padding-block: 60px 75px; }
.hero h1 { font-size: 2.65rem; }
.hero-stat { padding: 23px; }
.filter-panel { grid-template-columns: 1fr; margin-top: -25px; }
.plugin-grid { grid-template-columns: 1fr; }
.catalog-heading, .detail-title-row, .admin-title-row, .footer-inner { align-items: flex-start; flex-direction: column; }
.detail-actions { width: 100%; }
.detail-actions .button { flex: 1; }
.detail-sidebar { grid-template-columns: 1fr; }
.readme-content { padding: 22px; }
.footer-links { flex-direction: column; align-items: flex-start; gap: 8px; }
.admin-stats { grid-template-columns: 1fr 1fr; }
.admin-section-heading { align-items: flex-start; flex-direction: column; }
.create-source { width: 100%; }
.create-source > summary { width: 100%; }
.popover-form { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
.form-grid { grid-template-columns: 1fr; }
.span-2 { grid-column: auto; }
.moderation-item > summary { align-items: flex-start; }
.summary-status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}