$w = $this->book->parametres->width . 'px';\r
\r
$navTop = ($this->book->parametres->height - 40 - 100) / 2;\r
- $res[] = '.portrait #pages,.portrait .doublePage.page,.texts{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';\r
+ $res[] = '.portrait #pages,.portrait .doublePage.page,.texts,.page,.background{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';\r
+ $res[] = '.background{background-size:' . $w . 'px ' . $h . 'px;}';\r
$res[] = '.doublePage,#pages{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';\r
$res[] = '.page.right{left:' . $w . '}';\r
\r
- foreach (self::$resolutions as $r) {\r
- $wb = round(($this->book->parametres->width * $r) / 72, 2) . 'px';\r
- $hb = round(($this->book->parametres->height * $r) / 72, 2) . 'px';\r
- $s = 72 / $r;\r
-\r
- $scale = '';\r
- if ($s != 1) {\r
- $scale = self::writeCSSUA('transform', 'scale(' . $s . ')');\r
- }\r
-\r
- $res[] = '.background.r' . $r . '{width:' . $wb . ';height:' . $hb . ';' . $scale . '}';\r
- }\r
-\r
foreach ($this->cssColor as $color => $index) {\r
$res[] = '.c' . $index . '{color:#' . $color . '}';\r
}\r