#40 Change style of `delete` links

已合并
getty 4 年之前 将 1 次代码提交从 getty/gr/delete-style合并至 getty/master
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 2 2
      static/lc.js
  2. 5 2
      static/main.css

+ 2 - 2
static/lc.js

@@ -6,8 +6,8 @@ function confirmDelete(url, id) {
     let link = $(`#delete_${id}`);
     let confirm = link.append(
         `<span class="deleteconfirm" id="confirm_${id}">Are you sure?
-           <a id="do_delete_${id}">yes</a>
-           <a id="cancel_delete_${id}">no</a>
+           <a id="do_delete_${id}" class="deletelink yesdelete">yes</a>
+           <a id="cancel_delete_${id}" class="deletelink">no</a>
          </span>`);
     $(document).on('click', `a#do_delete_${id}`, function() {
         var req = new XMLHttpRequest();

+ 5 - 2
static/main.css

@@ -177,14 +177,17 @@ form > div {
     margin: 0em 1em;
 }
 
+.deletelink {
+    cursor: pointer;
+}
 
 .deleteconfirm {
     padding-left: 1em;
     font-size: small;
 }
 
-.deleteconfirm a {
-    color: #f00;
+a.yesdelete {
+    color: #f00 !important;
 }
 
 .errorpane {