Skip to content

Commit 1822253

Browse files
committed
Update website
1 parent 15dbf7d commit 1822253

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

website/css/style_index.css

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
/* static/css/style_homepage.css */
1+
/* static/css/style_index.css */
2+
3+
html {
4+
height: 100%;
5+
}
26

37
body {
48
font-family: 'Lato', sans-serif;
59
margin: 0;
610
background-color: #f9f9f9;
711
color: #333;
12+
13+
/* Needed for sticky footer */
14+
display: flex;
15+
flex-direction: column;
16+
min-height: 100vh;
817
}
918

1019
.site-header {
@@ -29,8 +38,11 @@ body {
2938

3039
.homepage-content {
3140
max-width: 1200px;
41+
min-width: 80%;
3242
margin: 30px auto;
3343
padding: 0 20px;
44+
45+
flex-grow: 1;
3446
}
3547

3648
.recipe-gallery h2 {
@@ -100,7 +112,6 @@ body {
100112

101113
.recipe-card-content {
102114
padding: 15px;
103-
flex-grow: 1; /* Allows content to push footer down if card heights vary */
104115
display: flex;
105116
flex-direction: column;
106117
}
@@ -122,28 +133,27 @@ body {
122133

123134
.recipe-card-type {
124135
display: inline-block;
125-
background-color: #e8f0fe; /* Light blue, example */
136+
background-color: #e8f0fe;
126137
color: #4a7c59;
127138
padding: 3px 8px;
128139
border-radius: 4px;
129140
font-size: 0.8em;
130141
font-weight: bold;
131-
align-self: flex-start; /* Align to start of flex container */
142+
align-self: flex-start;
132143
margin-top: auto; /* Push to bottom if description is short */
133144
}
134145

135146
/* Example type-specific styling for card badges */
136147
.recipe-card.type-dessert .recipe-card-type {
137-
background-color: #ffe8f0; /* Light pink */
138-
color: #d2691e; /* Chocolate */
148+
background-color: #ffe8f0;
149+
color: #d2691e;
139150
}
140151

141152
.recipe-card.type-plat .recipe-card-type {
142-
background-color: #f0f8ff; /* Alice blue */
143-
color: #8b4513; /* Saddle brown */
153+
background-color: #f0f8ff;
154+
color: #8b4513;
144155
}
145156

146-
147157
.no-recipes-message {
148158
text-align: center;
149159
font-size: 1.1em;
-3 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)