Skip to content

Commit 225d2a9

Browse files
committed
use CSS fork ribbon
looks better on retina displays
1 parent e89150c commit 225d2a9

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

_layouts/default.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Bootstrap Table of Contents</title>
7+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.min.css" />
8+
<!--[if lt IE 9]>
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.ie.min.css" />
10+
<![endif]-->
711
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
812
<link rel="stylesheet" href="{{ site.baseurl }}/bootstrap-toc.css" media="screen" charset="utf-8">
913
<link rel="stylesheet" href="{{ site.baseurl }}/assets/highlight.css" charset="utf-8">
@@ -26,9 +30,11 @@
2630
</script>
2731
</head>
2832
<body data-spy="scroll" data-target="#toc">
29-
<a href="https://github.com/afeld/bootstrap-toc">
30-
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
31-
</a>
33+
<div class="github-fork-ribbon-wrapper right">
34+
<div class="github-fork-ribbon">
35+
<a href="https://github.com/afeld/bootstrap-toc">Fork me on GitHub</a>
36+
</div>
37+
</div>
3238
<div class="container">
3339
<div class="row">
3440
<div class="col-sm-3">

assets/screen.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.right .github-fork-ribbon {
2+
background-color: #563d7c;
3+
}
4+
15
.container {
26
max-width: 800px;
37
padding-top: 40px;

0 commit comments

Comments
 (0)