169 lines
2.9 KiB
CSS

@font-face {
font-family: "Source Han Sans";
src: url("../SourceHanSans.otf") format("opentype");
}
body {
font-family: "Source Han Sans", sans-serif;
}
.background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
filter: blur(40%);
z-index: -1;
}
.container {
width: 98%;
margin: 1%;
padding: 10px;
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
background-color: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
}
.header {
border: 1px solid rgba(0, 0, 0, 0.45);
padding: 5px;
margin-bottom: 10px;
text-align: center;
font-size: 10px;
font-weight: bold;
}
.content {
display: flex;
border: 1px solid rgba(0, 0, 0, 0.5);
margin-bottom: 10px;
padding: 5px;
position: relative;
box-sizing: border-box;
background-color: rgba(183, 207, 255, 0.25); /* 半透明白色背景 */
}
.image {
width: 149px;
height: 201px;
border: 1px solid rgba(128, 64, 128, 0.5);
text-align: center;
box-sizing: border-box;
}
.details {
flex: 1;
padding-left: 10px;
display: flex;
flex-direction: column;
position: relative; /* 使子元素绝对定位相对于这个父元素 */
font-size: 12px;
}
.details .title {
font-weight: bold; /* 加粗字体 */
margin-bottom: 5px;
font-size: 13px;
}
.details .venue_name,
.details .guests,
.details .placeholder {
margin-bottom: 5px;
}
.details .sale_flag {
color: red;
position: absolute;
top: 15px;
right: 5px;
}
.details .id {
color: black;
position: absolute;
top: 30px;
right: 5px;
}
.details .price {
color: #fb7299;
font-weight: bold;
position: absolute;
bottom: 5px;
left: 5px;
}
.details .wish {
color: gray;
position: absolute;
bottom: 5px;
left: 90px; /* 适当调整以避免与price重叠 */
font-size: 10px;
}
.details .start-time {
position: absolute;
bottom: 20px; /* 与end-time有一定的高度差异 */
right: 5px;
font-size: 10px;
}
.details .end-time {
position: absolute;
bottom: 5px;
right: 5px;
font-size: 10px;
}
.footer {
margin-top: 15px;
border: 1px solid rgb(0, 0, 0, 0.25);
flex: 1;
padding-left: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
font-size: 10px;
}
.footer .designer {
text-align: center;
font-weight: bold;
font-size: 10px;
padding: 5px;
margin: 10px 0;
}
.footer .total_results,
.footer .pages {
position: absolute;
font-size: 10px;
}
.footer .total_results {
bottom: 5px;
left: 5px;
}
.footer .pages {
bottom: 5px;
right: 5px;
}
.footer .project_name {
font-size: 10px;
text-align: center;
color: rgb(34, 154, 154);
}
.footer .notice_text {
font-size: 8px;
text-align: center;
color: rgb(81, 69, 159);
}