-
Notifications
You must be signed in to change notification settings - Fork 0
/
Recipe.css
90 lines (89 loc) · 1.66 KB
/
Recipe.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
.recipe-item{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin: 3.125vh;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
border-radius: .6vh;
overflow: hidden;
}
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
header{
background-color: #0c2461;
color: white;
padding: 20px;
text-align: center;
}
h1{
margin: 0;
font-size: 5.625vh;
}
.container{
max-width: 187.5vh;
margin: 0 1.6vh;
}
.recipe-list{
list-style: none;
margin: 0;
padding: 0;
}
.recipe-item img{
width: 23.4375vh;
height: 23.4375vh;
object-fit: cover;
}
.recipe-item h2{
margin: 0;
font-size:3.125vh;
padding: 1.6vh;
min-width: 31.25vh;
}
p{
margin: 0;
padding: 1.6vh;
color: #777;
}
.recipe-item a{
background: #0c2461;
color: #fff;
min-width: 23.4375vh;
text-decoration: none;
padding: 1.6vh;
text-transform: uppercase;
font-size: 2.1875vh;
transition: background 0.3 ease;
}
@media screen and (max-width:768px){
.container{
max-width: 90%;
}
.recipe-item{
flex-wrap:wrap;
}
.recipe-item img{
width: 100%;
height: auto;
margin-bottom: 1.6vh;
}
.recipe-item h2{
font-size: 3.125vh;
padding: 0;
margin-bottom: 1.6vh;
}
.recipe-item p{
font-size: 2.1875vh;
margin-bottom: 1.6vh;
}
.recipe-item a{
width: 100%;
text-align: center;
}
}
.recipe-item a:hover{
background: #1e3799;
}