-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleFS.css
160 lines (133 loc) · 3.86 KB
/
styleFS.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
/* Basic Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body, html {
width: 100%;
height: 100%;
font-family: 'Roboto', sans-serif; /* Modern sans-serif font for content */
background-color: #fff; /* White background */
color: #595959; /* Sets the default text color to gray */
font-size: 14px; /*Font size for content */
line-height: 1.5; /*Readability with good line spacing */
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
overflow-x: hidden;
}
/* Font style for headings */
h1, h2, h3, h4, h5, h6 {
font-family: 'Playfair Display', serif; /* Professional font for titles */
color: #222; /* Dark gray for headings */
}
/* Keep the grid container */
.container {
display: grid;
width: 100%;
max-width: 1200px;
grid-template-columns: repeat(11, 1fr); /* Eleven equal columns */
gap: 20px; /* Space between columns */
}
/* Column assignment */
.photo {
grid-column: 3 / 6; /* Occupies columns 4 and 5 */
}
.info {
grid-column: 6 / 10; /* Occupies columns 6, 7, and 8 */
}
/* Image styling */
.photo img {
width: 100%; /* Ensures image doesn't overflow its container */
height: auto;
}
/* Text content styling */
.info {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
h1, h2, h3, h4, h5, h6 {
color: #005a87; /* Titles in blue */
padding-bottom: 0.5em;
}
p, li {
font-size: 1.125rem; /* Larger font size for readability */
padding-bottom: 0.25em;
}
a {
color: #005a87; /* Links in blue */
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
grid-template-columns: 1fr;
padding: 10px;
}
.photo, .info {
grid-column: 1;
}
/* Adjust image size for mobile */
.photo img {
max-width: 70%; /* Adjust image size as needed for mobile */
margin: 0 auto; /* Center image */
}
}
/* Centering the content within the container */
.container.centered {
display: flex; /* Enables flexbox for alignment */
flex-direction: column; /* Stacks children vertically */
justify-content: center; /* Centers content vertically */
align-items: center; /* Centers content horizontally */
min-height: 100vh; /* Ensures the container takes up the full viewport height */
text-align: center; /* Centers the text inside the container */
}
/* Styling for links */
nav a {
margin: 0 10px; /* Adds spacing between navigation links */
text-decoration: none; /* Removes underline from links */
color: #39c; /* Blue link color */
}
nav a:hover {
color: #069; /* Darker blue for hover effect */
}
/* Styling section content */
#materials {
margin-top: 20px; /* Adds space above the materials section */
}
#materials h2, #materials h3 {
margin-bottom: 10px; /* Adds space below headings */
}
#materials p {
margin-bottom: 15px; /* Adds space below paragraphs */
}
#materials a {
color: #39c; /* Blue link color */
text-decoration: none; /* Removes underline */
font-weight: bold; /* Makes links stand out */
}
#materials a:hover {
color: #069; /* Changes link color on hover */
}
footer {
text-align: center; /* Center-aligns the text */
font-size: 12px; /* Keeps the footer font small */
color: #595959; /* Matches the content text color */
margin-top: 30px; /* Adds space between the main content and the footer */
padding: 10px 0; /* Adds padding for comfortable spacing */
border-top: 1px solid #e0e0e0; /* Optional: Adds a light border for separation */
width: 100%; /* Ensure footer spans the entire width */
}
footer a {
color: #39c; /* Blue for the link */
text-decoration: none; /* Removes underline for a clean look */
}
footer a:hover {
color: #069; /* Darker blue for hover effect */
}