Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
6de67c0a
Commit
6de67c0a
authored
Aug 23, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate .hide-text mixin for .text-hide as mixin and class
parent
e25ca1e7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
css.html
css.html
+2
-2
less/mixins.less
less/mixins.less
+8
-1
less/utilities.less
less/utilities.less
+1
-1
No files found.
css.html
View file @
6de67c0a
...
...
@@ -2294,14 +2294,14 @@ For example, <code><section></code> should be wrapped as inline.
<h3
id=
"helper-classes-image-replacement"
>
Image replacement
</h3>
<p>
Utilize the
<code>
.
hide-text
</code>
mixin or
<code>
.text-hide
</code>
class
to help replace an element's text content with a background image.
</p>
<p>
Utilize the
<code>
.
text-hide
</code>
class or mixin
to help replace an element's text content with a background image.
</p>
{% highlight html %}
<h1
class=
"text-hide"
>
Custom heading
</h1>
{% endhighlight %}
{% highlight css %}
// Usage as a Mixin
.heading {
.
hide-text
();
.
text-hide
();
}
{% endhighlight %}
</div>
...
...
less/mixins.less
View file @
6de67c0a
...
...
@@ -69,8 +69,15 @@
}
// CSS image replacement
//
// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
// mixins being reused as classes with the same name, this doesn't hold up. As
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
//
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
.hide-text() {
.hide-text(),
.text-hide() {
font: ~"0/0" a;
color: transparent;
text-shadow: none;
...
...
less/utilities.less
View file @
6de67c0a
...
...
@@ -30,7 +30,7 @@
visibility: hidden;
}
.text-hide {
.
hide-text
();
.
text-hide
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment