| 1 |
// CHECKED: |
| 2 |
|
| 3 |
@import "../common/index"; |
| 4 |
.betterdocs-full-sidebar-right { |
| 5 |
.betterdocs-toc { |
| 6 |
max-height: 95vh; |
| 7 |
overflow-y: auto; |
| 8 |
} |
| 9 |
} |
| 10 |
.betterdocs-toc { |
| 11 |
display: inline-block; |
| 12 |
background-color: #fff; |
| 13 |
padding: 20px 25px; |
| 14 |
border-radius: 5px; |
| 15 |
|
| 16 |
@include responsive('phone') { |
| 17 |
position: relative; |
| 18 |
width: 100%; |
| 19 |
// Include the 25px side padding in that 100%, or the box is 50px |
| 20 |
// wider than its column and the page scrolls sideways on phones. |
| 21 |
box-sizing: border-box; |
| 22 |
|
| 23 |
&.collapsible-sm { |
| 24 |
.angle-icon { |
| 25 |
color: #3f5876; |
| 26 |
display: none; |
| 27 |
width: 18px; |
| 28 |
float: right; |
| 29 |
&.angle-down{ |
| 30 |
display: block; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
.toc-list{ |
| 35 |
display: none; |
| 36 |
} |
| 37 |
|
| 38 |
.toc-title { |
| 39 |
pointer-events: auto; |
| 40 |
} |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
@include for(".betterdocs-single-layout-5") { |
| 45 |
background: transparent !important; |
| 46 |
padding: 0 !important; |
| 47 |
@include responsive-from("tablet") { |
| 48 |
padding-left: 20px !important; |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
@at-root .betterdocs-entry-content #{&} { |
| 53 |
min-width: 250px; |
| 54 |
} |
| 55 |
|
| 56 |
@at-root { |
| 57 |
|
| 58 |
.betterdocs-single-layout4 .betterdocs-entry-content #{&}, |
| 59 |
.betterdocs-single-layout5 .betterdocs-entry-content #{&} { |
| 60 |
display: none; |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
.toc-title { |
| 65 |
pointer-events: none; |
| 66 |
color: #3f5876; |
| 67 |
font-size: 16px; |
| 68 |
font-weight: bold; |
| 69 |
margin: 0; |
| 70 |
display: block; |
| 71 |
|
| 72 |
svg { |
| 73 |
display: none; |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
ul { |
| 78 |
list-style-type: none; |
| 79 |
margin: 0; |
| 80 |
padding: 0 0 0 10px; |
| 81 |
} |
| 82 |
|
| 83 |
.toc-list { |
| 84 |
padding-left: 0; |
| 85 |
list-style: disc; |
| 86 |
|
| 87 |
@include for(".betterdocs-single-layout-4") { |
| 88 |
border-left: 1px solid #d2d2d2; |
| 89 |
padding-left: 16px; |
| 90 |
position: relative; |
| 91 |
margin-top: 15px; |
| 92 |
} |
| 93 |
|
| 94 |
@include for(".betterdocs-single-layout-5") { |
| 95 |
border-left: 1px solid #d2d2d2; |
| 96 |
padding-left: 16px; |
| 97 |
position: relative; |
| 98 |
margin-top: 15px; |
| 99 |
} |
| 100 |
|
| 101 |
@include for(".betterdocs-single-layout-2") { |
| 102 |
position: relative; |
| 103 |
} |
| 104 |
|
| 105 |
li { |
| 106 |
display: table; |
| 107 |
font-size: 14px; |
| 108 |
font-weight: 400; |
| 109 |
margin-left: 0; |
| 110 |
margin-right: 0; |
| 111 |
|
| 112 |
a { |
| 113 |
color: #566e8b; |
| 114 |
font-size: 14px; |
| 115 |
line-height: 1.6; |
| 116 |
font-weight: normal; |
| 117 |
display: inline-block; |
| 118 |
text-decoration: none; |
| 119 |
|
| 120 |
&:hover { |
| 121 |
color: #528fff; |
| 122 |
} |
| 123 |
|
| 124 |
&:focus { |
| 125 |
outline: none; |
| 126 |
} |
| 127 |
|
| 128 |
@include for(".betterdocs-single-layout-4") { |
| 129 |
&:after { |
| 130 |
content: ""; |
| 131 |
position: absolute; |
| 132 |
width: 3px; |
| 133 |
height: 1.6em; |
| 134 |
left: -1px; |
| 135 |
} |
| 136 |
} |
| 137 |
|
| 138 |
@include for(".betterdocs-single-layout-5") { |
| 139 |
&:after { |
| 140 |
content: ""; |
| 141 |
position: absolute; |
| 142 |
width: 2px; |
| 143 |
height: 1.6em; |
| 144 |
left: -1px; |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
&.active { |
| 149 |
color: #528fff; |
| 150 |
|
| 151 |
@include for(".betterdocs-single-layout-4") { |
| 152 |
&:after { |
| 153 |
background: #528fff; |
| 154 |
} |
| 155 |
} |
| 156 |
|
| 157 |
@include for(".betterdocs-single-layout-5") { |
| 158 |
&:after { |
| 159 |
background: #528fff; |
| 160 |
} |
| 161 |
} |
| 162 |
} |
| 163 |
} |
| 164 |
} |
| 165 |
|
| 166 |
&.betterdocs-hierarchial-toc { |
| 167 |
|
| 168 |
&, |
| 169 |
ul { |
| 170 |
counter-reset: item; |
| 171 |
} |
| 172 |
} |
| 173 |
} |
| 174 |
|
| 175 |
&.toc-list-number { |
| 176 |
ul { |
| 177 |
counter-reset: item; |
| 178 |
list-style-type: disc; |
| 179 |
|
| 180 |
li { |
| 181 |
a { |
| 182 |
text-decoration: none; |
| 183 |
|
| 184 |
&:before { |
| 185 |
content: counters(item, ".") ". "; |
| 186 |
counter-increment: item; |
| 187 |
} |
| 188 |
} |
| 189 |
} |
| 190 |
} |
| 191 |
} |
| 192 |
} |
| 193 |
|
| 194 |
.sticky-toc-container { |
| 195 |
display: none; |
| 196 |
position: fixed; |
| 197 |
width: 320px; |
| 198 |
left: auto; |
| 199 |
right: auto; |
| 200 |
top: 10vh; |
| 201 |
z-index: 2; |
| 202 |
|
| 203 |
.betterdocs-toc { |
| 204 |
width: 100%; |
| 205 |
max-height: 85vh; |
| 206 |
overflow-y: auto; |
| 207 |
-ms-overflow-style: none; |
| 208 |
scrollbar-width: none; |
| 209 |
|
| 210 |
&::-webkit-scrollbar { |
| 211 |
display: none; |
| 212 |
} |
| 213 |
} |
| 214 |
|
| 215 |
&.toc-sticky { |
| 216 |
display: block; |
| 217 |
} |
| 218 |
|
| 219 |
.close-toc { |
| 220 |
position: absolute; |
| 221 |
width: 16px; |
| 222 |
display: block; |
| 223 |
top: 8px; |
| 224 |
right: 8px; |
| 225 |
line-height: 1; |
| 226 |
} |
| 227 |
} |
| 228 |
|
| 229 |
.betterdocs-hierarchial-toc { |
| 230 |
@at-root { |
| 231 |
|
| 232 |
.betterdocs-single-layout4 .betterdocs-full-sidebar-right #{&}, |
| 233 |
.betterdocs-single-layout5 .betterdocs-full-sidebar-right #{&} { |
| 234 |
border-left: 1px solid #d2d2d2; |
| 235 |
padding-left: 16px; |
| 236 |
// padding-right: 5px; |
| 237 |
position: relative; |
| 238 |
margin-top: 15px; |
| 239 |
|
| 240 |
a { |
| 241 |
text-decoration: none; |
| 242 |
|
| 243 |
&.active { |
| 244 |
&:before { |
| 245 |
content: counters(item, ".") ". "; |
| 246 |
counter-increment: item; |
| 247 |
} |
| 248 |
|
| 249 |
&:after { |
| 250 |
content: ""; |
| 251 |
position: absolute; |
| 252 |
width: 2px; |
| 253 |
height: 1.6em; |
| 254 |
left: -1px; |
| 255 |
} |
| 256 |
} |
| 257 |
} |
| 258 |
} |
| 259 |
} |
| 260 |
} |
| 261 |
|