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
348668ec
Commit
348668ec
authored
Jun 04, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add misc helper classes to components css docs
parent
58924260
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
6 deletions
+116
-6
docs/components.html
docs/components.html
+58
-3
docs/templates/pages/components.mustache
docs/templates/pages/components.mustache
+58
-3
No files found.
docs/components.html
View file @
348668ec
...
...
@@ -1869,7 +1869,7 @@
<h1>
Miscellaneous
<small>
Lightweight utility components
</small></h1>
</div>
<div
class=
"row"
>
<div
class=
"span
4
"
>
<div
class=
"span
8
"
>
<h2>
Wells
</h2>
<p>
Use the well as a simple effect on an element to give it an inset effect.
</p>
<div
class=
"well"
>
...
...
@@ -1892,14 +1892,69 @@
...
<
/div
>
</pre>
</div>
<!--/span-->
<div
class=
"span4"
>
<h2>
Close icon
</h2>
<p>
Use the generic close icon for dismissing content like modals and alerts.
</p>
<p><button
class=
"close"
style=
"float: none;"
>
×
</button></p>
<pre
class=
"prettyprint linenums"
>
<
button class="close"
>&
times;
<
/button
>
</pre>
<p>
iOS devices require an href="#" for click events if you rather use an anchor.
</p>
<pre
class=
"prettyprint linenums"
>
<
a class="close" href="#"
>&
times;
<
/a
>
</pre>
<h2>
Helper classes
</h2>
<p>
Simple, focused classes for small display or behavior tweaks.
</p>
<h4>
.pull-left
</h4>
<p>
Float an element left
</p>
<pre
class=
"prettyprint linenums"
>
class="pull-left"
</pre>
<pre
class=
"prettyprint linenums"
>
.pull-left {
float: left;
}
</pre>
<h4>
.pull-right
</h4>
<p>
Float an element right
</p>
<pre
class=
"prettyprint linenums"
>
class="pull-right"
</pre>
<pre
class=
"prettyprint linenums"
>
.pull-right {
float: right;
}
</pre>
<h4>
.muted
</h4>
<p>
Change an element's color to
<code>
#999
</code></p>
<pre
class=
"prettyprint linenums"
>
class="muted"
</pre>
<pre
class=
"prettyprint linenums"
>
.muted {
color: #999;
}
</pre>
<h4>
.clearfix
</h4>
<p>
Clear the
<code>
float
</code>
on any element
</p>
<pre
class=
"prettyprint linenums"
>
class="clearfix"
</pre>
<pre
class=
"prettyprint linenums"
>
.clearfix {
*zoom: 1;
&
:before,
&
:after {
display: table;
content: "";
}
&
:after {
clear: both;
}
}
</pre>
</div>
<!--/span-->
</div>
<!--/row-->
</section>
...
...
docs/templates/pages/components.mustache
View file @
348668ec
...
...
@@ -1791,7 +1791,7 @@
<h1>
{{
_i
}}
Miscellaneous
{{/
i
}}
<small>
{{
_i
}}
Lightweight utility components
{{/
i
}}
</small></h1>
</div>
<div
class=
"row"
>
<div
class=
"span
4
"
>
<div
class=
"span
8
"
>
<h2>
{{
_i
}}
Wells
{{/
i
}}
</h2>
<p>
{{
_i
}}
Use the well as a simple effect on an element to give it an inset effect.
{{/
i
}}
</p>
<div
class=
"well"
>
...
...
@@ -1814,14 +1814,69 @@
...
<
/div
>
</pre>
</div>
<!--/span-->
<div
class=
"span4"
>
<h2>
{{
_i
}}
Close icon
{{/
i
}}
</h2>
<p>
{{
_i
}}
Use the generic close icon for dismissing content like modals and alerts.
{{/
i
}}
</p>
<p><button
class=
"close"
style=
"float: none;"
>
×
</button></p>
<pre
class=
"prettyprint linenums"
>
<
button class="close"
>&
times;
<
/button
>
</pre>
<p>
{{
_i
}}
iOS devices require an href="#" for click events if you rather use an anchor.
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
<
a class="close" href="#"
>&
times;
<
/a
>
</pre>
<h2>
{{
_i
}}
Helper classes
{{/
i
}}
</h2>
<p>
{{
_i
}}
Simple, focused classes for small display or behavior tweaks.
{{/
i
}}
</p>
<h4>
{{
_i
}}
.pull-left
{{/
i
}}
</h4>
<p>
{{
_i
}}
Float an element left
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
class="pull-left"
</pre>
<pre
class=
"prettyprint linenums"
>
.pull-left {
float: left;
}
</pre>
<h4>
{{
_i
}}
.pull-right
{{/
i
}}
</h4>
<p>
{{
_i
}}
Float an element right
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
class="pull-right"
</pre>
<pre
class=
"prettyprint linenums"
>
.pull-right {
float: right;
}
</pre>
<h4>
{{
_i
}}
.muted
{{/
i
}}
</h4>
<p>
{{
_i
}}
Change an element's color to
<code>
#999
</code>
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
class="muted"
</pre>
<pre
class=
"prettyprint linenums"
>
.muted {
color: #999;
}
</pre>
<h4>
{{
_i
}}
.clearfix
{{/
i
}}
</h4>
<p>
{{
_i
}}
Clear the
<code>
float
</code>
on any element
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
class="clearfix"
</pre>
<pre
class=
"prettyprint linenums"
>
.clearfix {
*zoom: 1;
&
:before,
&
:after {
display: table;
content: "";
}
&
:after {
clear: both;
}
}
</pre>
</div>
<!--/span-->
</div>
<!--/row-->
</section>
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