#40 Change style of `delete` links

Merge realizado
getty mesclou 1 commits de getty/gr/delete-style em getty/master 4 anos atrás
2 arquivos alterados com 7 adições e 4 exclusões
  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 {