-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
103 lines (89 loc) · 1.67 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
body {
font-family: Arial, sans-serif;
width: 350px;
background-color: #f8f9fa;
color: #333;
padding: 20px;
}
#product-info {
padding: 15px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
h1, h2 {
font-weight: 600;
margin-bottom: 10px;
}
img {
max-width: 100%;
border-radius: 10px;
}
#similar-products {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 15px;
}
.similar-product {
background-color: #ffffff;
border: 1px solid #ccc;
border-radius: 10px;
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
}
.similar-product:hover {
transform: scale(1.03);
}
.similar-product img {
width: 100%;
height: auto;
border-radius: 8px;
}
.similar-product p {
margin: 5px 0;
font-weight: bold;
text-align: center;
}
.similar-product a {
text-decoration: none;
color: #007bff;
}
.similar-product a:hover {
text-decoration: underline;
}
#loading {
display: none;
font-size: 18px;
font-weight: bold;
text-align: center;
margin: 20px 0;
color: #333;
animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.loading-spinner {
display: inline-block;
width: 24px;
height: 24px;
border: 3px solid rgba(0, 0, 0, 0.3);
border-top: 3px solid #333;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}