summaryrefslogtreecommitdiff
path: root/reader.css
blob: 76cfe4f3b5e47a46909d9a5ac82307157ada9be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@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;
}
#left .top,
#right .top,
#left .bottom,
#right .bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}
#left .top,
#right .top {
  height: 25%;
}
#left .bottom,
#right .bottom {
  height: 75%;
}
#left .separator,
#right .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,
body.dark #reader {
  background: #333;
}
body.dark #left .glyphicon,
body.dark #right .glyphicon {
  color: white;
}