Skip to content

Instantly share code, notes, and snippets.

@mrkdevelopment
Created June 15, 2023 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrkdevelopment/69ab7e2b7b343142eea9f3bf642a330d to your computer and use it in GitHub Desktop.
Save mrkdevelopment/69ab7e2b7b343142eea9f3bf642a330d to your computer and use it in GitHub Desktop.
Yoast table of Contents Styling for Kadence Blocks
.yoast-table-of-contents{
--border: 2px solid var(--global-palette1);
padding: 1rem;
background: var(--global-palette7);
border: var(--border);
box-shadow: var(--box-shadow);
border-radius: 1rem;
}
.yoast-table-of-contents ul{
padding-inline-start: 0.2em;
list-style: none;
}
.yoast-table-of-contents ul ul{
padding-inline-start: 2em;
list-style: disc;
font-size: 0.9em;
}
.yoast-table-of-contents ul ul ul{
font-size: 1em;
}
.yoast-table-of-contents h2{
--fontSize: 18px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment