diff --git a/assets/styles.css b/assets/styles.css index 3263a7c..5f3b7c2 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -241,3 +241,40 @@ .addon-url-data-table .label-default { background: #ccc; } + +/* Copy-to-clipboard code elements */ +.url-copy-code { + cursor: pointer; + transition: all 0.2s ease; + position: relative; +} + +.url-copy-code:hover { + background-color: #e6f3ff !important; + color: #0066cc !important; + border-left: 3px solid #0066cc; + padding-left: 5px !important; +} + +.url-copy-code.copied { + background-color: #d4edda !important; + color: #155724 !important; + border-left: 3px solid #28a745; + padding-left: 5px !important; +} + +.url-copy-feedback { + position: absolute; + background: #28a745; + color: white; + padding: 2px 6px; + border-radius: 3px; + font-size: 10px; + top: -25px; + left: 50%; + transform: translateX(-50%); + white-space: nowrap; + z-index: 1000; + opacity: 0; + transition: opacity 0.3s ease; +} diff --git a/fragments/url/profiles/card.php b/fragments/url/profiles/card.php index 20a0906..1c48969 100644 --- a/fragments/url/profiles/card.php +++ b/fragments/url/profiles/card.php @@ -96,9 +96,13 @@ class="btn btn-primary btn-xs pull-right" ?>
Aufruf via
- rex_getUrl('', '', ['= htmlspecialchars($profile['namespace'] ?? '') ?>' => {id}])
+ rex_getUrl('', '', ['= htmlspecialchars($profile['namespace'] ?? '') ?>' => {id}])
oder via Artikel
- rex_article::get(= $article->getId() ?>)->getUrl(['= htmlspecialchars($profile['namespace'] ?? '') ?>' => {id}])
+ rex_article::get(= $article->getId() ?>)->getUrl(['= htmlspecialchars($profile['namespace'] ?? '') ?>' => {id}])