-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbook-style.css
254 lines (223 loc) · 7.49 KB
/
book-style.css
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
@font-face {
font-family: gutenberg;
src: url('gutenberg.ttf');
}
html{
font-family: gutenberg;
}
body {
background-image: url('cervantes_portrait.jpg');
background-attachment: fixed;
background-size: contain;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Just for Apple based browsers*/
display: flex;
justify-content: center;
align-items: center;
vertical-align: middle;
cursor: url(nib-cursor.png), auto;
}
/* Book container */
.cervantes-book {
transition: opacity 0.4s 0.2s;
perspective: 250vw;
}
/* Images inside the book */
.cervantes-book img{
display: flex;
height: 200px;
width: auto;
margin: auto;
border: 3px solid;
}
/* Pages container properties */
.pages {
margin-bottom: 0%;
margin-top: 15vh;
width: 70vw;
height: 100vh;
position: relative;
transform-style: preserve-3d;
backface-visibility: hidden;
}
/* Page properties */
.page {
width: 50%;
height: 90%;
max-width: auto;
max-height: 90%;
float: left;
user-select: none;
background-image: url(data:image/png;base64,i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
transform-origin: 0 0;
transition: transform 1.1s; /* Delay to flip a page */
backface-visibility: hidden;
transform-style: preserve-3d;
background-color: rgb(142, 103, 66);
}
/* Padding to all content except covers */
.page:not(hr, .front-cover, .back-cover) {
padding:20px;
}
/* Text and section properties on pages */
.page section{
margin: 20px;
}
.page p{
text-align: center;
color: #000000;
font-size: medium;
}
.page h1, h2,h3,h4{
text-align: center;
color: #000000;
font-size: xx-large;
}
/* References */
sup a{
text-decoration: none;
color: #000000;
}
/* Invisible page before real pages which allows the flipping */
.page:before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(226, 46, 46, 0);
transition: 0.7s;
z-index: 2;
}
/* Front cover text, overrides some of default styles defined previously */
.page:first-child section{
transform: translateY(50%);
}
.page:first-child h4{
font-size: 40px;
margin-bottom: -40px;
}
.page:first-child h1{
font-size: 80px;
}
.page:first-child p{
font-size: xx-large;
word-break: normal;
}
/* Front and back cover reddish edges */
.page:first-child,
.page:last-child{
background-color: rgb(94, 12, 12);
box-shadow: 0 0 35px 24px rgb(64, 5, 5) inset;
}
/* Pre-cover pages */
.page:nth-child(2), .page:nth-last-child(2){
background-color: rgb(94, 12, 12);
box-shadow: 0 0 35px 24px rgb(64, 5, 5) inset;
border:rgb(55, 3, 3) 4px solid;
}
figcaption{
text-align: center;
}
/* For pages on the right side of the book */
.page:nth-child(odd) {
pointer-events: all;
transform: rotateY(0deg);
right: 0;
border-radius: 0 4px 4px 0;
}
/* For pages on the left side of the book */
.cervantes-book .page:nth-child(even) {
border-radius: 4px 0 0 4px;
transform: rotateY(180deg);
transform-origin: 100% 0;
left: 0;
}
/* To flip pages to left */
.cervantes-book .page.flipped:nth-child(odd) {
pointer-events: none;
transform: rotateY(-180deg);
}
/* Book's inclination for a previous page, is 10 degrees to pretend a real book */
.cervantes-book .page.flipped:nth-child(even) {
pointer-events: all;
transform: rotateY(10deg);
}
/* Page's inclination for previous pages (even pages) when mouse is over the page */
.page.flipped:nth-child(even):hover {
transform: rotateY(20deg);
}
/* Same but for reversed, for next pages which are all odd */
.page:nth-child(odd):hover {
transform: rotateY(-20deg);
}
/* This is just pure frills, highlight pages on hovering except cover page */
.page:not(:first-child):hover.flipped:before {
background: rgba(255, 255, 255, 0.2);
}
.page:not(:first-child):hover:before {
background: rgba(255, 255, 255, 0.2);
}
/* Takes into account borders, padding and margin for every element */
*,*:before,*:after {
box-sizing: border-box;
}
/* Family tree table */
.family-table {
table-layout: fixed;
margin: 50px auto;
padding: auto;
border-spacing: 0;
border-style: groove;
border-width: 8px;
border-color: rgb(150, 97, 47);
text-align: center;
vertical-align: middle;
font-size: large;
}
.family-table td {
border-style: groove;
border-width: 4px;
overflow: hidden;
padding: 10px 5px;
word-break: normal;
}
.family-table th {
border-style: groove;
border-width: 4px;
font-weight: normal;
overflow: hidden;
padding: 10px 5px;
word-break: normal;
}
.family-table .tg-header {
border-color: inherit;
}
.family-table .tg-content {
border-color: inherit;
}
.family-table .tg-category {
border-color: inherit;
}
/* End of family tree table */
/* Positioning of page numbers */
.pageNumber{
position: absolute;
bottom: 5%;
right: 5%;
font-size: x-large;
}
/* Don Quixote back cover */
#back-cover-img {
display: flex;
position: absolute;
justify-content: center;
align-self: center;
width: 450px;
height: auto;
border: none;
transform: translate(25%, 20%);
}