-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
156 lines (142 loc) · 5.09 KB
/
Copy pathstyle.css
File metadata and controls
156 lines (142 loc) · 5.09 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
:root {
--primary: #D32F2F; /* Deep Red */
--primary-dark: #8b0000;
--accent: #FFD700; /* Gold for stars */
--bg: #121212;
--surface: #1E1E1E;
--text: #ffffff;
--text-sec: #aaaaaa;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg); color: var(--text); overflow-x: hidden; }
/* Navbar */
.navbar {
background: var(--primary-dark);
height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.nav-left { display: flex; align-items: center; gap: 15px; }
.logo { font-weight: bold; font-size: 1.1rem; }
.nav-title { font-size: 0.9rem; color: var(--text-sec); }
/* Sidebar */
.sidebar {
height: 100%; width: 260px; position: fixed; top: 0; left: -260px;
background: var(--surface); z-index: 200; transition: 0.3s ease;
box-shadow: 4px 0 15px rgba(0,0,0,0.7);
}
.sidebar.active { left: 0; }
.sidebar-header { background: var(--primary); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.menu-item { padding: 15px 20px; border-bottom: 1px solid #333; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.menu-item:active { background: #333; }
.highlight { color: #64B5F6; }
#overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 150; display: none; }
/* Main Container */
.container { padding: 20px; max-width: 800px; margin: 0 auto; padding-bottom: 80px; }
.section-title { margin-bottom: 15px; border-left: 4px solid var(--primary); padding-left: 10px; }
/* Chapter List */
.chapter-card {
background: var(--surface);
margin-bottom: 15px;
border-radius: 12px;
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
border: 1px solid #333;
}
.card-left { flex: 1; }
.chap-id { color: var(--primary); font-size: 0.8rem; font-weight: 700; display: block; }
.chap-name { font-size: 1.1rem; margin-top: 4px; font-weight: 500; }
/* Star Icon */
.star-indicator {
color: var(--accent);
position: absolute;
top: 10px;
right: 40px;
font-size: 1rem;
display: none; /* Hidden by default */
}
.starred .star-indicator { display: block; }
/* 3 Dot Menu */
.menu-btn { padding: 10px; color: var(--text-sec); cursor: pointer; }
.dropdown {
position: absolute; right: 15px; top: 45px; background: #2C2C2C;
border-radius: 8px; z-index: 10; display: none; box-shadow: 0 5px 15px black;
min-width: 140px; overflow: hidden;
}
.dropdown.show { display: block; }
.dd-item { padding: 12px; border-bottom: 1px solid #444; font-size: 0.9rem; }
.dd-item:active { background: #444; }
/* Chapter Detail View */
.media-card {
background: var(--surface);
border-radius: 15px;
overflow: hidden;
margin-bottom: 20px;
box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.preview-box {
height: 150px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
}
.pdf-preview { background: linear-gradient(45deg, #1e3c72, #2a5298); }
.video-preview { background: linear-gradient(45deg, #8E0E00, #1F1C18); }
.preview-box span { font-size: 3rem; margin-bottom: 10px; }
.media-info { padding: 20px; text-align: center; }
.action-btn {
width: 100%; padding: 15px; border: none; border-radius: 50px;
font-size: 1rem; font-weight: bold; color: white; margin-top: 15px;
display: flex; align-items: center; justify-content: center; gap: 10px;
cursor: pointer;
}
.blue-btn { background: #1976D2; }
.red-btn { background: #D32F2F; }
.divider { border: 0; border-top: 1px solid #333; margin: 20px 0; }
/* Player View */
.player-container {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: black; z-index: 500; display: flex; flex-direction: column;
}
.player-controls {
padding: 10px; display: flex; align-items: center; justify-content: space-between;
background: rgba(20,20,20,0.9);
}
.control-icon { background: none; border: none; color: white; padding: 5px; }
iframe { flex: 1; width: 100%; border: none; }
/* Landscape Mode */
.landscape {
transform: rotate(90deg);
transform-origin: center;
width: 100vh !important;
height: 100vw !important;
position: fixed; top: 50%; left: 50%;
margin-left: -50vh; margin-top: -50vw;
}
/* Utilities */
.hidden { display: none !important; }
.modal {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.8); z-index: 1000; display: flex;
align-items: center; justify-content: center;
}
.modal-content {
background: var(--surface); padding: 25px; border-radius: 15px;
width: 85%; max-width: 400px; text-align: center; border: 1px solid var(--primary);
}
.close-modal-btn {
margin-top: 20px; background: transparent; border: 1px solid var(--primary);
color: var(--primary); padding: 8px 20px; border-radius: 20px;
}