fossdaily-xyz

Source code for https://fossdaily.xyz
git clone git://caltlg.in/fossdaily-xyz
Log | Files | Refs

commit d951cbc65cd5aa96a66946e78fd8bd94af0b0b2b
parent 1238768b72a2f285fea89ca7c0e4cd132d4a66e9
Author: caltlgin <contact@fossdaily.xyz>
Date:   Wed,  8 Jul 2020 08:13:42 +1200

Add search function

Diffstat:
Moutput/index.html | 4++++
Moutput/style.css | 36++++++++++++++++++++++++++++++++++++
Mtemplates/index.html/header.html | 4++++
3 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/output/index.html b/output/index.html @@ -36,6 +36,10 @@ <main id="mainwrap"> <div id="main"> <h1>Posts</h1> + <!-- Search function shameless stolen from https://www.paritybit.ca --> + <form action="https://duckduckgo.com/" method="get"> + <input name="sites" type="hidden" value="fossdaily.xyz"> <input aria-label="Search this blog." name="q" type="text" placeholder="Search this blog">&ensp;<button aria-label="Submit search query.">Search</button> + <br><br> <hr class="small" /> <br> <table><tr> diff --git a/output/style.css b/output/style.css @@ -120,6 +120,42 @@ code { word-wrap: normal; } +/* Input */ +input, +select { + background-color: #20232a; + border: 1px solid #bbe4d8; + border-radius: 5px; + color: #f8f8f2; + padding: 10px; +} +input:focus, +select:focus { + border: 1px solid #73d6bc; +} +button { + background-color: #73d6bc; + border: 1px solid #73d6bc; + border-radius: 5px; + color: #17181c; + padding: 10px; + -o-transition: 0.3s; + -ms-transition: 0.3s; + -moz-transition: 0.3s; + -webkit-transition: 0.3s; + text-decoration: none; + transition: 0.3s; +} +button:hover { + background-color: #247b64; + cursor: pointer; + /* color: #f8f8f2; */ +} +button:active { + background-color: #247b64; +} + + /* Center ... */ .center { display: block; diff --git a/templates/index.html/header.html b/templates/index.html/header.html @@ -36,6 +36,10 @@ <main id="mainwrap"> <div id="main"> <h1>Posts</h1> + <!-- Search function shameless stolen from https://www.paritybit.ca --> + <form action="https://duckduckgo.com/" method="get"> + <input name="sites" type="hidden" value="fossdaily.xyz"> <input aria-label="Search this blog." name="q" type="text" placeholder="Search this blog">&ensp;<button aria-label="Submit search query.">Search</button> + <br><br> <hr class="small" /> <br> <table> \ No newline at end of file