Skip to content

Commit d43c383

Browse files
authored
Merge pull request #2292 from ginifizz/master
Improve graphiql CSS
2 parents 549214a + ce3258b commit d43c383

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

src/Bridge/Symfony/Bundle/Resources/public/graphiql-style.css

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,112 @@ body {
88
#graphiql {
99
height: 100vh;
1010
}
11+
12+
#graphiql .graphiql-container .topBar {
13+
background: none;
14+
height: 70px;
15+
box-sizing: border-box;
16+
}
17+
18+
#graphiql .graphiql-container .docExplorerShow {
19+
background: none;
20+
}
21+
22+
#graphiql .graphiql-container .title span {
23+
padding-left: 10px;
24+
}
25+
26+
#graphiql .graphiql-container .title {
27+
color: #85cdd4;
28+
display: flex;
29+
align-items: center;
30+
}
31+
32+
#graphiql .graphiql-container .title:before {
33+
content: "";
34+
width: 185px;
35+
height: 50px;
36+
background: url("./logo-header.svg") no-repeat;
37+
vertical-align: middle;
38+
border-right: 1px solid white;
39+
}
40+
41+
#graphiql .graphiql-container .doc-explorer-title-bar, #graphiql .graphiql-container .history-title-bar {
42+
background: #3CAAB5;
43+
height: 69px;
44+
display: flex;
45+
align-items: center;
46+
padding: 0;
47+
}
48+
49+
#graphiql .graphiql-container .docExplorerHide {
50+
color: white;
51+
margin: 0;
52+
}
53+
54+
#graphiql .graphiql-container .doc-explorer-title, #graphiql .graphiql-container .history-title {
55+
text-transform: uppercase;
56+
color: white;
57+
}
58+
59+
#graphiql .graphiql-container .topBarWrap {
60+
background-color: #288690;
61+
}
62+
63+
#graphiql .graphiql-container .history-contents, #graphiql .graphiql-container .doc-explorer-contents {
64+
top: 69px;
65+
box-sizing: border-box;
66+
}
67+
68+
#graphiql .graphiql-container .execute-button-wrap {
69+
flex: 1;
70+
}
71+
72+
#graphiql .graphiql-container .execute-button {
73+
background: white;
74+
box-shadow: none;
75+
border: 1px solid #85cdd4;
76+
}
77+
78+
#graphiql .graphiql-container .docExplorerShow {
79+
color: white;
80+
text-transform: uppercase;
81+
}
82+
83+
#graphiql .graphiql-container .docExplorerShow:before {
84+
border-left: 2px solid #85cdd4;
85+
border-top: 2px solid #85cdd4;
86+
}
87+
88+
#graphiql .graphiql-container .field-name, #graphiql .cm-property {
89+
color: #28858f;
90+
}
91+
92+
#graphiql .graphiql-container .doc-explorer-back {
93+
color: #294e52;
94+
}
95+
96+
#graphiql .graphiql-container .doc-explorer-back:before {
97+
border-left: 2px solid #294e52;
98+
border-top: 2px solid #294e52;
99+
}
100+
101+
#graphiql .graphiql-container .toolbar-button {
102+
padding: 10px;
103+
border-radius: 5px;
104+
box-shadow: none;
105+
border: 1px solid #85cdd5;
106+
background: white;
107+
}
108+
109+
#graphiql .graphiql-container .execute-options>li.selected,
110+
#graphiql .graphiql-container .toolbar-menu-items>li.hover,
111+
#graphiql.graphiql-container .toolbar-menu-items>li:active,
112+
#graphiql .graphiql-container .toolbar-menu-items>li:hover,
113+
#graphiql.graphiql-container .toolbar-select-options>li.hover,
114+
#graphiql .graphiql-container .toolbar-select-options>li:active,
115+
#graphiql .graphiql-container .toolbar-select-options>li:hover,
116+
#graphiql .graphiql-container .history-contents>p:hover,
117+
#graphiql .graphiql-container .history-contents>p:active {
118+
background: #288690;
119+
}

0 commit comments

Comments
 (0)