webapp/src/components/TableOfContents/TableOfContents.module.scss

115 lines
1.8 KiB
SCSS
Raw Normal View History

.TableOfContentsFixedWrapper {
min-height: 100%;
2023-08-23 22:31:39 +00:00
top: 0;
2023-08-24 21:19:26 +00:00
2023-08-24 21:51:32 +00:00
&:not(.TableOfContentsFixedWrapperLefted) {
2023-08-27 16:48:28 +00:00
margin-top: -0.2em;
2023-08-24 21:51:32 +00:00
.TableOfContentsPrimaryButton {
transform: rotate(180deg);
}
2023-08-24 21:19:26 +00:00
}
}
.TableOfContentsFixedWrapperLefted {
2023-08-24 21:51:32 +00:00
margin-top: -2em;
right: auto;
left: 70px;
2023-08-24 21:51:32 +00:00
.TableOfContentsPrimaryButton {
left: auto;
right: 40px;
}
.TableOfContentsPrimaryButtonLefted {
left: 0;
right: auto;
}
}
.TableOfContentsContainer {
position: sticky;
2023-08-23 22:31:39 +00:00
top: 100px;
right: 20px;
display: flex;
width: 100%;
2023-08-24 21:51:32 +00:00
height: calc(100vh - 120px);
2023-08-23 22:31:39 +00:00
overflow: auto;
flex-direction: column;
align-items: flex-start;
background-color: transparent;
2023-08-24 21:51:32 +00:00
.TableOfContentsFixedWrapperLefted & {
height: calc(100vh - 250px);
}
}
.TableOfContentsHeader {
width: 100%;
display: flex;
justify-content: space-between;
}
.TableOfContentsHeading {
margin: 0;
color: #000;
font-size: 22px;
font-style: normal;
font-weight: 700;
line-height: 24px;
}
.TableOfContentsPrimaryButton {
position: absolute;
2023-08-23 22:31:39 +00:00
right: 0;
2023-08-24 21:51:32 +00:00
top: 0;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
cursor: pointer;
2023-08-27 16:48:28 +00:00
&:hover {
filter: invert(1);
}
}
.TableOfContentsHeadingsList {
position: relative;
display: flex;
flex-direction: column;
list-style-type: none;
margin: 0;
padding: 0 38px 0 0;
width: 100%;
}
.TableOfContentsHeadingsItem {
margin-top: 20px;
color: #000;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px;
text-align: left;
letter-spacing: -0.14px;
&:hover {
color: rgb(0 0 0 / 50%);
}
}
.TableOfContentsHeadingsItemH3,
.TableOfContentsHeadingsItemH4 {
margin-top: 8px;
}
.TableOfContentsHeadingsItemH3 {
padding-left: 8px;
}
.TableOfContentsHeadingsItemH4 {
padding-left: 16px;
}