-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
51 deletions.
There are no files selected for viewing
85 changes: 34 additions & 51 deletions
85
core/deployment/src/main/resources/META-INF/branding/smallrye-graphql-ui-graphiql.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,51 @@ | ||
body { | ||
height: 100%; | ||
margin: 0 !important; | ||
width: 100%; | ||
overflow: hidden; | ||
box-sizing: border-box; | ||
margin: 0; | ||
} | ||
|
||
#graphiql { | ||
height: 100vh; | ||
} | ||
|
||
#graphiql .topBar{ | ||
background:#343a40; | ||
} | ||
|
||
#graphiql .execute-button { | ||
box-shadow:unset; | ||
background: #4695eb; | ||
} | ||
|
||
#graphiql .toolbar-button { | ||
padding-top: 12px !important; | ||
box-shadow:unset; | ||
background: transparent; | ||
color: #9a9da0; | ||
.graphiql-container, .CodeMirror-info, .CodeMirror-lint-tooltip, reach-portal { | ||
--color-primary: 211, 80%, 60% !important; | ||
} | ||
|
||
#graphiql .docExplorerShow { | ||
background: #4695eb; | ||
color: white; | ||
@media (prefers-color-scheme: dark) { | ||
body:not(.graphiql-light) .graphiql-container,body:not(.graphiql-light) .CodeMirror-info,body:not(.graphiql-light) .CodeMirror-lint-tooltip,body:not(.graphiql-light) reach-portal { | ||
--color-base: 210, 10%, 23% !important; | ||
} | ||
} | ||
|
||
#graphiql .docExplorerWrap { | ||
color: black; | ||
} | ||
#graphiql .docExplorerHide{ | ||
color: black; | ||
} | ||
|
||
#graphiql .topBar { | ||
padding-bottom: 12px !important; | ||
padding-top: 12px !important; | ||
body.graphiql-dark .graphiql-container, | ||
body.graphiql-dark .CodeMirror-info, | ||
body.graphiql-dark .CodeMirror-lint-tooltip, | ||
body.graphiql-dark reach-portal { | ||
--color-base: 210, 10%, 23% !important; | ||
} | ||
|
||
#graphQLUiTitleLink::after { | ||
content: "GraphQL UI"; | ||
#graphiql { | ||
height: 100vh; | ||
} | ||
|
||
#graphQLUiTitleLink { | ||
#graphQLUiLogoLink { | ||
display: flex; | ||
align-items:center; | ||
color: white; | ||
text-decoration: unset; | ||
font-size: 1.25rem; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | ||
justify-content: center; | ||
position: relative; | ||
} | ||
|
||
#graphQLUiLogoLink img { | ||
border-right: 1px solid darkgrey; | ||
padding-right: 10px; | ||
margin-right: 10px; | ||
height: 30px; | ||
/* CODE BELLOW IS FOR MAKING THE EDGES IN THE QUARKUS LOGO NON-TRANSPARENT*/ | ||
#graphQLUiLogoLink::before { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
top: 45%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
border-radius: 50%; | ||
padding: 8px; | ||
background-color: hsl(210, 10%, 23%); | ||
z-index: 0; | ||
} | ||
|
||
.graphiql-container .title { | ||
display: flex; | ||
#graphQLUiLogoLink img { | ||
display: block; | ||
position: relative; | ||
z-index: 1; /* Set z-index to 1 to position it in front of the ::before pseudo-element */ | ||
margin: 0 auto; | ||
} |