From d5889341e6fa1cd633f8e914cf2ec2be1ab0d794 Mon Sep 17 00:00:00 2001 From: J-Klinke Date: Tue, 18 Jun 2024 11:43:14 +0200 Subject: [PATCH] proper add button implementation --- src/main/resources/static/add-button-mask.svg | 105 ++++++++++++++++++ src/main/resources/static/main.css | 17 ++- src/main/resources/templates/index.html | 5 +- 3 files changed, 119 insertions(+), 8 deletions(-) create mode 100644 src/main/resources/static/add-button-mask.svg diff --git a/src/main/resources/static/add-button-mask.svg b/src/main/resources/static/add-button-mask.svg new file mode 100644 index 0000000..221de76 --- /dev/null +++ b/src/main/resources/static/add-button-mask.svg @@ -0,0 +1,105 @@ + + + + + diff --git a/src/main/resources/static/main.css b/src/main/resources/static/main.css index 1f1581a..0711eca 100644 --- a/src/main/resources/static/main.css +++ b/src/main/resources/static/main.css @@ -29,12 +29,19 @@ header { } #add-btn { + width: 7rem; + height: 7rem; + content: url("add-button-mask.svg"); + background: linear-gradient(135deg, pink, darkblue); + clip-path: polygon(0% 0%, 100% 0%, 0% 100%); + + cursor: pointer; + position: fixed; top: 0; left: 0; z-index: 1; } - #tool-bar { display: flex; flex-direction: row; @@ -50,6 +57,7 @@ header { border: none; color: var(--text-color); } + #search-entry:focus-visible { outline: none; } @@ -124,13 +132,14 @@ header { .divider { width: .05rem; - background-color: #222; + height: 1rem; + background-color: var(--bg-color); } -:is(.upvote-btn, .downvote-btn, #search-btn, #filter-btn, #sort-btn):is(:hover, :focus-visible) { +:is(.upvote-btn, .downvote-btn, #search-btn, #filter-btn, #sort-btn, #add-btn):is(:hover, :focus-visible) { filter: brightness(1.5); } -:is(.upvote-btn, .downvote-btn, #search-btn, #filter-btn, #sort-btn):active { +:is(.upvote-btn, .downvote-btn, #search-btn, #filter-btn, #sort-btn, #add-btn):active { filter: brightness(1.75); } diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index b1677be..172c714 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -7,10 +7,7 @@ - - - + - +

Welcome to DataDash