From 4cac9687ac51bfa670e32278147ad4eb77f8d39d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Thu, 15 Sep 2016 16:19:16 +0200 Subject: [PATCH] Fix button style in page blocks --- app/static/src/sass/global/_wysiwyg.scss | 51 +++++++++++++++++++++--- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/app/static/src/sass/global/_wysiwyg.scss b/app/static/src/sass/global/_wysiwyg.scss index 395e3c4c..72211202 100644 --- a/app/static/src/sass/global/_wysiwyg.scss +++ b/app/static/src/sass/global/_wysiwyg.scss @@ -1,42 +1,81 @@ -.wys-button { +a.wys-button { @extend .button; + .page__block--black & { + color: $color-black; + &:hover { + color: $color-main; + } + } } -.wys-button-small { +a.wys-button-small { @extend .button; @extend .button--small; + .page__block--black & { + color: $color-black; + &:hover { + color: $color-main; + } + } } -.wys-button-xsmall { +a.wys-button-xsmall { @extend .button; @extend .button--xsmall; + .page__block--black & { + color: $color-black; + &:hover { + color: $color-main; + } + } } -.wys-button-black { +a.wys-button-black { @extend .button; @extend .button--black; + .page__block--black & { + color: white; + &:hover { + color: $color-black; + } + } + } -.wys-button-black-small { +a.wys-button-black-small { @extend .button; @extend .button--black; @extend .button--small; + .page__block--black & { + color: white; + &:hover { + color: $color-black; + } + } + } -.wys-button-black-xsmall { +a.wys-button-black-xsmall { @extend .button; @extend .button--black; @extend .button--xsmall; + .page__block--black & { + color: white; + &:hover { + color: $color-black; + } + } + } -- 2.39.5