From: Jérémy Fabre Date: Thu, 15 Sep 2016 14:19:16 +0000 (+0200) Subject: Fix button style in page blocks X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4cac9687ac51bfa670e32278147ad4eb77f8d39d;p=mezzo.git Fix button style in page blocks --- 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; + } + } + }