CoreGX-Cams / styles.css
saltiresoftware's picture
Upload 3 files
493381a verified
Raw History Blame Contribute Delete
4.74 kB
:root {
color-scheme: light;
--ink: #271942;
--purple: #6c3ce9;
--pink: #f13f85;
--orange: #ff8a36;
--mint: #2cc7a0;
--blue: #1677e8;
--paper: #ffffff;
--sky: #eef6ff;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
border-radius: 0 !important;
}
[hidden] {
display: none !important;
}
body {
margin: 0;
color: var(--ink);
background: var(--sky);
}
button,
input,
textarea {
font: inherit;
}
button,
summary,
a {
-webkit-tap-highlight-color: transparent;
}
.page {
width: min(1120px, calc(100% - 32px));
margin: 0 auto;
padding: 38px 0 54px;
}
.hero {
margin-bottom: 22px;
}
.hero h1 {
margin: 0;
color: var(--blue);
font-size: clamp(2.3rem, 6vw, 4.2rem);
letter-spacing: -.07em;
line-height: .92;
text-shadow: 3px 3px 0 rgba(255, 138, 54, .2), 6px 6px 0 rgba(108, 60, 233, .11);
}
.celtic-border {
width: min(440px, 86vw);
height: 24px;
margin-top: 13px;
overflow: hidden;
opacity: .28;
}
.celtic-border svg {
display: block;
width: 100%;
height: 100%;
}
.celtic-border path {
fill: none;
stroke: var(--blue);
stroke-width: 2;
stroke-linecap: square;
stroke-linejoin: miter;
}
.celtic-border .heather {
stroke: #7650a8;
}
.code-panel,
.prompt-card,
.preview-shell {
border: 2px solid var(--blue);
background: var(--paper);
}
summary {
padding: 12px 14px;
color: #124f9d;
font-weight: 850;
cursor: pointer;
list-style-position: inside;
}
textarea:focus {
border-color: var(--pink);
box-shadow: 4px 4px 0 #ffd2e4;
}
.workspace {
display: grid;
grid-template-columns: minmax(280px, 5fr) minmax(420px, 7fr);
gap: 24px;
align-items: start;
}
.prompt-card {
overflow: hidden;
}
.example-hint {
margin: 0;
padding: 14px 18px 0;
color: #526677;
font-size: .91rem;
line-height: 1.4;
}
textarea {
display: block;
width: 100%;
min-height: 210px;
resize: vertical;
border: 0;
border-bottom: 1px solid #c9d9ef;
padding: 18px;
color: var(--ink);
background: var(--paper);
font-size: 1.05rem;
line-height: 1.55;
outline: none;
}
.chips {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
padding: 12px;
}
.chips button,
.downloads a,
.downloads button {
border: 1px solid var(--blue);
padding: 9px 12px;
color: #124f9d;
background: #dcecff;
font-weight: 760;
cursor: pointer;
}
.chips button:hover,
.downloads a:hover,
.downloads button:hover {
color: #fff;
background: var(--purple);
}
#build {
width: 100%;
min-height: 50px;
border: 0;
padding: 12px;
color: #fff;
background: var(--blue);
box-shadow: inset 0 -5px 0 var(--pink);
font-weight: 900;
cursor: pointer;
}
#build:hover {
background: #0d62c6;
}
#build:disabled {
cursor: default;
opacity: .58;
}
#status {
min-height: 24px;
margin: 0;
padding: 8px 12px;
color: #705d86;
font-size: .84rem;
font-weight: 750;
}
#status.error {
color: #a92158;
}
.preview-shell {
min-height: 475px;
display: grid;
place-items: center;
overflow: hidden;
border-width: 5px;
border-color: var(--orange) var(--pink) var(--mint) var(--blue);
}
.preview-shell > svg {
display: block;
width: 100%;
height: auto;
max-height: 560px;
}
.preview-error {
max-width: 420px;
padding: 26px;
color: #a92158;
font-weight: 800;
text-align: center;
}
.code-panel {
margin-top: 12px;
}
.code-panel pre {
max-height: 380px;
margin: 0;
overflow: auto;
border-top: 1px solid #c9d9ef;
padding: 16px;
color: #30223f;
background: #f8fbff;
font: .78rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
white-space: pre-wrap;
}
.downloads {
display: flex;
gap: 10px;
justify-content: flex-start;
margin-top: 26px;
}
.downloads a {
text-decoration: none;
}
.downloads a.is-disabled {
pointer-events: none;
opacity: .45;
}
.downloads button:disabled {
cursor: default;
opacity: .58;
}
.site-footer {
margin-top: 28px;
border-left: 3px solid var(--blue);
padding: 4px 0 4px 14px;
color: #705d86;
font-size: .96rem;
line-height: 1.5;
}
.site-footer p {
margin: 0 0 5px;
}
.site-footer p:last-child {
margin-bottom: 0;
}
.site-footer a {
color: #124f9d;
font-weight: 800;
}
.site-footer a:hover {
color: var(--purple);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 780px) {
.page {
width: min(100% - 22px, 620px);
padding-top: 26px;
}
.workspace {
grid-template-columns: 1fr;
}
.preview-shell {
min-height: 370px;
}
}