Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
3c838067
Commit
3c838067
authored
7 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
redesign sidebar a bit
parent
5b66579e
7 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!25326
Adjust examples
,
!23995
Add back cursor: pointer for .btn-link
,
!23178
Spinner
,
!22716
Docs redesign
,
!17021
v4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/assets/scss/_sidebar.scss
+25
-47
docs/assets/scss/_sidebar.scss
with
25 additions
and
47 deletions
+25
-47
docs/assets/scss/_sidebar.scss
+
25
-
47
View file @
3c838067
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
//
//
.bd-sidebar
{
.bd-sidebar
{
padding-top
:
1rem
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,.
1
);
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,.
1
);
...
@@ -21,33 +20,12 @@
...
@@ -21,33 +20,12 @@
.bd-links
{
.bd-links
{
margin-right
:
-15px
;
margin-right
:
-15px
;
margin-left
:
-15px
;
margin-left
:
-15px
;
// padding-top: .25rem;
// padding-bottom: .25rem;
// border: 1px solid $gray-lighter;
// border-radius: .25rem;
@include
media-breakpoint-up
(
md
)
{
// margin-right: 1.5rem;
}
}
}
.bd-search
{
.bd-search
{
position
:
relative
;
position
:
relative
;
padding-top
:
1rem
;
.form-control
{
padding-bottom
:
1rem
;
// height: 2.45rem;
// padding-top: .4rem;
// padding-bottom: .4rem;
background-color
:
#fafafa
;
&
:focus
{
background-color
:
#fff
;
}
}
@include
media-breakpoint-up
(
md
)
{
// padding-right: 1rem;
}
}
}
.bd-search-results
{
.bd-search-results
{
...
@@ -84,59 +62,59 @@
...
@@ -84,59 +62,59 @@
.bd-toc-link
{
.bd-toc-link
{
display
:
block
;
display
:
block
;
// padding-top: .25rem;
// padding-bottom: .25rem;
padding
:
.75rem
1
.5rem
;
padding
:
.75rem
1
.5rem
;
font-weight
:
500
;
color
:
$gray
;
color
:
$gray
;
}
}
.bd-toc-link
:hover
,
.bd-toc-link
:
focus
{
.bd-toc-link
:
hover
{
color
:
$brand-primary
;
color
:
$brand-primary
;
text-decoration
:
none
;
text-decoration
:
none
;
}
background-color
:
#fafafa
;
.active
>
.bd-toc-link
{
font-weight
:
500
;
color
:
$gray-dark
;
}
.active
>
.bd-sidenav
{
display
:
block
;
}
}
.bd-toc-item
{
.bd-toc-item
{
&
:first-child
{
border-top
:
1px
solid
$gray-lighter
;
}
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
border-bottom
:
1px
solid
$gray-lighter
;
border-bottom
:
1px
solid
$gray-lighter
;
}
}
&
.active
{
background-color
:
#fafafa
;
>
.bd-toc-link
{
color
:
$gray-dark
;
}
>
.bd-sidenav
{
display
:
block
;
}
}
}
}
.bd-toc-item.active
{
.bd-toc-item.active
{
padding-top
:
.25rem
;
padding-top
:
.25rem
;
padding-bottom
:
1rem
;
padding-bottom
:
1rem
;
}
}
.bd-toc-item
:first-child
{
// margin-top: 0;
}
.bd-toc-item
:last-child
{
// margin-bottom: 2rem;
}
// All levels of nav
// All levels of nav
.bd-sidebar
.nav
>
li
>
a
{
.bd-sidebar
.nav
>
li
>
a
{
display
:
block
;
display
:
block
;
// padding-top: .25rem;
// padding-bottom: .25rem;
padding
:
.25rem
1
.5rem
;
padding
:
.25rem
1
.5rem
;
font-size
:
90%
;
font-size
:
90%
;
color
:
#99979c
;
color
:
#99979c
;
}
}
.bd-sidebar
.nav
>
li
>
a
:hover
,
.bd-sidebar
.nav
>
li
>
a
:
focus
{
.bd-sidebar
.nav
>
li
>
a
:
hover
{
color
:
$brand-primary
;
color
:
$brand-primary
;
text-decoration
:
none
;
text-decoration
:
none
;
background-color
:
transparent
;
background-color
:
transparent
;
}
}
.bd-sidebar
.nav
>
.active
>
a
,
.bd-sidebar
.nav
>
.active
>
a
,
.bd-sidebar
.nav
>
.active
:hover
>
a
,
.bd-sidebar
.nav
>
.active
:hover
>
a
{
.bd-sidebar
.nav
>
.active
:focus
>
a
{
font-weight
:
500
;
font-weight
:
500
;
color
:
$gray-dark
;
color
:
$gray-dark
;
background-color
:
transparent
;
background-color
:
transparent
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets