2013-01-20 16:59:14 +04:00
|
|
|
|
|
|
|
|
/* all elements that will behave like a page */
|
|
|
|
|
.cover, .page {
|
2013-01-20 17:17:06 +04:00
|
|
|
/* XXX make this browser-sized... */
|
2013-01-20 16:59:14 +04:00
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
|
2013-01-20 17:17:06 +04:00
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
|
|
/* XXX need these to be the same as the magazine, for some reason does not work...
|
|
|
|
|
* one way to go is to use a fixed page layout and scale things manually.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
height: 300px;
|
2013-01-20 16:59:14 +04:00
|
|
|
|
2013-01-20 17:17:06 +04:00
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
|
|
border: solid blue 1px;
|
2013-01-20 16:59:14 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* general layout */
|
|
|
|
|
|
|
|
|
|
.magazine {
|
|
|
|
|
/* this makes the magazine behave like a ribbon */
|
2013-01-20 17:17:06 +04:00
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2013-01-20 16:59:14 +04:00
|
|
|
overflow: visible;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
font-size: 0px;
|
|
|
|
|
|
|
|
|
|
background: gray;
|
2013-01-20 17:17:06 +04:00
|
|
|
|
|
|
|
|
border: solid blue 1px;
|
2013-01-20 16:59:14 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.magazine > .cover {
|
|
|
|
|
background: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.article {
|
|
|
|
|
width: auto;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
font-size: 0px;
|
|
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.article > .cover {
|
|
|
|
|
background: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page {
|
|
|
|
|
background: silver;
|
|
|
|
|
}
|
|
|
|
|
|