-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#665] Add and use a modal component
* takes care of including the close modal button and the bits of code needed to make reveal.js recognize this as a modal (the data-reveal) * accepts id / class arguments * tweaks the appearance of the close button so it's not as prominent * some refactoring to make sure the styling is only done in one location
- Loading branch information
Showing
8 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.close-reveal-modal { | ||
text-decoration: none; | ||
|
||
&:hover, &:focus { | ||
color: $primary-color; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[%# components/modal.tt | ||
|
||
Wrapper block for modals | ||
|
||
Authors: | ||
Afuna <coder.dw@afunamatata.com> | ||
|
||
This program is free software; you may redistribute it and/or modify it under | ||
the same terms as Perl itself. For a copy of the license, please reference | ||
'perldoc perlartistic' or 'perldoc perlgpl'. | ||
%] | ||
|
||
<div id="[%- id -%]" class="reveal-modal [%- class.join(" ") -%]" data-reveal> | ||
[%- content -%] | ||
<a href="#0" class="close-reveal-modal" title="Close">×</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters