forked from CodeYourFuture/HTML-CSS-Coursework-Week3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
93 lines (78 loc) · 1.3 KB
/
style.css
File metadata and controls
93 lines (78 loc) · 1.3 KB
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
/* Add your styling here */
body {
font-family: 'Roboto', sans-serif;
margin: 0 auto;
max-width: 540px;
}
section {
display: flex;
height: 200px;
justify-content: center;
background: url(/files/menu-background.jpg) no-repeat;
background-size: cover;
}
.btn {
width: 90px;
height: 25px;
border: none;
background: #fff;
}
.btn:hover{
cursor: pointer;
background: #a9a9a9;
}
nav {
display: none;
}
.menu {
display: flex;
align-items: flex-end;
flex-direction: column;
justify-content: space-around;
padding-right: 2rem;
max-width: 540px;
width: 100%;
}
.menu__burger {
width: 45px;
}
.main {
margin: 1rem;
}
.main__header {
padding: 1rem;
}
.img-cake {
max-width: 540px;
width: 100%;
}
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-gap: 1rem;
margin: 3rem 1rem 0 1rem;
}
.grid__img {
width: 100%;
height: 270px;
object-fit: cover;
}
.grid__img:hover {
opacity: 0.8;
cursor: pointer;
}
a {
text-decoration: none;
}
a:visited {
color: initial;
}
.footer {
display: flex;
justify-content: center;
align-items: center;
margin: 3rem;
height: 150px;
border-top: #000 solid 1px;
}