-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
223 lines (188 loc) · 4.25 KB
/
styles.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
body {
font-family: 'Raleway', sans-serif;
margin: 0;
padding: 0;
line-height: 1.15;
background-color: #f9f9f9;
color: #333;
word-spacing: 0.16em; /* Adjust this value as needed */
}
header {
background: url('./yanchaoy/background.jpg') no-repeat center center;
background-size: cover;
color: white;
height: 400px; /* Set height to 400px */
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
border-bottom: 5px solid #357250; /* Add a border to make it more prominent */
margin: 0; /* Remove any margin */
padding: 0; /* Remove any padding */
width: 100%; /* Ensure full width coverage */
box-sizing: border-box; /* Include padding and border in width and height */
}
header h1 {
font-family: 'Raleway', sans-serif;
font-size: 3em; /* Increase font size */
font-weight: bold; /* Make it bold */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add text shadow */
}
.profile {
display: flex;
align-items: center;
justify-content: center;
padding: 50px;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}
.profile img {
height: 224px; /* Set height for portrait ratio */
width: auto; /* Maintain original aspect ratio */
margin-right: 50px;
}
.profile-info {
text-align: left;
padding: 10px 10px; /* Adjust padding to match the image height */
}
.profile-info h1 {
font-family: 'Raleway', sans-serif;
font-size: 38px;
font-weight: bold;
margin-top: -8px; /* Adjust this value as needed */
}
.profile-info a {
color: #357250; /* Noble Green */
text-decoration: none;
}
.profile-info a:hover {
text-decoration: underline;
}
.social-icons {
margin-top: 12px;
}
.social-icons a {
margin-right: 10px;
color: #333;
font-size: 1.2em;
}
nav {
background-color: #357250; /* Noble Green */
text-align: center;
padding: 15px 5px;
}
nav a {
font-family: 'Raleway', sans-serif;
color: white;
margin: 0 25px;
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
}
.container {
width: 80%;
margin: 0 auto;
padding: 20px;
}
section {
background-color: white;
padding: 20px;
margin: 20px 0;
border-radius: 15px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
section h2, section h3 {
font-family: 'Raleway', sans-serif;
}
section a {
font-weight: bold;
color: #357250; /* Noble Green */
text-decoration: none;
}
section a:hover {
text-decoration: underline;
}
.publication {
display: flex;
align-items: center;
margin-bottom: 25px;
flex-wrap: nowrap; /* Do not wrap items on larger screens */
}
.publication .image-container {
width: 400px;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
background-color: white;
border: none;
margin-right: 40px;
flex-shrink: 0; /* Prevent shrinking of the image container */
}
.publication .image-container img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
footer {
text-align: center;
padding: 20px 0;
background-color: #99b9a6;
color: white;
}
.custom-mark {
background-color: #99b9a6;
}
ul li {
line-height: 1.5; /* Adjust the value to change the spacing */
}
/* Media Queries */
@media (max-width: 768px) {
header h1 {
font-size: 2em;
}
.profile {
flex-direction: column;
align-items: center; /* Center align items */
}
.profile img {
margin-right: 0;
margin-bottom: 20px;
}
.profile-info {
text-align: center;
padding: 10px;
}
.publication {
flex-direction: column;
align-items: flex-start;
}
.publication .image-container {
margin-right: 0;
margin-bottom: 20px;
width: 100%;
height: auto;
}
}
@media (max-width: 480px) {
header {
height: auto;
padding: 20px;
}
header h1 {
font-size: 1.5em;
}
.profile-info h1 {
font-size: 28px;
}
nav a {
display: block;
margin: 10px 0;
}
.container {
width: 100%;
padding: 10px;
}
}