Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SVG icons definitions support for templates. #1405

Merged
merged 3 commits into from
Apr 14, 2020

Conversation

ishunko
Copy link
Contributor

@ishunko ishunko commented Apr 7, 2020

Add support comments copy link functionality.

This adds SVG sprite definitions functionality to the default template and it is being used by support comments.

All templates need to be modified to take advantage of the SVG sprites. Each template needs to add

/templates/xxx/img/icon-svg-defs.php (core/templates/kimera/img/icon-svg-defs.php) and include it in the beginning of the body tag.
Also, need to add CSS after including the core utilities.less (to make the icon SVG visible):

.cond-svg-icons-defs {
display: flex;
}

@@ -0,0 +1,41 @@
jQuery(document).ready(function($) {
var copyBobBtn = document.querySelector('.js-copy-bob-btn'),
copyJaneBtn = document.querySelector('.js-copy-jane-btn');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove sample code.

@hubzero-admin hubzero-admin merged commit b44369c into hubzero:dev Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants