Commit 19e1c26fbef7e7865a84db19ac4dc568cb68af71

Authored by AurelioAHeckert
1 parent 664d154e

ActionItem360: Zen3 article edit button is visible now

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1773 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/content_viewer/view_page.rhtml
... ... @@ -25,11 +25,11 @@
25 25 <script type="text/javascript">
26 26 function showArticleActions( show ) {
27 27 var act = $("article-actions");
28   - if ( act ) act.style.display = ( show ? "block" : "none" );
  28 + if ( act ) act.className = ( show ? "show" : "hidden" );
29 29 }
30 30 </script>
31 31 <% if logged_in? && current_user.person.has_permission?('post_content', profile) %>
32   - <div id="article-actions" style="display:none">
  32 + <div id="article-actions" class="hidden">
33 33 <%= link_to content_tag( 'span', _('Edit') ),
34 34 { :controller => 'cms', :action => 'edit', :id => @page },
35 35 :class => 'button with-text icon-edit' %>
... ...
public/designs/themes/zen3/stylesheets/button.css 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +
  2 +body.noosfero a.button,
  3 +body.noosfero a.button:visited,
  4 +input.button {
  5 + border: 1px solid #EDA;
  6 + color: black;
  7 + /* -moz-border-radius-topright: 7px; */
  8 +}
  9 +
  10 +body.noosfero a.button.with-text,
  11 +body.noosfero a.button.with-text:visited,
  12 +input.button.with-text {
  13 + border: 1px solid #DA6;
  14 + background-color: #FEA;
  15 +}
  16 +
  17 +body.noosfero a.button:hover,
  18 +input.button:hover,
  19 +body.noosfero a.button.with-text:hover,
  20 +input.button.with-text:hover {
  21 + border: 1px solid #950;
  22 + background-color: #FB4;
  23 + color: #000;
  24 +}
  25 +
... ...
public/stylesheets/blocks/main-block.css
... ... @@ -10,6 +10,10 @@
10 10 right: 0px;
11 11 padding-right: 15px;
12 12 }
  13 +#article-actions.hidden {
  14 + opacity: 0.3;
  15 + filter: alpha(opacity=30);
  16 +}
13 17  
14 18 #article-tags {
15 19 font-size: 10px;
... ...