Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit a772d22

Browse files
committed
Bring back the 'Fork me' ribbon, but only for large displays
1 parent aca983b commit a772d22

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

css/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ ul.menu li>ul {
4545
padding: 6px 12px;
4646
border: none;
4747
}
48+
49+
@media (min-width: 992px) {
50+
img.ribbon {
51+
display: inline !important;
52+
position: absolute;
53+
top: 0;
54+
right: 0;
55+
border: 0;
56+
}
57+
}

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
</head>
1212

1313
<body class="container">
14+
<a href="//github.com/mozilla/rust"><img class="ribbon" style="display: none" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
1415
<ul class="row menu">
1516
<li class="col-xs-2 col-md-2">
1617
<img class="img-responsive" src="logos/rust-logo-128x128-blk-v2.png" height="128" width="128" alt="Rust logo" />

0 commit comments

Comments
 (0)