-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
193 lines (166 loc) · 3.55 KB
/
Copy pathstyles.css
File metadata and controls
193 lines (166 loc) · 3.55 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1001;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
text-align: center;
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
.modal-content {
animation-name: zoom;
animation-duration: 0.6s;
}
@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
.publication-image {
cursor: pointer;
}
html {
scroll-behavior: smooth;
}
body {
padding-top: 60px; /* Adjust based on nav-bar height */
}
h2[id] {
scroll-margin-top: 70px; /* Offset for anchor links to avoid being hidden by nav bar */
}
.main-nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 1000;
padding: 0 20px;
box-sizing: border-box;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 60px; /* Set a fixed height */
max-width: 1000px; /* Optional: constrain width on large screens */
margin: 0 auto; /* Center the container */
}
.nav-left a, .nav-center a, .nav-right a {
text-decoration: none;
color: #333;
font-weight: bold;
padding: 5px 10px;
transition: color 0.3s;
white-space: nowrap; /* Prevent links from wrapping */
}
.nav-left a:hover, .nav-center a:hover, .nav-right a:hover {
color: #007bff;
}
.nav-left, .nav-right {
flex-shrink: 0; /* Prevent left/right from shrinking */
}
.nav-center {
display: flex;
gap: 20px;
overflow-x: auto; /* Allow scrolling on small screens */
}
/* Dropdown menu styles */
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
left: 0;
top: 100%;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
white-space: nowrap;
}
.dropdown-content a:hover {
background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
display: block;
}
/* Dropdown arrow */
.dropdown-arrow {
display: inline-block;
width: 0;
height: 0;
margin-left: 5px;
vertical-align: middle;
border-top: 4px solid #333;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
transition: transform 0.3s;
}
.dropdown:hover .dropdown-arrow {
transform: rotate(180deg);
}
.image-gallery {
display: flex;
flex-wrap: wrap;
gap: 15px;
justify-content: center;
align-items: flex-start; /* Align figures at the top */
padding: 10px 0;
}
.image-gallery figure {
margin: 0; /* Reset default figure margin */
text-align: center; /* Center the caption text */
}
.image-gallery img {
height: 150px; /* Set a fixed height for uniform look */
width: auto; /* Allow width to scale based on aspect ratio */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.2s;
display: block; /* To remove any extra space below the image */
}
.image-gallery img:hover {
transform: scale(1.05);
}
.image-gallery figcaption {
margin-top: 8px; /* Space between image and caption */
font-size: 0.9em;
color: #555;
}