@media (orientation: landscape) { .hidden-landscape { display: none; } } @media (orientation: portrait) { .hidden-portrait { display: none; } } .splash { z-index: 999; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: white; font-size: 21px; display: flex; align-items: center; justify-content: center; } #reader { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; overflow: hidden; } #reader.fit-width { overflow-y: auto; } #reader.fit-width .right-page, #reader.single-column .right-page { display: none ! important; } #reader.flip-columns .right-page { order: -1; } #reader.single-column img { margin: auto; } #reader.fit-width img { max-width: 100%; width: auto; margin: auto; } #reader.fit-size:not(.single-column) img.limit-width { max-width: 50%; } #reader.fit-size img { max-width: 100%; max-height: 100%; margin-top: auto; margin-bottom: auto; width: auto; height: auto; } #left, #right { position: absolute; top: 0px; bottom: 0px; width: 64px; z-index: 10; cursor: pointer; opacity: 0.2; display: flex; flex-direction: column; .top, .bottom { display: flex; align-items: center; justify-content: center; } .top { height : 25%; } .bottom { height : 75%; } .separator { margin : 0 24px; border-top-style: solid; border-top-width: 1px; border-top-color: #555; justify-self: center; } } #left { left: 0; } #right { right: 0; } ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-thumb { background-color: #337ab7; } ::-webkit-scrollbar-track { background-color: #eee; } body.dark { .splash, #reader { background : #333; } #left .glyphicon, #right .glyphicon { color : white; } }