#40 Change style of `delete` links

Обединени
getty обедини 1 ревизии от getty/gr/delete-style във getty/master преди 4 години
променени са 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 {