liquid_feedback_frontend

changeset 715:21ae6ff8629a

Optical improvements
author bsw
date Wed Jun 27 01:56:07 2012 +0200 (2012-06-27)
parents 1641f0218177
children a53b4485a3d3
files app/main/initiative/_list_element.lua app/main/issue/_show.lua static/style.css
line diff
     1.1 --- a/app/main/initiative/_list_element.lua	Wed Jun 27 00:29:13 2012 +0200
     1.2 +++ b/app/main/initiative/_list_element.lua	Wed Jun 27 01:56:07 2012 +0200
     1.3 @@ -1,8 +1,13 @@
     1.4  local initiative = param.get("initiative", "table")
     1.5  local selected = param.get("selected", atom.boolean)
     1.6  
     1.7 +local class = "initiative"
     1.8  
     1.9 -ui.container{ attr = { class = "initiative" }, content = function()
    1.10 +if selected then
    1.11 +  class = class .. " selected"
    1.12 +end
    1.13 +
    1.14 +ui.container{ attr = { class = class }, content = function()
    1.15  
    1.16    ui.container{ attr = { class = "rank" }, content = function()
    1.17      if initiative.issue.accepted and initiative.issue.closed
    1.18 @@ -103,18 +108,6 @@
    1.19      if initiative.revoked then
    1.20        link_class = "revoked"
    1.21      end
    1.22 -    if selected then
    1.23 -      link_class = link_class .. " selected"
    1.24 -    end
    1.25 -    if initiative.is_supporter then
    1.26 -      link_class = link_class .. " supported"
    1.27 -    end
    1.28 -    if initiative.is_potential_supporter then
    1.29 -      link_class = link_class .. " potentially_supported"
    1.30 -    end
    1.31 -    if initiative.is_supporter_via_delegation then
    1.32 -      link_class = link_class .. " supported"
    1.33 -    end
    1.34      ui.link{
    1.35        attr = { class = link_class },
    1.36        content = function()
     2.1 --- a/app/main/issue/_show.lua	Wed Jun 27 00:29:13 2012 +0200
     2.2 +++ b/app/main/issue/_show.lua	Wed Jun 27 01:56:07 2012 +0200
     2.3 @@ -219,9 +219,10 @@
     2.4        params = {
     2.5          issue = issue,
     2.6          initiatives_selector = initiatives_selector,
     2.7 +        highlight_initiative = for_initiative,
     2.8          highlight_string = highlight_string,
     2.9          no_sort = true,
    2.10 -        limit = 5,
    2.11 +        limit = (for_listing or for_initiative) and 5 or nil,
    2.12          for_member = for_member
    2.13        }
    2.14      }
     3.1 --- a/static/style.css	Wed Jun 27 00:29:13 2012 +0200
     3.2 +++ b/static/style.css	Wed Jun 27 01:56:07 2012 +0200
     3.3 @@ -1042,7 +1042,13 @@
     3.4  
     3.5  .initiative .name {
     3.6    line-height: 130%;
     3.7 -  margin-left: 160px;
     3.8 +  margin-left: 168px;
     3.9 +  font-size: 115%;
    3.10 +}
    3.11 +
    3.12 +.initiative.selected .name {
    3.13 +  font-weight: bold;
    3.14 +  xfont-style: italic;
    3.15  }
    3.16  
    3.17  @media screen and (max-width: 480px) {

Impressum / About Us