From a6d5ff7604a3c2a94ff8814e2df7ca7bb2b48634 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 2 Apr 2020 11:39:14 +0200 Subject: Use form-control to display box-shadow on form inputs/selects upon focus --- .../src/app/search/search-filters.component.html | 8 +-- .../src/app/search/search-filters.component.scss | 63 +--------------------- 2 files changed, 6 insertions(+), 65 deletions(-) (limited to 'client/src/app/search') diff --git a/client/src/app/search/search-filters.component.html b/client/src/app/search/search-filters.component.html index 60680c7bd..54fc7338f 100644 --- a/client/src/app/search/search-filters.component.html +++ b/client/src/app/search/search-filters.component.html @@ -46,6 +46,7 @@ type="text" id="original-publication-after" name="original-publication-after" i18n-placeholder placeholder="After..." [(ngModel)]="originallyPublishedStartYear" + class="form-control" >
@@ -55,6 +56,7 @@ type="text" id="original-publication-before" name="original-publication-before" i18n-placeholder placeholder="Before..." [(ngModel)]="originallyPublishedEndYear" + class="form-control" >
@@ -102,7 +104,7 @@ Reset
- @@ -115,7 +117,7 @@ Reset
- @@ -128,7 +130,7 @@ Reset
- diff --git a/client/src/app/search/search-filters.component.scss b/client/src/app/search/search-filters.component.scss index 99af2e4c5..edd85bc70 100644 --- a/client/src/app/search/search-filters.component.scss +++ b/client/src/app/search/search-filters.component.scss @@ -66,65 +66,4 @@ input[type=submit] { white-space: nowrap; } -::ng-deep { - .ng2-tag-input { - border: none !important; - } - - .ng2-tags-container { - display: flex; - align-items: center; - border: 1px solid #C6C6C6; - border-radius: 3px; - padding: 5px !important; - height: max-content; - } - - tag-input-form { - input { - height: 30px !important; - font-size: 12px !important; - - background-color: var(--mainBackgroundColor) !important; - color: var(--mainForegroundColor) !important; - } - } - - tag { - background-color: $grey-background-color !important; - color: #000 !important; - border-radius: 3px !important; - font-size: 12px !important; - height: 30px !important; - line-height: 30px !important; - margin: 0 5px 0 0 !important; - cursor: default !important; - padding: 0 8px 0 10px !important; - - div { - height: 100% !important; - } - } - - delete-icon { - cursor: pointer !important; - height: auto !important; - vertical-align: middle !important; - padding-left: 6px !important; - - svg { - position: relative; - top: -1px; - height: auto !important; - vertical-align: middle !important; - - path { - fill: $grey-foreground-color !important; - } - } - - &:hover { - transform: none !important; - } - } -} +@include ng2-tags -- cgit v1.2.3