Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="600" viewBox="0 0 960 600" role="img" aria-label="default theme preview">
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#eef7f5"/>
|
||||
<stop offset="55%" stop-color="#f3f7f9"/>
|
||||
<stop offset="100%" stop-color="#e7eef2"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="960" height="600" fill="url(#bg)"/>
|
||||
<rect x="48" y="40" width="864" height="520" rx="28" fill="#ffffff" fill-opacity="0.78" stroke="#0e1a241f"/>
|
||||
<text x="80" y="110" font-family="Georgia, serif" font-size="48" font-weight="700" fill="#0e1a24">Lara<tspan fill="#0f8a7a">Blog</tspan></text>
|
||||
<text x="80" y="148" font-family="Helvetica, Arial, sans-serif" font-size="18" fill="#5a6b78">R���� � ؤ;���</text>
|
||||
<rect x="80" y="176" width="560" height="2" fill="#0e1a241f"/>
|
||||
<rect x="80" y="210" width="180" height="14" rx="7" fill="#0f8a7a"/>
|
||||
<rect x="280" y="210" width="90" height="14" rx="7" fill="#0e1a2426"/>
|
||||
<rect x="390" y="210" width="90" height="14" rx="7" fill="#0e1a2426"/>
|
||||
<rect x="80" y="260" width="520" height="28" rx="8" fill="#0e1a24"/>
|
||||
<rect x="80" y="304" width="420" height="12" rx="6" fill="#5a6b7888"/>
|
||||
<rect x="80" y="328" width="480" height="12" rx="6" fill="#5a6b7855"/>
|
||||
<rect x="80" y="370" width="460" height="24" rx="8" fill="#0e1a24e6"/>
|
||||
<rect x="80" y="410" width="380" height="12" rx="6" fill="#5a6b7888"/>
|
||||
<rect x="680" y="210" width="200" height="220" rx="18" fill="#ffffff" stroke="#0e1a241f"/>
|
||||
<rect x="704" y="236" width="120" height="14" rx="7" fill="#0e1a24"/>
|
||||
<rect x="704" y="270" width="150" height="10" rx="5" fill="#0f8a7a66"/>
|
||||
<rect x="704" y="294" width="130" height="10" rx="5" fill="#0e1a2426"/>
|
||||
<rect x="704" y="318" width="140" height="10" rx="5" fill="#0e1a2426"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,443 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");
|
||||
|
||||
:root {
|
||||
--ink: #0e1a24;
|
||||
--muted: #5a6b78;
|
||||
--paper: #eef3f6;
|
||||
--panel: rgba(255, 255, 255, 0.78);
|
||||
--line: rgba(14, 26, 36, 0.12);
|
||||
--teal: #0f8a7a;
|
||||
--teal-deep: #0a5f54;
|
||||
--glow: #7fd9c7;
|
||||
--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
|
||||
--sans: "DM Sans", "Avenir Next", sans-serif;
|
||||
--radius: 1.25rem;
|
||||
--shadow: 0 18px 50px rgba(14, 26, 36, 0.08);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; }
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--ink);
|
||||
font-family: var(--sans);
|
||||
background:
|
||||
radial-gradient(900px 420px at 8% -8%, rgba(127, 217, 199, 0.45), transparent 60%),
|
||||
radial-gradient(700px 360px at 96% 4%, rgba(15, 138, 122, 0.18), transparent 55%),
|
||||
linear-gradient(180deg, #f7fafb 0%, var(--paper) 40%, #e7eef2 100%);
|
||||
line-height: 1.7;
|
||||
min-height: 100vh;
|
||||
}
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0.35;
|
||||
background-image:
|
||||
linear-gradient(rgba(14, 26, 36, 0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(14, 26, 36, 0.03) 1px, transparent 1px);
|
||||
background-size: 48px 48px;
|
||||
mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
|
||||
z-index: 0;
|
||||
}
|
||||
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
|
||||
a:hover { color: var(--teal); }
|
||||
|
||||
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }
|
||||
|
||||
.site-header {
|
||||
padding: 2.75rem 0 1.75rem;
|
||||
animation: rise 0.7s ease both;
|
||||
}
|
||||
.brand-block { display: grid; gap: 0.35rem; margin-bottom: 1.25rem; }
|
||||
.brand {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(2.4rem, 5vw, 3.6rem);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1.05;
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
text-underline-offset: 0;
|
||||
}
|
||||
.brand span { color: var(--teal); }
|
||||
.tagline {
|
||||
margin: 0;
|
||||
max-width: 36rem;
|
||||
color: var(--muted);
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.nav-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.35rem 1.1rem;
|
||||
align-items: center;
|
||||
padding: 0.85rem 0;
|
||||
border-top: 1px solid var(--line);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.nav-bar a {
|
||||
position: relative;
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.nav-bar a::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -0.25rem;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: var(--teal);
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
transition: transform 0.25s ease;
|
||||
}
|
||||
.nav-bar a:hover::after,
|
||||
.nav-bar a.is-active::after { transform: scaleX(1); }
|
||||
.flash {
|
||||
margin: 0.85rem 0 0;
|
||||
color: var(--teal-deep);
|
||||
font-weight: 600;
|
||||
animation: rise 0.45s ease both;
|
||||
}
|
||||
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 280px;
|
||||
gap: 2.5rem;
|
||||
padding: 2.25rem 0 3.5rem;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.layout { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.content { animation: rise 0.8s 0.08s ease both; }
|
||||
.sidebar { animation: rise 0.8s 0.16s ease both; }
|
||||
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: 1.35rem 1.5rem;
|
||||
margin-bottom: 1.1rem;
|
||||
}
|
||||
|
||||
.post-list { display: grid; gap: 0; }
|
||||
.post-item {
|
||||
padding: 1.35rem 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
transition: transform 0.25s ease, opacity 0.25s ease;
|
||||
}
|
||||
.post-item:first-child { padding-top: 0.25rem; }
|
||||
.post-item:hover { transform: translateX(4px); }
|
||||
.post-item h2 {
|
||||
margin: 0 0 0.4rem;
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(1.45rem, 2.4vw, 1.85rem);
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.post-item h2 a { color: inherit; text-decoration: none; }
|
||||
.post-item h2 a:hover { color: var(--teal-deep); }
|
||||
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.55rem; }
|
||||
.excerpt { margin: 0; color: #243442; }
|
||||
|
||||
.page-title {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(1.8rem, 3vw, 2.4rem);
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
/* Semantic article */
|
||||
.post.panel,
|
||||
.post {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: 1.5rem 1.65rem 1.85rem;
|
||||
margin-bottom: 1.1rem;
|
||||
}
|
||||
.post__header { margin-bottom: 1.25rem; }
|
||||
.post__title {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(1.9rem, 3.2vw, 2.55rem);
|
||||
margin: 0 0 0.65rem;
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.post__meta {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
.post__meta time { font-variant-numeric: tabular-nums; }
|
||||
.post__category { font-weight: 600; text-decoration: none; }
|
||||
.post__category:hover { color: var(--teal); }
|
||||
|
||||
.post__toc {
|
||||
margin: 0 0 1.5rem;
|
||||
padding: 1rem 1.15rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 0.9rem;
|
||||
background: rgba(15, 138, 122, 0.06);
|
||||
}
|
||||
.post__toc-title {
|
||||
margin: 0 0 0.65rem;
|
||||
font-family: var(--serif);
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.post__toc-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
.post__toc-item a {
|
||||
text-decoration: none;
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
.post__toc-item a:hover { color: var(--teal-deep); }
|
||||
.post__toc-item--h3 { padding-left: 0.85rem; }
|
||||
.post__toc-item--h4 { padding-left: 1.7rem; }
|
||||
|
||||
.post__content {
|
||||
font-size: 1.08rem;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.post__content > *:first-child { margin-top: 0; }
|
||||
.post__content h2,
|
||||
.post__content h3,
|
||||
.post__content h4 {
|
||||
font-family: var(--serif);
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.3;
|
||||
scroll-margin-top: 1.25rem;
|
||||
}
|
||||
.post__content h2 { font-size: 1.55rem; margin: 1.75rem 0 0.75rem; }
|
||||
.post__content h3 { font-size: 1.28rem; margin: 1.45rem 0 0.6rem; }
|
||||
.post__content h4 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
|
||||
.post__content p { margin: 0 0 1rem; }
|
||||
.post__content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
|
||||
.post__content pre {
|
||||
overflow-x: auto;
|
||||
padding: 1rem 1.1rem;
|
||||
border-radius: 0.85rem;
|
||||
background: #0e1a24;
|
||||
color: #e8f2f0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.post__content code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
.post__content :not(pre) > code {
|
||||
padding: 0.1em 0.35em;
|
||||
border-radius: 0.35rem;
|
||||
background: rgba(14, 26, 36, 0.06);
|
||||
}
|
||||
.post__content blockquote {
|
||||
margin: 1rem 0;
|
||||
padding: 0.15rem 0 0.15rem 1rem;
|
||||
border-left: 3px solid var(--teal);
|
||||
color: var(--muted);
|
||||
}
|
||||
.post__footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
|
||||
.post__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
|
||||
|
||||
.comments { margin-top: 0.25rem; }
|
||||
.comments__title {
|
||||
font-family: var(--serif);
|
||||
font-size: 1.5rem;
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
.comment__meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.35rem 0.75rem;
|
||||
align-items: baseline;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
.comment__author { color: var(--ink); }
|
||||
.comment__body { color: #243442; }
|
||||
|
||||
.article-body .body { font-size: 1.05rem; }
|
||||
.article-body .body > *:first-child { margin-top: 0; }
|
||||
.article-body img { max-width: 100%; height: auto; border-radius: 0.75rem; }
|
||||
.tag-cloud a,
|
||||
.chip {
|
||||
display: inline-block;
|
||||
margin: 0 0.35rem 0.35rem 0;
|
||||
padding: 0.2rem 0.65rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(15, 138, 122, 0.08);
|
||||
color: var(--teal-deep);
|
||||
text-decoration: none;
|
||||
font-size: 0.88rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sidebar .panel h3 {
|
||||
margin: 0 0 0.75rem;
|
||||
font-family: var(--serif);
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
.sidebar ul { margin: 0; padding: 0; list-style: none; }
|
||||
.sidebar li { margin: 0.45rem 0; }
|
||||
.sidebar li a { text-decoration: none; color: var(--ink); font-weight: 600; }
|
||||
.sidebar li a:hover { color: var(--teal); }
|
||||
.sidebar .note { color: var(--muted); font-size: 0.92rem; margin: 0; }
|
||||
|
||||
.comment {
|
||||
padding: 0.9rem 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.comment:last-of-type { border-bottom: 0; }
|
||||
|
||||
form.stack label { display: block; margin: 0.85rem 0 0.3rem; font-weight: 600; }
|
||||
form.stack input,
|
||||
form.stack textarea {
|
||||
width: 100%;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 0.85rem;
|
||||
padding: 0.75rem 0.9rem;
|
||||
font: inherit;
|
||||
background: #fff;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
form.stack input:focus,
|
||||
form.stack textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--teal);
|
||||
box-shadow: 0 0 0 3px rgba(15, 138, 122, 0.15);
|
||||
}
|
||||
form.stack button,
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 1rem;
|
||||
background: linear-gradient(135deg, var(--teal), var(--teal-deep));
|
||||
color: #fff;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 0.75rem 1.35rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
box-shadow: 0 10px 24px rgba(15, 138, 122, 0.25);
|
||||
}
|
||||
form.stack button:hover,
|
||||
.btn:hover { transform: translateY(-1px); }
|
||||
|
||||
.pagination { margin-top: 1.5rem; }
|
||||
.pagination nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
||||
|
||||
.site-footer {
|
||||
padding: 1.5rem 0 3rem;
|
||||
color: var(--muted);
|
||||
border-top: 1px solid var(--line);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
.site-footer a { color: inherit; }
|
||||
|
||||
@keyframes rise {
|
||||
from { opacity: 0; transform: translateY(12px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.wrap { width: calc(100% - 1.25rem); }
|
||||
.site-header { padding: 1.15rem 0 0.65rem; }
|
||||
.brand-block { margin-bottom: 0.75rem; gap: 0.2rem; }
|
||||
.brand { font-size: clamp(1.7rem, 8vw, 2.15rem); }
|
||||
.tagline { font-size: 0.92rem; max-width: none; }
|
||||
.nav-bar {
|
||||
gap: 0.45rem;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: 0.55rem 0;
|
||||
scrollbar-width: none;
|
||||
border-block-width: 1px;
|
||||
}
|
||||
.nav-bar::-webkit-scrollbar { display: none; }
|
||||
.nav-bar a {
|
||||
flex: 0 0 auto;
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(15, 138, 122, 0.1);
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
.nav-bar a::after { display: none; }
|
||||
.layout {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
padding: 1.1rem 0 2rem;
|
||||
}
|
||||
.content, .sidebar { animation: none; }
|
||||
.panel {
|
||||
padding: 0.95rem 1rem;
|
||||
border-radius: 1rem;
|
||||
box-shadow: none;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
.post-item {
|
||||
padding: 0.95rem 0;
|
||||
}
|
||||
.post-item:hover { transform: none; }
|
||||
.post-item h2 { font-size: 1.28rem; }
|
||||
.page-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
|
||||
.excerpt { font-size: 0.95rem; }
|
||||
.sidebar .panel h3 { font-size: 1rem; margin-bottom: 0.55rem; }
|
||||
.sidebar ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
.sidebar li { margin: 0; }
|
||||
.sidebar li a {
|
||||
display: inline-block;
|
||||
padding: 0.35rem 0.7rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(14, 26, 36, 0.05);
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
.sidebar .note { font-size: 0.86rem; }
|
||||
form.stack input,
|
||||
form.stack textarea,
|
||||
form.stack button { font-size: 1rem; }
|
||||
form.stack button { width: 100%; margin-top: 0.85rem; }
|
||||
.site-footer { padding: 1rem 0 2rem; font-size: 0.85rem; }
|
||||
body::before { opacity: 0.12; background-size: 28px 28px; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.wrap { width: calc(100% - 1rem); }
|
||||
.brand { font-size: 1.55rem; }
|
||||
.meta { font-size: 0.82rem; }
|
||||
.article-body .body { font-size: 0.98rem; line-height: 1.7; }
|
||||
.chip { font-size: 0.8rem; padding: 0.15rem 0.55rem; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="600" viewBox="0 0 960 600" role="img" aria-label="example theme preview">
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="1" y1="0" x2="0" y2="1">
|
||||
<stop offset="0%" stop-color="#fff7f1"/>
|
||||
<stop offset="50%" stop-color="#f3f6fb"/>
|
||||
<stop offset="100%" stop-color="#eef2f8"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="960" height="600" fill="url(#bg)"/>
|
||||
<rect x="48" y="40" width="864" height="520" rx="8" fill="#ffffff" fill-opacity="0.9" stroke="#14203324"/>
|
||||
<text x="80" y="118" font-family="Georgia, serif" font-size="46" font-weight="700" fill="#142033">LaraBlog</text>
|
||||
<rect x="80" y="132" width="160" height="6" fill="#c45c26"/>
|
||||
<text x="80" y="172" font-family="Helvetica, Arial, sans-serif" font-size="18" fill="#5c6b80">�%��H � :�����</text>
|
||||
<rect x="80" y="210" width="70" height="12" rx="2" fill="#c45c26"/>
|
||||
<rect x="170" y="210" width="70" height="12" rx="2" fill="#14203333"/>
|
||||
<rect x="260" y="210" width="70" height="12" rx="2" fill="#14203333"/>
|
||||
<rect x="80" y="260" width="500" height="90" rx="6" fill="#fff" stroke="#c45c2640"/>
|
||||
<rect x="104" y="284" width="360" height="18" rx="4" fill="#142033"/>
|
||||
<rect x="104" y="316" width="280" height="10" rx="4" fill="#5c6b8088"/>
|
||||
<rect x="80" y="372" width="500" height="90" rx="6" fill="#fff" stroke="#14203318"/>
|
||||
<rect x="104" y="396" width="300" height="18" rx="4" fill="#142033"/>
|
||||
<rect x="104" y="428" width="250" height="10" rx="4" fill="#5c6b8088"/>
|
||||
<rect x="640" y="260" width="220" height="200" rx="6" fill="#fff" stroke="#14203318"/>
|
||||
<rect x="664" y="288" width="100" height="14" rx="3" fill="#142033"/>
|
||||
<rect x="664" y="324" width="160" height="10" rx="3" fill="#c45c2666"/>
|
||||
<rect x="664" y="348" width="140" height="10" rx="3" fill="#14203326"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,128 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,700&display=swap");
|
||||
|
||||
:root {
|
||||
--ink: #142033;
|
||||
--muted: #5c6b80;
|
||||
--paper: #f3f6fb;
|
||||
--panel: rgba(255, 255, 255, 0.86);
|
||||
--line: rgba(20, 32, 51, 0.14);
|
||||
--accent: #c45c26;
|
||||
--accent-deep: #9a3f12;
|
||||
--serif: "Newsreader", Georgia, serif;
|
||||
--sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; }
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--ink);
|
||||
font-family: var(--sans);
|
||||
background:
|
||||
radial-gradient(800px 380px at 90% -10%, rgba(196, 92, 38, 0.18), transparent 55%),
|
||||
radial-gradient(900px 420px at 0% 0%, rgba(40, 90, 160, 0.12), transparent 50%),
|
||||
linear-gradient(180deg, #fbfcfe, var(--paper));
|
||||
line-height: 1.7;
|
||||
}
|
||||
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
|
||||
.site-header { padding: 2.5rem 0 1.25rem; }
|
||||
.brand {
|
||||
display: inline-block;
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(2.2rem, 4.5vw, 3.2rem);
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.03em;
|
||||
border-bottom: 4px solid var(--accent);
|
||||
animation: slide 0.55s ease both;
|
||||
}
|
||||
.tagline { color: var(--muted); margin: 0.6rem 0 1rem; max-width: 34rem; }
|
||||
.nav-bar {
|
||||
display: flex; flex-wrap: wrap; gap: 0.85rem;
|
||||
padding: 0.75rem 0; border-block: 1px solid var(--line);
|
||||
}
|
||||
.nav-bar a { color: var(--ink); text-decoration: none; font-weight: 700; }
|
||||
.nav-bar a:hover { color: var(--accent-deep); }
|
||||
.flash { color: var(--accent-deep); font-weight: 700; }
|
||||
.layout { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; padding: 2rem 0 3rem; }
|
||||
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
|
||||
.panel, .post-item {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 0.35rem;
|
||||
padding: 1.2rem 1.35rem;
|
||||
margin-bottom: 0.9rem;
|
||||
}
|
||||
.post-item { transition: border-color 0.2s ease; }
|
||||
.post-item:hover { border-color: var(--accent); }
|
||||
.post-item h2, .page-title {
|
||||
font-family: var(--serif);
|
||||
margin: 0 0 0.45rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.post-item h2 a { color: inherit; text-decoration: none; }
|
||||
.meta { color: var(--muted); font-size: 0.9rem; }
|
||||
.sidebar h3 { margin: 0 0 0.6rem; font-family: var(--serif); }
|
||||
.sidebar ul { list-style: none; margin: 0; padding: 0; }
|
||||
.sidebar li { margin: 0.4rem 0; }
|
||||
.sidebar a { color: var(--ink); font-weight: 600; text-decoration: none; }
|
||||
.chip {
|
||||
display: inline-block; margin-right: 0.35rem; padding: 0.15rem 0.55rem;
|
||||
border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.post {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 0.35rem;
|
||||
padding: 1.35rem 1.45rem 1.6rem;
|
||||
margin-bottom: 0.9rem;
|
||||
}
|
||||
.post__title {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(1.85rem, 3vw, 2.4rem);
|
||||
margin: 0 0 0.55rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.post__meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
|
||||
.post__category { font-weight: 700; text-decoration: none; color: var(--accent-deep); }
|
||||
.post__toc {
|
||||
margin: 1rem 0 1.35rem;
|
||||
padding: 0.9rem 1rem;
|
||||
border: 1px solid var(--line);
|
||||
border-left: 4px solid var(--accent);
|
||||
background: rgba(196, 92, 38, 0.06);
|
||||
}
|
||||
.post__toc-title { margin: 0 0 0.55rem; font-family: var(--serif); font-size: 1.05rem; }
|
||||
.post__toc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
|
||||
.post__toc-item a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
|
||||
.post__toc-item a:hover { color: var(--accent-deep); }
|
||||
.post__toc-item--h3 { padding-left: 0.85rem; }
|
||||
.post__toc-item--h4 { padding-left: 1.7rem; }
|
||||
.post__content { font-size: 1.06rem; line-height: 1.8; }
|
||||
.post__content h2, .post__content h3, .post__content h4 {
|
||||
font-family: var(--serif);
|
||||
scroll-margin-top: 1.25rem;
|
||||
}
|
||||
.post__content h2 { font-size: 1.45rem; margin: 1.6rem 0 0.7rem; }
|
||||
.post__content h3 { font-size: 1.22rem; margin: 1.35rem 0 0.55rem; }
|
||||
.post__content img { max-width: 100%; height: auto; }
|
||||
.post__footer { margin-top: 1.35rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
|
||||
.post__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
|
||||
.comments__title { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 0.85rem; }
|
||||
.comment { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
|
||||
.comment__meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.3rem; }
|
||||
|
||||
form.stack label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }
|
||||
form.stack input, form.stack textarea {
|
||||
width: 100%; border: 1px solid var(--line); border-radius: 0.35rem; padding: 0.7rem 0.8rem; font: inherit;
|
||||
}
|
||||
form.stack button {
|
||||
margin-top: 1rem; background: var(--accent); color: #fff; border: 0;
|
||||
border-radius: 0.35rem; padding: 0.7rem 1.15rem; font-weight: 700; cursor: pointer;
|
||||
}
|
||||
.site-footer { padding: 1.25rem 0 2.5rem; color: var(--muted); border-top: 1px solid var(--line); }
|
||||
@keyframes slide {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user