Skip to content

Commit

Permalink
searchbox & annotation input/contenteditable scss+, closes #225
Browse files Browse the repository at this point in the history
  • Loading branch information
n0mad01 committed Jul 26, 2020
1 parent 4bbc330 commit e5e43f4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,14 @@
color: #000000;
}
}

&[placeholder]:empty:not(:focus):before {
// &[placeholder]:empty:not(:focus):before {
&[placeholder]:empty::before {
content: attr(placeholder);
color: #CCC;
}
&[placeholder]:empty:focus::before {
content: "";
}
}

&:focus {
Expand Down
17 changes: 10 additions & 7 deletions src/app/core/components/toolbar/toolbar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ button {
top: 5px;
left: 10px;
}
input:focus + .search-icon {
/*opacity: 0;*/
visibility: hidden;
}
/*input:focus + .search-icon {
// opacity: 0.9;
// visibility: hidden;
}*/
.close-icon {
position: absolute;
top: 5px;
Expand All @@ -67,13 +67,16 @@ button {
padding: 6px 32px;
}
&:focus + .search-icon {
/*opacity: 0;*/
visibility: hidden;
opacity: 0.15;
// visibility: hidden;
}
&[placeholder]:empty:not(:focus):before {
&[placeholder]:empty:before {
content: attr(placeholder);
color: #CCC;
}
&[placeholder]:empty:focus::before {
content: "";
}
}
.searchBox::placeholder {
color: black;
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/components/toolbar/toolbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class ToolbarComponent extends HashtagService implements OnInit, AfterVie
constructor(
private readonly _fb: FormBuilder,
readonly _domService: DomService,
private global: Globals,
private _global: Globals,
private readonly _cdr: ChangeDetectorRef,
) {
super(_domService)
Expand Down Expand Up @@ -117,7 +117,7 @@ export class ToolbarComponent extends HashtagService implements OnInit, AfterVie

ngAfterViewInit() {

this.global.getValue().subscribe((value) => {
this._global.getValue().subscribe((value) => {
this.viewmode_active = value
this._cdr.detectChanges()
})
Expand Down

0 comments on commit e5e43f4

Please sign in to comment.