forked from ericamechler/Recipe-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
99 lines (83 loc) · 1.33 KB
/
style.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
}
body {
background-color: #fafbff;
font-family: "Hind", sans-serif;
}
h1 {
margin: 50px;
color: #0018a4;
font-size: 40px;
font-weight: 700;
}
.random-button {
margin: 0 0 20px 50px;
}
.filter-section {
display: flex;
flex-wrap: wrap;
}
.filter,
.sort {
margin: 0 0 10px 50px;
}
.filter-buttons,
.sort-buttons {
padding: 10px 0 0 0;
}
button {
padding: 8px 16px 8px 16px;
margin: 0 5px 0 0;
line-height: 23.91px;
border: 1px solid #00000000;
border-radius: 50px;
}
button:hover {
border: 1px solid #002ead;
}
.filter-button {
background-color: #ccffe2;
color: #0018a4;
}
.filter-button.active {
background-color: #0018a4;
color: white;
}
.sort-button {
background-color: #ffecea;
color: #0018a4;
}
.sort-button:hover,
.sort-button.active {
background-color: #ff6589;
color: white;
}
.recipe-section {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin: 20px 0 20px 0;
}
.recipe {
background-color: white;
border: 1px #e9e9e9 solid;
width: 350px;
height: 100%;
padding: 10px;
border-radius: 16px;
}
.recipe:hover {
border: 1px solid #002ead;
box-shadow: 0 0 11px rgba(33, 33, 33, 0.2);
}
img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 12px;
}