-
Notifications
You must be signed in to change notification settings - Fork 0
/
fancy.css
162 lines (123 loc) · 2.35 KB
/
fancy.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* =================================
Recipe example - fancy style 2
================================= */
/* importing web fonts */
@import url(http://fonts.googleapis.com/css?family=Raleway+Dots|Quicksand:400,700|Cherry+Swash);
body {
margin: 0;
background-color: #fff;
padding: 0;
font: 16px/1.5 "Quicksand", helvetica, arial, sans-serif;
}
img {
width: 100%;
}
a {
color: #F0A39B;
text-decoration: none;
transition: all 0.3s ease-in-out 0s;
}
a:hover {
color: #fff;
}
#container {
position: relative;
margin: 0 auto;
}
h1 {
position: absolute;
margin-bottom: 0;
padding: 0 3%;
color: #eee;
font-size: 48px;
}
/* recipe specific styles */
.recipe {
position: relative;
padding: 3%;
}
.recipe a:hover {
color: #F05B4B;
}
.recipe.raspberry-lemonade {
background: transparent url('raspberry-lemonade.jpg') right 0 no-repeat;
}
.recipe .title {
width: 60%;
margin: 200px 0 20px 0;
border-bottom: 1px solid rgba(0,0,0,.3);
padding-bottom: 20px;
font: 36px 'Cherry Swash', cursive;
}
.recipe .title .color-splash {
color: #E9C822;
}
.recipe figure {
display: none;
}
.recipe .meta {
color: #aaa;
padding-bottom: 200px;
}
.recipe .meta dt,
.recipe .meta dd {
display: inline;
}
.recipe .meta dd {
clear: right;
margin: 0 20px 0 0;
font-weight: bold;
}
.recipe .ingredients,
.recipe .directions {
width: 50%;
float: left;
}
/* aside specific styles */
aside {
background-color: #F05430;
padding: 3%;
color: #fff;
}
aside .related-list {
list-style-type: none;
overflow: hidden;
}
aside .related-list li {
width: 20%;
float: left;
margin: 0 5%;
text-align: center;
}
aside .related-list img {
border-radius: 200px;
border: 1px solid #BDBAA7;
background-color: #fff;
padding: 5px;
opacity: .5;
transition: all 0.3s ease-in-out 0s;
}
aside .related-list li:hover img {
opacity: 1;
}
/* Simple responsive layout adjustments
special rules for phones and small tablets */
@media only screen and (max-width: 600px) {
h1 {
position: relative;
}
.recipe.raspberry-lemonade {
background: transparent url('raspberry-lemonade.jpg') center 0 no-repeat;
}
.recipe .meta {
color: rgba(20, 20, 20, 0.7);
}
.recipe .ingredients,
.recipe .directions {
width: auto;
float: none;
}
aside .related-list li {
font-size: 12px;
}
} /* ==== end max-width 600px ==== */