-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
122 lines (122 loc) · 2.51 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-image: url("https://t4.ftcdn.net/jpg/02/92/20/37/360_F_292203735_CSsyqyS6A4Z9Czd4Msf7qZEhoxjpzZl1.jpg");
background-size: cover;
}
.container {
background-color: white;
font-size: 16px;
padding: 3em 2.8em;
width: 90vw;
max-width: 32em;
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
border-radius: 0.6em;
}
.search-container {
width: 100%;
display: grid;
grid-template-columns: 9fr 3fr;
gap: 1.2em;
}
.search-container input {
font-size: 1em;
padding: 0.6em;
border: none;
outline: none;
border-bottom: 2px solid #202030;
}
.search-container button {
font-size: 1em;
background-color: lightcoral;
border: none;
font-weight: 600;
border-radius: 0.3em;
}
img {
display: block;
width: 50%;
margin: 1.8em auto 0 auto;
}
.details {
background-color: lightcoral;
position: relative;
margin: -4.3em 0 0 0;
text-align: center;
padding: 0.6em 0;
}
.details h2 {
font-size: 1.2em;
font-weight: 600;
}
.details h4 {
font-size: 1em;
font-weight: 400;
}
#show-recipe {
font-size: 1em;
position: relative;
left: 75%;
padding: 0.9em 0.6em;
background-color: lightcoral;
border: none;
top: 1.5em;
border-radius: 0.3em;
font-weight: 600;
}
#recipe {
position: absolute;
background-color: #ffffff;
min-height: 100%;
width: 100%;
top: 0;
left: 0;
z-index: 2;
border-radius: 0.6em;
display: none;
}
#recipe pre {
white-space: pre-wrap;
word-wrap: break-word;
padding: 2.5em 1.2em 1.2em 1.2em;
font-size: 0.92em;
color: #303040;
}
#hide-recipe {
font-size: 1em;
position: relative;
width: 1.8em;
height: 1.8em;
background-color: #f4c531;
border: none;
top: 1.2em;
left: 90%;
border-radius: 0.3em;
}
ul {
font-size: 1em;
position: relative;
display: grid;
grid-template-columns: auto auto;
gap: 0.8em 1.1em;
padding: 1.2em 0 0 1.2em;
color: #303040;
text-transform: capitalize;
}
h3 {
text-align: center;
margin-top: 1.8em;
color: #202030;
}
@media screen and (max-width: 500px) {
.container {
font-size: 14px;
}
}