-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
80 lines (66 loc) · 1.19 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
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
}
h1, h2 {
margin: 20px 0;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
.gift-container {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.gift {
width: 200px;
text-align: center;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.gift img {
width: 200px;
height: 200px;
object-fit: cover;
}
.gift.highlight {
border: 4px solid red;
}
.hidden {
display: none;
}
.fade-out {
opacity: 0;
transition: opacity 1s ease;
}
.selected {
position: relative;
margin: 0 auto;
width: 200px;
text-align: center;
}
.selected img {
width: 200px;
height: 200px;
object-fit: cover;
margin-bottom: 20px;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
}
.highlight {
font-weight: bold; /* 加粗 */
font-size: 18px; /* 字體大小 */
color: #333; /* 字體顏色 */
}
/* 高亮的邊框樣式(僅用於動畫) */
.highlight-border {
border: 4px solid red;
}