Fixed table of contents style

This commit is contained in:
kvakazyambra 2023-08-25 00:51:32 +03:00
parent 7a467e313b
commit 8e26824554

View File

@ -2,14 +2,32 @@
min-height: 100%; min-height: 100%;
top: 0; top: 0;
&:not(.TableOfContentsFixedWrapperLefted) .TableOfContentsPrimaryButton { &:not(.TableOfContentsFixedWrapperLefted) {
transform: rotate(180deg); .TableOfContentsPrimaryButton {
margin-top: 5.4rem;
transform: rotate(180deg);
}
.TableOfContentsContainer {
padding-top: 2.7em;
}
} }
} }
.TableOfContentsFixedWrapperLefted { .TableOfContentsFixedWrapperLefted {
margin-top: -2em;
right: auto; right: auto;
left: 70px; left: 70px;
.TableOfContentsPrimaryButton {
left: auto;
right: 40px;
}
.TableOfContentsPrimaryButtonLefted {
left: 0;
right: auto;
}
} }
.TableOfContentsContainer { .TableOfContentsContainer {
@ -18,11 +36,15 @@
right: 20px; right: 20px;
display: flex; display: flex;
width: 100%; width: 100%;
height: calc(100vh - 250px); height: calc(100vh - 120px);
overflow: auto; overflow: auto;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
background-color: transparent; background-color: transparent;
.TableOfContentsFixedWrapperLefted & {
height: calc(100vh - 250px);
}
} }
.TableOfContentsHeader { .TableOfContentsHeader {
@ -43,7 +65,7 @@
.TableOfContentsPrimaryButton { .TableOfContentsPrimaryButton {
position: absolute; position: absolute;
right: 0; right: 0;
top: 10px; top: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -52,11 +74,6 @@
cursor: pointer; cursor: pointer;
} }
.TableOfContentsPrimaryButtonLefted {
right: auto;
left: 0;
}
.TableOfContentsHeadingsList { .TableOfContentsHeadingsList {
position: relative; position: relative;
display: flex; display: flex;