-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
122 lines (105 loc) · 2.92 KB
/
style.css
File metadata and controls
122 lines (105 loc) · 2.92 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
body {
font-family: 'Nunito', sans-serif; /* Updated font */
color: #5D4037; /* Ensured this color is present */
margin: 0;
display: flex;
}
.container {
display: flex;
width: 100%;
min-height: 100vh;
}
.sidebar {
width: 200px;
background-color: #8FBC8F;
padding: 20px;
color: #F5F5DC;
height: 100vh;
box-sizing: border-box;
font-family: 'Nunito', sans-serif; /* Added for consistency */
}
.sidebar ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.sidebar ul li a {
color: #F5F5DC;
text-decoration: none;
display: block;
padding: 10px 0;
}
.sidebar ul li a.active {
font-weight: bold;
color: #FFF8DC;
}
.sidebar ul li a:hover {
background-color: #79A879;
}
.main-content {
flex-grow: 1;
padding: 40px;
background-color: #FAF3E0;
box-sizing: border-box;
}
.main-content h1 {
color: #556B2F; /* Ensured this color is present */
font-family: 'Montserrat', sans-serif; /* Updated font */
}
.main-content p {
color: #5D4037; /* This was already the body color, so it inherits. Explicitly setting is also fine */
line-height: 1.6;
/* font-family: 'Nunito', sans-serif; will be inherited from body */
}
.image-placeholder {
width: 100%;
max-width: 600px;
height: auto;
background-color: transparent;
border: 1px solid #D2B48C;
border-radius: 15px;
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
}
.main-content img,
.image-placeholder img {
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
max-width: 100%;
height: auto;
display: block;
}
/* Fallback for h1 and p if they are not inside .main-content */
h1 { /* This will be overridden by .main-content h1 for specific context */
color: #556B2F;
font-family: 'Montserrat', sans-serif; /* Updated font */
}
p { /* This will be overridden by .main-content p for specific context, or inherit from body */
color: #5D4037;
line-height: 1.6;
font-family: 'Nunito', sans-serif; /* Explicitly set for safety, though body should cover it */
}
/* Media Query for Responsive Layout */
@media (max-width: 768px) {
.container {
flex-direction: column; /* Stack sidebar and main content */
}
.sidebar {
width: 100%; /* Full width for sidebar */
height: auto; /* Adjust height to content */
padding-bottom: 20px; /* Add some space below sidebar content */
/* box-sizing: border-box; is already set and inherited */
}
.main-content {
width: 100%; /* Ensure main content takes full width */
/* padding: 40px; is existing and should be fine, adjust if needed */
}
/* Optional: Adjust sidebar link padding for easier tapping */
.sidebar ul li a {
padding: 15px 20px; /* Increase padding for tap targets, adjust horizontal if needed */
}
}