| 1 |
// prevent footer from being drawn off-screen on short pages, and prevent the "menu sliding out of view" effect on long pages |
| 2 |
.td-sidebar__inner { |
| 3 |
height: auto; |
| 4 |
} |
| 5 |
aside.td-sidebar-toc { |
| 6 |
height: unset; |
| 7 |
position: unset; |
| 8 |
overflow: unset; |
| 9 |
} |
| 10 |
aside.td-sidebar-toc > .td-toc { |
| 11 |
height: auto; |
| 12 |
top: 6rem; |
| 13 |
position: sticky; |
| 14 |
} |
| 15 |
body > div.td-outer > div.td-main > div.row.flex-xl-nowrap { |
| 16 |
height: 100%; |
| 17 |
} |
| 18 |
|
| 19 |
.before-after { |
| 20 |
margin-bottom: 0; |
| 21 |
} |
| 22 |
|
| 23 |
.before-after + .highlight { |
| 24 |
margin-top: 0; |
| 25 |
} |
| 26 |
|
| 27 |
:target { |
| 28 |
background-color: #ffa; |
| 29 |
} |
| 30 |
|
| 31 |
@include media-breakpoint-up(md) { |
| 32 |
html { |
| 33 |
scroll-padding-top: 5rem; |
| 34 |
} |
| 35 |
|
| 36 |
.td-offset-anchor { |
| 37 |
scroll-margin-top: -1rem |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
// Undo Docsy's "Adjust anchors vs the fixed menu." |
| 43 |
@include media-breakpoint-up(md) { |
| 44 |
.td-offset-anchor:target { |
| 45 |
display: unset; |
| 46 |
position: unset; |
| 47 |
top: unset; |
| 48 |
visibility: unset; |
| 49 |
} |
| 50 |
|
| 51 |
h2[id]:before, |
| 52 |
h3[id]:before, |
| 53 |
h4[id]:before, |
| 54 |
h5[id]:before { |
| 55 |
display: unset; |
| 56 |
content: unset; |
| 57 |
margin-top: unset; |
| 58 |
height: unset; |
| 59 |
visibility: unset; |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
// Undo Docsy limiting the width of headers |
| 64 |
.td-content { |
| 65 |
> h1, >h2 { |
| 66 |
@include media-breakpoint-up(lg) { |
| 67 |
max-width: unset; |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
// Always show the navbar, no matter the screen size |
| 73 |
.td-sidebar-nav { |
| 74 |
display: block !important; |
| 75 |
} |
| 76 |
button[data-toggle="collapse"][data-target="#td-section-nav"] { |
| 77 |
display: none; |
| 78 |
} |
| 79 |
|
| 80 |
// Properly indent nested lists even on mobile layouts. Why is Docsy limiting this to the desktop version? |
| 81 |
.td-sidebar-nav__section .ul-1 ul { |
| 82 |
padding-left: 1.5em; |
| 83 |
} |
| 84 |
|
| 85 |
#sponsors-bar { |
| 86 |
color: #fff; |
| 87 |
background-color: #F9F9F9; |
| 88 |
|
| 89 |
div.sponsor { |
| 90 |
margin: 12px; |
| 91 |
|
| 92 |
img { |
| 93 |
width: 160px; |
| 94 |
} |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
.td-sidebar-nav .td-sidebar-link__page { |
| 99 |
// use the same weight and color for sections and pages. this is |
| 100 |
// fine because we never collapse sections. |
| 101 |
color: unset; |
| 102 |
font-weight: $font-weight-medium; |
| 103 |
} |
| 104 |
|
| 105 |
.td-toc #TableOfContents a { |
| 106 |
// The ToC is already feint enough with it's font-weight, let's |
| 107 |
// not make it even harder to read |
| 108 |
color: unset; |
| 109 |
} |
| 110 |
|
| 111 |
@include media-breakpoint-up(md) { |
| 112 |
#getting-started-distribution-packages { |
| 113 |
dl { |
| 114 |
columns: 3; |
| 115 |
} |
| 116 |
|
| 117 |
dd { |
| 118 |
break-before: avoid; |
| 119 |
} |
| 120 |
} |
| 121 |
} |
| 122 |
|
| 123 |
details { |
| 124 |
margin-bottom: 1rem; |
| 125 |
} |