瀏覽代碼

Merge pull request #10526 from overleaf/jel-btn-recompile

[web] `btn-recompile` and `log-btn` for new CSS

GitOrigin-RevId: b92724267a87f5dce8ed0e60e926c1939f64c4f9
Jessica Lawshe 3 年之前
父節點
當前提交
854c39d3f5
共有 1 個文件被更改,包括 8 次插入 和 0 次删除
  1. 8 0
      services/web/frontend/stylesheets/app/editor/pdf.less

+ 8 - 0
services/web/frontend/stylesheets/app/editor/pdf.less

@@ -102,12 +102,14 @@
     }
 
     &.log-btn {
+      border: none;
       margin-right: 3px;
 
       &.active {
         color: white;
         background-color: @link-color;
         box-shadow: @toolbar-icon-btn-hover-boxshadow;
+        opacity: 0.65;
 
         &:hover {
           color: white;
@@ -174,6 +176,9 @@
     border-top-left-radius: 0;
     border-bottom-left-radius: 0;
   }
+}
+
+.btn-recompile when (@is-new-css = false) {
   &[disabled],
   &[disabled].active,
   &[disabled]:hover,
@@ -182,6 +187,9 @@
     .opacity(1);
   }
 }
+.btn-recompile when (@is-new-css = true) {
+  border: none;
+}
 
 .btn-recompile-label {
   margin-left: @line-height-computed / 4;