Skip to content

Commit ae6a3a4

Browse files
committed
Re-styled Search form.
1 parent 3c90511 commit ae6a3a4

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

src/themes/datashare/app/shared/search-form/search-form.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- // DATASHARE - start -->
22
<div class="datashare-search-form-container px-3 py-3 my-3 bg-primary text-white">
3-
<h3 class="border-bottom">Search Datashare</h3>
3+
<h3>Search Datashare</h3>
44
<form #form="ngForm" (ngSubmit)="onSubmit(form.value)" action="/search">
55
<div>
66
<div class="form-group input-group">
@@ -11,7 +11,7 @@ <h3 class="border-bottom">Search Datashare</h3>
1111
{{dsoNameService.getName(selectedScope | async) || ('search.form.scope.all' | translate)}}
1212
</button>
1313
</div>
14-
<input type="text" [(ngModel)]="query" name="query" class="form-control no-border"
14+
<input type="text" [(ngModel)]="query" name="query" class="datashare-search-form-input form-control no-border"
1515
[attr.aria-label]="searchPlaceholder" [attr.data-test]="'search-box' | dsBrowserOnly"
1616
[placeholder]="searchPlaceholder">
1717

src/themes/datashare/app/shared/search-form/search-form.component.scss

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,35 @@
22
border-radius: 0.5rem;
33
}
44

5+
.datashare-search-form-input {
6+
/* top-left | top-right | bottom-right | bottom-left */
7+
border-radius: 0.25rem 0 0 0.25rem !important;
8+
}
9+
510

611
.scope-button {
712
color: var(--datashare-blue-muted) !important;
813
background-color: #fff !important;
9-
margin-right: 1rem !important;
14+
border-radius: 0.25rem !important;
15+
margin-right: 1rem;
1016
}
1117

1218
.search-button.btn {
1319
background-color: #fff !important;
14-
padding: .1rem !important;
20+
// padding: .2rem !important;
1521
border-left: none !important;
22+
border-right: none !important;
23+
24+
}
25+
26+
.search-button .search-icon {
27+
margin-left: -1px; /* Example adjustment */
28+
padding-right: 0px;
1629
}
1730

31+
.btn {
32+
line-height: 1rem !important;
33+
}
1834

1935
.search-icon {
2036
background-image: url('/assets/datashare/images/search.svg');
@@ -24,8 +40,10 @@
2440
background-color: transparent; // Explicitly set to transparent
2541
width: 1.2rem;
2642
height: 1.5rem;
27-
margin-right: 0.5rem;
43+
/* top-left | top-right | bottom-right | bottom-left */
44+
border-radius: 0 0.25rem 0.25rem 0 !important;
45+
border: none !important;
2846
display: inline-block;
2947
vertical-align: middle;
3048
filter: brightness(0) saturate(100%) invert(30%);
31-
}
49+
}

0 commit comments

Comments
 (0)