Commits

g...@13f79535-47bb-0310-9956-ffa450edef68  committed 7650711

hiding comment edit and reply controls on desktops to show on row hover - towards #182 (from olemis)

  • Participants
  • Parent commits 4df211e

Comments (0)

Files changed (2)

File bhtheme/htdocs/bloodhound.css

   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 {

File bhtheme/templates/bh_ticket_change.html

   <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>
     </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">