@graphiql/plugin-code-exporter
Version:
This package provides a plugin that integrates the [GraphiQL Code Exporter](https://github.com/OneGraph/graphiql-code-exporter) into the GraphiQL UI.
140 lines (135 loc) • 3.41 kB
CSS
.docExplorerWrap {
height: unset ;
min-width: unset ;
width: unset ;
}
.doc-explorer-title {
font-size: var(--font-size-h2);
font-weight: var(--font-weight-medium);
}
.doc-explorer-rhs {
display: none;
}
.doc-explorer-contents {
border-top: none ;
}
.graphiql-code-exporter {
min-width: unset ;
position: relative;
padding: var(--px-16) 0;
& > div {
font-family: var(--font-family) ;
padding: 0 ;
font-size: var(--font-size-body) ;
}
& > div:first-of-type {
display: flex;
flex-direction: column;
gap: var(--px-16);
& > div {
padding: 0 ;
}
& > div:first-of-type {
display: flex;
flex-direction: row;
gap: var(--px-16);
}
& > div:last-of-type {
& > div:first-of-type {
color: hsla(var(--color-neutral), var(--alpha-secondary)) ;
font-variant: unset ;
text-transform: unset ;
font-weight: unset ;
margin-bottom: var(--px-12);
}
}
}
& button.toolbar-button {
height: var(--toolbar-width) ;
width: var(--toolbar-width) ;
border-radius: var(--border-radius-4) ;
cursor: pointer;
display: inline-flex;
font-size: unset ;
left: unset ;
margin-top: unset ;
top: var(--px-16);
right: 0;
justify-content: center;
align-items: center;
background-color: unset ;
& svg {
fill: hsla(var(--color-neutral), var(--alpha-tertiary));
}
}
& > div:last-of-type {
border-top: none ;
display: flex;
flex: 1;
margin-top: var(--px-24) ;
& > div {
position: relative;
min-height: 600px;
width: 100%;
}
}
& .toolbar-menu.toolbar-button {
position: relative;
cursor: pointer;
text-decoration: none;
padding: var(--px-8) var(--px-12);
color: hsl(var(--color-neutral)) ;
border-radius: var(--border-radius-4) ;
&:hover {
background-color: hsla(
var(--color-neutral),
var(--alpha-background-light)
) ;
}
}
& .toolbar-menu-items {
background-color: hsl(var(--color-base)) ;
border: var(--popover-border);
border-radius: var(--border-radius-8);
box-shadow: var(--popover-box-shadow) ;
padding: var(--px-4);
max-width: 250px;
font-size: inherit;
display: block;
white-space: nowrap;
outline: none;
position: absolute;
z-index: 100;
margin-top: var(--px-8);
visibility: hidden;
left: 0;
&.open {
visibility: visible;
}
& > li {
cursor: pointer;
display: block;
color: inherit;
font: inherit;
text-decoration: initial;
border-radius: var(--border-radius-4);
margin: var(--px-4);
overflow: hidden;
padding: var(--px-6) var(--px-8);
text-overflow: ellipsis;
white-space: nowrap;
&:hover {
color: inherit;
background-color: hsla(
var(--color-neutral),
var(--alpha-background-light)
);
}
}
}
& .CodeMirror {
box-shadow: var(--popover-box-shadow);
border-radius: calc(var(--border-radius-12));
padding: var(--px-16);
}
}