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 {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 0;
|
|
padding: $api-spacing-sm $api-spacing-md;
|
|
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-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
pre.api-code-block {
|
|
margin: 0;
|
|
padding: $api-spacing-md;
|
|
overflow-x: auto;
|
|
background: $article-code-bg;
|
|
color: $article-code;
|
|
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 {
|
|
font-size: 0.8rem;
|
|
font-weight: 400;
|
|
text-decoration: none;
|
|
color: $article-link;
|
|
opacity: 0.7;
|
|
transition: opacity 0.2s;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|