summaryrefslogtreecommitdiff
path: root/reader.less
blob: 956c811fb219a1bf2787cb7fdabb1dd3e4adda50 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@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;
	}
}