Skip to content

Commit f1a8e91

Browse files
committed
Remove image replacement helper class .ir
This class was removed because it doesn't provide enough use cases within modern web development. Cases are mostly handled indiviually by developers. Reference #1472. Closes #1475.
1 parent 94c3540 commit f1a8e91

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### HEAD
22

3+
* Remove image replacement helper class `.ir`
34
* Update to Modernizr 2.7.0.
45
* Update to Apache Server Configs 2.0.0.
56
* Add vertical centering for `svg` ([#1453](https://github.com/h5bp/html5-boilerplate/issues/1453)).

css/main.css

-18
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,6 @@ textarea {
118118
Helper classes
119119
========================================================================== */
120120

121-
/*
122-
* Image replacement
123-
*/
124-
125-
.ir {
126-
background-color: transparent;
127-
border: 0;
128-
overflow: hidden;
129-
}
130-
131-
.ir:before {
132-
content: "";
133-
display: block;
134-
width: 0;
135-
height: 150%;
136-
}
137-
138121
/*
139122
* Hide from both screenreaders and browsers: h5bp.com/u
140123
*/
@@ -251,7 +234,6 @@ textarea {
251234
* Don't show links for images, or javascript/internal links
252235
*/
253236

254-
.ir a:after,
255237
a[href^="javascript:"]:after,
256238
a[href^="#"]:after {
257239
content: "";

doc/css.md

-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ You are free to modify or add to these base styles as your project requires.
3838

3939
## Common helpers
4040

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

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

0 commit comments

Comments
 (0)