From a25afca8d4b74a8c8883819e45ed21148a1e5430 Mon Sep 17 00:00:00 2001 From: Viiciouss Date: Thu, 7 Jun 2018 17:51:45 +0200 Subject: [PATCH] design edit + search bar --- bin/www | 3 +- src/app/book/book.component.css | 128 ++++++++++++++++++ src/app/book/book.component.html | 70 +++++----- src/app/main/main.component.html | 6 +- .../components/completer.component.html | 2 +- 5 files changed, 174 insertions(+), 35 deletions(-) diff --git a/bin/www b/bin/www index 3b45ba2..6429499 100644 --- a/bin/www +++ b/bin/www @@ -34,7 +34,8 @@ var credentials = { cert: certificate, passphrase: 'titi' }; -var server = https.createServer(credentials, app); +// var server = https.createServer(credentials, app); +var server = http.createServer(app); // server.setSecure(credentials); diff --git a/src/app/book/book.component.css b/src/app/book/book.component.css index 2b17786..fb0b676 100644 --- a/src/app/book/book.component.css +++ b/src/app/book/book.component.css @@ -5,6 +5,12 @@ .topButtons { margin-top: 2%; } + +.topButtonsRow { + display: flex; + align-items: center; + justify-content: center; +} .app-title { font-size: 24px; } @@ -73,3 +79,125 @@ .dropzone-container { height: 100%; } + +*::after, +*::before { + margin: 0; + padding: 0; + box-sizing: border-box +} +html, +body { + font: 100% 'Arimo', sans-serif; +} +.filter-wrapper, +.keyword-wrapper { + display: flex; + justify-content: center; +} +.filter-wrapper { + min-height: 100%; + flex-flow: column wrap;; + position: relative +} +.keyword-wrapper { + width: 100%; + position: relative; +} +#keyword { + border: 1px solid #ccc; + padding: 10px; + font: 1.5em 'Arimo', sans-serif; + width: 50%; + outline: none; + transition: border 0.5s ease-in-out +} +#keyword:focus { + border-color : rgba(81, 203, 238, 1);; +} +#keyword-button { + position: absolute; + right: 26%; + top: 50%; + transform: translateY(-50%); + font-size: 1.7em; + color: #8DB9ED +} +#keyword-button:hover { + color: #ccc +} +.filter-select { + width: 50%; + list-style: none; + font-size: 1.1em; + color: rgb(105, 105, 105); + border: 1px solid #ccc; + border-top: none; + /*so things don't jump around*/ + position: absolute; + left: 25%; + top: calc(50% + 25px); + max-height: calc(50% - 15px); + overflow-y: auto; + background: #fff +} +.filter-select-list img { + margin-right: 30px; +} +.tags { + font-size: 12px; + font-style: italic; + color: #c6c6c6; + margin-right: 10px; + position: relative; + top: -10px; +} +.filter-select-list:hover .tags { + color: #fff; +} +.filter-select-list { + cursor: pointer; + padding: 5px 10px; +} +.artist-name { + display: inline-block; + position: absolute; +} +.filter-select-list:hover { + background: #C0C0C0; + color: #fff +} +.list-highlight, +.list-highlight:hover { + background: rgb(55, 55, 55); + color: #fff +} +@media only screen and (max-width: 768px) { + .filter-select, + #keyword { + width: 80%; + } + #keyword { + font-size: 1.3em + } + .filter-select { + font-size: 0.9em; + left: 10%; + top: calc(50% + 23px); + } + #keyword-button { + right: 11% + } +} +@media only screen and (max-width: 480px) { + .filter-select, + #keyword { + width: 95%; + } + .filter-select { + left: 2.5%; + } + #keyword-button { + right: 3.5% + } +} diff --git a/src/app/book/book.component.html b/src/app/book/book.component.html index 4744e9d..20a2083 100644 --- a/src/app/book/book.component.html +++ b/src/app/book/book.component.html @@ -1,18 +1,3 @@ -
- - -
- {{folder.name}} -

- {{folder?.path}} -

-
-
- -
@@ -32,28 +17,51 @@
- +
+
+ - + -
-
- -
- -
+
+
+ +
+ +
+ + + + +
- - - +
+ + + + + + + + + + + + + + + +
+
diff --git a/src/app/main/main.component.html b/src/app/main/main.component.html index d220acb..e6e7c81 100644 --- a/src/app/main/main.component.html +++ b/src/app/main/main.component.html @@ -10,7 +10,7 @@
  • -
    +
  • @@ -39,7 +39,9 @@
  • - +
    + +
      diff --git a/src/app/typescripts/pro/autocomplete/components/completer.component.html b/src/app/typescripts/pro/autocomplete/components/completer.component.html index e8d00e8..1a3676d 100644 --- a/src/app/typescripts/pro/autocomplete/components/completer.component.html +++ b/src/app/typescripts/pro/autocomplete/components/completer.component.html @@ -1,4 +1,4 @@ -
      +