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
3e40e7df
Commit
3e40e7df
authored
Jan 16, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mo betta sidenav for responsive hotness
parent
beb2c13f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
10 deletions
+32
-10
docs/assets/css/docs.css
docs/assets/css/docs.css
+30
-8
docs/css.html
docs/css.html
+1
-1
docs/templates/pages/css.mustache
docs/templates/pages/css.mustache
+1
-1
No files found.
docs/assets/css/docs.css
View file @
3e40e7df
...
@@ -160,11 +160,20 @@ section > ul li {
...
@@ -160,11 +160,20 @@ section > ul li {
/* Sidenav
/* Sidenav
-------------------------------------------------- */
-------------------------------------------------- */
/* Base styles are not affixable given mobile-first */
.bs-docs-sidenav
{
.bs-docs-sidenav
{
width
:
218px
;
margin
:
20px
0
0
;
margin
:
20px
0
0
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.bs-docs-sidenav.affix
{
position
:
static
;
width
:
auto
;
top
:
0
;
}
}
/* Chevrons */
/* Chevrons within each link */
.bs-docs-sidenav
.glyphicon-chevron-right
{
.bs-docs-sidenav
.glyphicon-chevron-right
{
float
:
right
;
float
:
right
;
margin-top
:
1px
;
margin-top
:
1px
;
...
@@ -180,17 +189,30 @@ section > ul li {
...
@@ -180,17 +189,30 @@ section > ul li {
color
:
#fff
;
color
:
#fff
;
opacity
:
1
;
opacity
:
1
;
}
}
.bs-docs-sidenav.affix
{
top
:
10px
;
/* Affix all the things, and set widths because they're positioned, depending on viewport size */
@media
screen
and
(
min-width
:
768px
)
{
.bs-docs-sidenav.affix
{
position
:
fixed
;
top
:
10px
;
width
:
170px
;
}
.bs-docs-sidenav.affix-bottom
{
position
:
absolute
;
top
:
auto
;
bottom
:
270px
;
}
}
}
.bs-docs-sidenav.affix-bottom
{
position
:
absolute
;
@media
screen
and
(
min-width
:
992px
)
{
top
:
auto
;
.bs-docs-sidenav.affix
{
bottom
:
270px
;
width
:
220px
;
}
}
}
/* Bootstrap code examples
/* Bootstrap code examples
-------------------------------------------------- */
-------------------------------------------------- */
...
...
docs/css.html
View file @
3e40e7df
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<li><a
href=
"#forms"
><i
class=
"glyphicon-chevron-right"
></i>
Forms
</a></li>
<li><a
href=
"#forms"
><i
class=
"glyphicon-chevron-right"
></i>
Forms
</a></li>
<li><a
href=
"#buttons"
><i
class=
"glyphicon-chevron-right"
></i>
Buttons
</a></li>
<li><a
href=
"#buttons"
><i
class=
"glyphicon-chevron-right"
></i>
Buttons
</a></li>
<li><a
href=
"#images"
><i
class=
"glyphicon-chevron-right"
></i>
Images
</a></li>
<li><a
href=
"#images"
><i
class=
"glyphicon-chevron-right"
></i>
Images
</a></li>
<li><a
href=
"#icons"
><i
class=
"glyphicon-chevron-right"
></i>
Icons by
Glyphicons
</a></li>
<li><a
href=
"#icons"
><i
class=
"glyphicon-chevron-right"
></i>
Glyphicons
</a></li>
<li><a
href=
"#responsive"
><i
class=
"glyphicon-chevron-right"
></i>
Responsive design
</a></li>
<li><a
href=
"#responsive"
><i
class=
"glyphicon-chevron-right"
></i>
Responsive design
</a></li>
</ul>
</ul>
</div>
</div>
...
...
docs/templates/pages/css.mustache
View file @
3e40e7df
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<li><a
href=
"#forms"
><i
class=
"glyphicon-chevron-right"
></i>
Forms
</a></li>
<li><a
href=
"#forms"
><i
class=
"glyphicon-chevron-right"
></i>
Forms
</a></li>
<li><a
href=
"#buttons"
><i
class=
"glyphicon-chevron-right"
></i>
Buttons
</a></li>
<li><a
href=
"#buttons"
><i
class=
"glyphicon-chevron-right"
></i>
Buttons
</a></li>
<li><a
href=
"#images"
><i
class=
"glyphicon-chevron-right"
></i>
Images
</a></li>
<li><a
href=
"#images"
><i
class=
"glyphicon-chevron-right"
></i>
Images
</a></li>
<li><a
href=
"#icons"
><i
class=
"glyphicon-chevron-right"
></i>
Icons by
Glyphicons
</a></li>
<li><a
href=
"#icons"
><i
class=
"glyphicon-chevron-right"
></i>
Glyphicons
</a></li>
<li><a
href=
"#responsive"
><i
class=
"glyphicon-chevron-right"
></i>
Responsive design
</a></li>
<li><a
href=
"#responsive"
><i
class=
"glyphicon-chevron-right"
></i>
Responsive design
</a></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