Skip to content

Commit 69990de

Browse files
commit
1 parent 1847dba commit 69990de

File tree

1 file changed

+110
-64
lines changed

1 file changed

+110
-64
lines changed

bible/styles.css

Lines changed: 110 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,46 @@
11
/* Base Reset */
22
* {
3-
box-sizing: border-box;
43
margin: 0;
54
padding: 0;
5+
box-sizing: border-box;
6+
}
7+
8+
html {
9+
scroll-behavior: smooth;
610
}
711

12+
/* Variables */
813
:root {
914
--sidebar-width: 260px;
10-
--primary: #2c3e50;
11-
--accent: #3498db;
15+
--primary-color: #2c3e50;
16+
--accent-color: #3498db;
17+
--text-color: #333;
18+
--bg-color: #f8f9fa;
1219
}
1320

14-
/* Mobile First Styles */
21+
/* Mobile First Approach */
1522
body {
1623
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
17-
line-height: 1.5;
24+
line-height: 1.6;
25+
color: var(--text-color);
26+
background-color: var(--bg-color);
1827
-webkit-tap-highlight-color: transparent;
1928
}
2029

21-
@media (max-width: 767px) {
22-
.main-content {
23-
padding-top: 20px !important;
24-
}
25-
26-
#mobile-menu {
27-
top: 4px;
28-
left: 4px;
29-
padding: 6px 12px;
30-
}
31-
}
32-
3330
#mobile-menu {
3431
display: block;
3532
position: fixed;
3633
top: 12px;
3734
left: 12px;
3835
z-index: 1001;
3936
font-size: 24px;
40-
background: var(--primary);
37+
background: var(--primary-color);
4138
color: white;
4239
border: none;
4340
padding: 8px 16px;
4441
border-radius: 4px;
4542
cursor: pointer;
43+
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
4644
}
4745

4846
.container {
@@ -51,101 +49,97 @@ body {
5149
min-height: 100vh;
5250
}
5351

52+
/* Sidebar Styles */
5453
.sidebar {
5554
position: fixed;
5655
left: -100%;
57-
top: 0;
5856
width: 85%;
5957
max-width: var(--sidebar-width);
6058
height: 100%;
61-
background: #f8f9fa;
62-
overflow-y: auto;
59+
background: white;
60+
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
6361
transition: left 0.3s ease;
6462
z-index: 1000;
6563
padding: 20px 15px;
64+
overflow-y: auto;
65+
}
66+
67+
.sidebar.active {
68+
left: 0;
6669
}
6770

71+
/* Main Content Area */
6872
.main-content {
6973
width: 100%;
7074
padding: 70px 15px 20px;
7175
}
7276

73-
/* Chapter Navigation */
74-
.chapter-nav {
75-
display: flex;
77+
#navigation {
78+
display: none;
7679
gap: 8px;
7780
margin-bottom: 20px;
78-
width: 100%;
81+
align-items: center;
7982
}
8083

81-
.chapters-wrapper {
82-
flex: 1;
83-
min-width: 0;
84-
}
85-
86-
.chapter-numbers {
84+
#chapter-numbers {
8785
display: flex;
8886
gap: 6px;
8987
overflow-x: auto;
9088
padding-bottom: 5px;
9189
-webkit-overflow-scrolling: touch;
9290
}
9391

94-
#prevChapter,
95-
#nextChapter {
92+
#prevChapter, #nextChapter {
9693
flex-shrink: 0;
97-
padding: 12px;
94+
padding: 12px 16px;
9895
font-size: 1.1em;
99-
background: var(--primary);
96+
background: var(--primary-color);
10097
color: white;
10198
border: none;
10299
border-radius: 4px;
103-
min-width: 48px;
104-
}
105-
106-
/* Desktop Styles */
107-
@media (min-width: 768px) {
108-
#mobile-menu {
109-
display: none;
110-
}
111-
112-
.container {
113-
flex-direction: row;
114-
padding-left: var(--sidebar-width);
115-
}
116-
117-
.sidebar {
118-
left: 0;
119-
width: var(--sidebar-width);
120-
height: auto;
121-
}
122-
123-
.main-content {
124-
width: 100%;
125-
padding: 30px 40px;
126-
}
100+
cursor: pointer;
127101
}
128102

129-
/* Common Elements */
130103
.chapter-btn {
131104
flex-shrink: 0;
132105
padding: 12px 16px;
133106
background: white;
134-
border: 1px solid #eee;
107+
border: 1px solid #ddd;
135108
border-radius: 4px;
136109
cursor: pointer;
110+
transition: all 0.2s;
111+
}
112+
113+
.chapter-btn.active {
114+
background: var(--accent-color);
115+
color: white;
116+
border-color: var(--accent-color);
117+
}
118+
119+
/* Book List */
120+
#book-list {
121+
display: flex;
122+
flex-direction: column;
123+
gap: 8px;
137124
}
138125

139126
#book-list button {
140-
display: block;
141-
width: 100%;
142127
padding: 15px;
143-
margin: 8px 0;
144128
background: white;
145129
border: 1px solid #eee;
146130
border-radius: 4px;
147131
text-align: left;
148132
cursor: pointer;
133+
transition: all 0.2s;
134+
}
135+
136+
#book-list button:hover {
137+
background: #f8f8f8;
138+
}
139+
140+
/* Verses Display */
141+
#verses {
142+
font-size: 1.1em;
149143
}
150144

151145
#verses p {
@@ -154,4 +148,56 @@ body {
154148
background: white;
155149
border-radius: 4px;
156150
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
151+
}
152+
153+
.error {
154+
color: #dc3545;
155+
padding: 15px;
156+
background: #ffe6e6;
157+
border-radius: 4px;
158+
}
159+
160+
/* Desktop Styles */
161+
@media (min-width: 768px) {
162+
#mobile-menu {
163+
display: none;
164+
}
165+
166+
.container {
167+
flex-direction: row;
168+
padding-left: var(--sidebar-width);
169+
}
170+
171+
.sidebar {
172+
left: 0;
173+
width: var(--sidebar-width);
174+
box-shadow: none;
175+
border-right: 1px solid #eee;
176+
}
177+
178+
.main-content {
179+
width: calc(100% - var(--sidebar-width));
180+
padding: 30px 40px;
181+
margin-top: 0;
182+
}
183+
184+
#navigation {
185+
gap: 12px;
186+
}
187+
188+
#chapter-numbers {
189+
gap: 8px;
190+
}
191+
}
192+
193+
/* Firefox Android Specific Fixes */
194+
@-moz-document url-prefix() {
195+
#chapter-numbers {
196+
scrollbar-width: thin;
197+
scrollbar-color: var(--accent-color) transparent;
198+
}
199+
200+
#book-list button {
201+
padding: 12px;
202+
}
157203
}

0 commit comments

Comments
 (0)