summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-09-16 22:14:34 +0200
committerJonas Smedegaard <dr@jones.dk>2017-09-16 22:14:40 +0200
commit087441628ffaa0ebfd01e4a9f163bcca29cd6f80 (patch)
tree23da72d9791957895b792498df5d5178dbc82397 /css
parent4272ebc5205e2b63e39c5e8207a632763f32f973 (diff)
Use transform-origin (not translate()), and drop vendor prefixes. Thanks to Jorrit at <http://web.archive.org/web/20120807050641/http://natbat.net:80/2009/May/21/pocketbooks/#c7385>.
Diffstat (limited to 'css')
-rw-r--r--css/print.css11
1 files changed, 4 insertions, 7 deletions
diff --git a/css/print.css b/css/print.css
index 858331e..c63e4c2 100644
--- a/css/print.css
+++ b/css/print.css
@@ -17,10 +17,8 @@
#page8,
#page7,
#page6 {
- -webkit-transform: translate(64.5px, -64.5px) rotate(-90deg);
- -moz-transform: translate(64.5px, -64.5px) rotate(-90deg);
- transform: translate(64.5px, -64.5px) rotate(-90deg);
- /*-webkit-transform:rotate(90deg) scale(0.6) skew(-23deg);*/
+ transform: rotate(-90deg);
+ transform-origin: 50% 120.5px;
}
/* rotated right */
@@ -28,9 +26,8 @@
#page3,
#page4,
#page5 {
- -webkit-transform: translate(-64.5px, -64.5px) rotate(90deg);
- -moz-transform: translate(-64.5px, -64.5px) rotate(90deg);
- transform: translate(-64.5px, -64.5px) rotate(90deg);
+ transform: rotate(90deg);
+ transform-origin: 50% 120.5px;
}
/* cover */
#page1 {