mirror of
https://github.com/expo/graphiql.git
synced 2026-11-14 19:10:19 -10:00
606 lines
12 KiB
CSS
606 lines
12 KiB
CSS
.graphiql-container,
|
|
.graphiql-container button,
|
|
.graphiql-container input {
|
|
color: #141823;
|
|
font-family:
|
|
system,
|
|
-apple-system,
|
|
'San Francisco',
|
|
'.SFNSDisplay-Regular',
|
|
'Segoe UI',
|
|
Segoe,
|
|
'Segoe WP',
|
|
'Helvetica Neue',
|
|
helvetica,
|
|
'Lucida Grande',
|
|
arial,
|
|
sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.graphiql-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
}
|
|
|
|
.graphiql-container .editorWrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
.graphiql-container .title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.graphiql-container .title em {
|
|
font-family: georgia;
|
|
font-size: 19px;
|
|
}
|
|
|
|
.graphiql-container .topBarWrap {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.graphiql-container .topBar {
|
|
align-items: center;
|
|
background: linear-gradient(#f7f7f7, #e2e2e2);
|
|
border-bottom: 1px solid #d0d0d0;
|
|
cursor: default;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
height: 34px;
|
|
padding: 7px 14px 6px;
|
|
user-select: none;
|
|
}
|
|
|
|
.graphiql-container .toolbar {
|
|
overflow-x: visible;
|
|
display: flex;
|
|
}
|
|
|
|
.graphiql-container .docExplorerShow,
|
|
.graphiql-container .historyShow {
|
|
background: linear-gradient(#f7f7f7, #e2e2e2);
|
|
border-bottom: 1px solid #d0d0d0;
|
|
border-right: none;
|
|
border-top: none;
|
|
color: #3B5998;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
outline: 0;
|
|
padding: 2px 20px 0 18px;
|
|
}
|
|
|
|
.graphiql-container .docExplorerShow {
|
|
border-left: 1px solid rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.graphiql-container .historyShow {
|
|
border-right: 1px solid rgba(0, 0, 0, 0.2);
|
|
border-left: 0;
|
|
}
|
|
|
|
.graphiql-container .docExplorerShow:before {
|
|
border-left: 2px solid #3B5998;
|
|
border-top: 2px solid #3B5998;
|
|
content: '';
|
|
display: inline-block;
|
|
height: 9px;
|
|
margin: 0 3px -1px 0;
|
|
position: relative;
|
|
transform: rotate(-45deg);
|
|
width: 9px;
|
|
}
|
|
|
|
.graphiql-container .editorBar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
}
|
|
|
|
.graphiql-container .queryWrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
.graphiql-container .resultWrap {
|
|
border-left: solid 1px #e0e0e0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .docExplorerWrap,
|
|
.graphiql-container .historyPaneWrap {
|
|
background: white;
|
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
|
|
.graphiql-container .historyPaneWrap {
|
|
min-width: 230px;
|
|
z-index: 5;
|
|
}
|
|
|
|
.graphiql-container .docExplorerResizer {
|
|
cursor: col-resize;
|
|
height: 100%;
|
|
left: -5px;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 10px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.graphiql-container .docExplorerHide {
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
margin: -7px -8px -6px 0;
|
|
padding: 18px 16px 15px 12px;
|
|
}
|
|
|
|
.graphiql-container .query-editor {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .variable-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 29px;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .variable-editor-title {
|
|
background: #eeeeee;
|
|
border-bottom: 1px solid #d6d6d6;
|
|
border-top: 1px solid #e0e0e0;
|
|
color: #777;
|
|
font-variant: small-caps;
|
|
font-weight: bold;
|
|
letter-spacing: 1px;
|
|
line-height: 14px;
|
|
padding: 6px 0 8px 43px;
|
|
text-transform: lowercase;
|
|
user-select: none;
|
|
}
|
|
|
|
.graphiql-container .codemirrorWrap {
|
|
flex: 1;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .result-window {
|
|
flex: 1;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .footer {
|
|
background: #f6f7f8;
|
|
border-left: 1px solid #e0e0e0;
|
|
border-top: 1px solid #e0e0e0;
|
|
margin-left: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .footer:before {
|
|
background: #eeeeee;
|
|
bottom: 0;
|
|
content: " ";
|
|
left: -13px;
|
|
position: absolute;
|
|
top: -1px;
|
|
width: 12px;
|
|
}
|
|
|
|
/* No `.graphiql-container` here so themes can overwrite */
|
|
.result-window .CodeMirror {
|
|
background: #f6f7f8;
|
|
}
|
|
|
|
.graphiql-container .result-window .CodeMirror-gutters {
|
|
background-color: #eeeeee;
|
|
border-color: #e0e0e0;
|
|
cursor: col-resize;
|
|
}
|
|
|
|
.graphiql-container .result-window .CodeMirror-foldgutter,
|
|
.graphiql-container .result-window .CodeMirror-foldgutter-open:after,
|
|
.graphiql-container .result-window .CodeMirror-foldgutter-folded:after {
|
|
padding-left: 3px;
|
|
}
|
|
|
|
.graphiql-container .toolbar-button {
|
|
background: #fdfdfd;
|
|
background: linear-gradient(#f9f9f9, #ececec);
|
|
border-radius: 3px;
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(0,0,0,0.20),
|
|
0 1px 0 rgba(255,255,255, 0.7),
|
|
inset 0 1px #fff;
|
|
color: #555;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
margin: 0 5px;
|
|
padding: 3px 11px 5px;
|
|
text-decoration: none;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 150px;
|
|
}
|
|
|
|
.graphiql-container .toolbar-button:active {
|
|
background: linear-gradient(#ececec, #d5d5d5);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.7),
|
|
inset 0 0 0 1px rgba(0,0,0,0.10),
|
|
inset 0 1px 1px 1px rgba(0, 0, 0, 0.12),
|
|
inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.graphiql-container .toolbar-button.error {
|
|
background: linear-gradient(#fdf3f3, #e6d6d7);
|
|
color: #b00;
|
|
}
|
|
|
|
.graphiql-container .toolbar-button-group {
|
|
margin: 0 5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.graphiql-container .toolbar-button-group > * {
|
|
margin: 0;
|
|
}
|
|
|
|
.graphiql-container .toolbar-button-group > *:not(:last-child) {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
.graphiql-container .toolbar-button-group > *:not(:first-child) {
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
margin-left: -1px;
|
|
}
|
|
|
|
.graphiql-container .execute-button-wrap {
|
|
height: 34px;
|
|
margin: 0 14px 0 28px;
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .execute-button {
|
|
background: linear-gradient(#fdfdfd, #d2d3d6);
|
|
border-radius: 17px;
|
|
border: 1px solid rgba(0,0,0,0.25);
|
|
box-shadow: 0 1px 0 #fff;
|
|
cursor: pointer;
|
|
fill: #444;
|
|
height: 34px;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 34px;
|
|
}
|
|
|
|
.graphiql-container .execute-button svg {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.graphiql-container .execute-button:active {
|
|
background: linear-gradient(#e6e6e6, #c3c3c3);
|
|
box-shadow:
|
|
0 1px 0 #fff,
|
|
inset 0 0 2px rgba(0, 0, 0, 0.2),
|
|
inset 0 0 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.graphiql-container .execute-button:focus {
|
|
outline: 0;
|
|
}
|
|
|
|
.graphiql-container .toolbar-menu,
|
|
.graphiql-container .toolbar-select {
|
|
position: relative;
|
|
}
|
|
|
|
.graphiql-container .execute-options,
|
|
.graphiql-container .toolbar-menu-items,
|
|
.graphiql-container .toolbar-select-options {
|
|
background: #fff;
|
|
box-shadow:
|
|
0 0 0 1px rgba(0,0,0,0.1),
|
|
0 2px 4px rgba(0,0,0,0.25);
|
|
margin: 0;
|
|
padding: 6px 0;
|
|
position: absolute;
|
|
z-index: 100;
|
|
}
|
|
|
|
.graphiql-container .execute-options {
|
|
min-width: 100px;
|
|
top: 37px;
|
|
left: -1px;
|
|
}
|
|
|
|
.graphiql-container .toolbar-menu-items {
|
|
left: 1px;
|
|
margin-top: -1px;
|
|
min-width: 110%;
|
|
top: 100%;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.graphiql-container .toolbar-menu-items.open {
|
|
visibility: visible;
|
|
}
|
|
|
|
.graphiql-container .toolbar-select-options {
|
|
left: 0;
|
|
min-width: 100%;
|
|
top: -5px;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.graphiql-container .toolbar-select-options.open {
|
|
visibility: visible;
|
|
}
|
|
|
|
.graphiql-container .execute-options > li,
|
|
.graphiql-container .toolbar-menu-items > li,
|
|
.graphiql-container .toolbar-select-options > li {
|
|
cursor: pointer;
|
|
display: block;
|
|
margin: none;
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
padding: 2px 20px 4px 11px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.graphiql-container .execute-options > li.selected,
|
|
.graphiql-container .toolbar-menu-items > li.hover,
|
|
.graphiql-container .toolbar-menu-items > li:active,
|
|
.graphiql-container .toolbar-menu-items > li:hover,
|
|
.graphiql-container .toolbar-select-options > li.hover,
|
|
.graphiql-container .toolbar-select-options > li:active,
|
|
.graphiql-container .toolbar-select-options > li:hover,
|
|
.graphiql-container .history-contents > p:hover,
|
|
.graphiql-container .history-contents > p:active {
|
|
background: #e10098;
|
|
color: #fff;
|
|
}
|
|
|
|
.graphiql-container .toolbar-select-options > li > svg {
|
|
display: inline;
|
|
fill: #666;
|
|
margin: 0 -6px 0 6px;
|
|
pointer-events: none;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.graphiql-container .toolbar-select-options > li.hover > svg,
|
|
.graphiql-container .toolbar-select-options > li:active > svg,
|
|
.graphiql-container .toolbar-select-options > li:hover > svg {
|
|
fill: #fff;
|
|
}
|
|
|
|
.graphiql-container .CodeMirror-scroll {
|
|
overflow-scrolling: touch;
|
|
}
|
|
|
|
.graphiql-container .CodeMirror {
|
|
color: #141823;
|
|
font-family:
|
|
'Consolas',
|
|
'Inconsolata',
|
|
'Droid Sans Mono',
|
|
'Monaco',
|
|
monospace;
|
|
font-size: 13px;
|
|
height: 100%;
|
|
left: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.graphiql-container .CodeMirror-lines {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.CodeMirror-hint-information .content {
|
|
box-orient: vertical;
|
|
color: #141823;
|
|
display: flex;
|
|
font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;
|
|
font-size: 13px;
|
|
line-clamp: 3;
|
|
line-height: 16px;
|
|
max-height: 48px;
|
|
overflow: hidden;
|
|
text-overflow: -o-ellipsis-lastline;
|
|
}
|
|
|
|
.CodeMirror-hint-information .content p:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.CodeMirror-hint-information .content p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.CodeMirror-hint-information .infoType {
|
|
color: #CA9800;
|
|
cursor: pointer;
|
|
display: inline;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.autoInsertedLeaf.cm-property {
|
|
animation-duration: 6s;
|
|
animation-name: insertionFade;
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0);
|
|
border-radius: 2px;
|
|
margin: -2px -4px -1px;
|
|
padding: 2px 4px 1px;
|
|
}
|
|
|
|
@keyframes insertionFade {
|
|
from, to {
|
|
background: rgba(255, 255, 255, 0);
|
|
border-color: rgba(255, 255, 255, 0);
|
|
}
|
|
|
|
15%, 85% {
|
|
background: #fbffc9;
|
|
border-color: #f0f3c0;
|
|
}
|
|
}
|
|
|
|
div.CodeMirror-lint-tooltip {
|
|
background-color: white;
|
|
border-radius: 2px;
|
|
border: 0;
|
|
color: #141823;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
|
|
font-family:
|
|
system,
|
|
-apple-system,
|
|
'San Francisco',
|
|
'.SFNSDisplay-Regular',
|
|
'Segoe UI',
|
|
Segoe,
|
|
'Segoe WP',
|
|
'Helvetica Neue',
|
|
helvetica,
|
|
'Lucida Grande',
|
|
arial,
|
|
sans-serif;
|
|
font-size: 13px;
|
|
line-height: 16px;
|
|
max-width: 430px;
|
|
opacity: 0;
|
|
padding: 8px 10px;
|
|
transition: opacity 0.15s;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
div.CodeMirror-lint-tooltip > * {
|
|
padding-left: 23px;
|
|
}
|
|
|
|
div.CodeMirror-lint-tooltip > * + * {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
/* COLORS */
|
|
|
|
.graphiql-container .CodeMirror-foldmarker {
|
|
border-radius: 4px;
|
|
background: #08f;
|
|
background: linear-gradient(#43A8FF, #0F83E8);
|
|
box-shadow:
|
|
0 1px 1px rgba(0, 0, 0, 0.2),
|
|
inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
color: white;
|
|
font-family: arial;
|
|
font-size: 12px;
|
|
line-height: 0;
|
|
margin: 0 3px;
|
|
padding: 0px 4px 1px;
|
|
text-shadow: 0 -1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket {
|
|
color: #555;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket {
|
|
color: #f00;
|
|
}
|
|
|
|
/* Comment */
|
|
.cm-comment {
|
|
color: #999;
|
|
}
|
|
|
|
/* Punctuation */
|
|
.cm-punctuation {
|
|
color: #555;
|
|
}
|
|
|
|
/* Keyword */
|
|
.cm-keyword {
|
|
color: #B11A04;
|
|
}
|
|
|
|
/* OperationName, FragmentName */
|
|
.cm-def {
|
|
color: #D2054E;
|
|
}
|
|
|
|
/* FieldName */
|
|
.cm-property {
|
|
color: #1F61A0;
|
|
}
|
|
|
|
/* FieldAlias */
|
|
.cm-qualifier {
|
|
color: #1C92A9;
|
|
}
|
|
|
|
/* ArgumentName and ObjectFieldName */
|
|
.cm-attribute {
|
|
color: #8B2BB9;
|
|
}
|
|
|
|
/* Number */
|
|
.cm-number {
|
|
color: #2882F9;
|
|
}
|
|
|
|
/* String */
|
|
.cm-string {
|
|
color: #D64292;
|
|
}
|
|
|
|
/* Boolean */
|
|
.cm-builtin {
|
|
color: #D47509;
|
|
}
|
|
|
|
/* EnumValue */
|
|
.cm-string-2 {
|
|
color: #0B7FC7;
|
|
}
|
|
|
|
/* Variable */
|
|
.cm-variable {
|
|
color: #397D13;
|
|
}
|
|
|
|
/* Directive */
|
|
.cm-meta {
|
|
color: #B33086;
|
|
}
|
|
|
|
/* Type */
|
|
.cm-atom {
|
|
color: #CA9800;
|
|
}
|