mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-25 11:52:39 +00:00
Add default brew page size to brewRenderer.less, so all pages have a fallback size when switching between themes and renderers. Avoids losing the scroll position on a page caused by out-of-view pages losing their size, especially on long brews where recalculating page layout can take a half second.
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
@import (multiple, less) 'shared/naturalcrit/styles/reset.less';
|
|
|
|
.brewRenderer {
|
|
will-change : transform;
|
|
overflow-y : scroll;
|
|
.pages {
|
|
margin : 30px 0px;
|
|
& > .page {
|
|
width : 215.9mm;
|
|
height : 279.4mm;
|
|
margin-right : auto;
|
|
margin-bottom : 30px;
|
|
margin-left : auto;
|
|
box-shadow : 1px 4px 14px #000000;
|
|
}
|
|
}
|
|
}
|
|
.pane { position : relative; }
|
|
.pageInfo {
|
|
position : absolute;
|
|
right : 17px;
|
|
bottom : 0;
|
|
z-index : 1000;
|
|
font-size : 10px;
|
|
font-weight : 800;
|
|
color : white;
|
|
background-color : #333333;
|
|
div {
|
|
display : inline-block;
|
|
padding : 8px 10px;
|
|
&:not(:last-child) { border-right : 1px solid #666666; }
|
|
}
|
|
}
|
|
.ppr_msg {
|
|
position : absolute;
|
|
bottom : 0;
|
|
left : 0px;
|
|
z-index : 1000;
|
|
padding : 8px 10px;
|
|
font-size : 10px;
|
|
font-weight : 800;
|
|
color : white;
|
|
background-color : #333333;
|
|
}
|