Skip to content

Instantly share code, notes, and snippets.

@stof
Created November 3, 2020 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stof/c5ba452d2056365634d6b216f3fe7876 to your computer and use it in GitHub Desktop.
Save stof/c5ba452d2056365634d6b216f3fe7876 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$cmln-toc-entry-number-padding-right: 1rem;
$selector: "";
@for $i from 1 through 6 {
$selector: "#{$selector} ul li";
#{$selector} a .tocnumber { min-width: $cmln-toc-entry-number-padding-right + 0.25rem + 0.75rem * $i; }
}
ul li a .tocnumber {
min-width: 2rem;
}
ul li ul li a .tocnumber {
min-width: 2.75rem;
}
ul li ul li ul li a .tocnumber {
min-width: 3.5rem;
}
ul li ul li ul li ul li a .tocnumber {
min-width: 4.25rem;
}
ul li ul li ul li ul li ul li a .tocnumber {
min-width: 5rem;
}
ul li ul li ul li ul li ul li ul li a .tocnumber {
min-width: 5.75rem;
}
{
"sass": {
"compiler": "dart-sass/1.26.11",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment