Permalink
Browse files

-- Switch to UL list

  • Loading branch information...
ninetyd
ninetyd committed Mar 12, 2013
1 parent 4a7b0f0 commit 2cf1d349792b5c41b73e1e8a942e1a3a9a8da6d5
Showing with 9 additions and 3 deletions.
  1. +2 −2 htdocs/js/jquery.contextualhover.js
  2. +7 −1 htdocs/stc/jquery.contextualhover.css
@@ -191,7 +191,7 @@ _addRelationStatus: function( string ) {
_addAction: function( url, text, action ) {
action = !! action ? ' data-dw-ctx-action="' + action + '"' : "";
- this._actions_html.push( '<div><a href="' + url+ '"' + action + '>' + text + '</a></div>' );
+ this._actions_html.push( '<li><a href="' + url+ '"' + action + '>' + text + '</a></li>' );
},
_addText: function( text ) {
this._actions_html.push( '<div>' + text + '</div>' );
@@ -325,7 +325,7 @@ _renderPopup: function() {
var content = '<div class="Content">' +
'<div class="Relation">' + this._rel_html.join( "" ) + '</div>' +
- '<div class="Actions">' + this._actions_html.join("") + '</div>' +
+ '<div class="Actions"><ul>' + this._actions_html.join("") + '</ul></div>' +
'</div>';
this.element
@@ -49,9 +49,15 @@
font-weight: bold;
font-size: 0.8em;
line-height: 1.2;
- margin-bottom: 1.2em;
+ margin-bottom: 1em;
}
.ContextualPopup .Actions {
line-height: 1.4;
}
+
+.ContextualPopup .Actions ul {
+ list-style-position: inside;
+ margin: 0;
+ padding-left: .5em;
+}

0 comments on commit 2cf1d34

Please sign in to comment.