-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
169 lines (147 loc) · 2.85 KB
/
index.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
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
/* 全局样式 */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f9f9f9;
}
header {
position: fixed;
top: 0;
left: 0;
background: #ffffff;
padding: 10px 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
width: 100%;
z-index: 1000;
}
.logo {
max-width: 120px;
vertical-align: middle;
}
main {
padding: 60px 20px 20px; /* Adjusted padding to account for fixed header */
}
form {
max-width: 600px;
margin: 0 auto;
background: #ffffff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select {
width: calc(100% - 20px);
padding: 10px;
margin-bottom: 12px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: #fafafa;
}
input[type="file"] {
border: none;
padding: 0;
}
button {
background-color: #007bff;
color: #ffffff;
border: none;
padding: 12px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
.hidden {
display: none;
}
#invitation-section {
text-align: center;
margin-top: 20px;
}
#photo-container {
position: relative;
}
#main-photo {
max-width: 100%;
border-radius: 8px;
opacity: 0.6; /* 使照片淡化 */
}
#invitation-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0, 0, 0, 0.5);
color: #ffffff;
border-radius: 8px;
flex-direction: column;
text-align: center;
}
#invitation-overlay p {
font-size: 24px;
margin: 0;
}
#invitation-overlay button {
margin-top: 20px;
background-color: #28a745;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
#invitation-overlay button:hover {
background-color: #218838;
}
footer {
background: #ffffff;
text-align: center;
padding: 10px;
position: relative;
width: 100%;
bottom: 0;
border-top: 1px solid #ddd;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
#music-control {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
gap: 10px;
}
#music-control button {
background: none;
border: none;
cursor: pointer;
width: 40px;
height: 40px;
background-size: cover;
}
#music-control #play-music {
background-image: url('images/sound-on.png');
}
#music-control #stop-music {
display: none;
background-image: url('images/sound-off.png');
}