PromptBoost / src /styles.css
smlflg's picture
Initial public upload from Projekte/PromptBoost (part 5)
638c806 verified
Raw History Blame Contribute Delete
8.43 kB
:root {
color-scheme: light;
--bg: #f4f2ec;
--surface: #ffffff;
--surface-alt: #f8f6f1;
--ink: #1e2328;
--muted: #626973;
--line: #d6d0c3;
--teal: #0d766f;
--teal-soft: #d9efea;
--blue: #315f9c;
--blue-soft: #e0ebf7;
--amber: #9a6716;
--amber-soft: #f3dfbd;
--red: #a64236;
--red-soft: #efd6d2;
--green: #2f6f46;
--green-soft: #dcebdc;
--shadow: 0 18px 48px rgba(30, 35, 40, 0.1);
--radius: 8px;
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
sans-serif;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
color: var(--ink);
background:
linear-gradient(90deg, rgba(30, 35, 40, 0.045) 1px, transparent 1px),
linear-gradient(0deg, rgba(30, 35, 40, 0.045) 1px, transparent 1px),
var(--bg);
background-size: 36px 36px;
line-height: 1.5;
}
button,
select,
textarea {
font: inherit;
}
button,
select {
min-height: 40px;
}
button {
cursor: pointer;
}
a {
color: inherit;
}
.topbar {
position: sticky;
top: 0;
z-index: 20;
display: flex;
min-height: 72px;
align-items: center;
justify-content: space-between;
gap: 22px;
padding: 14px clamp(18px, 4vw, 48px);
border-bottom: 1px solid rgba(30, 35, 40, 0.12);
background: rgba(244, 242, 236, 0.92);
backdrop-filter: blur(16px);
}
.brand {
display: inline-flex;
align-items: center;
gap: 12px;
text-decoration: none;
}
.brand-mark {
display: grid;
width: 38px;
height: 38px;
place-items: center;
border-radius: 8px;
color: #fff;
background: #202832;
font-weight: 900;
}
.brand strong,
.brand small {
display: block;
}
.brand small {
margin-top: 3px;
color: var(--muted);
font-size: 0.76rem;
}
.topnav {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.topnav a {
padding: 7px 10px;
border: 1px solid transparent;
border-radius: 7px;
color: var(--muted);
font-size: 0.88rem;
text-decoration: none;
}
.topnav a:hover,
.topnav a:focus-visible {
border-color: var(--line);
outline: none;
background: rgba(255, 255, 255, 0.8);
color: var(--ink);
}
main {
width: 100%;
}
.workspace,
.section-band {
width: min(1480px, calc(100% - clamp(28px, 6vw, 88px)));
margin: 0 auto;
}
.workspace {
min-height: calc(100vh - 72px);
padding: clamp(24px, 4vw, 46px) 0 20px;
}
.workspace-head,
.section-head {
display: grid;
grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
gap: clamp(20px, 4vw, 46px);
align-items: end;
}
.workspace-head {
margin-bottom: 18px;
}
.section-head {
margin-bottom: 18px;
}
.workspace-head p,
.section-head p {
margin: 0;
color: #3c444d;
font-size: clamp(0.98rem, 1.1vw, 1.12rem);
}
.eyebrow,
.panel-kicker {
margin: 0 0 8px;
color: var(--teal);
font-size: 0.76rem;
font-weight: 900;
letter-spacing: 0.08em;
text-transform: uppercase;
}
h1,
h2,
h3,
p {
margin-top: 0;
}
h1 {
max-width: 900px;
margin-bottom: 0;
font-size: clamp(2.4rem, 5.6vw, 5.4rem);
line-height: 0.94;
letter-spacing: 0;
}
h2 {
margin-bottom: 0;
font-size: clamp(1.35rem, 2.4vw, 2.25rem);
line-height: 1.08;
letter-spacing: 0;
}
.app-grid {
display: grid;
grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.05fr) minmax(330px, 0.95fr);
gap: 14px;
}
.panel,
.section-band {
border: 1px solid rgba(30, 35, 40, 0.13);
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.88);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.panel {
min-width: 0;
padding: 18px;
}
.panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
margin-bottom: 14px;
}
.panel-head h2 {
font-size: 1.15rem;
}
.badge {
flex: 0 0 auto;
padding: 5px 8px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
background: #fff;
font-size: 0.72rem;
font-weight: 900;
white-space: nowrap;
}
.badge.stable,
.badge.grade-strong {
border-color: #b9d4c1;
color: var(--green);
background: var(--green-soft);
}
.badge.grade-usable {
border-color: #e1c693;
color: var(--amber);
background: var(--amber-soft);
}
.badge.grade-weak {
border-color: #dfb9b3;
color: var(--red);
background: var(--red-soft);
}
.badge.grade-blocked {
border-color: #caa8a3;
color: #7f281e;
background: #f3d7d2;
}
textarea {
width: 100%;
min-height: 258px;
resize: vertical;
padding: 14px;
border: 1px solid var(--line);
border-radius: 8px;
color: #232832;
background: var(--surface-alt);
line-height: 1.55;
}
textarea:focus,
select:focus,
button:focus-visible {
border-color: var(--teal);
outline: 3px solid rgba(13, 118, 111, 0.15);
}
.control-grid {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin-top: 12px;
}
label span {
display: block;
margin-bottom: 5px;
color: var(--muted);
font-size: 0.74rem;
font-weight: 900;
text-transform: uppercase;
}
select {
width: 100%;
padding: 9px 10px;
border: 1px solid var(--line);
border-radius: 8px;
color: var(--ink);
background: #fff;
}
.button-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}
button {
padding: 9px 12px;
border: 1px solid var(--line);
border-radius: 8px;
color: #252b32;
background: #fff;
font-weight: 850;
}
button:hover {
border-color: var(--teal);
background: var(--teal-soft);
}
.primary-button {
border-color: #0b5f59;
color: #fff;
background: var(--teal);
}
.primary-button:hover {
color: #fff;
background: #095d57;
}
.output-box {
min-height: 620px;
margin: 0;
padding: 14px;
overflow: auto;
border: 1px solid var(--line);
border-radius: 8px;
color: #f2f7f4;
background: #1f262c;
font: 0.82rem/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
white-space: pre-wrap;
}
.spec-cards,
.score-grid {
display: grid;
gap: 10px;
}
.spec-card,
.score-card {
min-width: 0;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface-alt);
}
.spec-card span,
.score-card span {
display: block;
margin-bottom: 7px;
color: var(--muted);
font-size: 0.73rem;
font-weight: 900;
text-transform: uppercase;
}
.spec-card p,
.score-card p {
margin-bottom: 0;
color: #3d444c;
font-size: 0.9rem;
}
.spec-card ul {
display: grid;
gap: 6px;
margin: 0;
padding-left: 18px;
color: #3d444c;
font-size: 0.9rem;
}
.section-band {
margin-top: clamp(18px, 3vw, 34px);
padding: clamp(20px, 4vw, 38px);
}
.score-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.score-card strong {
display: block;
margin-bottom: 9px;
font-size: 1.25rem;
}
.hero-score {
grid-row: span 2;
color: #fff;
background: #202832;
}
.hero-score span,
.hero-score p {
color: rgba(255, 255, 255, 0.78);
}
.hero-score strong {
font-size: clamp(2.4rem, 5vw, 4.4rem);
line-height: 0.95;
}
.bar {
height: 10px;
overflow: hidden;
border-radius: 999px;
background: #dfd9cd;
}
.bar i {
display: block;
height: 100%;
border-radius: inherit;
background: var(--teal);
}
.table-wrap {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 12px;
border-bottom: 1px solid var(--line);
text-align: left;
vertical-align: top;
font-size: 0.9rem;
}
th {
color: #2d343c;
background: #e9e4d8;
font-size: 0.74rem;
font-weight: 950;
text-transform: uppercase;
}
tr:last-child td {
border-bottom: 0;
}
.export-band {
margin-bottom: 42px;
}
.json-box {
min-height: 360px;
}
@media (max-width: 1220px) {
.workspace-head,
.section-head,
.app-grid {
grid-template-columns: 1fr;
}
.score-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.output-box {
min-height: 420px;
}
}
@media (max-width: 720px) {
.topbar {
position: static;
align-items: flex-start;
flex-direction: column;
}
.topnav {
justify-content: flex-start;
}
.workspace,
.section-band {
width: min(100% - 28px, 1480px);
}
h1 {
font-size: clamp(2rem, 13vw, 3.1rem);
}
.panel,
.section-band {
padding: 14px;
}
.panel-head {
align-items: flex-start;
flex-direction: column;
}
.score-grid {
grid-template-columns: 1fr;
}
}