[FIX] ws doc: copy button in columned version
authorXavier Morel <xmo@odoo.com>
Mon, 1 Dec 2014 13:24:41 +0000 (14:24 +0100)
committerXavier Morel <xmo@odoo.com>
Tue, 2 Dec 2014 13:23:27 +0000 (14:23 +0100)
doc/_themes/odoodoc/static/style.css
doc/_themes/odoodoc/static/style.less

index 96e2bba..c02b587 100644 (file)
@@ -7243,6 +7243,19 @@ td.field-body > ul {
   .stripe .highlight pre {
     white-space: pre-wrap;
   }
+  .stripe .btn-clipboard {
+    background-color: transparent;
+    color: #eeeeee;
+    border-color: #777777;
+    border-top: none;
+    border-top-right-radius: 0;
+  }
+  .stripe .btn-clipboard.active {
+    background-color: #555555;
+    -webkit-transition: background-color 0.5s linear;
+    -o-transition: background-color 0.5s linear;
+    transition: background-color 0.5s linear;
+  }
 }
 .stripe .switcher {
   color: white;
index 2589900..994351a 100644 (file)
@@ -760,6 +760,19 @@ td.field-body {
       // but allow additional line-breaks between "words" to avoid overflow
       white-space: pre-wrap;
     }
+
+    .btn-clipboard {
+      background-color: transparent;
+      color: @color-right;
+      border-color: @separator-right;
+      border-top: none;
+      border-top-right-radius: 0;
+
+      &.active {
+        background-color: @gray;
+        .transition(background-color .5s linear);
+      }
+    }
   }
 
   .switcher {