Skip to content

Commit 5b7d202

Browse files
authored
Small visual improvement to captions in toctree (#665)
* Small visual improvement to captions in toctree * Add new nav-caption internal var * Use colored text and add margin * Nav captions now have independent color Co-Authored-By: Blendify <[email protected]> * De saturate the bright blue captions Co-Authored-By: Blendify <[email protected]>
1 parent 139a56a commit 5b7d202

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sass/_theme_layout.sass

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ html
3131
width: $nav-desktop-width
3232

3333
header, p.caption
34+
color: $nav-caption
3435
height: $base-font-size * 2
3536
display: inline-block
3637
line-height: $base-font-size * 2
3738
padding: 0 $gutter
38-
margin-bottom: 0
39+
margin: $base-line-height / 2 0 0 0
3940
display: block
4041
font-weight: bold
4142
text-transform: uppercase
42-
font-size: 80%
43+
font-size: 85%
4344
white-space: nowrap
4445

4546
ul

sass/_theme_variables.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ $nav-link-color: $blue
5151
$nav-link-color-visited: $purple
5252
$nav-link-color-hover: lighten($nav-link-color, 6%) !default
5353
$nav-link-color-alt: hsl(33, 100%, 51%)
54+
$nav-caption: desaturate($blue, 15%)
5455

5556
// Sidebar colors
5657
$sidebar-background-color: $table-stripe-color

0 commit comments

Comments
 (0)