68 lines
1.3 KiB
SCSS
68 lines
1.3 KiB
SCSS
// API Code Samples
|
|
// Styles for inline curl examples and Ask AI links within API operations
|
|
|
|
.api-code-sample {
|
|
margin: $api-spacing-lg 0;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: $api-border-radius;
|
|
overflow: hidden;
|
|
|
|
.dark-theme & {
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
}
|
|
|
|
.api-code-sample-header {
|
|
margin: 0;
|
|
padding: $api-spacing-sm $api-spacing-md;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
background: rgba(0, 0, 0, 0.03);
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
|
.dark-theme & {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
}
|
|
|
|
.api-code-sample-body {
|
|
position: relative;
|
|
}
|
|
|
|
pre.api-code-block {
|
|
margin: 0;
|
|
padding: $api-spacing-md;
|
|
padding-bottom: $api-spacing-lg + 0.5rem;
|
|
overflow-x: auto;
|
|
background: #1e1e2e;
|
|
color: #cdd6f4;
|
|
font-size: 0.8rem;
|
|
line-height: 1.5;
|
|
border-radius: 0;
|
|
|
|
code {
|
|
background: none;
|
|
padding: 0;
|
|
color: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
white-space: pre;
|
|
}
|
|
}
|
|
|
|
.api-code-ask-ai {
|
|
position: absolute;
|
|
right: $api-spacing-md;
|
|
bottom: $api-spacing-sm;
|
|
font-size: 0.8rem;
|
|
color: #89b4fa;
|
|
text-decoration: none;
|
|
opacity: 0.7;
|
|
transition: opacity 0.2s;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|