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

93 lines
1.5 KiB
SCSS
Raw Normal View History

.TableOfContentsFixedWrapper {
min-height: 100%;
2023-08-23 22:31:39 +00:00
top: 0;
}
.TableOfContentsFixedWrapperLefted {
right: auto;
left: 70px;
}
.TableOfContentsContainer {
position: sticky;
2023-08-23 22:31:39 +00:00
top: 100px;
right: 20px;
display: flex;
width: 100%;
2023-08-23 22:31:39 +00:00
height: calc(100vh - 250px);
overflow: auto;
flex-direction: column;
align-items: flex-start;
background-color: transparent;
}
.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;
top: 10px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
cursor: pointer;
}
.TableOfContentsPrimaryButtonLefted {
right: auto;
2023-08-23 22:31:39 +00:00
left: 0;
}
.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;
}