Skip to content

Commit

Permalink
Add padding to tooltip
Browse files Browse the repository at this point in the history
Add wrapper class around content to apply padding to tooltip.
  • Loading branch information
facelessuser committed Nov 27, 2015
1 parent 521fddf commit c12737a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scope_hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
sh_settings = {}

ADD_CSS = '''
.scope-hunter.small {
font-size: 0.7em;
}
.scope-hunter.content { margin: 0; padding: 0.5em; }
.scope-hunter.small { font-size: 0.8em; }
'''

# Scope Toolip Markdown
Expand Down Expand Up @@ -559,9 +558,10 @@ def run(self, v):
tail = COPY_ALL
else:
tail = ''
md = mdpopups.md2html(self.view, ''.join(self.scope_bfr_tool) + tail)
mdpopups.show_popup(
self.view,
''.join(self.scope_bfr_tool) + tail,
'<div class="scope-hunter content">%s</div>' % md,
css=ADD_CSS,
max_width=500, on_navigate=self.on_navigate
)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
ignore=D202
ignore=D202,D203
max-line-length=120
exclude=lib/png.py

0 comments on commit c12737a

Please sign in to comment.