-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
148 lines (130 loc) · 2.5 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
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
/* style.css */
.container {
max-width: 800px;
}
.text-xl {
font-size: 1.5rem;
}
.font-bold {
font-weight: bold;
}
/* 更多自定义样式... */
/* 添加磨砂背景 */
body {
background-size: cover;
background-position: center center;
background-attachment: fixed;
backdrop-filter: blur(10px); /* 使用新的 CSS 模糊特性 */
}
#emoji-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
@keyframes emoji-float {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-100%);
}
100% {
transform: translateY(0);
}
}
/* 瀑布流布局 */
#main {
column-count: 3;
column-gap: 1rem;
margin-left: 15%;
margin-right: 15%;
margin-top: 5rem;
}
.card {
background-color: rgba(255, 255, 255, 0.5);
padding: 1rem;
margin-bottom: 1rem;
break-inside: avoid;
border-radius: 0.5rem;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}
/* 海报和公告区域 */
#header {
width: 70%;
margin: 2rem auto;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 1; /* 使内容区域在背景上方 */
}
#poster-container {
width: 30%;
padding-bottom: 30%;
position: relative;
overflow: hidden;
z-index: 1; /* 使内容区域在背景上方 */
}
.poster {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
}
.poster img {
width: 100%;
height: 100%;
object-fit: cover;
}
#poster1 {
background-color: #ccc;
}
#poster2 {
background-color: #ccc;
}
#announcement {
width: 65%;
height: 300px;
background-color: rgba(255, 255, 255, 0.5);
position: relative;
z-index: 1; /* 使内容区域在背景上方 */
border-radius: 0.5rem;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}
#announcement p {
padding: 1rem;
}
/* 响应式设计 */
@media (max-width: 1024px) {
#main {
column-count: 2;
}
}
@media (max-width: 768px) {
#main {
column-count: 1;
}
}
@media (max-width: 480px) {
#header {
flex-direction: column;
align-items: flex-start;
}
#poster-container {
width: 100%;
padding-bottom: 100%;
margin-bottom: 1rem;
}
#announcement {
width: 100%;
margin-bottom: 1rem;
}
}