"more"completely working

This commit is contained in:
Joachim Nielandt 2018-03-27 21:07:54 +02:00
parent 5fb1bc484f
commit 87fc79fafe
3 changed files with 17 additions and 3 deletions

View File

@ -16,11 +16,12 @@
<div class="more" *ngIf="shortVersion === true">
<a routerLink="../post/{{post.id}}">
<!--<i class="fa fa-file"></i>-->
<app-languagetoggle [language]="'en'">
more
> full post
</app-languagetoggle>
<app-languagetoggle [language]="'nl'">
meer
> volle post
</app-languagetoggle>
</a>
</div>

View File

@ -42,6 +42,15 @@
border-right: 1px solid black;
padding-right: 25px;
text-align: justify;
}
/**
This is a work-around for the innerHTML. Apparently, angular can style this is :host ::ng-deep is added. Fucked up.
*/
:host ::ng-deep .post-body p:last-child {
margin-bottom: 0px;
}
.post-tag {
@ -56,5 +65,7 @@
.more {
border-left: 1px solid black;
border-right: 1px solid black;
padding-left: 25px;
padding-top: 10px;
}

View File

@ -1,5 +1,7 @@
<p>Dit is een test post.</p>
<p>Dit is een test post.</p>
<p>Dit is een test post.</p>
<p>Dit is een test post.</p>
<splitter/>
<p>En dit is de tweede paragraaf!</p>