Repository navigation
Expand file tree
/
Copy pathStyle.css
More file actions
116 lines (99 loc) · 2.05 KB
/
Copy pathStyle.css
File metadata and controls
116 lines (99 loc) · 2.05 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
body {
font-family: Arial, sans-serif;
background: linear-gradient(to bottom right, #f8b500, #f85f73);
padding: 20px;
color: #333;
}
.container {
max-width: 800px;
margin: auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
h1, h2 {
text-align: center;
color: #f85f73;
}
#search-input {
width: calc(100% - 100px);
padding: 10px;
margin-bottom: 10px;
border-radius: 4px;
border: 1px solid #ddd;
}
#search-button {
padding: 10px;
border-radius: 4px;
background: #f85f73;
border: none;
color: #fff;
cursor: pointer;
transition: background 0.3s;
}
#search-button:hover {
background: #f8b500;
}
#recipes-container, #favorites-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.recipe-card, .favorite-card {
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
overflow: hidden;
width: 100%;
max-width: 48%;
margin-bottom: 10px;
transition: transform 0.2s;
}
.recipe-card:hover, .favorite-card:hover {
transform: translateY(-5px);
}
.recipe-card img, .favorite-card img {
width: 100%;
height: 150px;
object-fit: cover;
border-bottom: 2px solid #f85f73;
}
.recipe-card h3, .favorite-card h3 {
font-size: 18px;
padding: 10px;
margin: 0;
color: #f85f73;
}
.recipe-details, .favorite-card .actions {
padding: 10px;
}
.recipe-details button, .actions button {
background: #f85f73;
border: none;
padding: 8px 12px;
border-radius: 4px;
color: #fff;
cursor: pointer;
transition: background 0.3s;
}
.recipe-details button:hover, .actions button:hover {
background: #f8b500;
}
/* Responsive Styles */
@media (max-width: 600px) {
.recipe-card, .favorite-card {
width: 100%;
}
#search-input {
width: 100%;
margin-bottom: 10px;
}
#search-button {
width: 100%;
}
.container {
padding: 10px;
}
}