1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-29 18:19:42 +02:00

Add ability to copy header link (#256)

* Add ability to copy header link

* Update copy button styles

* Update splash border radius

* Remove cursor pointer from header

* Fix for different header sizes

* Update animation

* Update src/frontend/styles/components/page.pcss

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
Tanya 2022-09-14 15:31:16 +03:00 committed by GitHub
parent 51fb6655e2
commit 3e5b6a8ba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 196 additions and 21 deletions

View file

@ -1,4 +1,9 @@
<h{{ level }} id="{{ text | urlify }}" class="block-header block-header--{{ level }} block-header--anchor">
<div class="block-header__copy-link-splash"></div>
<div class="block-header__copy-link">
<div class="block-header__copy-link-icon--initial">{{ svg('copy') }}</div>
<div class="block-header__copy-link-icon--success">{{ svg('check') }}</div>
</div>
<a href="#{{ text | urlify }}">
{{ text }}
</a>