mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
fix: codemirror styling updates (#3439)
This commit is contained in:
parent
c4492b5d94
commit
59108472a2
@ -26,6 +26,12 @@ const StyledWrapper = styled.div`
|
|||||||
|
|
||||||
.CodeMirror-dialog {
|
.CodeMirror-dialog {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
input {
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid #d3d6db;
|
||||||
|
outline: none;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-results-count {
|
#search-results-count {
|
||||||
@ -82,6 +88,14 @@ const StyledWrapper = styled.div`
|
|||||||
.CodeMirror-search-hint {
|
.CodeMirror-search-hint {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cm-s-default span.cm-property {
|
||||||
|
color: #1f61a0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-default span.cm-variable {
|
||||||
|
color: #397d13 !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default StyledWrapper;
|
export default StyledWrapper;
|
||||||
|
@ -54,6 +54,14 @@ const StyledWrapper = styled.div`
|
|||||||
.CodeMirror-search-hint {
|
.CodeMirror-search-hint {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cm-s-default span.cm-property {
|
||||||
|
color: #1f61a0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-default span.cm-variable {
|
||||||
|
color: #397d13 !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default StyledWrapper;
|
export default StyledWrapper;
|
||||||
|
@ -233,7 +233,7 @@ const GlobalStyle = createGlobalStyle`
|
|||||||
}
|
}
|
||||||
|
|
||||||
.CodeMirror-hint-active {
|
.CodeMirror-hint-active {
|
||||||
background: #89f !important;
|
background: #08f !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -23,18 +23,19 @@
|
|||||||
--color-method-options: rgb(52 52 52);
|
--color-method-options: rgb(52 52 52);
|
||||||
--color-method-head: rgb(52 52 52);
|
--color-method-head: rgb(52 52 52);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root,.graphiql-container,.CodeMirror-info,.CodeMirror-lint-tooltip,reach-portal {
|
:root,.graphiql-container,.CodeMirror-info,.CodeMirror-lint-tooltip,reach-portal {
|
||||||
/* Required CSS variables after upgrading GraphiQL from v1.5.9 to v2.4.7 */
|
/* Required CSS variables after upgrading GraphiQL from v1.5.9 to v2.4.7 */
|
||||||
/* Colors */
|
/* Colors */
|
||||||
--color-primary: 320, 95%, 43% !important;
|
--color-primary: 0, 0%, 0% !important;
|
||||||
--color-secondary: 242, 51%, 61% !important;
|
--color-secondary: 0, 0%, 0% !important;
|
||||||
--color-tertiary: 188, 100%, 36% !important;
|
--color-tertiary: 0, 0%, 0% !important;
|
||||||
--color-info: 208, 100%, 46% !important;
|
--color-info: 0, 0%, 0% !important;
|
||||||
--color-success: 158, 60%, 42% !important;
|
--color-success: 0, 0%, 0% !important;
|
||||||
--color-warning: 36, 100%, 41% !important;
|
--color-warning: 0, 0%, 0% !important;
|
||||||
--color-error: 13, 93%, 58% !important;
|
--color-error: 0, 0%, 0% !important;
|
||||||
--color-neutral: 219, 28%, 32% !important;
|
--color-neutral: 0, 0%, 0% !important;
|
||||||
--color-base: 219, 28%, 100% !important;
|
--color-base: 0, 0%, 100% !important;
|
||||||
|
|
||||||
/* Color alpha values */
|
/* Color alpha values */
|
||||||
--alpha-secondary: 0.76 !important;
|
--alpha-secondary: 0.76 !important;
|
||||||
@ -43,6 +44,59 @@
|
|||||||
--alpha-background-medium: 0.1 !important;
|
--alpha-background-medium: 0.1 !important;
|
||||||
--alpha-background-light: 0.07 !important;
|
--alpha-background-light: 0.07 !important;
|
||||||
|
|
||||||
|
--font-family: Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;
|
||||||
|
--font-family-mono: 'Fira Code', monospace;
|
||||||
|
--font-size-hint: .75rem;
|
||||||
|
--font-size-inline-code: .8125rem;
|
||||||
|
--font-size-body: .8rem;
|
||||||
|
--font-size-h4: 1.125rem;
|
||||||
|
--font-size-h3: 1.375rem;
|
||||||
|
--font-size-h2: 1.8125rem;
|
||||||
|
--font-weight-regular: 400;
|
||||||
|
--font-weight-medium: 500;
|
||||||
|
--line-height: 1.5;
|
||||||
|
--px-2: 0px;
|
||||||
|
--px-4: 0px;
|
||||||
|
--px-6: 2px;
|
||||||
|
--px-8: 8px;
|
||||||
|
--px-10: 10px;
|
||||||
|
--px-12: 12px;
|
||||||
|
--px-16: 16px;
|
||||||
|
--px-20: 20px;
|
||||||
|
--px-24: 24px;
|
||||||
|
--border-radius-2: 0px !important;
|
||||||
|
--border-radius-4: 0px !important;
|
||||||
|
--border-radius-8: 0px !important;
|
||||||
|
--border-radius-12: 0px !important;
|
||||||
|
--popover-box-shadow: 0px 0px 1px #000 !important;
|
||||||
|
--popover-border: none;
|
||||||
|
--sidebar-width: 60px;
|
||||||
|
--toolbar-width: 40px;
|
||||||
|
--session-header-height: 51px
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Required CSS variables after upgrading GraphiQL from v1.5.9 to v2.4.7 */
|
||||||
|
.graphiql-container, .CodeMirror-info, .CodeMirror-lint-tooltip, reach-portal {
|
||||||
|
/* General Colors */
|
||||||
|
--color-primary: 0, 0%, 0% !important;
|
||||||
|
--color-secondary: 0, 0%, 0% !important;
|
||||||
|
--color-tertiary: 0, 0%, 0% !important;
|
||||||
|
--color-info: 0, 0%, 0% !important;
|
||||||
|
--color-success: 0, 0%, 0% !important;
|
||||||
|
--color-warning: 0, 0%, 0% !important;
|
||||||
|
--color-error: 0, 0%, 0% !important;
|
||||||
|
--color-base: 0, 0%, 100% !important;
|
||||||
|
--color-neutral: 0, 0%, 60% !important;
|
||||||
|
|
||||||
|
/* Color alpha values */
|
||||||
|
--alpha-secondary: 0.76 !important;
|
||||||
|
--alpha-tertiary: 0.5 !important;
|
||||||
|
--alpha-background-heavy: 0.15 !important;
|
||||||
|
--alpha-background-medium: 0.1 !important;
|
||||||
|
--alpha-background-light: 0.07 !important;
|
||||||
|
|
||||||
|
--font-family: Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;
|
||||||
|
--font-family-mono: 'Fira Code', monospace;
|
||||||
--font-size-hint: .75rem;
|
--font-size-hint: .75rem;
|
||||||
--font-size-inline-code: .8125rem;
|
--font-size-inline-code: .8125rem;
|
||||||
--font-size-body: .9375rem;
|
--font-size-body: .9375rem;
|
||||||
@ -52,15 +106,15 @@
|
|||||||
--font-weight-regular: 400;
|
--font-weight-regular: 400;
|
||||||
--font-weight-medium: 500;
|
--font-weight-medium: 500;
|
||||||
--line-height: 1.5;
|
--line-height: 1.5;
|
||||||
--px-2: 2px;
|
--px-2: 2px !important;
|
||||||
--px-4: 4px;
|
--px-4: 4px !important;
|
||||||
--px-6: 6px;
|
--px-6: 6px !important;
|
||||||
--px-8: 8px;
|
--px-8: 8px !important;
|
||||||
--px-10: 10px;
|
--px-10: 10px !important;
|
||||||
--px-12: 12px;
|
--px-12: 12px !important;
|
||||||
--px-16: 16px;
|
--px-16: 16px !important;
|
||||||
--px-20: 20px;
|
--px-20: 20px !important;
|
||||||
--px-24: 24px;
|
--px-24: 24px !important;
|
||||||
--border-radius-2: 2px !important;
|
--border-radius-2: 2px !important;
|
||||||
--border-radius-4: 2px !important;
|
--border-radius-4: 2px !important;
|
||||||
--border-radius-8: 2px !important;
|
--border-radius-8: 2px !important;
|
||||||
@ -72,6 +126,11 @@
|
|||||||
--session-header-height: 51px
|
--session-header-height: 51px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.CodeMirror-dialog {
|
||||||
|
--px-4: 0px !important;
|
||||||
|
--px-12: 2px !important;
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user