-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinventory.css
More file actions
179 lines (153 loc) · 3.91 KB
/
inventory.css
File metadata and controls
179 lines (153 loc) · 3.91 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/* Styling for the body and other elements here... */
/* Additional styling for car inventory, or you can include it in your existing style block */
/* Styling for the car inventory header */
body{
background-color: #445069;
}
p {
color: white;
}
h1 {
color: #fff;
text-align: center;
}
h2{
color:#fff;
padding-left: 60px;
text-align: center;
}
header {
background-color: black; /* Changed to black */
color: white;
padding: 10px 0;
text-align: center;
}
header nav ul {
list-style: none;
padding: 0;
}
header nav ul li {
display: inline;
margin: 0 10px;
}
header nav ul li a {
text-decoration: none;
color: white;
}
.inventory-header {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
}
.inventory-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.car-brands {
display: flex;
justify-content: space-between; /* Distribute brands evenly */
margin-top: 20px;
align-items: center; /* Center align car brands */
color: #fff;
}
.car-brand {
font-size: 24px;
margin-top: 20px;
}
.car-list {
display: flex;
flex-wrap: wrap;
margin-top: 20px;
}
/* For large screens and above, display a 4-column grid */
@media (min-width: 1024px) {
.car-item {
flex: 0 0 calc(25% - 20px); /* Four columns */
}
}
/* For medium screens, display a 2-column grid */
@media (max-width: 1023px) {
.car-item {
flex: 0 0 calc(50% - 20px); /* Two columns */
}
}
/* For small screens, stack items vertically (1 column) */
@media (max-width: 768px) {
.car-item {
flex: 0 0 calc(100% - 20px); /* One column for small screens */
margin: 10px;
background-color: white;
padding: 10px;
border-radius: 5px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
}
.car-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Create a 2x4 grid */
grid-gap: 20px; /* Add some gap between grid items */
margin-top: 20px;
}
.car-item {
background-color: #B2B1B9;
padding: 10px;
border-radius: 5px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
.car-image {
width: 100%;
max-height: 100px;
object-fit: cover;
}
.car-characteristics {
margin-top: 10px;
font-size: 16px;
text-align: center;
}
.car-characteristic {
margin-bottom: 5px;
}
/* Styling for tables */
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
/* Styling for table headers */
th {
background: #0078d4;
color: #333;
padding: 5px 10px;
}
/* Styling for table rows */
tr:nth-child(even) {
background: #f2f2f2;
}
/* Styling for table cells */
td {
padding: 5px 10px;
text-align: center;
}
footer {
background-color: black; /* Changed to black */
color: white;
text-align: center;
padding: 0px 0;
}
footer nav ul {
list-style: none;
padding: 0;
}
footer nav ul li {
display: inline;
margin: 0 10px;
}
footer nav ul li a {
text-decoration: none;
color: white;
}
form{
color: #fff;
}