$navTop = ($cssHeight - 40 - 100) / 2;
- $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.portrait #shadow,#shadow.single,.doublePage._3d{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
- $res[] = '.doublePage,#pages,#links,.landscape #shadow.double{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
+ $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.doublePage._3d,#shadow>div{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
+ $res[] = '.doublePage,#pages,#links{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
$res[] = '.landscape .doublePage._2d.axis_x.next{' . self::writeCSSUA('transform', 'translate3d(' . $w2 . ',0,0)') . '}';
$res[] = '.landscape .doublePage._2d.axis_x.prev{' . self::writeCSSUA('transform', 'translate3d(-' . $w2 . ',0,0)') . '}';
$res[] = '.portrait .doublePage._2d.axis_x.next{' . self::writeCSSUA('transform', 'translate3d(' . $w . ',0,0)') . '}';
$res[] = '.doublePage._3d{left:' . $w . ';}';
$res[] = '#links.right{left:-' . $w . ';}';
- $res[] = '.landscape #shadow.single.right{left: ' . $w . ';}';
- $res[] = '.landscape #shadow.single.right{left: ' . $w . ';}';
+ $res[] = '.landscape #shadow>div.right{left: ' . $w . ';}';
$res[] = '.landscape .page.right{left:' . $w . '}';
if ($this->theme->parametres->displayPageNumber) {
$res[] = '#pagesnumbers{top:' . $h . ';color:' . self::colorToCSS($this->theme->parametres->colorPageNumber) . '}';
$res[] = $shade;
// Search field
+ $searchColor=self::colorToCSS($this->theme->parametres->couleurS);
+ $searchBackColor=self::colorToCSS($this->theme->parametres->searchFieldColor);
$search = '#q{';
- $search.='color:' . self::colorToCSS($this->theme->parametres->couleurS) . ';';
- $search.='background-color:' . self::colorToCSS($this->theme->parametres->searchFieldColor) . ';';
+ $search.='color:' .$searchColor . ';';
+ $search.='background-color:' . $searchBackColor . ';';
if ($this->theme->parametres->searchShadeAlpha > 0) {
$search.=self::writeCSSUA('box-shadow', '1px 1px 4px rgba(0,0,0,' . ($this->theme->parametres->searchShadeAlpha / 100) . ')') . ' inset;';
}
$search.='}';
+ $search.='#searchHints,.hint{color:'.$searchColor.';background-color:'.$searchBackColor.';}';
+ $search.='.hint:hover{color:'.$searchBackColor.';background-color:'.$searchColor.';}';
+
$res[] = $search;
// Background
// Book shadow
$shadowColor = self::colorToCSS($this->theme->parametres->bookShadeColor);
if ($shadowColor != 'transparent') {
- $res[] = '#shadow{' . self::writeCSSUA('box-shadow', '0 0 20px ' . $shadowColor) . '}';
+ $res[] = '#shadow>div{' . self::writeCSSUA('box-shadow', '0 0 20px ' . $shadowColor) . '}';
}
// Links Styles