Skip to content

Commit

Permalink
Make a styling for badges that works on the site and in github markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sunesimonsen committed May 2, 2015
1 parent 8210a5d commit 9a134a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions documentation/index.md
Expand Up @@ -21,13 +21,13 @@ expected { text: 'f00!' } to equal { text: 'foo!' }
}
```

<p class="badges">
## Badges

[![NPM version](https://badge.fury.io/js/unexpected.svg)](http://badge.fury.io/js/unexpected)
[![Build Status](https://travis-ci.org/unexpectedjs/unexpected.svg?branch=master)](https://travis-ci.org/unexpectedjs/unexpected)
[![Coverage Status](https://coveralls.io/repos/unexpectedjs/unexpected/badge.svg)](https://coveralls.io/r/unexpectedjs/unexpected)
[![Dependency Status](https://david-dm.org/unexpectedjs/unexpected.svg)](https://david-dm.org/unexpectedjs/unexpected)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/unexpectedjs/unexpected?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
</p>

## Features

Expand Down
10 changes: 8 additions & 2 deletions site/static/main.less
Expand Up @@ -374,6 +374,12 @@ code {
}
}

.badges img {
height: 20px;
h2#badges {
display: none;
}

h2#badges + p {
img {
height: 20px;
}
}

0 comments on commit 9a134a2

Please sign in to comment.