]> git.ardis.lu - ens2hex/commitdiff
Move anchored download button to own row
authorArdis Lu <ardisglu@gmail.com>
Mon, 13 Nov 2023 05:59:34 +0000 (21:59 -0800)
committerArdis Lu <ardisglu@gmail.com>
Mon, 13 Nov 2023 05:59:34 +0000 (21:59 -0800)
This is a cleaner and more legible look, especially on smaller screens

index.html

index 4ec73483bf13c1d12cd4a11729e286a8ebfa347d..d091a0548259135e2f0dbfa417729e372c92a547 100644 (file)
 
     output#table {
       display: none;
-      position: relative;
     }
 
     #download {
       cursor: pointer;
-      position: absolute;
-      top: 8px;
-      right: 8px;
       background: none;
       border: none;
       padding: 0;
       transition: filter 400ms;
     }
 
+    label[for="download"] {
+      cursor: pointer;
+      display: inline-block;
+      color: var(--secondary);
+      font-weight: 500;
+      transform: translateY(-5px);
+    }
+
     #download:is(:hover, :focus) {
-      filter: drop-shadow(0 0 8px var(--secondary-lighter));
+      filter: drop-shadow(0 0 8px var(--secondary));
       transition: filter 200ms;
     }
 
               <path d="m9 15 3 3 3-3"></path>
             </svg>
           </button>
+          <label for="download">Download to CSV file</label>
           <table>
             <thead>
               <tr>
This page took 0.035746 seconds and 4 git commands to generate.