-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
110 lines (110 loc) · 2.05 KB
/
Copy pathstyle.css
File metadata and controls
110 lines (110 loc) · 2.05 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
*,
::before,
::after {
padding: 0;
margin: 0;
box-sizing: border-box;
list-style: none;
text-decoration: none;
}
:root {
--primary-color: #6d28d9;
--secondary-color: #ede9fe;
--main-white: #fff;
--main-black: #222;
--main-grey: #7c7c7c;
--main-spacing: 0.1rem;
--main-transition: all 0.3s linear;
--main-red: #db2777;
--body-color: #f6f6f6;
}
body {
position: relative;
color: var(--main-black);
background: var(--main-white);
font-family: sans-serif;
background-color: var(--body-color);
}
.header {
position: sticky;
top: 0;
width: 100%;
height: 170px;
background-color: var(--secondary-color);
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
z-index: 10;
padding-bottom: 1rem;
}
#search {
border: none;
outline: none;
border-radius: 5px;
padding: 10px 20px;
font-weight: bold;
width: 20rem;
}
#search:focus {
border: 2px solid var(--primary-color);
}
.filter-box {
display: flex;
justify-content: space-around;
width: 50%;
}
.filter-box a {
display: block;
color: var(--primary-color);
border: 1px solid var(--primary-color);
font-weight: bold;
border-radius: 5px;
padding: 5px 10px;
}
.filter-box a:hover {
background-color: var(--primary-color);
color: var(--main-white);
}
.products {
padding: 4rem 0;
}
.products-center {
width: 90vw;
margin: 0 auto;
max-width: 1170px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
grid-column-gap: 3rem;
grid-row-gap: 5rem;
}
.product {
display: flex;
flex-direction: column;
align-items: center;
border-radius: 8px;
background-color: var(--main-white);
padding-bottom: 1rem;
}
.img-container {
display: block;
width: 100%;
min-height: 12rem;
border-radius: 8px 8px 0 0;
}
.product-desc {
margin-top: 10px;
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
.product-price {
color: var(--primary-color);
}
.product-title {
color: var(--main-black);
font: bold;
font-size: 1.1rem;
}