Skip to content

Commit

Permalink
Item14984: package compressed fonts as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Oct 28, 2020
1 parent cc217e8 commit f9631bc
Show file tree
Hide file tree
Showing 22 changed files with 29,787 additions and 1,504 deletions.
20 changes: 8 additions & 12 deletions data/System/MaterialIcons.txt
@@ -1,10 +1,10 @@
%META:TOPICINFO{author="ProjectContributor" comment="" date="1548935217" format="1.1" version="1"}%
%META:TOPICINFO{author="micha" comment="reprev" date="1597992645" format="1.1" reprev="2" version="3"}%
%META:TOPICPARENT{name="WebFontsContrib"}%
---+!! %TOPIC%

---++ Usage

As an icon font material icons may be accessed via the [[VarJQICON]][JQICON macro]]. To do so you need to
As an icon font material icons may be accessed via the [[VarJQICON][JQICON macro]]. To do so you need to
register the material icons font to the [[IconService]] of [[JQueryPlugin]]. Add this section to the
=$Foswiki::cfg{JQueryPlugin}{IconFonts}= setting if not already present:

Expand Down Expand Up @@ -38,7 +38,7 @@ where =add-alarm= is the name of an icon. See the full list of all icons below.
---++ Icons
%ADDTOZONE{"head" id="MATERIAL::CSS" text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/WebFontsContrib/material-icons/font-face.css' media='all'>"}%
%ADDTOZONE{"head" id="MATERIAL::CSS::TEST" text="<link rel='stylesheet' href='%PUBURLPATH%/%WEB%/%TOPIC%/style.css' media='all'>"}%
%ADDTOZONE{"script" id="MATERIAL::JS::TEST" requires="JQUERYPLUGIN::LIVEQUERY" text="<script src='%PUBURLPATH%/%WEB%/%TOPIC%/script.js'></script>"}%
%ADDTOZONE{"script" id="MATERIAL::JS::TEST" text="<script src='%PUBURLPATH%/%WEB%/%TOPIC%/script.js'></script>"}%
%STARTATTACH{"style.css" hidecontent="on"}%
.entry {
width:18em;
Expand All @@ -53,12 +53,8 @@ where =add-alarm= is the name of an icon. See the full list of all icons below.
text-decoration:none;
}
.entry i {
-webkit-transition: font-size 250ms;
transition: font-size 250ms;
margin:0 14px 0 5px;
}
.entry:hover i {
font-size:28px;
font-size:24px;
}
%ENDATTACH%
%STARTATTACH{"script.js" hidecontent="on"}%
Expand All @@ -83,7 +79,7 @@ jQuery(function($) {
$(".filterIcons:not(.filterIconsInited").livequery(function() {
var $input = $(this);
$input.addClass("filterIconsInited");
$input.keyup(function() {
$input.on("keyup", function() {
if (typeof(timer) !== 'undefined') {
//console.log("clearing timeout");
window.clearTimeout(timer);
Expand All @@ -101,7 +97,7 @@ jQuery(function($) {

<b>Search</b>: <input type="text" size="30" class="filterIcons" />

<div class='overview clearfix'>
<div class='overview'>
<a class='entry'><i class='ma ma-3d-rotation'></i> 3d-rotation</a>
<a class='entry'><i class='ma ma-ac-unit'></i> ac-unit</a>
<a class='entry'><i class='ma ma-access-alarm'></i> access-alarm</a>
Expand Down Expand Up @@ -1036,8 +1032,8 @@ jQuery(function($) {
<a class='entry'><i class='ma ma-zoom-out-map'></i> zoom-out-map</a>
</div>

%META:FILEATTACHMENT{name="style.css" attachment="style.css" attr="" comment="Generated by <nop>AttachContentPlugin" date="1548935217" path="style.css" size="334" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="script.js" attachment="script.js" attr="" comment="Generated by <nop>AttachContentPlugin" date="1548935217" path="script.js" size="1035" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="style.css" attachment="style.css" attr="" comment="Generated by <nop>AttachContentPlugin" date="1597909392" path="style.css" size="245" user="micha" version="22"}%
%META:FILEATTACHMENT{name="script.js" attachment="script.js" attr="" comment="Generated by <nop>AttachContentPlugin" date="1597909089" path="script.js" size="1041" user="micha" version="19"}%
%META:TOPICMOVED{by="micha" date="1467033228" from="Sandbox.MaterialIconsTest" to="System.MaterialIcons"}%
%META:PREFERENCE{name="DISPLAYATTACHMENTS" title="DISPLAYATTACHMENTS" type="Local" value="off"}%
%META:PREFERENCE{name="NOWYSIWYG" title="NOWYSIWYG" type="Local" value="on"}%
Expand Down
3 changes: 2 additions & 1 deletion data/System/WebFontsContrib.txt
Expand Up @@ -47,6 +47,7 @@ Note that copyrights apply to each font individually.
---++ Change History

%TABLE{columnwidths="7em" tablewidth="100%"}%
| 28 Oct 2020 | package compressed font files as well now |
| 11 Feb 2019 | fixed syntax error in =Config.spec= file |
| 31 Jan 2019 | added Source Code Pro and Source Sans Pro fonts; added compatibility with latest !JQueryPlugin |
| 18 Sep 2017 | added missing css and js |
Expand All @@ -60,7 +61,7 @@ Note that copyrights apply to each font individually.
%META:FIELD{name="Release" title="Release" value="%25$RELEASE%25"}%
%META:FIELD{name="Description" title="Description" value="%25$SHORTDESCRIPTION%25"}%
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/%25$ROOTMODULE%25"}%
%META:FIELD{name="Copyright" title="Copyright" value="2015-2019 Michael Daum http://michaeldaumconsulting.com"}%
%META:FIELD{name="Copyright" title="Copyright" value="2015-2020 Michael Daum"}%
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
%META:FIELD{name="Home" title="Home" value="https://foswiki.org/Extensions/%25$ROOTMODULE%25"}%
%META:FIELD{name="Support" title="Support" value="https://foswiki.org/Support/%25$ROOTMODULE%25"}%
6 changes: 3 additions & 3 deletions lib/Foswiki/Contrib/WebFontsContrib.pm
@@ -1,6 +1,6 @@
# Extension for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# WebFontsContrib is Copyright (C) 2015-2019 Michael Daum http://michaeldaumconsulting.com
# WebFontsContrib is Copyright (C) 2015-2020 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -20,8 +20,8 @@ use warnings;

use Foswiki::Func ();

our $VERSION = '3.01';
our $RELEASE = '11 Feb 2019';
our $VERSION = '4.00';
our $RELEASE = '28 Oct 2020';
our $SHORTDESCRIPTION = 'Web fonts for Foswiki skins';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down

0 comments on commit f9631bc

Please sign in to comment.