From 5a748da27c7c1ac3c552fdf46cf19172265e9e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taavi=20V=C3=A4=C3=A4n=C3=A4nen?= Date: Sun, 29 Sep 2024 14:14:07 +0300 Subject: [PATCH] copy: Make use of Less nesting features Change-Id: Ieb38d425a29baaa95188f553959dc21b9cd31b7b --- modules/pygments.copy.less | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/pygments.copy.less b/modules/pygments.copy.less index 63bbf2de..aafee4eb 100644 --- a/modules/pygments.copy.less +++ b/modules/pygments.copy.less @@ -23,17 +23,17 @@ background: @background-color-base; color: @color-progressive; border: 1px solid @border-color-muted; -} -.mw-highlight-copy--bound button:hover { - cursor: pointer; - color: @color-progressive--hover; - background: @background-color-interactive-subtle; - border-color: @border-color-progressive--hover; -} + &:hover { + cursor: pointer; + color: @color-progressive--hover; + background: @background-color-interactive-subtle; + border-color: @border-color-progressive--hover; + } -.mw-highlight-copy--bound button:active { - color: @color-progressive--active; - background: @background-color-interactive; - border-color: @border-color-progressive--active; + &:active { + color: @color-progressive--active; + background: @background-color-interactive; + border-color: @border-color-progressive--active; + } }