-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle_index.css
176 lines (148 loc) · 3.95 KB
/
style_index.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
:root {
--primary-bg-color: #0a1b2a; /* Light grey background */
--primary-text-color: #ecf0f1; /* Navy blue text */
--accent-color: #afbfdb; /* Accent color */
--header-footer-bg-color: #ecf0f1; /* Dark background for header/footer */
--padding_right: 20vh;
--padding_left: 20vh;
}
h1 a {
text-decoration: none; /* Removes the underline */
color: var(--primary-bg-color); /* Navy blue for text */
}
.header-img {
width: 300px;
height: 400px;
border-radius: 5%;
padding-right: 0vh;
padding-top: 0vh;
padding-bottom: 0vh;
padding-left: 0vh;
}
section {
margin: 20px;
}
.profile-card {
text-align: left;
margin: auto;
width: 100%; /* This will make the profile card span the full width */
/* Add any additional styling such as padding, background-color, etc. */
}
body {
/* display: flex;
font-family: Arial, sans-serif;
flex-direction: column; */
margin: 0;
font-family: 'Arial', sans-serif;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto 1fr auto;
grid-template-areas:
"header header"
"main sidebar"
"footer footer";
max-width: 100%;
width: 100%;
}
.header {
background-color: var(--header-footer-bg-color); /* Navy blue, similar to the coat */
color: var(--primary-bg-color); /* Light grey for text */
padding: 20px;
padding-left: var(--padding_left);
padding-right: var(--padding_right);
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
/* width: 100%; */
grid-area: header;
}
.header h1 {
font-size: 1.5em; /* Adjust as necessary */
white-space: nowrap; /* Prevent wrapping */
overflow: hidden; /* Hide overflow */
text-overflow: ellipsis;
}
.navigation {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 75%;
}
.navigation ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
width: 100%
}
.navigation li {
margin-left: 20%; /* Space between menu items */
}
.navigation a {
color: var(--primary-bg-color); /* Light grey for text */
text-decoration: none;
font-weight: bold;
}
.navigation a.active,
.navigation a:hover {
color: var(--accent-color); /* This could be an accent color, perhaps inspired by the autumn leaves */
border-bottom: 2px solid var(--accent-color); /* Underline effect for the active/hover state */
}
.container {
display: flex;
flex-direction: column;
width: 100%;
}
.content {
order: 2;
flex: 4;
padding: 20px;
flex-grow: 1;
width: 100%;
}
footer {
grid-area: footer;
background-color: var(--header-footer-bg-color); /* Navy blue, similar to the coat */
color: var(--primary-bg-color); /* Light grey for text */
padding: 20px;
text-align: center;
}
.main-content {
grid-area: main;
background-color: var(--primary-bg-color); /* Light grey background for the main content */
color: var(--primary-text-color); /* Navy blue for text */
padding-left: var(--padding_left);
font-size: 1.2em;
text-align: left; /* Justify aligns text for a clean look */
line-height: 1.2; /* Increase line height */
hyphens: auto; /* Enable automatic hyphenation */
word-wrap: break-word;
}
.sidebar {
grid-area: sidebar;
background-color: var(--primary-bg-color); /* Light grey background for the sidebar */
text-align: center; /* Center-align the image */
padding: 10px;
}
.sidebar img {
max-width: 80%;
height: auto;
border-radius: 3%; /* Circular image */
}
@media (max-width: 768px) {
/* For smaller screens, stack the layout */
.header {
flex-direction: column;
align-items: center;
}
body {
grid-template-columns: 1fr;
grid-template-areas:
"header"
"main"
"sidebar"
"footer";
}
}