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:
parent
51fb6655e2
commit
3e5b6a8ba0
6 changed files with 196 additions and 21 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue