LƯU Ý:
Đây là trang component được sử dụng nội bộ bởi Wiki SCP-VN. Trang này được tạo để sử dụng và thêm vào các trang khác.
Tốt hơn khác với hoàn toàn, nhưng những gì bạn đang thấy đây chính là những gì bạn nhận được.
Đây là component bắt chước ghi chú cá nhân tại SCP-4485.
Các Ví Dụ:
Văn Bản.Văn bản trong ghi chú.
Văn Bản.Văn bản trong ghi chú. và nhiều văn bản hơm.
Văn Bản.Văn bản trong ghi chú.. Thêm văn bản.
Văn Bản không có Ghi Chú.
Hướng Dẫn Sử Dụng:
Thêm cái này:
[[include :scp-vn:component:betterfootnotes]]
Sao chép đoạn sau cho từng ghi chú:
[[span class="fnnum"]].[[/span]][[span class="fncon"]]Văn bản trong ghi chú.[[/span]]
Lưu ý:
- Cấp span fnnum có chứa một dấu chấm, do nó cần một ký tự khác dấu cách để hoạt động.
- Màu của văn tự ghi chú có thể được chỉnh theo sau:
[[module CSS]]
:root {
--fnColor: MÀU Ở ĐÂY;
}
[[/module]]
Hoặc không sẽ mặc định là #E6283C.
- Sẽ không có danh sách ghi chú ở cuối.
- Hoạt động với Sigma-9, nhưng không phải hoàn toàn trơn tru.
- Đặc biệt cảm ơn Woedenaz vì khả năng cảm thụ thiết kế tuyệt vời, và
Placeholder McD vì đã ép buộc động viên tôi làm cái này.
Mã Nguồn:
:root { --posX: calc(50% - 358px - 12rem); } /*--- Footnote Auto-counter --*/ #page-content { counter-reset: megacount; } /*--- Footnote Superscript Number --*/ .fnnum { display: inline-block; text-indent: calc(-1% - 0.1em); overflow: hidden; line-height: 83%; text-decoration: none; font-weight: bold; font-style: initial; color: transparent; position: relative; top: -0.25em; font-size: 82%; padding: .15em calc(.21em - 0.4px) .12em calc(.11em - 1px); margin-left: -0.06em; margin-right: -0.25em; counter-increment: megacount; user-select: none; } .fnnum::after { content: "" counter(megacount); color: var(--fnColor, #E6283C); } .fnnum:hover { text-decoration: none; cursor: pointer; background-color: var(--fnColor, #E6283C); } .fnnum:hover::after { color: white; } /*--- Footnote Content Wrapper --*/ .fncon { position: absolute; right: calc(var(--posX) + 80px); line-height: 1.2; padding: 0.82rem; width: 10.3rem; background: white; border: 2px solid black; font-weight: initial; font-style: initial; text-align: initial; pointer-events: none; opacity: 0; transition: opacity 0.15s linear, right 0.3s cubic-bezier(.08,.72,.5,.94); z-index: 9; } .fnnum:hover + .fncon { opacity: 1; right: var(--posX); } .fncon::before { position: absolute; top: 0; left: 0; transform: translateX(-52%) translateY(-55%) scale(1.15); background-color: var(--fnColor, #E6283C); color: white; content: counter(megacount); font-size: initial; font-weight: bold; font-style: initial; padding-left: 0.32em; padding-right: 0.32em; padding-top: 0.18rem; padding-bottom: 0.08rem; } /*--- Mobile Query --*/ @media only screen and (max-width: 1279px) { .fncon { position: fixed; bottom: 1.3rem; left: calc(11% - 50px); width: 70%; transition: opacity 0.15s linear, left 0.3s cubic-bezier(.08,.72,.5,.94); } .fnnum:hover + .fncon { left: 11%; } }