PortableMag/magazine.css
Alex A. Naanou 192b0ee5cd done basic CSS layout, animations, navigation and zooming...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2013-01-21 03:32:28 +04:00

101 lines
1.7 KiB
CSS
Executable File

/* all elements that will behave like a page */
.page {
/* XXX make this browser-sized... */
display: inline-block;
vertical-align: bottom;
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: 800px;
height: 600px;
/* change to relative units... */
margin-top: -300px;
font-size: 12px;
}
.current.page {
}
/* general layout */
.viewer {
/* this makes the magazine behave like a ribbon */
width: 100%;
height: 100%;
overflow: hidden;
white-space: nowrap;
font-size: 0px;
background: gray;
}
.scaler {
position: relative;
overflow: visible;
-webkit-transform: scale(1);
-moz-transform: scale(1);
-o-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
-ms-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.aligner {
position: relative;
left: 50%;
height: 100%;
}
.magazine {
position: relative;
display: inline-block;
vertical-align: bottom;
top: 50%;
/* change to relative units... */
margin-left: -400px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
-ms-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.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;
}