]> git.ardis.lu - css-loaders/commitdiff
Add big box shadow card
authorArdis Lu <ardisglu@gmail.com>
Sun, 4 Feb 2024 22:05:50 +0000 (14:05 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sun, 4 Feb 2024 22:05:50 +0000 (14:05 -0800)
index.html

index 1ddb3bfd9eb4b788a61e0bedade79d849794ec00..6d7505ff0dad9c2b6960e516b5ca350286fd9d5a 100644 (file)
       transition: filter 200ms;
     }
 
+    .card.big-box-shadow {
+      margin-block: 8px;
+      border: 1px solid hsl(0deg 0% 70%);
+      border-radius: 12px;
+      transition: padding 400ms, border 400ms, box-shadow 400ms;
+    }
+
+    .card.big-box-shadow:hover,
+    .card.big-box-shadow:focus-within {
+      border: 1px solid black;
+      box-shadow: 10px 10px black;
+      padding: 16px 24px 24px 16px;
+      transition: padding 200ms, border 200ms, box-shadow 200ms;
+    }
+
     /* Button hovers */
 
     button {
         <p>The text inside this card will become more "in-focus" when this card is hovered or focused.</p>
       </div>
 
+      <div class="card big-box-shadow">
+        <h2>Big box shadow</h2>
+        <p>A big box shadow will appear around this card when this card is hovered or focused.</p>
+      </div>
     </section>
 
     <section>
This page took 0.042435 seconds and 4 git commands to generate.