#container { position: relative; }
-.small_icon {
- vertical-align: middle;
- margin-right: $lineheight * 0.25;
-}
-
/* Rules for icons */
.icon {
.sprite.rules {
/*rtl:ignore*/ background-position: -350px 0;
}
-
- .icon.note {
- background-color: #333;
- border-radius: 4px;
- }
}
.site-about #content {
end
def rss_link_to(args = {})
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
+ link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args
end
def atom_link_to(args = {})
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
+ link_to image_tag("RSS.png", :size => "16x16", :class => "align-text-bottom"), args
end
def dir
<% end %>
<% if @user && @user == current_user || !@user && current_user %>
- <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
+ <li><%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %></li>
<% end %>
</ul>
</nav>
<div class='col-sm'>
<h5><%= t "site.welcome.add_a_note.title" %></h5>
<p><%= t "site.welcome.add_a_note.para_1" %></p>
- <p><%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note") %></p>
+ <p><%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note bg-dark rounded-1") %></p>
</div>
</div>
<h2><%= t ".add_a_note.title" %></h2>
<p><%= t ".add_a_note.para_1" %></p>
<p><%= t ".add_a_note.para_2_html", :map_link => link_to(t(".add_a_note.the_map"), root_path),
- :note_icon => tag.span(:class => "icon note") %></p>
+ :note_icon => tag.span(:class => "icon note bg-dark rounded-1") %></p>
</div>
def test_rss_link_to
link = rss_link_to(:controller => :diary_entries, :action => :rss)
- assert_dom_equal "<a class=\"rsssmall\" href=\"/diary/rss\"><img border=\"0\" height=\"16\" src=\"/images/RSS.png\" width=\"16\" /></a>", link
+ assert_dom_equal "<a href=\"/diary/rss\"><img height=\"16\" src=\"/images/RSS.png\" width=\"16\" class=\"align-text-bottom\" /></a>", link
end
def test_atom_link_to
link = atom_link_to(:controller => :changesets, :action => :feed)
- assert_dom_equal "<a class=\"rsssmall\" href=\"/history/feed\"><img border=\"0\" height=\"16\" src=\"/images/RSS.png\" width=\"16\" /></a>", link
+ assert_dom_equal "<a href=\"/history/feed\"><img height=\"16\" src=\"/images/RSS.png\" width=\"16\" class=\"align-text-bottom\" /></a>", link
end
def test_dir