summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-12-02 15:43:26 +0100
committerxengineering <me@xengineering.eu>2021-12-02 15:43:26 +0100
commit795be6adce280545682138a737affbeb4e2e507a (patch)
tree6eaa6c5e6478be8b6933a84caf3cbdd9f37a19d5
parent38f53f0b7d420f6bc92e19d25c334c4c7f064543 (diff)
downloadlibweb-2.0.0.tar
libweb-2.0.0.tar.zst
libweb-2.0.0.zip
Implement Hover Shadow on Link Cards2.0.0
-rw-r--r--libweb.css6
-rw-r--r--test.html2
2 files changed, 6 insertions, 2 deletions
diff --git a/libweb.css b/libweb.css
index dbfaee3..3412b70 100644
--- a/libweb.css
+++ b/libweb.css
@@ -190,7 +190,7 @@ footer {
margin-top: var(--vertical-space-medium);
margin-bottom: var(--vertical-space-medium);
padding: 1em;
- box-shadow: 0 0.5em 1em 0 rgba(0,0,0,0.2);
+ box-shadow: 0 0.2em 0.4em 0 rgba(0,0,0,0.2);
border-radius: 0.5em;
}
@@ -234,6 +234,10 @@ button:hover {
background-color: var(--background-color-dark2);
}
+a .card:hover {
+ box-shadow: 0 0.4em 0.8em 0 rgba(0,0,0,0.2);
+}
+
}
/******************************************************************************/
diff --git a/test.html b/test.html
index f718f91..00be4e1 100644
--- a/test.html
+++ b/test.html
@@ -136,7 +136,7 @@ echo "I am $(whoami)"
<!-- a .card -->
<a href="https://example.com">
<div class="card">
- <h3 class="card-first-item">This is a Card</h3>
+ <h3 class="card-first-item">This is a clickable Card</h3>
<p class="card-last-item">Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam