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
af0b9cb4
Commit
af0b9cb4
authored
May 16, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple responsive utilities test css
parent
e5d6a40a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
21 deletions
+36
-21
docs/assets/css/docs.css
docs/assets/css/docs.css
+11
-14
docs/css.html
docs/css.html
+25
-7
No files found.
docs/assets/css/docs.css
View file @
af0b9cb4
...
@@ -510,28 +510,25 @@ body {
...
@@ -510,28 +510,25 @@ body {
position
:
relative
;
position
:
relative
;
float
:
left
;
float
:
left
;
width
:
25%
;
width
:
25%
;
padding
:
15px
10px
;
font-size
:
14px
;
font-weight
:
bold
;
line-height
:
1.1
;
color
:
#999
;
text-align
:
center
;
border
:
1px
solid
#ddd
;
border-radius
:
4px
;
}
}
.responsive-utilities-test
li
+
li
{
.responsive-utilities-test
li
+
li
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.responsive-utilities-test
span
{
.responsive-utilities-test
span
{
position
:
absolute
;
top
:
-1px
;
left
:
-1px
;
right
:
-1px
;
bottom
:
-1px
;
padding
:
15px
10px
;
padding
:
15px
10px
;
font-size
:
14px
;
font-weight
:
bold
;
line-height
:
1.1
;
text-align
:
center
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.responsive-utilities-test
span
{
.responsive-utilities-test.visible-on
[
class
*=
"hidden"
],
.responsive-utilities-test.hidden-on
[
class
*=
"visible"
]
{
color
:
#999
;
border
:
1px
solid
#ddd
;
}
.responsive-utilities-test.visible-on
[
class
*=
"visible"
],
.responsive-utilities-test.hidden-on
[
class
*=
"hidden"
]
{
color
:
#468847
;
color
:
#468847
;
background-color
:
#dff0d8
;
background-color
:
#dff0d8
;
border
:
1px
solid
#d6e9c6
;
border
:
1px
solid
#d6e9c6
;
...
...
docs/css.html
View file @
af0b9cb4
...
@@ -2003,17 +2003,35 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -2003,17 +2003,35 @@ For example, <code><section></code> should be wrapped as inline.
<p>
Resize your browser or load on different devices to test the responsive utility classes.
</p>
<p>
Resize your browser or load on different devices to test the responsive utility classes.
</p>
<h4>
Visible on...
</h4>
<h4>
Visible on...
</h4>
<p>
Green checkmarks indicate the element
<strong>
is visible
</strong>
in your current viewport.
</p>
<p>
Green checkmarks indicate the element
<strong>
is visible
</strong>
in your current viewport.
</p>
<ul
class=
"responsive-utilities-test"
>
<ul
class=
"responsive-utilities-test visible-on"
>
<li>
Small
<span
class=
"visible-sm"
>
✔
Visible on small
</span></li>
<li>
<li>
Medium
<span
class=
"visible-md"
>
✔
Visible on medium
</span></li>
<span
class=
"hidden-sm"
>
Small
</span>
<li>
Large
<span
class=
"visible-lg"
>
✔
Visible on large
</span></li>
<span
class=
"visible-sm"
>
✔
Visible on small
</span>
</li>
<li>
<span
class=
"hidden-md"
>
Medium
</span>
<span
class=
"visible-md"
>
✔
Visible on medium
</span>
</li>
<li>
<span
class=
"hidden-lg"
>
Large
</span>
<span
class=
"visible-lg"
>
✔
Visible on large
</span>
</li>
</ul>
</ul>
<h4>
Hidden on...
</h4>
<h4>
Hidden on...
</h4>
<p>
Here, green checkmarks indicate the element
<strong>
is hidden
</strong>
in your current viewport.
</p>
<p>
Here, green checkmarks indicate the element
<strong>
is hidden
</strong>
in your current viewport.
</p>
<ul
class=
"responsive-utilities-test hidden-on"
>
<ul
class=
"responsive-utilities-test hidden-on"
>
<li>
Small
<span
class=
"hidden-sm"
>
✔
Hidden on small
</span></li>
<li>
<li>
Medium
<span
class=
"hidden-md"
>
✔
Hidden on medium
</span></li>
<span
class=
"visible-sm"
>
Small
</span>
<li>
Large
<span
class=
"hidden-lg"
>
✔
Hidden on desktop
</span></li>
<span
class=
"hidden-sm"
>
✔
Hidden on small
</span>
</li>
<li>
<span
class=
"visible-md"
>
Medium
</span>
<span
class=
"hidden-md"
>
✔
Hidden on medium
</span>
</li>
<li>
<span
class=
"visible-lg"
>
Large
</span>
<span
class=
"hidden-lg"
>
✔
Hidden on desktop
</span>
</li>
</ul>
</ul>
</div>
</div>
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