Skip to content

Commit

Permalink
Adds button look to Organizations and Venues 'create' action, and Org…
Browse files Browse the repository at this point in the history
…anization show page actions

Fixes activate#62
  • Loading branch information
MBSchneider committed Apr 4, 2014
1 parent 42714c7 commit 7c642fb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
16 changes: 16 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ input[type=text], input[type=url], textarea {
padding-top: 10px;
font-size: 11px;
}
.action-btn {
&:hover {
text-decoration: none;
}
-webkit-appearance: button;
color: #0088cc;
background-color: rgb(192, 192, 192);
border-color: rgb(192, 192, 192);
border-style: outset;
border-width: 2px;
display: inline-block;
font-family: 'Lucida Grande';
font-size: 11px;
margin: 2px;
padding: 10px 15px;
}
}


Expand Down
16 changes: 16 additions & 0 deletions app/assets/stylesheets/organizations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@

.show-sources, .add-source {
display: inline;

-webkit-appearance: button;
color: #0088cc;
background-color: rgb(192, 192, 192);
border-color: rgb(192, 192, 192);
border-style: outset;
border-width: 2px;
display: inline-block;
font-family: 'Lucida Grande';
font-size: 11px;
margin: 10px 4px;
padding: 3px 5px;
& a:hover {
text-decoration: none;
}

}
}

Expand Down
3 changes: 1 addition & 2 deletions app/views/organizations/_item.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
.organization-title= organization.name

.organization-source-actions
.show-sources>= link_to t('.sources.show'), '#'
,
.add-source= link_to t('.sources.add'), new_organization_source_path(organization)
.show-sources= link_to t('.sources.show'), '#'

- if organization.url?
%h2.organization-url-title= t('.url.title')
Expand Down
3 changes: 2 additions & 1 deletion app/views/site/_wiki_props_index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
%h3.wiki-index-title= t('.title', :obj => collection_name)

.wiki-actions
- add_link = link_to t('.add'), new_polymorphic_path(collection.klass)
- add_link = link_to t('.add'), new_polymorphic_path(collection.klass), :class => 'action-btn'

= t('.actions', :add => add_link, :obj => object_name, :collection => collection_name).html_safe

0 comments on commit 7c642fb

Please sign in to comment.