Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- <!DOCTYPE html>
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Авторские заметки — блок</title>
- <style>
- @import url("https://fontsapi.zeoseven.com/309/main/result.css"); /* KingHwaOldSong */
- /*
- Стиль: "Авторские заметки" (поля, бумага, карандаш/чернила, ремарки на полях)
- Структура и заглушки: $1..$5 как в исходнике
- */
- .author-notes {
- --paper: #f3efe7;
- --ink: #232323;
- --muted: #6f6a62;
- --accent: #8a6a3f;
- --border: rgba(0,0,0,.10);
- position: relative;
- margin: 1em 0;
- background: var(--paper);
- color: var(--ink);
- border-radius: 2px;
- overflow: hidden;
- box-shadow:
- 0 2px 14px rgba(0,0,0,.12),
- 0 0 0 1px rgba(255,255,255,.06) inset;
- isolation: isolate;
- }
- /* тонкая "книжная" линейка сверху */
- .author-notes::before {
- content: "";
- position: absolute;
- top: 0; left: 0; right: 0; height: 2px;
- background: linear-gradient(90deg, var(--accent), rgba(138,106,63,.25));
- z-index: 2;
- }
- /* поле слева + легкая линейка */
- .author-notes::after {
- content: "";
- position: absolute;
- top: 14px; bottom: 14px; left: 18px; width: 14px;
- background:
- linear-gradient(to right, rgba(0,0,0,.10), rgba(0,0,0,0) 70%),
- repeating-linear-gradient(
- to bottom,
- rgba(0,0,0,.06) 0px,
- rgba(0,0,0,.06) 1px,
- rgba(0,0,0,0) 24px
- );
- opacity: .25;
- pointer-events: none;
- z-index: 1;
- }
- .author-notes summary {
- list-style: none;
- padding: 20px 20px 18px 40px;
- cursor: pointer;
- position: relative;
- z-index: 5;
- }
- /* убрать стандартный маркер (стрелку) кроссбраузерно */
- .author-notes summary::marker { content: ""; } /* Firefox/Chromium */
- .author-notes summary::-webkit-details-marker { display: none; } /* Safari */
- .an-header {
- display: flex;
- flex-direction: column;
- gap: 7px;
- position: relative;
- }
- .an-watermark {
- position: absolute;
- right: -6px;
- top: -6px;
- font-family: "Didot", "Bodoni MT", serif;
- font-style: italic;
- font-size: 4.4rem;
- color: rgba(0,0,0,.045);
- line-height: 1;
- pointer-events: none;
- z-index: -1;
- }
- .an-tag {
- font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
- font-size: 0.62rem;
- letter-spacing: 0.16em;
- text-transform: uppercase;
- color: var(--accent);
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .an-tag::after {
- content: "";
- height: 1px;
- width: 22px;
- background: var(--accent);
- opacity: .55;
- }
- /* тот же "любимый" шрифт заголовка */
- .an-title {
- font-family: "KingHwaOldSong", "kinghwaoldsong", Georgia, "Times New Roman", serif;
- font-size: 1.32rem;
- font-weight: 400;
- line-height: 1.25;
- padding-bottom: 10px;
- border-bottom: 1px dashed var(--border);
- }
- .an-meta {
- display: flex;
- flex-direction: column;
- gap: 3px;
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
- font-size: 0.68rem;
- color: var(--muted);
- }
- .an-content {
- padding: 0 22px 22px 42px;
- font-size: 0.92rem;
- line-height: 1.72;
- color: #3f3f3f;
- text-align: justify;
- opacity: 0;
- max-height: 0;
- transform: translateY(-6px);
- transform-origin: top;
- animation: anUnfold .45s ease forwards;
- }
- .author-notes[open] {
- box-shadow:
- 0 10px 26px rgba(0,0,0,.16),
- 0 0 0 1px rgba(138, 106, 63, .18) inset;
- }
- @keyframes anUnfold {
- to { opacity: 1; max-height: 1200px; transform: translateY(0); }
- }
- @media (min-width: 768px) {
- .author-notes summary { padding: 24px 26px 20px 48px; }
- .an-title { font-size: 1.5rem; }
- .an-meta { flex-direction: row; justify-content: space-between; }
- .an-content { padding: 0 30px 28px 52px; }
- .an-watermark { font-size: 5.2rem; }
- }
- @media (min-width: 1024px) {
- .author-notes summary { padding: 28px 32px 22px 56px; }
- .an-title { font-size: 1.62rem; }
- .an-content { padding: 0 40px 36px 62px; }
- .an-watermark { font-size: 6.0rem; }
- }
- </style>
- <div class="tsuki-wrapper">
- <details class="author-notes">
- <summary>
- <div class="an-header">
- <div class="an-watermark">$1</div>
- <div class="an-tag">Author’s Notes // Entry $1</div>
- <div class="an-title">$2</div>
- <div class="an-meta">
- <span>WHEN: $3</span>
- <span>WHERE: $4</span>
- </div>
- </div>
- </summary>
- <div class="an-content">
- $5
- </div>
- </details>
- </div>
- </body>
- </html>
- ```
Advertisement
Add Comment
Please, Sign In to add comment