-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathontologyCards.css
More file actions
339 lines (290 loc) · 7.18 KB
/
ontologyCards.css
File metadata and controls
339 lines (290 loc) · 7.18 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
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
body, h1, p, input, div {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(145deg, #f5f5f5, #f5f5f5); /* Gradient background */
color: #ffffff; /* Default text color */
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh; /* Ensure the body takes up the full height of the viewport */
}
main {
flex: 1;
background: linear-gradient(145deg, #f5f5f5, #f5f5f5); /* Same gradient as body */
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
border-radius: 15px;
max-width: 1200px;
margin: 20px auto; /* Center the content */
}
/* Header Ribbon - this is the same for all pages */
.header-ribbon {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background: #222;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
width: 100%; /* Full width */
position: sticky; /* Sticky at the top */
top: 0; /* Fixed to the top */
z-index: 10; /* Ensures it stays above other elements */
max-width: 100%; /* Ensure header stays within screen width */
box-sizing: border-box; /* Prevents width overflow from padding */
overflow: hidden; /* Prevents overflow */
}
/* EC3 Header Logo */
.logo img {
height: 40px; /* Adjust the size of your logo */
width: auto;
transition: transform 0.3s;
}
.logo img:hover {
transform: scale(1.1);
}
/*Last fix*/
.logo {
align-items: center;
display: flex;
gap: 10px;
}
.logo a {
color: #f7a11b; /* Match orange nav links */
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
font-size: 20px; /* larger than nav size */
}
.logo a:hover {
color: #e69518; /* Hover effect same as nav */
}
.logo a:visited {
color: #f7a11b !important;}
/* Navigation Menu - this is the same for all pages */
.nav ul {
list-style: none;
display: flex;
gap: 15px;
margin: 0;
}
.nav ul li a {
color: #f7a11b;
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
}
.nav ul li a:hover {
color: #e69518;
}
/* Search and Primary Domain Buttons */
#search-and-buttons {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
gap: 20px;
}
/* Search Box */
#search-container {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px;
border-radius: 10px;
}
#searchInput {
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ccc;
}
#searchButton {
background-color: #ff69b4; /* Pink button */
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
/* Primary Domain Buttons */
#primary-domains {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
.primary-domain-btn {
background-color: transparent;
border: 2px solid #333;
color: #333;
padding: 10px 20px;
font-size: 14px;
font-weight: bold;
text-align: center;
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
.primary-domain-btn:hover {
background-color: #333;
color: white;
}
.primary-domain-btn:focus, #searchButton:focus {
outline: none;
}
/* Ontology Cards Container */
#ontology-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Show 3 cards per row */
gap: 20px; /* Space between cards */
padding: 20px;
justify-items: center;
}
/* Individual Cards */
.card {
background-color: #f8f8f8;
border-radius: 12px;
overflow: hidden;
width: 100%; /* Ensures consistent width for each card */
max-width: 400px; /* Set a maximum width for cards */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
transition: transform 0.3s ease;
text-align: center;
}
.card:hover {
transform: translateY(-5px); /* Hover effect */
}
.card .media {
background-color: white;
height: 180px; /* Set height for image */
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 20px;
font-weight: bold;
}
.card .media img {
max-width: 100%; /* Ensure image doesn't exceed container width */
height: 100%; /* Ensure the image fills the space */
object-fit: cover; /* Ensure the image fits the area without distortion */
}
/* Content Section for Each Ontology Card*/
.card .content {
padding: 20px;
}
.card .name {
font-size: 20px; /* Larger font for Name */
font-weight: bold;
color: #282828;
margin-bottom: 5px;
text-align: left;
}
.card .acronym {
font-size: 16px; /* Smaller font for Acronym */
font-weight: 300; /* Lighter weight */
color: #9F9F9F;
margin-bottom: 15px;
text-align: left;
text-transform: uppercase;
}
.card .details {
font-size: 12px; /* Standard font size for details */
color: #444;
margin-bottom: 10px;
text-align: left;
}
.card .details span {
display: block;
margin-bottom: 5px;
}
/* Buttons Section but only for inside the Ontology Cards */
.card .buttons {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.card .buttons a,
.card .buttons button {
background-color: #2D2D2D; /* Dark color for the buttons */
color: white;
border: none;
padding: 8px 15px;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease;
width: 45%; /* Button width */
text-align: left;
font-size: 12px;
}
.card .buttons a:hover,
.card .buttons button:hover {
background-color: #2D2D2D; /* Darker color on hover */
}
/* Footer - this is the same for all pages */
.footer {
text-align: center;
margin-top: auto;
padding: 20px 0;
background: #111;
font-size: 0.9rem;
color: #ccc;
}
.footer .social-icons {
margin-top: 10px;
}
.footer .social-icons a {
display: inline-block;
margin: 0 10px;
}
.footer .social-icons img {
width: 20px;
height: 20px;
transition: transform 0.3s;
}
.footer .social-icons img:hover {
transform: scale(1.2);
}
/* Style for social icons */
.social-icons {
display: flex;
gap: 15px; /* Space between icons */
justify-content: center; /* Center the icons */
margin-top: 15px;
}
.social-icons a {
display: inline-block;
width: 40px;
height: 40px;
background-color: white; /* White background behind the icons */
border-radius: 50%; /* Make the background circular */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
overflow: hidden; /* Ensure the icon fits inside the background */
text-align: center;
line-height: 40px; /* Center-align the image vertically */
}
.social-icons img {
width: 60%; /* Adjust the size of the image */
height: 60%;
object-fit: contain; /* Ensure the icon maintains its aspect ratio */
vertical-align: middle;
}
/* This is the last change in this file*/
/* make the entire card is clickable */
.card-link {
display: block;
text-decoration: none;
color: inherit;
}
.card-link:hover {
transform: translateY(-5px);
cursor: pointer;
}