Skip to content

Commit b987bc5

Browse files
authored
Update styles.css
1 parent 3768bdd commit b987bc5

File tree

1 file changed

+178
-1
lines changed

1 file changed

+178
-1
lines changed

styles.css

Lines changed: 178 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,178 @@
1-
/* css styles */
1+
/*-- scss:defaults --*/
2+
3+
/*-- scss:rules --*/
4+
/* Smooth scrolling */
5+
html {
6+
scroll-behavior: smooth;
7+
}
8+
9+
/* Fade-in animation */
10+
.fade-in {
11+
opacity: 0;
12+
transform: translateY(20px);
13+
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
14+
}
15+
16+
.fade-in.visible {
17+
opacity: 1;
18+
transform: translateY(0);
19+
}
20+
21+
/* Slide-in animations */
22+
.slide-in-left {
23+
opacity: 0;
24+
transform: translateX(-50px);
25+
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
26+
}
27+
28+
.slide-in-right {
29+
opacity: 0;
30+
transform: translateX(50px);
31+
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
32+
}
33+
34+
.slide-in-left.visible,
35+
.slide-in-right.visible {
36+
opacity: 1;
37+
transform: translateX(0);
38+
}
39+
40+
/* Subtle parallax effect */
41+
.hero-section {
42+
background-attachment: fixed;
43+
background-position: center;
44+
background-repeat: no-repeat;
45+
background-size: cover;
46+
transition: background-position 0.1s ease-out;
47+
}
48+
49+
/* Sticky navigation with smooth transition */
50+
.navbar {
51+
transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
52+
}
53+
54+
.navbar.scrolled {
55+
background-color: rgba(255, 255, 255, 0.95) !important;
56+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
57+
padding-top: 0.5rem !important;
58+
padding-bottom: 0.5rem !important;
59+
}
60+
/* Modern styling for the Culhane Lab website */
61+
62+
/* General styling */
63+
:root {
64+
--primary-color: #2c3e50;
65+
--secondary-color: #3498db;
66+
--accent-color: #e74c3c;
67+
--light-color: #ecf0f1;
68+
--dark-color: #2c3e50;
69+
--text-color: #333;
70+
--font-main: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
71+
}
72+
73+
body {
74+
font-family: var(--font-main);
75+
color: var(--text-color);
76+
line-height: 1.6;
77+
}
78+
79+
/* Hero section styling - using a gradient instead of an image */
80+
.hero-section {
81+
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
82+
color: white;
83+
padding: 6rem 2rem;
84+
margin-bottom: 2rem;
85+
text-align: center;
86+
border-radius: 5px;
87+
}
88+
89+
.hero-section h1 {
90+
font-size: 3rem;
91+
margin-bottom: 1rem;
92+
}
93+
94+
.hero-section p {
95+
font-size: 1.3rem;
96+
max-width: 800px;
97+
margin: 0 auto;
98+
}
99+
100+
/* Rest of your CSS... */
101+
102+
/* Card styling */
103+
.card {
104+
border-radius: 8px;
105+
overflow: hidden;
106+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
107+
transition: transform 0.3s ease, box-shadow 0.3s ease;
108+
}
109+
110+
.card:hover {
111+
transform: translateY(-5px);
112+
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
113+
}
114+
115+
.card-body {
116+
padding: 1.5rem;
117+
}
118+
119+
/* Person cards */
120+
.person-card {
121+
text-align: center;
122+
}
123+
124+
.person-card img {
125+
width: 140px;
126+
height: 140px;
127+
object-fit: cover;
128+
border-radius: 50%;
129+
margin: 0 auto 1rem;
130+
border: 3px solid var(--secondary-color);
131+
transition: transform 0.3s ease;
132+
}
133+
134+
.person-card:hover img {
135+
transform: scale(1.05);
136+
}
137+
138+
/* Project cards */
139+
.project-card {
140+
height: 100%;
141+
}
142+
143+
.project-card .card-img-top {
144+
height: 200px;
145+
object-fit: cover;
146+
}
147+
148+
/* Publication styling */
149+
.publication {
150+
margin-bottom: 1.5rem;
151+
padding-bottom: 1.5rem;
152+
border-bottom: 1px solid #eee;
153+
}
154+
155+
.publication:last-child {
156+
border-bottom: none;
157+
}
158+
159+
/* Animation classes */
160+
.fade-in {
161+
animation: fadeIn 0.8s ease-in-out;
162+
}
163+
164+
@keyframes fadeIn {
165+
0% { opacity: 0; transform: translateY(20px); }
166+
100% { opacity: 1; transform: translateY(0); }
167+
}
168+
169+
/* Responsive adjustments */
170+
@media (max-width: 768px) {
171+
.hero-section {
172+
padding: 4rem 1rem;
173+
}
174+
175+
.hero-section h1 {
176+
font-size: 2.5rem;
177+
}
178+
}

0 commit comments

Comments
 (0)