diff options
Diffstat (limited to 'pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript')
-rw-r--r-- | pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/font.patch | 22 | ||||
-rw-r--r-- | pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/node-packages.nix | 5 |
2 files changed, 26 insertions, 1 deletions
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/font.patch b/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/font.patch new file mode 100644 index 0000000..474e823 --- /dev/null +++ b/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/font.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | diff --git a/templates/editbarButtons.ejs b/templates/editbarButtons.ejs | ||
2 | index 7511025..f71a491 100644 | ||
3 | --- a/templates/editbarButtons.ejs | ||
4 | +++ b/templates/editbarButtons.ejs | ||
5 | @@ -20,7 +20,7 @@ | ||
6 | } | ||
7 | |||
8 | .subscript .buttonicon:before{ | ||
9 | - content:"\e81a"; | ||
10 | + content:"\e834"; | ||
11 | } | ||
12 | |||
13 | .superscript{ | ||
14 | @@ -32,7 +32,7 @@ | ||
15 | } | ||
16 | |||
17 | .superscript .buttonicon:before{ | ||
18 | - content:"\e819"; | ||
19 | + content:"\e833"; | ||
20 | } | ||
21 | |||
22 | </style> | ||
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/node-packages.nix b/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/node-packages.nix index f60a777..04065dd 100644 --- a/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/node-packages.nix +++ b/pkgs/webapps/etherpad-lite/modules/ep_subscript_and_superscript/node-packages.nix | |||
@@ -14,6 +14,9 @@ in | |||
14 | url = "https://registry.npmjs.org/ep_subscript_and_superscript/-/ep_subscript_and_superscript-0.0.3.tgz"; | 14 | url = "https://registry.npmjs.org/ep_subscript_and_superscript/-/ep_subscript_and_superscript-0.0.3.tgz"; |
15 | sha1 = "47f74a242fe8be5911391943f718eab81c390620"; | 15 | sha1 = "47f74a242fe8be5911391943f718eab81c390620"; |
16 | }; | 16 | }; |
17 | preRebuild = '' | ||
18 | patch -p1 < ${./font.patch} | ||
19 | ''; | ||
17 | buildInputs = globalBuildInputs; | 20 | buildInputs = globalBuildInputs; |
18 | meta = { | 21 | meta = { |
19 | description = "Add support for Subscript and Superscript"; | 22 | description = "Add support for Subscript and Superscript"; |
@@ -22,4 +25,4 @@ in | |||
22 | bypassCache = true; | 25 | bypassCache = true; |
23 | reconstructLock = true; | 26 | reconstructLock = true; |
24 | }; | 27 | }; |
25 | } \ No newline at end of file | 28 | } |