generated from muhtadeetaron/nextjs-template
initial commit
This commit is contained in:
155
newspaper/assets/css/table-of-contents.css
Normal file
155
newspaper/assets/css/table-of-contents.css
Normal file
@ -0,0 +1,155 @@
|
||||
.gh-toc-outer {
|
||||
padding: 38px 26px;
|
||||
width: 100%;
|
||||
border: 1px solid var(--text-color);
|
||||
margin-bottom: 38px;
|
||||
}
|
||||
|
||||
.gh-content {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.gh-toc .toc-list {
|
||||
position: relative;
|
||||
padding-left: 0px;
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
.gh-toc .toc-list li {
|
||||
line-height: 140%;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
a.toc-link {
|
||||
font-size: 16px;
|
||||
display: inline-block;
|
||||
color: var(--text-color);
|
||||
position: relative;
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
.toc-list {
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.gh-toc .is-active-link::before {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.gh-toc .is-active-link {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.gh-toc .toc-link::before {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.gh-toc .is-collapsible .toc-link {
|
||||
padding-left: 18px;
|
||||
}
|
||||
|
||||
.gh-toc .is-collapsible .is-collapsible .toc-link {
|
||||
padding-left: 36px;
|
||||
}
|
||||
|
||||
.gh-content h1:focus,
|
||||
.gh-content h2:focus,
|
||||
.gh-content h3:focus,
|
||||
.gh-content h4:focus,
|
||||
.gh-content h5:focus,
|
||||
.gh-content h6:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.toc-heading {
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Styles for large desktop */
|
||||
@media (min-width: 1439px) {
|
||||
.gh-toc-outer {
|
||||
padding: 2.64vw 1.81vw;
|
||||
margin-bottom: 2.64vw;
|
||||
}
|
||||
|
||||
a.toc-link {
|
||||
font-size: calc(1.11vw * var(--scale));
|
||||
padding-top: calc(0.49vw * var(--scale));
|
||||
padding-bottom: calc(0.49vw * var(--scale));
|
||||
}
|
||||
|
||||
.gh-toc .is-collapsible .toc-link {
|
||||
padding-left: calc(1.25vw * var(--scale));
|
||||
}
|
||||
|
||||
.gh-toc .is-collapsible .is-collapsible .toc-link {
|
||||
padding-left: calc(2.5vw * var(--scale));
|
||||
}
|
||||
|
||||
.toc-heading {
|
||||
margin-bottom: calc(0.69vw * var(--scale));
|
||||
}
|
||||
}
|
||||
|
||||
/* Styles for tablet */
|
||||
@media (max-width: 991px) {
|
||||
.gh-toc-outer {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.is-collapsed {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.is-collapsible .toc-link::before {
|
||||
content: '\2022';
|
||||
color: var(--text-color);
|
||||
left: 0;
|
||||
display: inline-block;
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.is-collapsible .is-collapsible .toc-link::before {
|
||||
left: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Styles for mobile */
|
||||
@media (max-width: 479px) {
|
||||
.gh-toc-outer {
|
||||
padding: 28px 20px;
|
||||
}
|
||||
|
||||
.is-collapsed {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.is-collapsible .toc-link::before {
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.is-collapsible .is-collapsible .toc-link::before {
|
||||
left: 14px;
|
||||
}
|
||||
|
||||
a.toc-link {
|
||||
font-size: 14px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.gh-toc .is-collapsible .toc-link {
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.gh-toc .is-collapsible .is-collapsible .toc-link {
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.toc-heading {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user