Skip to content

Commit

Permalink
Improve CSS parsing order and user CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Feb 19, 2018
1 parent 9424d3d commit 2554fd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/mouseover_dictionary/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
USER_STYLES = r"""
.qtip {
font-family: "arial";
min-width: 50px !important;
max-width: 400px !important;
max-height: 400px !important;
max-width: 400px;
max-height: 400px;
overflow-y: auto;
}
"""
Expand Down
2 changes: 1 addition & 1 deletion src/mouseover_dictionary/js.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
viewport: $(window), // constrain to window
adjust: {
mouse: false, // don't follow mouse
method: 'flip', // adjust to viewport by flipping tip if necessary
method: 'shift', // adjust to viewport by flipping tip if necessary
scroll: false, // buggy, disable
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/mouseover_dictionary/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ def setupAddon():

addHook("profileLoaded", setupAddon)
Reviewer._initWeb = wrap(Reviewer._initWeb, addJavascriptObjects, "after")
Reviewer._revHtml += "<style>{}</style>".format(USER_STYLES) + html
Reviewer._revHtml += html + "<style>{}</style>".format(USER_STYLES)

0 comments on commit 2554fd1

Please sign in to comment.