diff options
author | xengineering <me@xengineering.eu> | 2021-12-02 15:43:26 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2021-12-02 15:43:26 +0100 |
commit | 795be6adce280545682138a737affbeb4e2e507a (patch) | |
tree | 6eaa6c5e6478be8b6933a84caf3cbdd9f37a19d5 | |
parent | 38f53f0b7d420f6bc92e19d25c334c4c7f064543 (diff) | |
download | libweb-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.css | 6 | ||||
-rw-r--r-- | test.html | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -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); +} + } /******************************************************************************/ @@ -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 |