From c0997c7877bdff2b80766df04d0ec75b38a37b40 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 1 Dec 2014 14:24:41 +0100 Subject: [PATCH] [FIX] ws doc: copy button in columned version --- doc/_themes/odoodoc/static/style.css | 13 +++++++++++++ doc/_themes/odoodoc/static/style.less | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/doc/_themes/odoodoc/static/style.css b/doc/_themes/odoodoc/static/style.css index 96e2bba97a0..c02b587dfe1 100644 --- a/doc/_themes/odoodoc/static/style.css +++ b/doc/_themes/odoodoc/static/style.css @@ -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; diff --git a/doc/_themes/odoodoc/static/style.less b/doc/_themes/odoodoc/static/style.less index 258990067d8..994351aaa70 100644 --- a/doc/_themes/odoodoc/static/style.less +++ b/doc/_themes/odoodoc/static/style.less @@ -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 {