]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
fix delete button
authorArthurHoaro <arthur@hoa.ro>
Fri, 6 Jan 2017 14:56:18 +0000 (15:56 +0100)
committerArthurHoaro <arthur@hoa.ro>
Fri, 6 Jan 2017 14:56:18 +0000 (15:56 +0100)
tpl/default/css/shaarli.css
tpl/default/editlink.html

index 36d848d82952beaacefe8dbe8f2c9f2649fc1587..f0ba8adb80cc41bd9241a335c1a884b44def6e43 100644 (file)
@@ -747,22 +747,37 @@ pre {
     color: #777777;
 }
 
-.page-form input[type="submit"] {
+.page-form input[type="submit"], .page-form a.button {
     margin: 15px 5px;
     height: 35px;
+    line-height: 35px;
     width: 150px;
     background: #1b926c;
+    color: #f5f5f5;
     border: none;
     box-shadow: 1px 1px 1px #ddd, -1px -1px 6px #ddd, -1px 1px 2px #ddd, 1px -1px 2px #ddd;
     font-size: 1.2em;
-    color: #f5f5f5;
+    text-decoration: none;
+    vertical-align: center;
+    font-weight: normal;
 }
 
 
-.page-form input[type="submit"].button-red {
+.page-form .button.button-red {
     background: #ac2925;
 }
 
+@media screen and (min-width: 64em) {
+    .page-form .submit-buttons {
+        position: relative;
+    }
+
+    .page-form .submit-buttons .button.button-red {
+        position: absolute;
+        right: 5%;
+    }
+}
+
 .page-form select {
     color: #252525;
 }
index 6b480c29c106f95b905ba9f948a30fe53886521d..b17d1038501e260e915f4542766bf9cc362b144f 100644 (file)
         {/loop}
       </div>
 
-      <div>
+
+      <div class="submit-buttons">
         <input type="submit" value="{'Save'|t}" name="save_edit">
         {if="!$link_is_new"}
-          <input type="submit" value="{'Delete'|t}" name="delete_link" class="button-red">
+        <a href="?delete_link&amp;lf_linkdate={$value.id}&amp;token={$token}"
+           title="" name="delete_link" class="button button-red">
+          {'Delete'|t}
+        </a>
         {/if}
       </div>