mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 16:38:31 +02:00
Fix/mila/toc from devportal (#361)
* table of contents styles upd * TOC styles * added GH links to the table of content, fixes * removed obsolete code * toc styles fixes
This commit is contained in:
@@ -1,29 +1,46 @@
|
||||
@use "../helpers/functions" as lib;
|
||||
|
||||
.tableOfContent {
|
||||
top: 0;
|
||||
top: 10px;
|
||||
right: 0;
|
||||
font-size: lib.rem(14);
|
||||
|
||||
&__header {
|
||||
margin-bottom: 0.8rem;
|
||||
font-size: 1rem;
|
||||
margin-bottom: lib.rem(13);
|
||||
margin-left: -5px;
|
||||
}
|
||||
|
||||
& ul {
|
||||
margin: 0;
|
||||
& nav {
|
||||
margin-bottom: lib.rem(10);
|
||||
|
||||
& ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
& ul li {
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
line-height: lib.rem(18);
|
||||
margin: 0;
|
||||
&:not(nav > ul > li) {
|
||||
list-style: '· ';
|
||||
margin-left: 0.5rem;
|
||||
|
||||
&:not(nav > ul > li):not(ul.tableOfContent__footer > li) {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
& a {
|
||||
display: inline-block;
|
||||
padding: 6px 0;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
& ul:not(.tableOfContent__footer) a {
|
||||
display: block;
|
||||
line-height: 2.2;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -31,7 +48,13 @@
|
||||
|
||||
&:hover {
|
||||
color: var(--brand-primary);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
&__footer {
|
||||
margin-top: lib.rem(10);
|
||||
li {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -147,6 +147,10 @@ blockquote {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.divider {
|
||||
border-bottom: 1px solid var(--brand-mid-grey);
|
||||
}
|
||||
|
||||
.marquee {
|
||||
@include marquee.base(80px, 200px, 13, 6, 20px, false, 50s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user