zektyc/public/css/docs.css

160 lines
No EOL
2.8 KiB
CSS

/* Page de documentation des API (docs/maxspeed etc.) */
.docs-wrap {
flex: 1;
width: 100%;
min-height: 0;
display: flex;
gap: 32px;
align-items: flex-start;
max-width: 1180px;
margin: 0 auto;
padding: 40px clamp(1.25rem, 5vw, 2.5rem);
}
.docs-side {
flex: 0 0 240px;
position: sticky;
top: 24px;
font-size: 14px;
}
.docs-side h3 {
margin: 0 0 10px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
opacity: 0.6;
}
.docs-side ul {
list-style: none;
margin: 0;
padding: 0;
}
.docs-side li {
margin: 4px 0;
}
.docs-side a {
color: inherit;
text-decoration: none;
opacity: 0.85;
}
.docs-side a:hover {
opacity: 1;
text-decoration: underline;
}
.docs-side a.active {
opacity: 1;
font-weight: 600;
}
.docs-body {
flex: 1 1 auto;
min-width: 0;
line-height: 1.7;
color: var(--text);
}
.docs-body h1 {
font-size: 1.9em;
border-bottom: 1px solid var(--border);
padding-bottom: 12px;
}
.docs-body h2 {
font-size: 1.35em;
margin-top: 2.2em;
border-bottom: 1px solid var(--border);
padding-bottom: 6px;
}
.docs-body h3 {
font-size: 1.1em;
margin-top: 1.6em;
}
.docs-body pre {
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 8px;
padding: 14px;
overflow: auto;
font-size: 13px;
color: var(--text);
}
.docs-body code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.docs-body :not(pre) > code {
background: var(--bg-soft);
padding: 2px 5px;
border-radius: 4px;
font-size: 0.9em;
}
.docs-body table {
border-collapse: collapse;
width: 100%;
margin: 16px 0;
font-size: 14px;
}
.docs-body th,
.docs-body td {
border: 1px solid var(--border);
padding: 8px 12px;
text-align: left;
}
.docs-body th {
background: var(--bg-soft);
}
.docs-body blockquote {
border-left: 3px solid var(--accent);
margin: 16px 0;
padding: 4px 16px;
opacity: 0.85;
}
@media (max-width: 760px) {
.docs-wrap {
flex-direction: column;
}
.docs-side {
position: static;
flex: auto;
}
}
/* ===== Playground d'interrogation en direct (docs API) ===== */
.ms-playground {
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 8px;
padding: 16px;
}
.ms-playground form {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: end;
}
.ms-playground label {
display: flex;
flex-direction: column;
font-size: 12px;
gap: 4px;
}
.ms-playground input {
background: var(--bg);
color: inherit;
border: 1px solid var(--border);
border-radius: 4px;
padding: 6px 8px;
width: 130px;
}
.ms-playground button {
background: var(--bg-soft);
color: inherit;
border: 1px solid var(--border);
border-radius: 6px;
padding: 8px 14px;
cursor: pointer;
}
.ms-playground button:hover {
border-color: var(--accent);
}
.ms-out {
white-space: pre-wrap;
margin-top: 12px;
font-size: 13px;
}