-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
107 lines (91 loc) · 1.46 KB
/
Copy pathstyles.css
File metadata and controls
107 lines (91 loc) · 1.46 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
/* Reset and Base */
* {
box-sizing: border-box;
font-family: Helvetica, sans-serif;
margin: 0;
padding: 0;
}
body {
background-color: beige;
margin: 0;
}
/* Navbar */
.navbar ul {
list-style-type: none;
background-color: rgb(204, 187, 187);
overflow: hidden;
display: flex;
flex-wrap: wrap;
position: fixed;
}
.navbar li {
flex: 1;
}
.navbar a {
color: rgb(65, 34, 34);
text-decoration: none;
padding: 15px;
display: block;
text-align: center;
}
.navbar a:hover {
background-color: rgb(201, 180, 180);
}
/* Layout */
main {
padding: 20px;
}
/* Section Layout */
.section-content {
display: flex;
gap: 30px;
align-items: flex-start;
margin: 40px 0;
flex-wrap: wrap;
}
/* Figure and Images */
figure {
flex: 1;
max-width: 400px;
min-width: 250px;
display: flex;
flex-direction: column;
align-items: center;
}
figure img {
width: 100%;
height: auto;
object-fit: cover;
border-radius: 10px;
}
figcaption {
font-size: 0.9rem;
margin-top: 10px;
text-align: center;
}
/* Text Block */
.text-block {
flex: 2;
min-width: 300px;
padding: 15px;
background-color: #fff0d0;
border-radius: 5px;
line-height: 1.6;
}
.text-block h1, .text-block h3 {
margin-bottom: 10px;
}
.year {
font-weight: bold;
margin-bottom: 10px;
}
/* Responsive Design */
@media (max-width: 768px) {
.section-content {
flex-direction: column;
align-items: center;
}
.text-block, figure {
width: 100%;
}
}