-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.css
104 lines (84 loc) · 1.77 KB
/
Home.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
.body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.homepage {
overflow-wrap: break-word;
flex-grow: 1; /*flex-grow is used to set the footer at the bottom*/
}
.homepage-header {
display: flex;
justify-content: space-between;
}
.homepage-header > h2 {
display: inline-block;
align-self: center;
margin-left: 30px;
text-align: left;
}
.action-buttons {
align-self: center;
display: inline-block;
margin-right: 30px;
}
.action-buttons > button {
margin: 0 10px;
}
.homepage > hr {
margin-right: 20px;
margin-left: 20px;
margin-bottom: 10px;
margin-top: -10px;
}
.product-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 20px;
margin-top: 30px;
margin-bottom: 30px;
}
.product-card {
list-style-type: none;
position: relative;
border: 2px black solid;
border-radius: 5px;
width: 200px;
margin-left: 20px;
background-color: #fff;
&:hover {
/* filter: brightness(1.2); */
background-color: #fdfdfd;
border: 2px rgba(0, 0, 0, 0.281) solid;
}
}
.product-card > ul {
list-style: none;
text-align: center;
padding: 10px;
}
.product-card-header > input {
text-align: left;
align-self: left;
position: absolute;
top: 10px;
left: 10px;
z-index: 1;
}
@media screen and (max-width: 767px) {
.homepage-header > h2 {
font-size: 30px;
}
}
@media screen and (max-width: 767px) {
.homepage{
align-items: center;
align-content: center;
justify-content: center;
}
.product-list {
grid-template-columns: 1fr;
justify-items: center; /* Center the grid items horizontally */
font-size: larger;
}
}