-
-
Notifications
You must be signed in to change notification settings - Fork 324
/
Copy pathstyle.css
93 lines (93 loc) · 1.99 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
h2
{
background: -webkit-linear-gradient(white, #38495a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center;
}
.recipe-section {
position: relative;
display: block;
overflow: hidden;
width: 100%;
}
.recipe-section .recipes {
width: 105%;
margin-left: 5%;
}
.recipe-section .recipes .recipe-item {
display: inline-block;
width: 45%;
padding-right: 5%;
}
.recipe-section .recipes .recipe-item .recipe-block {
display: block;
width: 82%;
position: relative;
}
.recipe-section .recipes .recipe-item .recipe-block h3 {
color: white;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
text-align: center;
pointer-events: none;
margin: 0;
padding: 0 5%;
font-size: 4rem;
text-shadow: 0 0 2vw rgba(0, 0, 0, 0.7);
}
@media screen and (max-width: 840px) {
.recipe-section .recipes .recipe-item .recipe-block h3 {
font-size: 8vw;
text-shadow: 0 0 4vw rgba(0, 0, 0, 0.7);
}
}
@media screen and (max-width: 740px) {
.recipe-section .recipes .recipe-item {
width: 100%;
padding-right: 0;
padding: 0 5%;
}
img {
width : 110%;
}
}
@media screen and (max-width: 540px) {
.recipe-section .recipes {
width: 100%;
margin-left: 0;
}
}
.recipe-section .nutrition-container {
font-family: "Lato";
font-size: 14px;
line-height: 13px;
margin-top: 20px;
margin-bottom: 60px;
}
.recipe-section .nutrition-container input {
display: none;
}
.recipe-section .nutrition-container input + label {
cursor: pointer;
}
.recipe-section .nutrition-container input + label .expand-icon {
display: inline-block;
width: 16px;
height: 16px;
cursor: pointer;
}
.recipe-section .nutrition-container input:checked + label .expand-icon .expand-plus {
display: none;
}
.recipe-section .nutrition-container input:checked + label ~ .nutrition-data {
opacity: 1;
max-height: 1000px;
}
.recipe-section .nutrition-container .nutrition-data {
opacity: 0;
max-height: 0px;
overflow: hidden;
}