-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.css
118 lines (100 loc) · 1.79 KB
/
index.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
/***** general style *****/
*,
::before,
::after {
box-sizing: border-box;
}
body {
font-family: "Courier New", Courier, monospace;
margin: 0;
padding: 0;
}
img {
max-width: 100%;
height: auto;
}
.container {
/* background-color: antiquewhite; */
max-width: 1024px;
margin-left: auto;
margin-right: auto;
}
/***** header *****/
.header {
/* background-color: rgb(218, 222, 222); */
width: 100%;
padding: 1rem;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav__logo {
width: 5rem;
height: 3.5rem;
}
.nav__list {
list-style-type: none;
display: flex;
}
.nav__items {
padding: 0 0 0 1rem;
}
.nav__link {
display: inline-block;
text-decoration: none;
color: #000000;
}
.nav__link:hover {
color: rgb(234, 149, 37);
}
/***** main *****/
.main {
/* background-color: rgb(218, 222, 222); */
width: 100%;
margin: 2rem 0;
padding: 1rem;
}
/***** Restaurant *****/
.restaurant {
display: flex;
flex-wrap: wrap;
}
.restaurant__card {
box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.1), 1px 1px 5px rgba(0, 0, 0, 0.2);
padding: 0.5rem;
margin: 0.5rem;
max-width: 15rem;
overflow: hidden;
border-radius: 5px;
}
.restaurant__name {
color: rgb(229, 17, 17);
}
/***** Search *****/
.search {
/* background-color: antiquewhite; */
margin: 0.5rem 0.5rem 1.5rem;
}
.search__input {
padding: 0.5rem;
margin-right: 1rem;
width: 25rem;
color: #898686;
border: 2px solid #5e5d5d;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
border-radius: 5px;
}
.search__button {
border-radius: 5px;
background-color: #000000;
color: #ffffff;
padding: 0.5rem;
border: 1px solid #000000;
}
.search__button:hover {
background-color: #5a5858;
border: 1px solid #5a5858;
}