Merge remote-tracking branch 'cavallium-website/master'

This commit is contained in:
Andrea Cavalli 2019-04-26 13:58:44 +02:00
commit b408c9e087
6 changed files with 23 additions and 4 deletions

View File

@ -47,6 +47,9 @@ export function markedOptionsFactory(): MarkedOptions {
renderer.blockquote = (text: string) => {
return "<blockquote class=\"blockquote\"><p>" + text + "</p></blockquote>";
};
renderer.link = (href: string, title: string, text: string) => {
return "<a class=\"article-link\" href=\"" + href + "\" title=\"" + title + "\">" + text + "</a>";
};
return {
renderer,

View File

@ -20,5 +20,5 @@
</ul>
</nav>
<div class="header-logo-space" [class.overflow]="overflowLogo"></div>
<div class="overflow-max-indicator" [class.visible]="overflowMax">&gt;</div>
<div class="overflow-max-indicator" [class.visible]="overflowMax"><div class="overflow-max-icon"></div></div>
</div>

View File

@ -116,8 +116,17 @@
width: 2rem;
text-align: right;
padding-right: 0.25rem;
box-shadow: -2rem 0 0.5rem -0.5rem $color-main inset;
box-shadow: -2rem 0 0.5rem -0.5rem $color-main inset;
}
.overflow-max-indicator.visible {
opacity: 1;
}
.overflow-max-icon {
width: 100%;
height: 100%;
background: white;
mask-image: url("/assets/arrow-forward.svg");
mask-repeat: no-repeat;
mask-position: right;
mask-size: contain;
}

View File

@ -37,7 +37,6 @@ export class NavbarComponent implements OnInit, AfterViewInit {
constructor(private elRef: ElementRef<HTMLElement>, public currentDocument: CurrentDocumentService) { }
ngOnInit() {
// TODO: fare la parte dei percorsi preselezionati
}
ngAfterViewInit() {

View File

@ -0,0 +1 @@
<?xml version="1.0" ?><svg data-name="Livello 1" id="Livello_1" viewBox="0 0 20.57 38" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;stroke:#231f20;stroke-linecap:round;stroke-linejoin:round;stroke-width:4px;}</style></defs><title/><polyline class="cls-1" points="2.03 36 18.57 19.14 2 2"/></svg>

After

Width:  |  Height:  |  Size: 315 B

View File

@ -19,4 +19,11 @@ strong, b, h1, h2, h3, h4, h5, h6, th {
}
.document-style-warning{
color: red;
}
}
@media only screen, (any-pointer: fine) {
.article-link {
min-height: 48px;
display: inline-block;
}
}