diff --git a/ReCaptchaCheckoutSalesRule/view/frontend/web/css/source/_module.less b/ReCaptchaCheckoutSalesRule/view/frontend/web/css/source/_module.less index 85870020..d81a0f1c 100644 --- a/ReCaptchaCheckoutSalesRule/view/frontend/web/css/source/_module.less +++ b/ReCaptchaCheckoutSalesRule/view/frontend/web/css/source/_module.less @@ -2,8 +2,10 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -.form-discount { - .g-recaptcha { - margin-top: 50px !important; +& when (@media-common = true) { + .form-discount { + .g-recaptcha { + margin-top: 50px !important; + } } } diff --git a/ReCaptchaCustomer/view/frontend/web/css/source/_module.less b/ReCaptchaCustomer/view/frontend/web/css/source/_module.less index f2958ae5..561fc605 100644 --- a/ReCaptchaCustomer/view/frontend/web/css/source/_module.less +++ b/ReCaptchaCustomer/view/frontend/web/css/source/_module.less @@ -2,10 +2,12 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -.login-container, -.form-login, -.form-edit-account { - .g-recaptcha { - margin-bottom: 10px !important; +& when (@media-common = true) { + .login-container, + .form-login, + .form-edit-account { + .g-recaptcha { + margin-bottom: 10px !important; + } } } diff --git a/ReCaptchaFrontendUi/view/frontend/web/css/source/_module.less b/ReCaptchaFrontendUi/view/frontend/web/css/source/_module.less index 65e31f0f..40acee37 100644 --- a/ReCaptchaFrontendUi/view/frontend/web/css/source/_module.less +++ b/ReCaptchaFrontendUi/view/frontend/web/css/source/_module.less @@ -2,12 +2,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -.required-captcha.checkbox{ - position: absolute; - display: block; - visibility: visible; - overflow: hidden; - opacity: 0; - width: 1px; - height: 1px; +& when (@media-common = true) { + .required-captcha.checkbox{ + position: absolute; + display: block; + visibility: visible; + overflow: hidden; + opacity: 0; + width: 1px; + height: 1px; + } } diff --git a/ReCaptchaNewsletter/view/frontend/web/css/source/_module.less b/ReCaptchaNewsletter/view/frontend/web/css/source/_module.less index 563319cd..2cbc042b 100644 --- a/ReCaptchaNewsletter/view/frontend/web/css/source/_module.less +++ b/ReCaptchaNewsletter/view/frontend/web/css/source/_module.less @@ -2,13 +2,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - -.block.newsletter { - .field-recaptcha { - .field { - .control { - &:before { - content: none; +& when (@media-common = true) { + .block.newsletter { + .field-recaptcha { + .field { + .control { + &:before { + content: none; + } } } } diff --git a/ReCaptchaReview/view/frontend/web/css/source/_module.less b/ReCaptchaReview/view/frontend/web/css/source/_module.less index 0c7cee55..0179be27 100644 --- a/ReCaptchaReview/view/frontend/web/css/source/_module.less +++ b/ReCaptchaReview/view/frontend/web/css/source/_module.less @@ -2,8 +2,10 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -.review-form { - .field-recaptcha { - margin-bottom: 10px; +& when (@media-common = true) { + .review-form { + .field-recaptcha { + margin-bottom: 10px; + } } }