Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CSS helper classes #1475

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### HEAD

* Remove image replacement helper class `.ir`
* Update to Apache Server Configs 2.0.0.
* Add vertical centering for `svg` ([#1453](https://github.com/h5bp/html5-boilerplate/issues/1453)).
* Redesign 404 page ([#1443](https://github.com/h5bp/html5-boilerplate/pull/1443)).
Expand Down
18 changes: 0 additions & 18 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,6 @@ textarea {
Helper classes
========================================================================== */

/*
* Image replacement
*/

.ir {
background-color: transparent;
border: 0;
overflow: hidden;
}

.ir:before {
content: "";
display: block;
width: 0;
height: 150%;
}

/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
Expand Down Expand Up @@ -251,7 +234,6 @@ textarea {
* Don't show links for images, or javascript/internal links
*/

.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
Expand Down
7 changes: 0 additions & 7 deletions doc/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ You are free to modify or add to these base styles as your project requires.

## Common helpers

#### `.ir`

Add the `.ir` class to any element you are applying image-replacement to. When
replacing an element's content with an image, make sure to also set a specific
`background-image: url(pathtoimage.png);`, `width`, and `height` so that your
replacement image appears.

#### `.hidden`

Add the `.hidden` class to any elements that you want to hide from all
Expand Down