mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
feat(docs-infra): add open_in_new icon to external nav-item links (#46384)
add a mat open_in_new icon to the blog external link present in the left sidenav on smaller screens so that it can be distinguished from the other (/internal) links this is a continuation of #45876 PR Close #46384
This commit is contained in:
parent
f94c6f433d
commit
88f53dcdbc
2 changed files with 17 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<div *ngIf="!node.children">
|
||||
<a href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
|
||||
class="vertical-menu-item">
|
||||
<span>{{node.title}}</span>
|
||||
<span class="vertical-menu-item-text">{{node.title}}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -91,6 +91,22 @@ aio-nav-menu {
|
|||
}
|
||||
}
|
||||
|
||||
a.vertical-menu-item {
|
||||
&[href^="http:"],
|
||||
&[href^="https:"] {
|
||||
.vertical-menu-item-text {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
&::after {
|
||||
content: "\e89e"; // codepoint for "open_in_new"
|
||||
margin-left: 0.3rem;
|
||||
line-height: normal;
|
||||
font-family: "Material Icons";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button.vertical-menu-item {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
|
|
|
|||
Loading…
Reference in a new issue