Author: gjm
Date: Wed Nov 14 17:43:39 2012
New Revision: 1409272
URL: http://svn.apache.org/viewvc?rev=1409272&view=rev
Log:
hiding comment edit and reply controls on desktops to show on row hover -
towards #182 (from olemis)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1409272&r1=1409271&r2=1409272&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
(original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
Wed Nov 14 17:43:39 2012
@@ -439,6 +439,20 @@ input[type="submit"].btn.btn-micro {
display: none !important;
}
+.hidden-desktop {
+ display: none !important;
+}
+
+.visible-desktop-hover:hover .hidden-desktop {
+ display: inherit !important;
+}
+
+@media (max-width: 979px) {
+ .hidden-desktop {
+ display: inherit !important;
+ }
+}
+
/* Revert some changes introduced in 2.1.0 */
h6 {
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html?rev=1409272&r1=1409271&r2=1409272&view=diff
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
(original)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
Wed Nov 14 17:43:39 2012
@@ -49,7 +49,7 @@ Arguments:
<py:def function="commentref(prefix, cnum, cls=None)">
<a href="#comment:$cnum" class="$cls">$prefix$cnum</a>
</py:def>
- <div class="row">
+ <div class="row visible-desktop-hover">
<div class="span2">
<h6 style="margin-left: 0px; margin-top:10px;">
<py:choose>
@@ -82,7 +82,7 @@ Arguments:
</div>
<div class="offset2">
<h4 class="change">
- <div py:if="show_buttons" class="pull-right bh-ticket-buttons">
+ <div py:if="show_buttons" class="pull-right bh-ticket-buttons
hidden-desktop">
<form py:if="'cnum' in change and can_edit_comment" method="get"
style="display:inline" action="#comment:${cnum}">
<div class="inlinebuttons">