-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
155 lines (154 loc) · 2.49 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
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
h1,
h2,
h3 {
/* font-family: Verdana, Geneva, Tahoma, sans-serif; */
font-weight: 800;
color: black;
margin: 1.6rem 0;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 20px;
}
span {
font-size: 16px;
}
p {
font-size: 16px;
}
/* nav */
.container {
height: 10vh;
width: 100%;
background-color: #d6ccc2;
}
.logo a {
font-size: 20px;
color: rgb(255, 255, 255);
text-decoration: none;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 20px;
padding-right: 5%;
padding-left: 5%;
}
nav ul li {
list-style-type: none;
display: inline-block;
padding: 10px 40px;
}
nav ul li a {
color: rgb(255, 255, 255);
text-decoration: none;
font-weight: bold;
font-size: 20px;
}
nav ul li a:hover {
color: #7a6c63;
transition: 0.3s;
}
/*hero*/
.hero {
display: grid;
grid-template-columns: 2fr 1fr;
position: relative;
}
.hero .left {
background-image: url(images/eat-3.jpeg);
background-size: cover;
height: 60vh;
background-repeat: no-repeat;
background-position: center;
}
.hero .right {
background-color: #d6ccc2;
}
.hero .content-box {
position: absolute;
background-color: white;
padding: 32px;
width: 35%;
top: 50%;
left: 65%;
transform: translate(-20%, -50%);
}
/*blog*/
main {
display: grid;
grid-template-columns: 1fr;
margin-top: 50px;
}
.blog {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-gap: 48px;
}
.blog .thumbnail {
object-fit: contain;
}
.blog-post {
background-color: #edede9;
margin: 24px 0;
padding: 16px;
}
.blog-content {
margin-top: 40px;
margin-left: 10px;
margin-right: 10px;
}
img {
width: 100%;
}
/* footer */
footer {
position: relative;
width: 100%;
background-color: #e3d5ca;
min-height: 50px;
padding: 20px 50px;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 20px;
}
footer .links,
footer .menu {
position: relative;
display: flex;
justify-content: center;
align-items: center;
margin: 10px 0;
flex-wrap: wrap;
}
footer .links li,
footer .menu li {
list-style-type: none;
}
footer .links li a {
font-size: 20px;
padding: 10px;
color: rgb(255, 255, 255);
margin: 0 10px;
display: inline-block;
transition: 0.5s;
}
footer .links li a:hover {
transform: translateY(-10px);
color: #695c54;
}
footer .menu li a {
font-size: 20px;
color: rgb(255, 255, 255);
margin: 0 10px;
display: inline-block;
transition: 0.5s;
text-decoration: none;
}
footer .menu li a:hover {
color: #695c54;
}