# HG changeset patch # User Sylvain Thénault # Date 1287487190 -7200 # Node ID fd36c1049eed138d76858220148f355ad380ca2b # Parent 6be1279417606a2619fdb4f2a169c9e22b122f94 [css] cleanup and fix by removing display: block on in boxes also, add class a.action to ease action links like [+] in boxes like bookmark box without having to refine css per box id. diff -r 6be127941760 -r fd36c1049eed web/component.py --- a/web/component.py Tue Oct 19 13:17:10 2010 +0200 +++ b/web/component.py Tue Oct 19 13:19:50 2010 +0200 @@ -366,8 +366,8 @@ args = {role(self)[0] : entity.eid, target(self)[0] : etarget.eid} url = self._cw.user_rql_callback((rql, args)) # for each target, provide a link to edit the relation - return u'[%s] %s' % (xml_escape(url), label, - etarget.view('incontext')) + return u'[%s] %s' % ( + xml_escape(url), label, etarget.view('incontext')) def related_boxitems(self, entity): rql = 'DELETE S %s O WHERE S eid %%(s)s, O eid %%(o)s' % self.rtype diff -r 6be127941760 -r fd36c1049eed web/data/cubicweb.css --- a/web/data/cubicweb.css Tue Oct 19 13:17:10 2010 +0200 +++ b/web/data/cubicweb.css Tue Oct 19 13:19:50 2010 +0200 @@ -471,10 +471,13 @@ ul.boxListing a { color: %(defaultColor)s; - display: block; padding: 1px 9px 1px 3px; } +ul.boxListing a.action { + padding: 0; +} + ul.boxListing li { margin: 0px; padding: 0px; @@ -531,12 +534,7 @@ background: #f0eff0 url("gradient-grey-up.png") left top repeat-x; } -.bookmarks_box ul.boxListing div a{ - background: #fff; - display: inline; - padding: 0; -} -.bookmarks_box ul.boxListing div a:hover{ +.bookmarks_box ul.boxListing div a:hover { border-bottom: 1px solid #000; } diff -r 6be127941760 -r fd36c1049eed web/data/cubicweb.old.css --- a/web/data/cubicweb.old.css Tue Oct 19 13:17:10 2010 +0200 +++ b/web/data/cubicweb.old.css Tue Oct 19 13:19:50 2010 +0200 @@ -490,10 +490,13 @@ ul.boxListing a { color: %(defaultColor)s; - display: block; padding: 1px 3px; } +ul.boxListing a.action { + padding: 0; +} + ul.boxListing li { margin: 0px; padding: 0px; @@ -551,12 +554,6 @@ background: #f0eff0 url("gradient-grey-up.png") left top repeat-x; } -.bookmarks_box ul.boxListing div a { - background: #fff; - display: inline; - padding: 0; -} - .bookmarks_box ul.boxListing div { padding-bottom: 0.3em; } diff -r 6be127941760 -r fd36c1049eed web/views/bookmark.py --- a/web/views/bookmark.py Tue Oct 19 13:17:10 2010 +0200 +++ b/web/views/bookmark.py Tue Oct 19 13:19:50 2010 +0200 @@ -99,7 +99,7 @@ for bookmark in self.bookmarks_rset.entities(): label = self.build_link(bookmark.title, bookmark.action_url()) if self.can_delete: - dlink = u'[-]' % ( + dlink = u'[-]' % ( bookmark.eid, _('delete this bookmark')) label = '
%s %s
' % (dlink, label) self.append(label)