Răsfoiți Sursa

Merge pull request #10525 from overleaf/jel-icons

[web] Use Material icon for CMS icon list

GitOrigin-RevId: 927a7565ebf76343b734af83eb703e0cf91bae37
Jessica Lawshe 3 ani în urmă
părinte
comite
e63905b315

+ 17 - 1
services/web/frontend/stylesheets/components/lists.less

@@ -27,7 +27,23 @@
 }
 }
 
 
 .icon-bullet-list {
 .icon-bullet-list {
+  @icon-bullet-list-icon-size: 30px;
+  ul {
+    list-style: none;
+    padding-left: 20px;
+  }
+
   &.checked {
   &.checked {
-    list-style-image: url('../../../public/img/fa-check-green.svg');
+    li {
+      background: url('../../../public/img/material-icon-circle-green.svg')
+        no-repeat left top;
+      background-size: @icon-bullet-list-icon-size @icon-bullet-list-icon-size;
+      min-height: @icon-bullet-list-icon-size;
+      margin-bottom: 18px;
+      padding-left: 42px;
+      &:first-line {
+        line-height: @icon-bullet-list-icon-size;
+      }
+    }
   }
   }
 }
 }

+ 1 - 0
services/web/public/img/material-icon-circle-green.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5BB553"><path d="m10.6 16.6 7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4ZM12 22q-2.075 0-3.9-.788-1.825-.787-3.175-2.137-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175 1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138 1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"/></svg>