-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
116 lines (100 loc) · 2.07 KB
/
style.css
File metadata and controls
116 lines (100 loc) · 2.07 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
/* h1{
font-size: 70px;
text-align: center;
outline: 5px solid yellow;
padding: 22px 22px 22px 2px;
background-color: antiquewhite;
border: px;
}
ol{
font-family: 'Times New Roman', Times, serif;
font-size: 40px;
outline: 1px solid yellow;
}
.reci{
border: 1px solid blue ;
} */
/* General Styles */
/* General Styles */
body {
font-family: 'Arial', sans-serif;
background-color: #f8f9fa;
margin: 0;
padding: 0;
}
/* Header Styling */
h1 {
font-size: 60px;
text-align: center;
color: #333;
background-color: antiquewhite;
padding: 20px 20px;
border: 5px solid yellow;
border-radius: 50px;
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
margin: 20px auto;
width: fit-content;
}
/* List Styling */
ol {
font-size: 30px;
padding: 20px;
list-style: none;
}
/* Recipe List Items */
/* li {
display: flex;
align-items: center;
justify-content: space-between;
background-color: white;
margin: 20px;
padding: 15px;
border-left: 5px solid blue;
border-radius: 20px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
} */
li {
display: grid;
grid-template-columns: 1fr auto; /* Text takes most space, image takes auto width */
align-items: center;
gap: 50px;
padding: 15px;
margin: 40px;
background-color: white;
border-radius: 30px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
/* Text inside list item */
li p {
flex: 1; /* Ensures text takes available space */
margin: 0;
}
/* Recipe Links */
.reci {
text-decoration: none;
color: #0056b3;
font-weight: bold;
transition: color 0.3s ease-in-out;
}
.reci:hover {
color: #ff6600;
text-decoration: underline;
}
/* Image Styling */
img {
max-width: 180px;
height: auto;
border-radius: 100px;
box-shadow: 2px 2px 10px rgba(156, 45, 45, 0.2);
margin-left: 20px;
}
/* Responsive Design */
@media (max-width: 768px) {
li {
flex-direction: column;
text-align: center;
}
img {
margin: 10px auto;
}
}