Skip to content

Instantly share code, notes, and snippets.

@gottalovelattes
gottalovelattes / Instagram CSS Gradient BG
Created February 27, 2017 00:19
Instagram CSS gradient background
background: #f09433;
background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}
@ademidun
ademidun / createTableOfContents.js
Last active March 16, 2022 16:37
Dynamically create table of contents using headings on a given page.
/**
*
* @param parentSelector: Where to insert the new table of contents.
* Leave blank if you only wnat to return the table of contents without
* automatically prepending to the parent component.
* @see: https://css-tricks.com/automatic-table-of-contents/
* @see: Used in https://atila.ca/blog/tomiwa/how-to-embed-a-notion-page-in-a-react-website/
*/
export function createTableOfContents(parentSelector="") {