From 734724691a565445f21517e2a8975457db2a200d Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 26 Apr 2018 12:30:32 +0200 Subject: [PATCH] [FIX] web: restore btn-link variations and badge style + printing improvements Some style was lost for mysterious reasons during the less2scss convertion. --- addons/web/static/src/scss/utils.scss | 2 +- addons/web/static/src/scss/webclient.scss | 35 +++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/scss/utils.scss b/addons/web/static/src/scss/utils.scss index a0dae170507..efb8dce7598 100644 --- a/addons/web/static/src/scss/utils.scss +++ b/addons/web/static/src/scss/utils.scss @@ -302,7 +302,7 @@ &, &:hover, &:focus, &:active, &.active { border-color: transparent; - background-color: transparent + background-color: transparent; } &.text-muted, .text-muted { diff --git a/addons/web/static/src/scss/webclient.scss b/addons/web/static/src/scss/webclient.scss index b0f38b37fea..3c791886140 100644 --- a/addons/web/static/src/scss/webclient.scss +++ b/addons/web/static/src/scss/webclient.scss @@ -136,3 +136,38 @@ div.o_boolean_toggle { display: flex; align-items: center; } + +//== Badges +.badge { + margin: 1px 2px 1px 0; + padding-top: 0; + padding-bottom: 0; +} + +// Btn-link variations +.btn-link { + font-weight: $btn-font-weight; + + &.btn-default { + @include o-btn-link-variant($text-color, $headings-color); + } + &.btn-success, &.text-success { + @include o-btn-link-variant($text-color, $brand-success); + } + &.btn-warning, &.text-warning { + @include o-btn-link-variant($text-color, $brand-warning); + } + &.btn-danger, &.text-danger { + @include o-btn-link-variant($text-color, $brand-danger); + } + &.btn-info, &.text-info { + @include o-btn-link-variant($text-color, darken($brand-info, 20%)); + } +} + +//== Printing improvements +@media print { + .table-responsive { + overflow-x: initial; + } +}