mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
59 lines
1.4 KiB
CSS
59 lines
1.4 KiB
CSS
/* TODO: May break up into component local CSS. Pending future discussions by
|
|
* React component group on how to best handle CSS. */
|
|
|
|
html, body {
|
|
margin: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
/* Only allow horizontal scrolling when more viewports are added */
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
#app {
|
|
height: 100%;
|
|
/* Center the viewports container */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
#viewports {
|
|
/* Snap to the top of the app when there isn't enough vertical space anymore
|
|
to center the viewports (so we don't loose the toolbar) */
|
|
position: sticky;
|
|
top: 0;
|
|
/* Make sure left-most viewport is visible when there's horizontal overflow.
|
|
That is, when the horizontal space become smaller than the viewports and a
|
|
scrollbar appears, then the first viewport will still be visible */
|
|
left: 0;
|
|
/* Individual viewports are inline elements, make sure they stay on a single
|
|
line */
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/**
|
|
* Viewport Container
|
|
*/
|
|
|
|
.viewport {
|
|
display: inline-block;
|
|
/* Align all viewports to the top */
|
|
vertical-align: top;
|
|
border: 1px solid var(--theme-splitter-color);
|
|
box-shadow: 0 4px 4px 0 rgba(155, 155, 155, 0.26);
|
|
}
|
|
|
|
.viewport-header {
|
|
background-color: var(--theme-toolbar-background);
|
|
border-bottom: 1px solid var(--theme-splitter-color);
|
|
color: var(--theme-body-color-alt);
|
|
height: 16px;
|
|
}
|
|
|
|
.browser {
|
|
display: block;
|
|
border: 0;
|
|
}
|