diff --git a/_plugins/moneropedia.rb b/_plugins/moneropedia.rb index 7f2b4fdd..0370037e 100644 --- a/_plugins/moneropedia.rb +++ b/_plugins/moneropedia.rb @@ -120,14 +120,14 @@ module Jekyll if lang != "en" @@moneropedia[lang].each do |entry| entry[:terms].each do |term| - content = content.gsub(/(\@#{term})((?=-#{lookahead})|(?![\w-]))/i, '' + term.gsub('-',' ') + '') + content = content.gsub(/(\@#{term})((?=-#{lookahead})|(?![\w-]))/i, '' + term.gsub('-',' ') + '') end end end # For English and as a default (in case an entry has been forgotten in a non-English moneropedia folder) @@moneropedia["en"].each do |entry| entry[:terms].each do |term| - content = content.gsub(/(\@#{term})((?=-#{lookahead})|(?![\w-]))/i, '' + term.gsub('-',' ') + '') + content = content.gsub(/(\@#{term})((?=-#{lookahead})|(?![\w-]))/i, '' + term.gsub('-',' ') + '') end end end diff --git a/css/custom.css b/css/custom.css index 032f69da..1d7d9455 100644 --- a/css/custom.css +++ b/css/custom.css @@ -4759,6 +4759,20 @@ input.accordion[type=radio]:checked + label::after { /*********************TOOLTIPS********************/ +.info-block a.info-tooltip { + border-bottom: none; +} + +.info-block a.info-tooltip:hover { + border-bottom: 2px solid #a1aabb; +} + +.info-tooltip { + background: url("/img/circled-i.svg") no-repeat right top; + padding-right: 0.7rem; + background-size: 0.7rem; +} + [data-tooltip] { position: relative; z-index: 2; diff --git a/img/circled-i.svg b/img/circled-i.svg new file mode 100644 index 00000000..32f3e50c --- /dev/null +++ b/img/circled-i.svg @@ -0,0 +1,7 @@ + + + + + Svg Vector Icons : http://www.onlinewebfonts.com/icon + + \ No newline at end of file