# HG changeset patch # User bsw # Date 1340754967 -7200 # Node ID 21ae6ff8629a3d037917e3d6986711d2a8a7bef5 # Parent 1641f021817784de71aa3c3adac2913a80ced9ec Optical improvements diff -r 1641f0218177 -r 21ae6ff8629a app/main/initiative/_list_element.lua --- a/app/main/initiative/_list_element.lua Wed Jun 27 00:29:13 2012 +0200 +++ b/app/main/initiative/_list_element.lua Wed Jun 27 01:56:07 2012 +0200 @@ -1,8 +1,13 @@ local initiative = param.get("initiative", "table") local selected = param.get("selected", atom.boolean) +local class = "initiative" -ui.container{ attr = { class = "initiative" }, content = function() +if selected then + class = class .. " selected" +end + +ui.container{ attr = { class = class }, content = function() ui.container{ attr = { class = "rank" }, content = function() if initiative.issue.accepted and initiative.issue.closed @@ -103,18 +108,6 @@ if initiative.revoked then link_class = "revoked" end - if selected then - link_class = link_class .. " selected" - end - if initiative.is_supporter then - link_class = link_class .. " supported" - end - if initiative.is_potential_supporter then - link_class = link_class .. " potentially_supported" - end - if initiative.is_supporter_via_delegation then - link_class = link_class .. " supported" - end ui.link{ attr = { class = link_class }, content = function() diff -r 1641f0218177 -r 21ae6ff8629a app/main/issue/_show.lua --- a/app/main/issue/_show.lua Wed Jun 27 00:29:13 2012 +0200 +++ b/app/main/issue/_show.lua Wed Jun 27 01:56:07 2012 +0200 @@ -219,9 +219,10 @@ params = { issue = issue, initiatives_selector = initiatives_selector, + highlight_initiative = for_initiative, highlight_string = highlight_string, no_sort = true, - limit = 5, + limit = (for_listing or for_initiative) and 5 or nil, for_member = for_member } } diff -r 1641f0218177 -r 21ae6ff8629a static/style.css --- a/static/style.css Wed Jun 27 00:29:13 2012 +0200 +++ b/static/style.css Wed Jun 27 01:56:07 2012 +0200 @@ -1042,7 +1042,13 @@ .initiative .name { line-height: 130%; - margin-left: 160px; + margin-left: 168px; + font-size: 115%; +} + +.initiative.selected .name { + font-weight: bold; + xfont-style: italic; } @media screen and (max-width: 480px) {