summaryrefslogtreecommitdiff
path: root/reader.less
blob: bdfb8fafc9ab5356c131c4bd8d2f904bc2ba36ec (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
@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: 48px;
	bottom: 48px;
	width: 64px;
	z-index: 10;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.2;
}

#left {
	left: 0;
}

#right {
	right: 0;
}

::-webkit-scrollbar {
	width: 4px;
}

::-webkit-scrollbar-thumb {
	background-color: #337ab7;
}

::-webkit-scrollbar-track {
	background-color: #eee;
}