-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinline_style_15.css
More file actions
349 lines (150 loc) · 3.98 KB
/
inline_style_15.css
File metadata and controls
349 lines (150 loc) · 3.98 KB
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
.card-book {
width: 100%;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
height: 85vh;
}
.container-t {
padding-left: 90px;
padding-right: 90px;
/* Add padding inside the card to avoid overflow */
flex: 1;
display: flex;
flex-direction: column;
font-family: Arial, sans-serif; /* Set font-family */
position: relative; /* For positioning desktop buttons */
overflow: hidden;
}
.book {
flex: 1;
overflow-y: auto;
padding: 20px;
box-sizing: border-box;
position: relative;
}
.page {
display: none;
}
.page.active {
display: block;
}
.page h2 {
margin-top: 0;
color: #333;
}
.page p {
line-height: 1.6;
color: #555;
}
.page ul {
list-style-type: disc;
padding-left: 20px;
}
.page ul li {
margin-bottom: 10px;
}
.navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #f8f9fa;
border-top: 1px solid #ddd;
flex-shrink: 0;
position: sticky;
bottom: 0;
z-index: 10; /* Ensure navigation is always on top */
}
.nav-btn {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
}
.nav-btn:hover {
background-color: #0056b3;
}
.nav-btn:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.pagination {
display: flex;
gap: 5px;
flex-wrap: wrap;
justify-content: center;
}
.pagination button {
background-color: #007bff;
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 14px;
}
.pagination button.active {
background-color: #0056b3;
}
.desktop-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 123, 255, 0.8);
color: #fff;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.desktop-nav.prev {
left: 50px; /* Position 50px from the left */
}
.desktop-nav.next {
right: 50px; /* Position 50px from the right */
}
.desktop-nav:hover {
background-color: rgba(0, 86, 179, 0.8);
}
@media (max-width: 768px) {
.card-book {
height: 100vh;
width: 100%;
border-radius: 0;
margin: 0; /* Remove margin on mobile */
}
.container-t {
margin: 0; /* No margin on mobile */
padding: 20px; /* Adjust padding on mobile */
}
.book {
padding: 10px; /* Adjust padding for mobile */
}
.nav-btn {
padding: 8px 16px;
font-size: 14px;
}
.pagination button {
padding: 4px 8px;
font-size: 12px;
}
.desktop-nav {
display: none; /* Hide desktop nav buttons on mobile */
}
}