diff --git a/css/app.css b/css/app.css
index 3587e589217..da54fa84eb6 100644
--- a/css/app.css
+++ b/css/app.css
@@ -1,7 +1,7 @@
-.graphiql-container {
+.graphiql-container,
+.graphiql-container button,
+.graphiql-container input {
color: #141823;
- display: flex;
- flex-direction: row;
font-family:
system,
-apple-system,
@@ -16,6 +16,11 @@
arial,
sans-serif;
font-size: 14px;
+}
+
+.graphiql-container {
+ display: flex;
+ flex-direction: row;
height: 100%;
margin: 0;
overflow: hidden;
diff --git a/css/doc-explorer.css b/css/doc-explorer.css
index 3c7806887dd..e913e323890 100644
--- a/css/doc-explorer.css
+++ b/css/doc-explorer.css
@@ -79,8 +79,12 @@
text-decoration: underline;
}
-.graphiql-container .doc-value-description {
- padding: 4px 0 8px 12px;
+.graphiql-container .doc-value-description > :first-child {
+ margin-top: 4px;
+}
+
+.graphiql-container .doc-value-description > :last-child {
+ margin-bottom: 4px;
}
.graphiql-container .doc-category {
@@ -117,7 +121,7 @@
color: #1F61A0;
}
-.graphiql-container .value-name {
+.graphiql-container .enum-value {
color: #0B7FC7;
}
@@ -145,10 +149,52 @@
color: #0B7FC7;
}
-.graphiql-container .doc-alert-text {
- color: #F00F00;
- font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;
- font-size: 13px;
+.graphiql-container .doc-deprecation {
+ background: #fffae8;
+ box-shadow: inset 0 0 1px #bfb063;
+ color: #867F70;
+ line-height: 16px;
+ margin: 8px -8px;
+ max-height: 80px;
+ overflow: hidden;
+ padding: 8px;
+ border-radius: 3px;
+}
+
+.graphiql-container .doc-deprecation:before {
+ content: 'Deprecated:';
+ color: #c79b2e;
+ cursor: default;
+ display: block;
+ font-size: 9px;
+ font-weight: bold;
+ letter-spacing: 1px;
+ line-height: 1;
+ padding-bottom: 5px;
+ text-transform: uppercase;
+ user-select: none;
+}
+
+.graphiql-container .doc-deprecation > :first-child {
+ margin-top: 0;
+}
+
+.graphiql-container .doc-deprecation > :last-child {
+ margin-bottom: 0;
+}
+
+.graphiql-container .show-btn {
+ -webkit-appearance: initial;
+ display: block;
+ border-radius: 3px;
+ border: solid 1px #ccc;
+ text-align: center;
+ padding: 8px 12px 10px;
+ width: 100%;
+ box-sizing: border-box;
+ background: #fbfcfc;
+ color: #555;
+ cursor: pointer;
}
.graphiql-container .search-box-outer {
diff --git a/css/info.css b/css/info.css
index e03f2818003..b5e4c95cc21 100644
--- a/css/info.css
+++ b/css/info.css
@@ -94,7 +94,7 @@
color: #1F61A0;
}
-.CodeMirror-info .value-name {
+.CodeMirror-info .enum-value {
color: #0B7FC7;
}
@@ -105,7 +105,3 @@
.CodeMirror-info .directive-name {
color: #B33086;
}
-
-.CodeMirror-info .enum-value {
- color: #0B7FC7;
-}
diff --git a/src/components/DocExplorer/FieldDoc.js b/src/components/DocExplorer/FieldDoc.js
index 22b779dea23..828b16b900a 100644
--- a/src/components/DocExplorer/FieldDoc.js
+++ b/src/components/DocExplorer/FieldDoc.js
@@ -56,7 +56,7 @@ export default class FieldDoc extends React.Component {
{
field.deprecationReason &&