-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.css
234 lines (203 loc) · 4.66 KB
/
archive.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
html {
scroll-behavior: smooth;
}
.layout {
width: 100%;
display: grid;
grid-template-columns: 0.5fr 4fr 1fr; /* Defines three columns */
grid-template-rows: auto 1fr auto; /* Defines header, main content, footer */
grid-template-areas:
"header header header"
"leftSide body rightSide"
"footer footer footer";
gap: 20px;
height: 100vh; /* Makes sure the layout spans the full height of the screen */
}
/* Header */
.header {
grid-area: header;
text-align: center;
padding: 15px;
background: #f8f9fa;
border-bottom: 2px solid #ddd;
}
.header h1 {
margin: 0;
font-size: 2.5em;
}
.header p {
margin: 5px 0 0;
font-size: 1.2em;
font-weight: normal;
color: #666;
}
/* Left Sidebar */
.leftSide {
grid-area: leftSide;
background: #f8f9fa;
padding: 10px;
border-right: 2px solid #ddd;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
width: 100%; /* Ensures full width within the grid column */
display: flex;
flex-direction: column;
font-size: 15px; /* Added font-size to make text smaller */
}
.leftSide ul {
list-style-type: none;
padding: 0;
}
.leftSide li {
margin: 5px 0;
}
.leftSide a {
text-decoration: none;
color: #007bff;
}
.leftSide a:hover {
text-decoration: underline;
}
/* Accordion Styles for Left Sidebar */
.accordion {
margin-top: 10px;
}
/* Each accordion item (year grouping) */
.accordion .accordion-item {
border-bottom: 1px solid #ddd;
margin-bottom: 5px;
}
/* Accordion buttons (for years) */
.accordion-button {
background-color: #f8f9fa; /* same as leftSide background */
color: #007bff;
padding: 8px 10px;
width: 100%;
border: none;
text-align: left;
font-size: 1em;
cursor: pointer;
outline: none;
transition: background-color 0.2s ease;
}
.accordion-button:hover,
.accordion-button.active {
background-color: #e2e6ea;
}
/* Accordion content defaults */
.accordion-content {
overflow: hidden;
transition: max-height 0.2s ease-out;
}
/* Sub-item container for months */
.accordion-subitem {
margin-left: 15px;
margin-top: 5px;
}
/* Sub-accordion buttons (for months) */
.accordion-subbutton {
background-color: #f8f9fa;
color: #007bff;
padding: 6px 10px;
width: 100%;
border: none;
text-align: left;
font-size: 0.95em;
cursor: pointer;
outline: none;
transition: background-color 0.2s ease;
}
.accordion-subbutton:hover,
.accordion-subbutton.active {
background-color: #e2e6ea;
}
/* Accordion subcontent defaults */
.accordion-subcontent {
padding-left: 15px;
margin-top: 5px;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
/* Default collapsed state */
.collapsed {
max-height: 0;
}
/* Open state for accordion panels */
.open {
max-height: 1000px !important; /* Adjust this value as needed */
}
/* Main Content */
.body {
grid-area: body;
padding: 20px;
width: 100%;
overflow-y: auto; /* Ensures scrolling if content is too large */
display: flex;
flex-direction: column;
}
.body h2 {
position: sticky;
top: 0;
background: white; /* Ensures the title is readable */
padding: 10px 10px;
z-index: 10; /* Ensures the title stays above other elements */
border-bottom: 2px solid #ddd;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
}
/* Sections */
.section {
position: relative;
margin-bottom: 2em; /* Optional: spacing between sections */
}
.section h2 {
position: sticky;
top: 0;
background: white;
padding: 10px;
border-bottom: 2px solid #ddd;
z-index: 1;
transition: all 0.3s ease-in-out;
scroll-margin-top: 20px; /* Adjust this value as needed */
}
/* Right Side - Left Blank */
.rightSide {
grid-area: rightSide;
position: relative;
background: transparent;
display: block;
}
/* Remove any images in the right side */
.fixed-image {
display: none;
}
/* Footer */
.footer {
grid-area: footer;
background: #ffffff;
padding: 10px;
text-align: center;
border-top: 2px solid #ddd;
}
/* Responsive Design */
@media (max-width: 768px) {
.layout {
grid-template-columns: 1fr 5fr; /* Only two columns on smaller screens */
grid-template-areas:
"header header"
"leftSide body"
"footer footer";
}
.rightSide {
display: none; /* Completely hide .rightSide on small screens */
}
.body {
width: 100%;
max-width: none;
}
.leftSide {
padding-right: 5px;
}
}