mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-27 22:54:07 +00:00
50 lines
994 B
JavaScript
50 lines
994 B
JavaScript
import styled from 'styled-components';
|
|
|
|
const StyledWrapper = styled.div`
|
|
display: grid;
|
|
grid-template-columns: 100%;
|
|
grid-template-rows: ${(props) =>
|
|
props.queryFilterEnabled ? '1.25rem calc(100% - 3.5rem)' : '1.25rem calc(100% - 1.25rem)'};
|
|
|
|
/* This is a hack to force Codemirror to use all available space */
|
|
> div {
|
|
position: relative;
|
|
}
|
|
|
|
div.CodeMirror {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
div[role='tablist'] {
|
|
.active {
|
|
color: ${(props) => props.theme.colors.text.yellow};
|
|
}
|
|
}
|
|
|
|
.muted {
|
|
color: ${(props) => props.theme.colors.text.muted};
|
|
}
|
|
|
|
.response-filter {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
|
|
input {
|
|
border: ${(props) => props.theme.sidebar.search.border};
|
|
border-radius: 2px;
|
|
background-color: ${(props) => props.theme.sidebar.search.bg};
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default StyledWrapper;
|