Skip to content

Commit

Permalink
chore(demos): replaces social links buttons with static ones. (ng-boo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Charbonnier committed Jun 28, 2019
1 parent bf7d500 commit d416da9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
16 changes: 11 additions & 5 deletions demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@
</ul>
</div>

<ul class="social-buttons navbar-nav flex-row ml-md-auto d-none d-lg-flex align-items-center">
<a class="github-button" href="https://github.com/ng-bootstrap/ng-bootstrap" rel="noopener" target="_blank" data-size="large" data-show-count="true"
data-count-aria-label="# stargazers on GitHub" aria-label="Star ng-bootstrap/ng-bootstrap on GitHub">Star</a>
<a href="https://twitter.com/intent/tweet?button_hashtag=ngbootstrap" rel="noopener" class="twitter-hashtag-button" data-size="large" data-text="I&#39;m checking out ng-bootstrap, THE Angular UI framework for Bootstrap CSS"
data-url="https://ng-bootstrap.github.io" data-show-count="true">Tweet #ngbootstrap</a>
<ul class="social-buttons navbar-nav flex-row ml-md-auto d-none d-md-flex align-items-center">
<a
href="https://github.com/ng-bootstrap/ng-bootstrap"
rel="nofollow noopener noreferrer" target="_blank"
title="Open ng-bootstrap/ng-bootstrap on GitHub"
><svg:svg aria-hidden="true" ngbdIcon="github"></svg:svg></a>
<a
href="https://twitter.com/intent/tweet?text=I&#39;m+checking+out+&#23;ng-bootstrap,+THE+Angular+UI+framework+for+Bootstrap+CSS&url=https%3A%2F%2Fng-bootstrap.github.io%2F&hashtags=ng-bootstrap,angular,bootstrap"
rel="nofollow noopener noreferrer" target="_blank"
title="Tweet #ngbootstrap"
><svg:svg aria-hidden="true" ngbdIcon="twitter"></svg:svg></a>
</ul>

<button class="navbar-toggler navbar-toggler-right" type="button" (click)="navbarCollapsed = !navbarCollapsed" [attr.aria-expanded]="!navbarCollapsed"
Expand Down
2 changes: 0 additions & 2 deletions demo/src/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@
<body>
<ngbd-app></ngbd-app>
</body>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
<script async defer src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</html>
7 changes: 5 additions & 2 deletions demo/src/style/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ header.navbar {
}
}

.social-buttons > iframe {
margin-left: 0.75rem;
.social-buttons {
svg {
margin-left: 1rem;
fill: #fff;
}
}

.sidebar-collapsed {
Expand Down

0 comments on commit d416da9

Please sign in to comment.