-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
114 lines (97 loc) · 1.79 KB
/
styles.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
/* Reset some default styling */
body, h1, h2, h3, h4, h5, h6, p, ul, li {
margin: 0;
padding: 0;
}
/* Add new styles for the header and navigation */
header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #007bff;
color: #fff;
padding: 10px;
}
nav {
display: flex;
align-items: center;
}
nav ul {
list-style: none;
display: flex;
}
nav li {
margin-right: 10px;
}
nav a {
color: #fff;
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
}
.main-content {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
display: grid;
grid-template-columns: 2fr 1fr;
grid-gap: 20px;
}
.search-bar {
margin-top: 10px;
}
.search-bar input[type="text"],
.search-bar button {
font-size: 16px;
padding: 5px 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.product-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
margin-top: 20px;
}
.product {
border: 1px solid #ccc;
padding: 10px;
border-radius: 4px;
}
.product h3 {
font-size: 18px;
margin-bottom: 10px;
}
.product p {
font-size: 14px;
color: #555;
}
/* Add new styles for the buttons container */
.buttons-container {
position: fixed;
top: 50%;
right: 20px;
transform: translateY(-50%);
display: flex;
flex-direction: column;
align-items: flex-end;
}
.buttons-container button {
margin-bottom: 10px;
font-size: 16px;
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.buttons-container button:hover {
background-color: #0056b3;
}
footer {
background-color: #f2f2f2;
padding: 10px;
text-align: center;
}