Skip to content

Commit 4dc8443

Browse files
committed
simplifying search css and other items
1 parent 3620655 commit 4dc8443

File tree

4 files changed

+9
-66
lines changed

4 files changed

+9
-66
lines changed

src/app/browser/pages/term/term.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ <h4 class="item-id">{{term.id}}</h4>
8080
<div>
8181
<strong>Synonyms:</strong> &nbsp;&nbsp;
8282
<i *ngFor="let item of term.synonyms; let isLast=last">{{item}}{{isLast ? '' : "\t-\t"}}</i>
83+
<hr class="underline-hr">
8384
</div>
8485
<div *ngIf="term.comment">
8586
<strong>Comment:</strong> &nbsp;&nbsp; {{term.comment}}
@@ -90,7 +91,6 @@ <h4 class="item-id">{{term.id}}</h4>
9091
<i *ngFor="let item of term.xrefs; let isLast=last">{{item}}{{isLast ? '' : ', '}}</i>
9192
<hr class="underline-hr">
9293
</div>
93-
<hr class="underline-hr">
9494
<button mat-raised-button class="download-associations"
9595
[disabled]="this.diseaseAssocCount === 0 && this.geneAssocCount === 0"
9696
(click)="downloadDialog()"><span class="material-icons">get_app</span> Export Associations

src/app/shared/navbar/navbar.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class NavbarComponent implements OnInit {
4444
ngOnInit() {
4545
this.router.events.subscribe((event) => {
4646
if (event instanceof NavigationEnd) {
47-
console.log(event)
4847
if (this.router.url !== '/') {
4948
this.showSearch = true;
5049
} else {

src/app/shared/search/search/search.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
(input)="contentChanging($event.target.value)"
1010
(keyup.enter)="submitQuery($event.target.value)"
1111
(focus)="toggleDropdown($event)"
12-
(blur)="toggleDropdown($event)"
1312
[(ngModel)]="queryString" #searchbar>
1413
<div class="search-output mat-elevation-z4 flex-[1_1_100%]" [@searchState]="searchstate">
1514
<div class="search-all" *ngIf="!notFoundFlag">

src/app/shared/search/search/search.component.scss

Lines changed: 8 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $orange-hover: rgba(236, 151, 54, 0.8);
4444
z-index: 999;
4545

4646
& .search-all {
47-
padding: 0 10px 0 10px;
47+
padding: 2px 10px 0 10px;
4848
margin: 0 0 10px 0;
4949
font-weight: 900;
5050
background-color: $blue-searchall-color;
@@ -58,37 +58,6 @@ $orange-hover: rgba(236, 151, 54, 0.8);
5858
position: relative;
5959
top: 4px;
6060
}
61-
62-
&:after {
63-
content: '';
64-
position: absolute;
65-
top: 0;
66-
right: 0;
67-
border-right: 15px solid white;
68-
border-top: 20px solid $blue-searchall-color;
69-
width: 0;
70-
}
71-
72-
&:before {
73-
content: '';
74-
position: absolute;
75-
top: 0;
76-
left: 0;
77-
border-left: 15px solid white;
78-
border-top: 20px solid $blue-searchall-color;
79-
width: 0;
80-
}
81-
82-
@media(max-width: 991px) {
83-
&:after {
84-
border-top: 21px solid $blue-searchall-color;
85-
}
86-
87-
&:before {
88-
border-top: 21px solid $blue-searchall-color;
89-
}
90-
}
91-
9261
&:hover {
9362
opacity: .8;
9463
}
@@ -105,27 +74,11 @@ $orange-hover: rgba(236, 151, 54, 0.8);
10574
& .result-title {
10675
font-weight: bold;
10776
margin: 5px 0 0 0;
108-
padding: 0 0 0 10px;
109-
width: 60%;
77+
padding: 5px;
78+
width: 40%;
11079
background-color: $category-label-green;
11180
color: white;
11281
cursor: default;
113-
114-
&:after {
115-
content: '';
116-
position: absolute;
117-
right: 40%;
118-
border-right: 15px solid white;
119-
border-top: 20px solid $category-label-green;
120-
width: 0;
121-
}
122-
123-
@media(max-width: 767px) {
124-
width: 100%;
125-
&:after {
126-
display: none;
127-
}
128-
}
12982
}
13083

13184
& .result-list {
@@ -134,6 +87,10 @@ $orange-hover: rgba(236, 151, 54, 0.8);
13487
color: black !important;
13588

13689
& .result {
90+
display: flex;
91+
align-items: center;
92+
flex-direction: row;
93+
justify-content: space-around;
13794
padding: 5px 10px 0 25px;
13895
height: 25px;
13996
outline: none;
@@ -152,6 +109,7 @@ $orange-hover: rgba(236, 151, 54, 0.8);
152109
white-space: nowrap;
153110
overflow: hidden;
154111
text-overflow: ellipsis;
112+
flex: 1 1 auto;
155113
}
156114

157115
& .id {
@@ -165,8 +123,6 @@ $orange-hover: rgba(236, 151, 54, 0.8);
165123
& .term-result {
166124
& .result-list {
167125
& .result .id {
168-
display: block;
169-
float: left;
170126
width: 60px;
171127
}
172128
}
@@ -175,21 +131,10 @@ $orange-hover: rgba(236, 151, 54, 0.8);
175131
& .disease-result {
176132
& .result-list {
177133
& .result .id {
178-
display: block;
179-
float: left;
180134
width: 50px;
181135
}
182136
}
183137
}
184-
185-
& .gene-result {
186-
& .result-list {
187-
& .result .id {
188-
display: block;
189-
float: left;
190-
}
191-
}
192-
}
193138
}
194139
}
195140

0 commit comments

Comments
 (0)