From e21dba59051a2bf6328903222e976e1ddcfb20e7 Mon Sep 17 00:00:00 2001 From: "K. Ventouras" Date: Fri, 30 Aug 2024 17:38:56 +0300 Subject: [PATCH 1/2] css for text input filters --- stylesheets/stylesheet.css | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css index c7798dada78..5b9a72b628a 100644 --- a/stylesheets/stylesheet.css +++ b/stylesheets/stylesheet.css @@ -911,6 +911,50 @@ ul.popular-tags li { color: var(--body-color); } +.text-input-container { + width: 95%; + position: relative; + display: inline-block; + vertical-align: middle; + font-size: 13px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.text-input-container input[type="text"] { + box-sizing: border-box; + position: relative; + overflow: hidden; + margin: 0; + padding: 0 5px; + width: 100%; + height: auto; + border: 1px solid #aaa; + background-color: #fff; + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #eee), color-stop(15%, #fff)); + background-image: linear-gradient(#eee 1%, #fff 15%); + cursor: text; + margin: 1px 0; + height: 29px; + outline: 0; + -webkit-box-shadow: none; + box-shadow: none; + color: #222; + font-size: 100%; + font-family: sans-serif; + line-height: normal; + border-radius: 0; +} + +.text-input-container input[type="text"]:active, +.text-input-container input[type="text"]:focus { + border: 1px solid #5897fb; + -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3); + box-shadow: 0 0 5px rgba(0, 0, 0, .3); +} + @media (max-width: 768px) { body { padding: 0 0; From 0c4ec0d872b0396aa81c72caf7d8fb309393a251 Mon Sep 17 00:00:00 2001 From: "K. Ventouras" Date: Fri, 30 Aug 2024 17:41:39 +0300 Subject: [PATCH 2/2] name/description text search filters --- _includes/scripts.html | 8 +++ javascripts/main.js | 89 +++++++++++++++++++++++++++++-- javascripts/projectsService.js | 54 ++++++++++++++++++- tests/spec/ProjectsServiceSpec.js | 70 +++++++++++++++++++++++- 4 files changed, 215 insertions(+), 6 deletions(-) diff --git a/_includes/scripts.html b/_includes/scripts.html index 1c19681eeda..9852fd284ab 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -29,6 +29,14 @@ <% }) %> +
+ + +
+
+ + +