insomnia/packages/insomnia-app/app/ui/css/components/wrapper.less
Mike Ellan 643baafb99
Scroll support for unit testing (#3231)
Addressing unit testing scrolling regression.
2021-03-25 08:53:51 -04:00

193 lines
3.5 KiB
Plaintext

.wrapper {
background-color: var(--color-bg);
color: var(--color-font);
display: grid;
// These are set in JS
//grid-template-rows: ...;
//grid-template-columns: ...;
.filter-icon {
float: right;
margin-right: var(--padding-sm);
margin-top: -22px;
position: relative;
z-index: 1;
color: var(--hl-xl);
}
.btn-utility {
color: #fff;
background-color: var(--color-surprise);
}
.btn-create {
padding: var(--padding-sm) var(--padding-md);
}
.btn-utility-reverse {
color: var(--color-text);
background-color: var(--hl-xs);
border: none;
}
.btn-utility,
.btn-utility-reverse {
&:hover {
filter: brightness(0.8);
}
}
.btn-sync {
text-align: center;
border-radius: var(--radius-md);
font-size: var(--font-size-sm);
height: var(--line-height-xs);
display: flex !important;
flex-direction: row !important;
-webkit-box-align: center !important;
align-items: center !important;
padding-left: var(--padding-md);
padding-right: var(--padding-md);
}
height: 100%;
width: 100%;
@keyframes togglePill {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0);
}
}
.sidebar {
grid-column-start: 2;
grid-row-start: 2;
grid-row-end: span 3;
min-width: 0;
}
.drag {
grid-row-start: 2;
grid-row-end: span 3;
position: relative;
&.drag--pane-vertical {
display: none;
}
& > * {
//background-color: rgba(255, 0, 0, 0.5);
cursor: ew-resize;
position: absolute;
height: 100%;
z-index: 9;
width: var(--drag-width);
top: 0;
// More to the right so it doesn't cover scroll bars
left: calc((var(--drag-width) / 8) * -1);
}
}
.pane-one, .pane-two {
min-width: 0;
max-height:100%;
background: inherit;
border-left: 1px solid var(--hl-md);
background: var(--color-bg);
color: var(--color-font);
}
.pane-one {
grid-column-start: 4;
grid-row-start: 2;
grid-row-end: span 3;
}
.pane-two {
grid-column-start: 6;
grid-row-start: 2;
grid-row-end: span 3;
}
.app-header {
grid-column-start: 1;
grid-column-end: span 6;
grid-row-start: 1;
grid-row-end: span 1;
background: var(--color-bg);
}
.layout-body {
grid-column-start: 1;
grid-column-end: span 6;
grid-row-start: 2;
grid-row-end: span 3;
}
.onboarding {
grid-column-start: 1;
grid-column-end: span 6;
grid-row-start: 1;
grid-row-end: span 3;
}
}
.drag--sidebar {
grid-column-start: 3;
z-index: 1000;
grid-column-end: span 1;
}
.drag--pane-horizontal {
grid-column-start: 5;
grid-column-end: span 1;
}
.wrapper--vertical {
.pane-one {
grid-column-start: 4;
grid-column-end: span 3;
grid-row-start: 2;
grid-row-end: span 1;
}
.pane-two {
grid-column-start: 4;
grid-column-end: span 3;
grid-row-start: 4;
grid-row-end: span 1;
}
.drag--pane-horizontal {
display: none !important;
}
.drag--pane-vertical {
display: block !important;
grid-column-start: 4;
grid-column-end: span 3;
grid-row-start: 3;
grid-row-end: span 1;
& > * {
cursor: ns-resize;
height: var(--drag-width);
width: 100%;
left: 0;
// More to the right so it doesn't cover scroll bars
top: calc(var(--drag-width) / 2 * -1);
}
}
}
@media (max-width: 880px) {
.wrapper {
.wrapper--vertical();
}
}