-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
95 lines (77 loc) · 1.61 KB
/
style.css
File metadata and controls
95 lines (77 loc) · 1.61 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
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: #111;
}
/* Header */
header {
border-bottom: 1px solid #ddd;
padding: 15px 40px;
text-align: center;
color: #00ab44; /* <-- ADD this line to make header text green */
}
nav a {
margin-right: 20px;
text-decoration: none;
color: #00ab44;
font-weight: 500;
}
nav a:hover {
text-decoration: underline;
color: #007733;
}
/* Layout */
.container {
display: flex;
max-width: 1000px;
margin: 40px auto;
padding: 0 20px;
}
/* Sidebar */
.sidebar {
width: 220px;
margin-right: 40px;
background-color: rgba(0, 171, 68, 0.05); /* <-- ADD this line for a very faint green background */
padding: 20px; /* optional, but looks nicer */
border-radius: 5px; /* optional, for soft edges */
}
.sidebar img {
width: 180px;
height: 180px;
border-radius: 50%;
object-fit: cover;
display: block; /* added to center image */
margin: 0 auto 15px; /* top/bottom 0, left/right auto to center */
}
.sidebar h3 {
margin-bottom: 5px;
margin-left: 40px;
}
.sidebar p {
font-size: 0.9em;
margin-left: 20px; /* indent from left edge */
margin-right: 10px; /* optional: indent from right edge */
}
/* Main content */
main {
flex: 1;
}
h1 {
margin-top: 0;
}
h2 {
margin-top: 2em;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.sidebar {
width: 90%; /* narrower than screen */
max-width: 320px; /* prevents it from getting too wide */
margin: 0 auto 30px; /* centers it */
}
main {
width: 100%;
}
}