From 4e7ad3143eb2492f47900a945a6b9a93efae6a0e Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Sat, 30 Aug 2014 14:28:32 -0400 Subject: [PATCH] SHA: move from inline CSS. --- lib/DDG/Goodie/Sha.pm | 2 +- share/goodie/sha/sha.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 share/goodie/sha/sha.css diff --git a/lib/DDG/Goodie/Sha.pm b/lib/DDG/Goodie/Sha.pm index e564587b4..ff56e9087 100644 --- a/lib/DDG/Goodie/Sha.pm +++ b/lib/DDG/Goodie/Sha.pm @@ -45,7 +45,7 @@ handle query => sub { $str = $command2 eq 'base64' ? Digest::SHA::sha1_base64($str) : Digest::SHA::sha1_hex($str); } - return $str, heading => "SHA-$command1 hash", html => "
$str
"; + return $str, heading => "SHA-$command1 hash", html => "
$str
"; } return; diff --git a/share/goodie/sha/sha.css b/share/goodie/sha/sha.css new file mode 100644 index 000000000..0ac02bcbb --- /dev/null +++ b/share/goodie/sha/sha.css @@ -0,0 +1,5 @@ +.zci--answer .zci--sha { + font-weight: 300; + padding: .25em 0; + word-wrap: break-word; +}