From 3f6c6ed615daeb4994e4397908749e8070ba5f98 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 29 Jan 2017 09:34:18 -0500 Subject: [PATCH] more --- contrib/lua/memeposting.lua | 6 +----- contrib/static/site.css | 13 +++++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index c88de55..79aa948 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -17,13 +17,9 @@ function psy_text(str) return span_text("psy", str) end -function quotey_text(str) - return span_text("nazi", str) -end - -- generate extra markup function memeposting(body, prefix) - body = string.gsub(body, "%(%(%((.-)%)%)%)", quotey_text) + body = string.gsub(body, "%(%(%((.-)%)%)%)", function(str) return string.format("
%s
", prefix, str) end) body = string.gsub(body, "%[%[%[(.-)%]%]%]", wobble_text) body = string.gsub(body, "//(.-)\\\\", explode_text) body = string.gsub(body, "/@(.-)@\\", psy_text) diff --git a/contrib/static/site.css b/contrib/static/site.css index 0ee3047..ec7a036 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -649,3 +649,16 @@ th > label { animation: expl 0.5s infinite; } +.code { + font-family: monospace; + font-size: smaller; + background-color: #313131; + color: #fb9f26; + border-radius: 5px; + padding: 10px; +} + + +.nazi { + padding: 10px; +} \ No newline at end of file