Newer
Older
Angie Byron
committed
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
/**
* @file
* This file is used to style the recipe using the 'full' view mode.
*/
.node--type-recipe.node--view-mode-full .field--name-field-recipe-category {
flex: 0 0 100%;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .field--name-field-recipe-category {
flex: 0 1 auto;
margin-right: 1em;
}
}
.node--type-recipe.node--view-mode-full .layout__region--top {
margin-bottom: 2.369em;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--top {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
}
/* Override the recipe's img margin-bottom on larger displays */
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--top .field--name-field-image img {
margin-bottom: 0;
}
}
.node--type-recipe.node--view-mode-full .layout__region--top-first,
.node--type-recipe.node--view-mode-full .layout__region--top-second {
Gábor Hojtsy
committed
flex: 0 0;
flex-basis: calc(50% - 1rem); /* fixed IE11 bug calc in shorthand */
Angie Byron
committed
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
}
/* Recipe meta */
.node--type-recipe.node--view-mode-full .layout__region--top-second {
display: flex;
flex-direction: column;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
/* Recipe meta */
.node--type-recipe.node--view-mode-full .layout__region--top-second {
align-self: center;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
}
.node--type-recipe.node--view-mode-full .layout__region--top-second > .recipe-meta {
display: flex;
flex-direction: row;
justify-content: flex-start;
margin-bottom: 1em;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--top-second > .recipe-meta {
align-items: center;
flex: 0 0 40%;
flex-direction: column;
margin-bottom: 2em;
text-align: center;
}
}
.node--type-recipe.node--view-mode-full .layout__region--top-second > .field--name-field-summary {
flex-basis: 100%;
text-align: left;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--top-second > .field--name-field-summary {
flex-basis: 90%;
text-align: center;
}
}
.node--type-recipe.node--view-mode-full .layout__region--top-second svg {
flex: 0 0 26px;
height: 26px;
margin-bottom: 0;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--top-second svg {
flex: 0 0 auto;
height: 47px;
margin-bottom: 0.889em;
}
}
Gábor Hojtsy
committed
.node--type-recipe.node--view-mode-full .layout__region--top-second .recipe-meta .field {
Angie Byron
committed
flex: 1 0 auto;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
Gábor Hojtsy
committed
.node--type-recipe.node--view-mode-full .layout__region--top-second .recipe-meta .field {
width: 100%;
Angie Byron
committed
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
}
}
.node--type-recipe.node--view-mode-full .layout__region--top-second .field .field__label,
.node--type-recipe.node--view-mode-full .layout__region--top-second .field .field__item {
display: inline-block;
padding-left: 0.5em;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--top-second .field .field__label,
.node--type-recipe.node--view-mode-full .layout__region--top-second .field .field__item {
display: block;
}
}
.node--type-recipe.node--view-mode-full .layout__region--top .field__label {
font-family: 'Open Sans', Verdana, sans-serif;
font-size: 1rem;
line-height: 1.5;
margin: 0;
font-weight: 700;
}
/* Recipe instructions */
.node--type-recipe.node--view-mode-full .layout__region--bottom {
background-color: #f4f2e9;
border: 1px solid #e6eee0;
margin: 0 -1.266em;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--bottom {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 0;
}
}
.node--type-recipe.node--view-mode-full .layout__region--bottom > h2 {
Gábor Hojtsy
committed
flex: 0 1 100%;
Angie Byron
committed
font-family: 'Scope One', Georgia, serif;
font-size: 1.424em;
font-weight: 400;
line-height: 1.2;
padding: 1.266rem 1.266rem 1em 1.266rem;
text-align: left;
margin: 0;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--bottom > h2 {
font-size: 2.369rem;
padding: 1.2em;
text-align: center;
}
}
.node--type-recipe.node--view-mode-full .layout__region--bottom-first {
padding: 0 1.266em 1.266em 1.266em;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--bottom-first {
flex: 0 0 33%;
padding: 0 2.369em 2.369em 2.369em;
Gábor Hojtsy
committed
max-width: 33%; /* fixed IE11 bug */
Angie Byron
committed
}
}
.node--type-recipe.node--view-mode-full .layout__region--bottom-second {
padding: 0 1.266em 1.266em 1.266em;
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--bottom-second {
flex: 0 0 67%;
padding: 0 2.369em 2.369em 2.369em;
Gábor Hojtsy
committed
max-width: 67%; /* fixed IE11 bug */
Angie Byron
committed
}
}
.node--type-recipe.node--view-mode-full .layout__region--bottom .field__label {
font-family: 'Scope One', Georgia, serif;
font-size: 1.266rem;
font-weight: 400;
line-height: 1.2;
padding: 0 0 0.6em 0;
margin: 0 0 1em 0;
Alex Pott
committed
border-bottom: 1px solid #eec2cb;
Angie Byron
committed
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
}
/* Large */
@media screen and (min-width: 60rem) { /* 960px */
.node--type-recipe.node--view-mode-full .layout__region--bottom .field__label {
font-size: 1.77rem;
margin: 0 0 1.5em 0;
}
}
.node--type-recipe.node--view-mode-full .field--name-field-ingredients .field__item {
border-bottom: 1px solid #eec2cb;
padding: 0 0 0.6em 0;
margin: 0 0 0.6em 0;
}
.node--type-recipe.node--view-mode-full .field--name-field-recipe-instruction ol {
margin-left: 0;
padding-left: 0;
list-style-type: none;
}
.node--type-recipe.node--view-mode-full .field--name-field-recipe-instruction ol > li {
counter-increment: step-counter;
padding: 0 0 0.6em 2.5em;
min-height: 1.5em;
list-style: none;
position: relative;
}
.node--type-recipe.node--view-mode-full .field--name-field-recipe-instruction ol > li::before {
content: counter(step-counter);
color: #cc2a00;
font-size: 1.5rem;
position: absolute;
top: 0;
left: 0;
}