158 lines
2.8 KiB
SCSS
158 lines
2.8 KiB
SCSS
.api-playground {
|
|
max-width: 1200px;
|
|
margin: 2rem auto;
|
|
padding: 2rem;
|
|
background: #1a1a1a;
|
|
border-radius: 8px;
|
|
|
|
h2 {
|
|
color: #00ffff;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.endpoint-selector {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.5rem;
|
|
|
|
button {
|
|
background: #2a2a2a;
|
|
border: 1px solid #444;
|
|
color: #ccc;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
|
|
&:hover {
|
|
background: #333;
|
|
border-color: #00ffff;
|
|
}
|
|
|
|
&.active {
|
|
background: #00ffff;
|
|
color: #000;
|
|
border-color: #00ffff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.request-builder {
|
|
background: #222;
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
margin-bottom: 1.5rem;
|
|
|
|
.method-path {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
padding: 1rem;
|
|
background: #1a1a1a;
|
|
border-radius: 4px;
|
|
|
|
.method {
|
|
background: #00ffff;
|
|
color: #000;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
code {
|
|
flex: 1;
|
|
color: #0f0;
|
|
font-family: monospace;
|
|
}
|
|
}
|
|
|
|
.params {
|
|
margin-bottom: 1.5rem;
|
|
|
|
h4 {
|
|
color: #00ffff;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.param-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
|
|
label {
|
|
min-width: 100px;
|
|
color: #888;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
input {
|
|
flex: 1;
|
|
background: #1a1a1a;
|
|
border: 1px solid #444;
|
|
color: #fff;
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: #00ffff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.execute-btn {
|
|
background: #00ffff;
|
|
color: #000;
|
|
border: none;
|
|
padding: 0.75rem 2rem;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
|
|
&:hover:not(:disabled) {
|
|
background: #00cccc;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
}
|
|
|
|
.response-viewer {
|
|
background: #0a0a0a;
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
border: 1px solid #00ffff;
|
|
|
|
h4 {
|
|
color: #00ffff;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
pre {
|
|
background: #000;
|
|
color: #0f0;
|
|
padding: 1rem;
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
font-family: monospace;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
}
|