Files
dinner.tootaio.com/20250916/ppt/css/base.css
2025-09-15 00:28:27 +08:00

127 lines
2.1 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================
base.css - Banquet PPT 基础样式
============================ */
/* 1. Reset 基础样式 (简化版 normalize) */
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Noto Sans SC', sans-serif;
}
html,
body {
height: 100%;
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
background-color: #111; /* 深色背景,适合投影 */
color: #fff;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow: hidden; /* 防止出现滚动条 */
}
/* 2. 容器样式 */
#app {
height: 100%;
width: 100%;
position: relative;
overflow: hidden;
}
/* 3. 幻灯片基础样式 */
.banquet-slide {
display: none; /* 默认隐藏js 会控制显示 */
height: 100%;
width: 100%;
padding: 2rem;
position: absolute;
top: 0;
left: 0;
background-color: #222; /* 默认深灰背景 */
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
transition: opacity 0.4s ease, transform 0.4s ease;
}
/* 当前显示的 slide可选效果淡入 */
.banquet-slide[style*="block"] {
opacity: 1;
z-index: 1;
}
.banquet-slide[style*="none"] {
opacity: 0;
z-index: 0;
}
/* 4. 标题/正文默认样式 */
h1,
h2,
h3 {
font-weight: bold;
margin-bottom: 1rem;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2.2rem;
}
h3 {
font-size: 1.6rem;
}
p {
margin-bottom: 1rem;
font-size: 1.2rem;
}
/* 5. 辅助类 */
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-left {
text-align: left;
}
.mt-1 {
margin-top: 0.5rem;
}
.mt-2 {
margin-top: 1rem;
}
.mt-3 {
margin-top: 1.5rem;
}
/* 6. 简单过渡动画(可选) */
.fade-in {
animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}