Просмотр исходного кода

Merge pull request #3736 from overleaf/ab-review-icon-light

Invert review icon color when selected

GitOrigin-RevId: e6e0d76c969d52e1632ea486042c353a0c77d0b4
Alexandre Bourdin 5 лет назад
Родитель
Сommit
cb19041b7f
1 измененных файлов с 13 добавлено и 3 удалено
  1. 13 3
      services/web/frontend/stylesheets/app/editor/review-panel.less

+ 13 - 3
services/web/frontend/stylesheets/app/editor/review-panel.less

@@ -950,9 +950,19 @@
   }
 }
 
-.review-icon when (@is-overleaf-light = true) {
-  background: url('/img/ol-icons/review-icon-light-theme.svg') top/30px
-    no-repeat;
+a when (@is-overleaf-light = true) {
+  .review-icon {
+    background: url('/img/ol-icons/review-icon-light-theme.svg') top/30px
+      no-repeat;
+  }
+
+  &.active,
+  &:active {
+    .review-icon {
+      background: url('/img/ol-icons/review-icon-dark-theme.svg') top/30px
+        no-repeat;
+    }
+  }
 }
 
 .resolved-comments-toggle {