Files
astrbot_plugin_jx3/templates/styles/base.css
T
2026-09-04 22:38:16 +08:00

109 lines
2.3 KiB
CSS

*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body.jx3-template {
min-width: calc(var(--jx3-page-width) + 64px);
padding: 12px;
color: var(--jx3-text);
font-family: var(--jx3-font);
font-size: var(--jx3-font-size);
line-height: 1.65;
background-color: var(--jx3-bg);
background-image:
radial-gradient(circle at 50% -10%, rgba(190, 145, 63, 0.18), transparent 40%),
linear-gradient(180deg, #f8fafb 0, var(--jx3-bg) 520px);
background-repeat: no-repeat, no-repeat;
background-size: 100% 560px, 100% 100%;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.jx3-frame {
position: relative;
width: 100%;
min-height: calc(100vh - 24px);
padding: 18px;
border: 1px solid var(--jx3-border-strong);
background: rgba(255, 255, 255, 0.72);
box-shadow:
inset 0 0 0 3px rgba(255, 255, 255, 0.9),
inset 0 0 0 4px rgba(126, 83, 27, 0.18),
var(--jx3-shadow-md);
}
.jx3-frame::before,
.jx3-frame::after {
position: absolute;
width: 42px;
height: 42px;
border-color: var(--jx3-gold);
content: "";
pointer-events: none;
}
.jx3-frame::before {
top: 8px;
left: 8px;
border-top: 2px solid var(--jx3-gold);
border-left: 2px solid var(--jx3-gold);
}
.jx3-frame::after {
right: 8px;
bottom: 8px;
border-right: 2px solid var(--jx3-gold);
border-bottom: 2px solid var(--jx3-gold);
}
.jx3-template :where(.container, .page, .page-container),
.jx3-template > .jx3-frame > :where(
.panel,
.header,
.section,
.data-header,
.collection-section
) {
width: min(100%, calc(var(--jx3-page-width) + 240px));
max-width: none;
margin-right: auto;
margin-left: auto;
color: var(--jx3-text);
}
.jx3-template :where(h1, h2, h3, p) {
overflow-wrap: anywhere;
}
.jx3-template h1 {
margin: 0 0 var(--jx3-space-6);
color: var(--jx3-text);
font-size: 42px;
line-height: 1.25;
font-weight: 800;
letter-spacing: 0.06em;
text-align: center;
text-shadow: none;
}
.jx3-template h2,
.jx3-template h3 {
color: var(--jx3-text);
}
.jx3-template a {
color: var(--jx3-blue);
}
.jx3-template img {
max-width: 100%;
}