-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
212 lines (158 loc) · 3.42 KB
/
style.css
File metadata and controls
212 lines (158 loc) · 3.42 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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
*{margin: 0;
padding: 0;}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background-color: #f9f9f9;
}
header h1 {
color: #f4b400;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
header p {
color: #ffe082;
}
main {
padding: 20px;
}
header {
background-color: #2e7d32; /* dark green */
color: #f4b400; /* mustard yellow */
padding: 20px;
text-align: center;
}
main {
padding: 20px;
}
.readme-img {
width: 100vw; /* takes up the entire width of the screen */
height: 400px; /* fixed height hero banner type */
object-fit: cover; /* trim the edges if necessary */
display: block;
margin: 0;
border-radius: 0;
box-shadow: none;
}
.image-text img:not(.hero-img) {
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.top-feature {
padding: 0;
margin: 0;
}
.top-feature .image-text {
display: flex;
flex-direction: column;
}
.top-feature img {
width: 100%;
height: 400px; /* or auto if you want natural proportions */
object-fit: cover; /* trim the edges if necessary*/
display: block;
margin: 0;
border: none;
}
.top-feature .text-block {
padding: 40px 20px;
max-width: 800px;
text-align: left;
}
a {
color: #f4b400;
text-decoration: none;
}
a:hover {
color: #cddc39; /* green lime */
text-decoration: underline;
}
.bottom-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
padding: 40px 20px;
}
/* Main action button style */
button {
background-color: #f4b400; /* Mustard yellow background */
color: #2e7d32; /* Dark green text */
border: none; /* No border */
padding: 10px 20px; /* Internal spacing */
border-radius: 5px; /* Rounded corners */
font-weight: bold; /* Bold text */
cursor: pointer; /* Pointer cursor on hover */
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
transition: background-color 0.3s ease; /* Smooth hover effect */
}
/* Hover effect for button */
button:hover {
background-color: #cddc39; /* Lime green on hover */
}
article {
background-color: white;
padding: 20px;
margin-bottom: 30px;
border: 1px solid #ccc;
flex: 1 1 300px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
article h2 {
color: #333;
}
.image-text {
display: flex;
flex-direction: column;
align-items: flex-start; /* instead of center */
text-align: left; /*instead of center */
}
.image-text img {
width: 100%;
height: 300px;/* fixed height for consistency */
object-fit: cover; /* crops edges to fill box */
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.text-block {
padding: 0 20px;
max-width: 600px;
text-align: left;
}
.text-block h2 {
font-size: 1.6rem;
margin-bottom: 10px;
text-align: left;
}
.text-block p {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 16px;
text-align: left;
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #0077cc;
color: white;
text-decoration: none;
border-radius: 6px;
font-weight: bold;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #005fa3;
}
footer {
background-color: #2e7d32;
color: #f4b400;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
footer a {
color: #f4b400;
text-decoration: underline;
}