diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..4831c6b97 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at cc.glows@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89e30332b..b96a810ba 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -42,3 +42,5 @@ Brief description If no link is provided, it defaults to 99+%. --> * https://caniuse.com/#feat=some-feature + + diff --git a/docs/3df57813b7ec2de885ea6075ff46ed46.css b/docs/3df57813b7ec2de885ea6075ff46ed46.css index 132a1d653..2ca4b4de0 100644 --- a/docs/3df57813b7ec2de885ea6075ff46ed46.css +++ b/docs/3df57813b7ec2de885ea6075ff46ed46.css @@ -1,4 +1,4 @@ -/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}code[class*=language-],pre[class*=language-]{color:#324b64;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:2;font-size:1rem;-webkit-overflow-scrolling:touch;margin:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{overflow:auto;padding:.75rem 1.25rem}pre.is-option{margin:0;padding:0}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f6f9;border-radius:.25rem}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8ca2d3}.token.attr-name,.token.selector{color:#da7800}.token.punctuation{color:#93a0c7}.namespace{opacity:.7}.token.tag{color:#e22f70}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol{color:#0087ca}.language-css .token.string,.token.attr-value,.token.builtin,.token.char,.token.inserted,.token.string,.token.url{color:#008a7e}.style .token.string,.token.entity,.token.operator{color:#f53737}.token.atrule,.token.important,.token.keyword{color:#7552ff}.token.function{color:#396dff}.token.regex,.token.variable{color:#00a8d4}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}html{font-size:.95rem}body{font-family:-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica Neue,Helvetica,Arial,sans-serif;background:#f6f7fd;color:#324b64;line-height:1.5}a{color:#157bda;text-decoration:none;word-wrap:break-word;overflow-wrap:break-word}a:hover{color:#0090ff}hr{border:0;border-top:1px solid rgba(0,32,128,.1)}ol,ul{padding-left:1.25rem}.container{max-width:1000px;padding:0 2%;margin:0 auto}.main>.container{padding:0}@media (min-width:579px){.main>.container{padding:0 2%}}@media (min-width:768px){html{font-size:1rem}}@media (min-width:992px){.content-wrapper{margin-left:200px}} +/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}code[class*=language-],pre[class*=language-]{color:#324b64;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:2;font-size:1rem;-webkit-overflow-scrolling:touch;margin:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{overflow:auto;padding:.75rem 1.25rem}pre.is-option{margin:0;padding:0}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f6f9;border-radius:.25rem}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8ca2d3}.token.attr-name,.token.selector{color:#da7800}.token.punctuation{color:#93a0c7}.namespace{opacity:.7}.token.tag{color:#e22f70}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol{color:#0087ca}.language-css .token.string,.token.attr-value,.token.builtin,.token.char,.token.inserted,.token.string,.token.url{color:#008a7e}.style .token.string,.token.entity,.token.operator{color:#f53737}.token.atrule,.token.important,.token.keyword{color:#7552ff}.token.function{color:#396dff}.token.regex,.token.variable{color:#00a8d4}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}html{font-size:.95rem;box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{font-family:-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica Neue,Helvetica,Arial,sans-serif;background:#f6f7fd;color:#324b64;line-height:1.5}a{color:#157bda;text-decoration:none;word-wrap:break-word;overflow-wrap:break-word}a:hover{color:#0090ff}hr{border:0;border-top:1px solid rgba(0,32,128,.1)}ol,ul{padding-left:1.25rem}.container{max-width:64rem;padding:0 2%;margin:0 auto}.main>.container{padding:0}@media (min-width:579px){.main>.container{padding:0 2%}}@media (min-width:768px){html{font-size:1rem}}@media (min-width:992px){.content-wrapper{margin-left:200px}} /*! * Hamburgers @@ -6,4 +6,4 @@ * @author Jonathan Suh @jonsuh * @site https://jonsuh.com/hamburgers * @link https://github.com/jonsuh/hamburgers - */.hamburger{padding:1rem;display:inline-block;cursor:pointer;transition-property:opacity,filter;transition-duration:.15s;transition-timing-function:linear;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible;outline:0}.hamburger:hover{opacity:.7}.hamburger-box{width:40px;height:20px;display:inline-block;position:relative}.hamburger-inner{display:block;top:50%}.hamburger-inner,.hamburger-inner:after,.hamburger-inner:before{width:36px;height:2px;background-color:#e3f5ff;border-radius:4px;position:absolute;transition-property:transform;transition-duration:.15s;transition-timing-function:ease}.hamburger-inner:after,.hamburger-inner:before{content:"";display:block}.hamburger-inner:before{top:-10px}.hamburger-inner:after{bottom:-10px}.hamburger--3dx .hamburger-box{perspective:80px}.hamburger--3dx .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx .hamburger-inner:after,.hamburger--3dx .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx.is-active .hamburger-inner{background-color:transparent;transform:rotateY(180deg)}.hamburger--3dx.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dx.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dx-r .hamburger-box{perspective:80px}.hamburger--3dx-r .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx-r .hamburger-inner:after,.hamburger--3dx-r .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx-r.is-active .hamburger-inner{background-color:transparent;transform:rotateY(-180deg)}.hamburger--3dx-r.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dx-r.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dy .hamburger-box{perspective:80px}.hamburger--3dy .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy .hamburger-inner:after,.hamburger--3dy .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy.is-active .hamburger-inner{background-color:transparent;transform:rotateX(-180deg)}.hamburger--3dy.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dy.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dy-r .hamburger-box{perspective:80px}.hamburger--3dy-r .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy-r .hamburger-inner:after,.hamburger--3dy-r .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy-r.is-active .hamburger-inner{background-color:transparent;transform:rotateX(180deg)}.hamburger--3dy-r.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dy-r.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dxy .hamburger-box{perspective:80px}.hamburger--3dxy .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy .hamburger-inner:after,.hamburger--3dxy .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy.is-active .hamburger-inner{background-color:transparent;transform:rotateX(180deg) rotateY(180deg)}.hamburger--3dxy.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dxy.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dxy-r .hamburger-box{perspective:80px}.hamburger--3dxy-r .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy-r .hamburger-inner:after,.hamburger--3dxy-r .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy-r.is-active .hamburger-inner{background-color:transparent;transform:rotateX(180deg) rotateY(180deg) rotate(-180deg)}.hamburger--3dxy-r.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dxy-r.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--arrow.is-active .hamburger-inner:before{transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrow.is-active .hamburger-inner:after{transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--arrow-r.is-active .hamburger-inner:before{transform:translate3d(8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--arrow-r.is-active .hamburger-inner:after{transform:translate3d(8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrowalt .hamburger-inner:before{transition:top .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt .hamburger-inner:after{transition:bottom .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt.is-active .hamburger-inner:before{top:0;transform:translate3d(-8px,-10px,0) rotate(-45deg) scaleX(.7);transition:top .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowalt.is-active .hamburger-inner:after{bottom:0;transform:translate3d(-8px,10px,0) rotate(45deg) scaleX(.7);transition:bottom .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowalt-r .hamburger-inner:before{transition:top .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt-r .hamburger-inner:after{transition:bottom .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt-r.is-active .hamburger-inner:before{top:0;transform:translate3d(8px,-10px,0) rotate(45deg) scaleX(.7);transition:top .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowalt-r.is-active .hamburger-inner:after{bottom:0;transform:translate3d(8px,10px,0) rotate(-45deg) scaleX(.7);transition:bottom .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowturn.is-active .hamburger-inner{transform:rotate(-180deg)}.hamburger--arrowturn.is-active .hamburger-inner:before{transform:translate3d(8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--arrowturn.is-active .hamburger-inner:after{transform:translate3d(8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrowturn-r.is-active .hamburger-inner{transform:rotate(-180deg)}.hamburger--arrowturn-r.is-active .hamburger-inner:before{transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrowturn-r.is-active .hamburger-inner:after{transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--boring .hamburger-inner,.hamburger--boring .hamburger-inner:after,.hamburger--boring .hamburger-inner:before{transition-property:none}.hamburger--boring.is-active .hamburger-inner{transform:rotate(45deg)}.hamburger--boring.is-active .hamburger-inner:before{top:0;opacity:0}.hamburger--boring.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg)}.hamburger--collapse .hamburger-inner{top:auto;bottom:0;transition-duration:.13s;transition-delay:.13s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse .hamburger-inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity .1s linear}.hamburger--collapse .hamburger-inner:before{transition:top .12s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse.is-active .hamburger-inner{transform:translate3d(0,-10px,0) rotate(-45deg);transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--collapse.is-active .hamburger-inner:after{top:0;opacity:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity .1s linear .22s}.hamburger--collapse.is-active .hamburger-inner:before{top:0;transform:rotate(-90deg);transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .16s,transform .13s cubic-bezier(.215,.61,.355,1) .25s}.hamburger--collapse-r .hamburger-inner{top:auto;bottom:0;transition-duration:.13s;transition-delay:.13s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse-r .hamburger-inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity .1s linear}.hamburger--collapse-r .hamburger-inner:before{transition:top .12s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse-r.is-active .hamburger-inner{transform:translate3d(0,-10px,0) rotate(45deg);transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--collapse-r.is-active .hamburger-inner:after{top:0;opacity:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity .1s linear .22s}.hamburger--collapse-r.is-active .hamburger-inner:before{top:0;transform:rotate(90deg);transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .16s,transform .13s cubic-bezier(.215,.61,.355,1) .25s}.hamburger--elastic .hamburger-inner{top:2px;transition-duration:.275s;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic .hamburger-inner:before{top:10px;transition:opacity .125s ease .275s}.hamburger--elastic .hamburger-inner:after{top:20px;transition:transform .275s cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(135deg);transition-delay:75ms}.hamburger--elastic.is-active .hamburger-inner:before{transition-delay:0s;opacity:0}.hamburger--elastic.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(-270deg);transition-delay:75ms}.hamburger--elastic-r .hamburger-inner{top:2px;transition-duration:.275s;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic-r .hamburger-inner:before{top:10px;transition:opacity .125s ease .275s}.hamburger--elastic-r .hamburger-inner:after{top:20px;transition:transform .275s cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic-r.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(-135deg);transition-delay:75ms}.hamburger--elastic-r.is-active .hamburger-inner:before{transition-delay:0s;opacity:0}.hamburger--elastic-r.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(270deg);transition-delay:75ms}.hamburger--emphatic{overflow:hidden}.hamburger--emphatic .hamburger-inner{transition:background-color .125s ease-in .175s}.hamburger--emphatic .hamburger-inner:before{left:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,left .125s ease-in .175s}.hamburger--emphatic .hamburger-inner:after{top:10px;right:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,right .125s ease-in .175s}.hamburger--emphatic.is-active .hamburger-inner{transition-delay:0s;transition-timing-function:ease-out;background-color:transparent}.hamburger--emphatic.is-active .hamburger-inner:before{left:-80px;top:-80px;transform:translate3d(80px,80px,0) rotate(45deg);transition:left .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--emphatic.is-active .hamburger-inner:after{right:-80px;top:-80px;transform:translate3d(-80px,80px,0) rotate(-45deg);transition:right .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--emphatic-r{overflow:hidden}.hamburger--emphatic-r .hamburger-inner{transition:background-color .125s ease-in .175s}.hamburger--emphatic-r .hamburger-inner:before{left:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,left .125s ease-in .175s}.hamburger--emphatic-r .hamburger-inner:after{top:10px;right:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,right .125s ease-in .175s}.hamburger--emphatic-r.is-active .hamburger-inner{transition-delay:0s;transition-timing-function:ease-out;background-color:transparent}.hamburger--emphatic-r.is-active .hamburger-inner:before{left:-80px;top:80px;transform:translate3d(80px,-80px,0) rotate(-45deg);transition:left .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--emphatic-r.is-active .hamburger-inner:after{right:-80px;top:80px;transform:translate3d(-80px,-80px,0) rotate(45deg);transition:right .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--minus .hamburger-inner:after,.hamburger--minus .hamburger-inner:before{transition:bottom .08s ease-out 0s,top .08s ease-out 0s,opacity 0s linear}.hamburger--minus.is-active .hamburger-inner:after,.hamburger--minus.is-active .hamburger-inner:before{opacity:0;transition:bottom .08s ease-out,top .08s ease-out,opacity 0s linear .08s}.hamburger--minus.is-active .hamburger-inner:before{top:0}.hamburger--minus.is-active .hamburger-inner:after{bottom:0}.hamburger--slider .hamburger-inner{top:2px}.hamburger--slider .hamburger-inner:before{top:10px;transition-property:transform,opacity;transition-timing-function:ease;transition-duration:.15s}.hamburger--slider .hamburger-inner:after{top:20px}.hamburger--slider.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--slider.is-active .hamburger-inner:before{transform:rotate(-45deg) translate3d(-5.71429px,-6px,0);opacity:0}.hamburger--slider.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(-90deg)}.hamburger--slider-r .hamburger-inner{top:2px}.hamburger--slider-r .hamburger-inner:before{top:10px;transition-property:transform,opacity;transition-timing-function:ease;transition-duration:.15s}.hamburger--slider-r .hamburger-inner:after{top:20px}.hamburger--slider-r.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(-45deg)}.hamburger--slider-r.is-active .hamburger-inner:before{transform:rotate(45deg) translate3d(5.71429px,-6px,0);opacity:0}.hamburger--slider-r.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(90deg)}.hamburger--spin .hamburger-inner{transition-duration:.22s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spin .hamburger-inner:before{transition:top .1s ease-in .25s,opacity .1s ease-in}.hamburger--spin .hamburger-inner:after{transition:bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19)}.hamburger--spin.is-active .hamburger-inner{transform:rotate(225deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spin.is-active .hamburger-inner:before{top:0;opacity:0;transition:top .1s ease-out,opacity .1s ease-out .12s}.hamburger--spin.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg);transition:bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s}.hamburger--spin-r .hamburger-inner{transition-duration:.22s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spin-r .hamburger-inner:before{transition:top .1s ease-in .25s,opacity .1s ease-in}.hamburger--spin-r .hamburger-inner:after{transition:bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19)}.hamburger--spin-r.is-active .hamburger-inner{transform:rotate(-225deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spin-r.is-active .hamburger-inner:before{top:0;opacity:0;transition:top .1s ease-out,opacity .1s ease-out .12s}.hamburger--spin-r.is-active .hamburger-inner:after{bottom:0;transform:rotate(90deg);transition:bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s}.hamburger--spring .hamburger-inner{top:2px;transition:background-color 0s linear .13s}.hamburger--spring .hamburger-inner:before{top:10px;transition:top .1s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring .hamburger-inner:after{top:20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring.is-active .hamburger-inner{transition-delay:.22s;background-color:transparent}.hamburger--spring.is-active .hamburger-inner:before{top:0;transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .15s,transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--spring.is-active .hamburger-inner:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:translate3d(0,10px,0) rotate(-45deg)}.hamburger--spring-r .hamburger-inner{top:auto;bottom:0;transition-duration:.13s;transition-delay:0s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spring-r .hamburger-inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity 0s linear}.hamburger--spring-r .hamburger-inner:before{transition:top .1s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring-r.is-active .hamburger-inner{transform:translate3d(0,-10px,0) rotate(-45deg);transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spring-r.is-active .hamburger-inner:after{top:0;opacity:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity 0s linear .22s}.hamburger--spring-r.is-active .hamburger-inner:before{top:0;transform:rotate(90deg);transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .15s,transform .13s cubic-bezier(.215,.61,.355,1) .22s}.hamburger--stand .hamburger-inner{transition:transform 75ms cubic-bezier(.55,.055,.675,.19) .15s,background-color 0s linear 75ms}.hamburger--stand .hamburger-inner:before{transition:top 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand .hamburger-inner:after{transition:bottom 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand.is-active .hamburger-inner{transform:rotate(90deg);background-color:transparent;transition:transform 75ms cubic-bezier(.215,.61,.355,1) 0s,background-color 0s linear .15s}.hamburger--stand.is-active .hamburger-inner:before{top:0;transform:rotate(-45deg);transition:top 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--stand.is-active .hamburger-inner:after{bottom:0;transform:rotate(45deg);transition:bottom 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--stand-r .hamburger-inner{transition:transform 75ms cubic-bezier(.55,.055,.675,.19) .15s,background-color 0s linear 75ms}.hamburger--stand-r .hamburger-inner:before{transition:top 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand-r .hamburger-inner:after{transition:bottom 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand-r.is-active .hamburger-inner{transform:rotate(-90deg);background-color:transparent;transition:transform 75ms cubic-bezier(.215,.61,.355,1) 0s,background-color 0s linear .15s}.hamburger--stand-r.is-active .hamburger-inner:before{top:0;transform:rotate(-45deg);transition:top 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--stand-r.is-active .hamburger-inner:after{bottom:0;transform:rotate(45deg);transition:bottom 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--squeeze .hamburger-inner{transition-duration:75ms;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--squeeze .hamburger-inner:before{transition:top 75ms ease .12s,opacity 75ms ease}.hamburger--squeeze .hamburger-inner:after{transition:bottom 75ms ease .12s,transform 75ms cubic-bezier(.55,.055,.675,.19)}.hamburger--squeeze.is-active .hamburger-inner{transform:rotate(45deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--squeeze.is-active .hamburger-inner:before{top:0;opacity:0;transition:top 75ms ease,opacity 75ms ease .12s}.hamburger--squeeze.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg);transition:bottom 75ms ease,transform 75ms cubic-bezier(.215,.61,.355,1) .12s}.hamburger--vortex .hamburger-inner{transition-duration:.2s;transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex .hamburger-inner:after,.hamburger--vortex .hamburger-inner:before{transition-duration:0s;transition-delay:.1s;transition-timing-function:linear}.hamburger--vortex .hamburger-inner:before{transition-property:top,opacity}.hamburger--vortex .hamburger-inner:after{transition-property:bottom,transform}.hamburger--vortex.is-active .hamburger-inner{transform:rotate(765deg);transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex.is-active .hamburger-inner:after,.hamburger--vortex.is-active .hamburger-inner:before{transition-delay:0s}.hamburger--vortex.is-active .hamburger-inner:before{top:0;opacity:0}.hamburger--vortex.is-active .hamburger-inner:after{bottom:0;transform:rotate(90deg)}.hamburger--vortex-r .hamburger-inner{transition-duration:.2s;transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex-r .hamburger-inner:after,.hamburger--vortex-r .hamburger-inner:before{transition-duration:0s;transition-delay:.1s;transition-timing-function:linear}.hamburger--vortex-r .hamburger-inner:before{transition-property:top,opacity}.hamburger--vortex-r .hamburger-inner:after{transition-property:bottom,transform}.hamburger--vortex-r.is-active .hamburger-inner{transform:rotate(-765deg);transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex-r.is-active .hamburger-inner:after,.hamburger--vortex-r.is-active .hamburger-inner:before{transition-delay:0s}.hamburger--vortex-r.is-active .hamburger-inner:before{top:0;opacity:0}.hamburger--vortex-r.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg)}.sidebar{background:#202e4e;position:fixed;z-index:2;width:100%;height:44px;box-shadow:0 .25rem .5rem -.1rem rgba(0,32,128,.2)}.sidebar__menu{position:absolute;font-weight:700;border:none;text-align:left;text-transform:uppercase;left:0;top:0;padding:.75rem 1rem;outline:0}.sidebar__menu-icon{height:24px}.sidebar__links{background:#202e4e;transition:transform .6s cubic-bezier(.165,.84,.44,1);transform-origin:0 0;transform:rotateX(-90deg);visibility:hidden;opacity:0;overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:378px;margin-top:44px;box-shadow:0 .25rem .5rem -.1rem rgba(0,32,128,.2)}.sidebar__links.is-active{transform:rotateX(0);visibility:visible;opacity:1}.sidebar__link{display:block;color:#e3f5ff;padding:.5rem .75rem;transition:all .1s ease-out;border-left:2px solid #576a85;margin:.5rem;font-weight:500;font-size:.95rem}.sidebar__link:hover{color:#88f4ff;background:hsla(0,0%,100%,.1);border-color:pink}@media (min-width:992px){.sidebar{left:0;top:0;bottom:0;width:15%;max-width:250px;min-width:200px;height:100%;background:linear-gradient(-30deg,#2a3d67,#14264e);box-shadow:.4rem .4rem .8rem rgba(0,32,64,.1);overflow-y:auto;color:#fff}.sidebar::-webkit-scrollbar-track{background-color:rgba(0,0,0,.6)}.sidebar::-webkit-scrollbar{width:10px;background-color:#4b6191}.sidebar::-webkit-scrollbar-thumb{background-color:#4b6191}.sidebar__links{background:none;box-shadow:none;visibility:visible;opacity:1;transform:rotateX(0);margin-top:0;max-height:none}.sidebar__menu{display:none}}.header{position:relative;padding:5rem 1rem 4rem;background:linear-gradient(#5cd2ff,#5b67ff,#681ae4);color:#fff;margin-bottom:2rem;text-align:center;overflow:hidden;z-index:1}.header:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTkyMCAxMDgwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxOTIwIDEwODA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj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SJvdmVyZmxvdzp2aXNpYmxlOyIvPjwvY2xpcFBhdGg+PHBhdGggY2xhc3M9InN0MTAiIGQ9Ik03MTQuNyw5NjljMTYwLjUtNjIuOCwyODguNSwyOC43LDQxNy4xLDExOS45Ii8+PHBhdGggY2xhc3M9InN0MTEiIGQ9Ik0xNjA3LjEsNjU4LjIiLz48cGF0aCBjbGFzcz0ic3QxMCIgZD0iTTMxMy41LDE1Mi41Yy02NS40LDY1LjYtMTMxLDEzMS42LTIzNi40LDExMy43Ii8+PHBhdGggY2xhc3M9InN0MTAiIGQ9Ik04MzguNSwzODQuMWMtODAuNiw0NC4zLTE2MS42LDg4LjMtMjU3LjEsNDAuNSIvPjxwYXRoIGNsYXNzPSJzdDEwIiBkPSJNMTYwNy4zLDY2NS45Yy04LjYtOTUuMy0yMS4xLTE4Ni45LDY0LjEtMjU5LjkiLz48L2c+PHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MTguMiwzOTUuNCIvPjwvc3ZnPg==);width:150%;height:150%;top:0;opacity:.1;z-index:-1}.header:after,.header:before{content:"";position:absolute;left:0}.header:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxLjQxNCI+PHBhdGggZD0iTTEyIDEybDEyIDEySDBsMTItMTJ6IiBmaWxsPSIjZjZmN2ZkIi8+PC9zdmc+);background-size:24px 24px;width:100%;height:24px;bottom:-1px}.header__logo{height:146px;user-select:none}.header__heading{font-weight:200;font-size:3rem;margin:1rem 0;line-height:1.2}.header__description{font-size:1.5rem;max-width:600px;margin:0 auto 1rem;font-weight:300;letter-spacing:.4px}.header__css{background:-webkit-linear-gradient(-45deg,#f8ffc0,#88f4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:4rem}.header__github-button{color:#fff}@media (min-width:579px){.header{padding:6rem 0 5rem}.header__heading{font-size:3.75rem}}@media (min-width:992px){.header{padding:2.5rem 0 5rem}}.snippet{position:relative;background:#fff;padding:2rem 5%;box-shadow:0 .4rem .8rem -.1rem rgba(0,32,128,.1),0 0 0 1px #f0f2f7;border-radius:.25rem;font-size:1.1rem;margin-bottom:1.5rem}.snippet h3{font-size:2rem;padding:.5rem 0;border-bottom:1px solid rgba(0,32,128,.1);margin-bottom:1.25rem;margin-top:0;line-height:1.3}.snippet code:not([class*=lang]){background:#fcfaff;border:1px solid #e2ddff;color:#4b00da;border-radius:.15rem;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.9rem;padding:.2rem .4rem;margin:0 .1rem}.snippet ol{margin-top:.5rem}.snippet ol>li{margin-bottom:.5rem}.snippet>p{margin-top:.5rem}.snippet h4{display:inline-block;margin:1rem 0 .5rem;line-height:2;padding:0 .5rem;border-radius:3px;font-size:.9rem;text-transform:uppercase;background:#333;border:1px solid #c6d6ea;border-bottom-color:#b3c9e3;background:#fff;box-shadow:0 .25rem .5rem -.1rem rgba(0,32,64,.15)}.snippet h4[data-type=HTML]{color:#fff;border:none;background:linear-gradient(135deg,#ff4c9f,#ff7b74)}.snippet h4[data-type=CSS]{color:#fff;border:none;background:linear-gradient(135deg,#7983ff,#5f9de9)}.snippet h4[data-type=JavaScript]{color:#fff;border:none;background:linear-gradient(135deg,#ffb000,#f58818)}.snippet__browser-support{display:inline-block;font-size:2rem;font-weight:200;line-height:1;margin:.5rem 0}.snippet__subheading.is-html{color:#e22f70}.snippet__subheading.is-css{color:#0a91d4}.snippet__subheading.is-explanation{color:#4b00da}.snippet__support-note{color:#9fa5b5;font-weight:700}.snippet__requires-javascript{position:absolute;background:red;background:linear-gradient(145deg,#ff003b,#ff4b39);color:#fff;padding:.25rem .5rem;font-size:.9rem;transform:rotate(20deg);font-weight:700;top:1rem;right:0}.snippet-demo{background:#f5f6f9;border-radius:.25rem;padding:.75rem 1.25rem}.snippet-demo.is-distinct{background:linear-gradient(135deg,#ff4c9f,#ff7b74)}@media (min-width:768px){.snippet__requires-javascript{right:-.5rem}}.back-to-top-button{display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:2rem;font-weight:700;background:#fff;width:4rem;height:4rem;position:fixed;right:2rem;bottom:2rem;border-radius:50%;user-select:none;box-shadow:0 .4rem .8rem -.1rem rgba(0,32,128,.15);transition:all .2s ease-out;visibility:hidden;opacity:0;z-index:1;border:1px solid rgba(0,32,128,.1);outline:0}.back-to-top-button:focus,.back-to-top-button:hover{transform:scale(1.1);box-shadow:0 .8rem 1.6rem -.2rem rgba(0,32,128,.15);color:#35a8ff}.back-to-top-button:focus{box-shadow:0 .8rem 1.6rem -.2rem rgba(0,32,128,.15),0 0 2px 2px #35a8ff;outline-style:none}.back-to-top-button.is-visible{visibility:visible;opacity:1} \ No newline at end of file + */.hamburger{padding:1rem;display:inline-block;cursor:pointer;transition-property:opacity,filter;transition-duration:.15s;transition-timing-function:linear;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible;outline:0}.hamburger:hover{opacity:.7}.hamburger-box{width:40px;height:20px;display:inline-block;position:relative}.hamburger-inner{display:block;top:50%}.hamburger-inner,.hamburger-inner:after,.hamburger-inner:before{width:36px;height:2px;background-color:#e3f5ff;border-radius:4px;position:absolute;transition-property:transform;transition-duration:.15s;transition-timing-function:ease}.hamburger-inner:after,.hamburger-inner:before{content:"";display:block}.hamburger-inner:before{top:-10px}.hamburger-inner:after{bottom:-10px}.hamburger--3dx .hamburger-box{perspective:80px}.hamburger--3dx .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx .hamburger-inner:after,.hamburger--3dx .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx.is-active .hamburger-inner{background-color:transparent;transform:rotateY(180deg)}.hamburger--3dx.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dx.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dx-r .hamburger-box{perspective:80px}.hamburger--3dx-r .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx-r .hamburger-inner:after,.hamburger--3dx-r .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dx-r.is-active .hamburger-inner{background-color:transparent;transform:rotateY(-180deg)}.hamburger--3dx-r.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dx-r.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dy .hamburger-box{perspective:80px}.hamburger--3dy .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy .hamburger-inner:after,.hamburger--3dy .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy.is-active .hamburger-inner{background-color:transparent;transform:rotateX(-180deg)}.hamburger--3dy.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dy.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dy-r .hamburger-box{perspective:80px}.hamburger--3dy-r .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy-r .hamburger-inner:after,.hamburger--3dy-r .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dy-r.is-active .hamburger-inner{background-color:transparent;transform:rotateX(180deg)}.hamburger--3dy-r.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dy-r.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dxy .hamburger-box{perspective:80px}.hamburger--3dxy .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy .hamburger-inner:after,.hamburger--3dxy .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy.is-active .hamburger-inner{background-color:transparent;transform:rotateX(180deg) rotateY(180deg)}.hamburger--3dxy.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dxy.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--3dxy-r .hamburger-box{perspective:80px}.hamburger--3dxy-r .hamburger-inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy-r .hamburger-inner:after,.hamburger--3dxy-r .hamburger-inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s}.hamburger--3dxy-r.is-active .hamburger-inner{background-color:transparent;transform:rotateX(180deg) rotateY(180deg) rotate(-180deg)}.hamburger--3dxy-r.is-active .hamburger-inner:before{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--3dxy-r.is-active .hamburger-inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)}.hamburger--arrow.is-active .hamburger-inner:before{transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrow.is-active .hamburger-inner:after{transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--arrow-r.is-active .hamburger-inner:before{transform:translate3d(8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--arrow-r.is-active .hamburger-inner:after{transform:translate3d(8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrowalt .hamburger-inner:before{transition:top .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt .hamburger-inner:after{transition:bottom .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt.is-active .hamburger-inner:before{top:0;transform:translate3d(-8px,-10px,0) rotate(-45deg) scaleX(.7);transition:top .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowalt.is-active .hamburger-inner:after{bottom:0;transform:translate3d(-8px,10px,0) rotate(45deg) scaleX(.7);transition:bottom .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowalt-r .hamburger-inner:before{transition:top .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt-r .hamburger-inner:after{transition:bottom .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)}.hamburger--arrowalt-r.is-active .hamburger-inner:before{top:0;transform:translate3d(8px,-10px,0) rotate(45deg) scaleX(.7);transition:top .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowalt-r.is-active .hamburger-inner:after{bottom:0;transform:translate3d(8px,10px,0) rotate(-45deg) scaleX(.7);transition:bottom .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s}.hamburger--arrowturn.is-active .hamburger-inner{transform:rotate(-180deg)}.hamburger--arrowturn.is-active .hamburger-inner:before{transform:translate3d(8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--arrowturn.is-active .hamburger-inner:after{transform:translate3d(8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrowturn-r.is-active .hamburger-inner{transform:rotate(-180deg)}.hamburger--arrowturn-r.is-active .hamburger-inner:before{transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)}.hamburger--arrowturn-r.is-active .hamburger-inner:after{transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)}.hamburger--boring .hamburger-inner,.hamburger--boring .hamburger-inner:after,.hamburger--boring .hamburger-inner:before{transition-property:none}.hamburger--boring.is-active .hamburger-inner{transform:rotate(45deg)}.hamburger--boring.is-active .hamburger-inner:before{top:0;opacity:0}.hamburger--boring.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg)}.hamburger--collapse .hamburger-inner{top:auto;bottom:0;transition-duration:.13s;transition-delay:.13s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse .hamburger-inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity .1s linear}.hamburger--collapse .hamburger-inner:before{transition:top .12s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse.is-active .hamburger-inner{transform:translate3d(0,-10px,0) rotate(-45deg);transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--collapse.is-active .hamburger-inner:after{top:0;opacity:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity .1s linear .22s}.hamburger--collapse.is-active .hamburger-inner:before{top:0;transform:rotate(-90deg);transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .16s,transform .13s cubic-bezier(.215,.61,.355,1) .25s}.hamburger--collapse-r .hamburger-inner{top:auto;bottom:0;transition-duration:.13s;transition-delay:.13s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse-r .hamburger-inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity .1s linear}.hamburger--collapse-r .hamburger-inner:before{transition:top .12s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--collapse-r.is-active .hamburger-inner{transform:translate3d(0,-10px,0) rotate(45deg);transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--collapse-r.is-active .hamburger-inner:after{top:0;opacity:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity .1s linear .22s}.hamburger--collapse-r.is-active .hamburger-inner:before{top:0;transform:rotate(90deg);transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .16s,transform .13s cubic-bezier(.215,.61,.355,1) .25s}.hamburger--elastic .hamburger-inner{top:2px;transition-duration:.275s;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic .hamburger-inner:before{top:10px;transition:opacity .125s ease .275s}.hamburger--elastic .hamburger-inner:after{top:20px;transition:transform .275s cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(135deg);transition-delay:75ms}.hamburger--elastic.is-active .hamburger-inner:before{transition-delay:0s;opacity:0}.hamburger--elastic.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(-270deg);transition-delay:75ms}.hamburger--elastic-r .hamburger-inner{top:2px;transition-duration:.275s;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic-r .hamburger-inner:before{top:10px;transition:opacity .125s ease .275s}.hamburger--elastic-r .hamburger-inner:after{top:20px;transition:transform .275s cubic-bezier(.68,-.55,.265,1.55)}.hamburger--elastic-r.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(-135deg);transition-delay:75ms}.hamburger--elastic-r.is-active .hamburger-inner:before{transition-delay:0s;opacity:0}.hamburger--elastic-r.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(270deg);transition-delay:75ms}.hamburger--emphatic{overflow:hidden}.hamburger--emphatic .hamburger-inner{transition:background-color .125s ease-in .175s}.hamburger--emphatic .hamburger-inner:before{left:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,left .125s ease-in .175s}.hamburger--emphatic .hamburger-inner:after{top:10px;right:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,right .125s ease-in .175s}.hamburger--emphatic.is-active .hamburger-inner{transition-delay:0s;transition-timing-function:ease-out;background-color:transparent}.hamburger--emphatic.is-active .hamburger-inner:before{left:-80px;top:-80px;transform:translate3d(80px,80px,0) rotate(45deg);transition:left .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--emphatic.is-active .hamburger-inner:after{right:-80px;top:-80px;transform:translate3d(-80px,80px,0) rotate(-45deg);transition:right .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--emphatic-r{overflow:hidden}.hamburger--emphatic-r .hamburger-inner{transition:background-color .125s ease-in .175s}.hamburger--emphatic-r .hamburger-inner:before{left:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,left .125s ease-in .175s}.hamburger--emphatic-r .hamburger-inner:after{top:10px;right:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,right .125s ease-in .175s}.hamburger--emphatic-r.is-active .hamburger-inner{transition-delay:0s;transition-timing-function:ease-out;background-color:transparent}.hamburger--emphatic-r.is-active .hamburger-inner:before{left:-80px;top:80px;transform:translate3d(80px,-80px,0) rotate(-45deg);transition:left .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--emphatic-r.is-active .hamburger-inner:after{right:-80px;top:80px;transform:translate3d(-80px,-80px,0) rotate(45deg);transition:right .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s}.hamburger--minus .hamburger-inner:after,.hamburger--minus .hamburger-inner:before{transition:bottom .08s ease-out 0s,top .08s ease-out 0s,opacity 0s linear}.hamburger--minus.is-active .hamburger-inner:after,.hamburger--minus.is-active .hamburger-inner:before{opacity:0;transition:bottom .08s ease-out,top .08s ease-out,opacity 0s linear .08s}.hamburger--minus.is-active .hamburger-inner:before{top:0}.hamburger--minus.is-active .hamburger-inner:after{bottom:0}.hamburger--slider .hamburger-inner{top:2px}.hamburger--slider .hamburger-inner:before{top:10px;transition-property:transform,opacity;transition-timing-function:ease;transition-duration:.15s}.hamburger--slider .hamburger-inner:after{top:20px}.hamburger--slider.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--slider.is-active .hamburger-inner:before{transform:rotate(-45deg) translate3d(-5.71429px,-6px,0);opacity:0}.hamburger--slider.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(-90deg)}.hamburger--slider-r .hamburger-inner{top:2px}.hamburger--slider-r .hamburger-inner:before{top:10px;transition-property:transform,opacity;transition-timing-function:ease;transition-duration:.15s}.hamburger--slider-r .hamburger-inner:after{top:20px}.hamburger--slider-r.is-active .hamburger-inner{transform:translate3d(0,10px,0) rotate(-45deg)}.hamburger--slider-r.is-active .hamburger-inner:before{transform:rotate(45deg) translate3d(5.71429px,-6px,0);opacity:0}.hamburger--slider-r.is-active .hamburger-inner:after{transform:translate3d(0,-20px,0) rotate(90deg)}.hamburger--spin .hamburger-inner{transition-duration:.22s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spin .hamburger-inner:before{transition:top .1s ease-in .25s,opacity .1s ease-in}.hamburger--spin .hamburger-inner:after{transition:bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19)}.hamburger--spin.is-active .hamburger-inner{transform:rotate(225deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spin.is-active .hamburger-inner:before{top:0;opacity:0;transition:top .1s ease-out,opacity .1s ease-out .12s}.hamburger--spin.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg);transition:bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s}.hamburger--spin-r .hamburger-inner{transition-duration:.22s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spin-r .hamburger-inner:before{transition:top .1s ease-in .25s,opacity .1s ease-in}.hamburger--spin-r .hamburger-inner:after{transition:bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19)}.hamburger--spin-r.is-active .hamburger-inner{transform:rotate(-225deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spin-r.is-active .hamburger-inner:before{top:0;opacity:0;transition:top .1s ease-out,opacity .1s ease-out .12s}.hamburger--spin-r.is-active .hamburger-inner:after{bottom:0;transform:rotate(90deg);transition:bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s}.hamburger--spring .hamburger-inner{top:2px;transition:background-color 0s linear .13s}.hamburger--spring .hamburger-inner:before{top:10px;transition:top .1s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring .hamburger-inner:after{top:20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring.is-active .hamburger-inner{transition-delay:.22s;background-color:transparent}.hamburger--spring.is-active .hamburger-inner:before{top:0;transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .15s,transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--spring.is-active .hamburger-inner:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:translate3d(0,10px,0) rotate(-45deg)}.hamburger--spring-r .hamburger-inner{top:auto;bottom:0;transition-duration:.13s;transition-delay:0s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spring-r .hamburger-inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity 0s linear}.hamburger--spring-r .hamburger-inner:before{transition:top .1s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring-r.is-active .hamburger-inner{transform:translate3d(0,-10px,0) rotate(-45deg);transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spring-r.is-active .hamburger-inner:after{top:0;opacity:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity 0s linear .22s}.hamburger--spring-r.is-active .hamburger-inner:before{top:0;transform:rotate(90deg);transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .15s,transform .13s cubic-bezier(.215,.61,.355,1) .22s}.hamburger--stand .hamburger-inner{transition:transform 75ms cubic-bezier(.55,.055,.675,.19) .15s,background-color 0s linear 75ms}.hamburger--stand .hamburger-inner:before{transition:top 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand .hamburger-inner:after{transition:bottom 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand.is-active .hamburger-inner{transform:rotate(90deg);background-color:transparent;transition:transform 75ms cubic-bezier(.215,.61,.355,1) 0s,background-color 0s linear .15s}.hamburger--stand.is-active .hamburger-inner:before{top:0;transform:rotate(-45deg);transition:top 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--stand.is-active .hamburger-inner:after{bottom:0;transform:rotate(45deg);transition:bottom 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--stand-r .hamburger-inner{transition:transform 75ms cubic-bezier(.55,.055,.675,.19) .15s,background-color 0s linear 75ms}.hamburger--stand-r .hamburger-inner:before{transition:top 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand-r .hamburger-inner:after{transition:bottom 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s}.hamburger--stand-r.is-active .hamburger-inner{transform:rotate(-90deg);background-color:transparent;transition:transform 75ms cubic-bezier(.215,.61,.355,1) 0s,background-color 0s linear .15s}.hamburger--stand-r.is-active .hamburger-inner:before{top:0;transform:rotate(-45deg);transition:top 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--stand-r.is-active .hamburger-inner:after{bottom:0;transform:rotate(45deg);transition:bottom 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s}.hamburger--squeeze .hamburger-inner{transition-duration:75ms;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--squeeze .hamburger-inner:before{transition:top 75ms ease .12s,opacity 75ms ease}.hamburger--squeeze .hamburger-inner:after{transition:bottom 75ms ease .12s,transform 75ms cubic-bezier(.55,.055,.675,.19)}.hamburger--squeeze.is-active .hamburger-inner{transform:rotate(45deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--squeeze.is-active .hamburger-inner:before{top:0;opacity:0;transition:top 75ms ease,opacity 75ms ease .12s}.hamburger--squeeze.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg);transition:bottom 75ms ease,transform 75ms cubic-bezier(.215,.61,.355,1) .12s}.hamburger--vortex .hamburger-inner{transition-duration:.2s;transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex .hamburger-inner:after,.hamburger--vortex .hamburger-inner:before{transition-duration:0s;transition-delay:.1s;transition-timing-function:linear}.hamburger--vortex .hamburger-inner:before{transition-property:top,opacity}.hamburger--vortex .hamburger-inner:after{transition-property:bottom,transform}.hamburger--vortex.is-active .hamburger-inner{transform:rotate(765deg);transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex.is-active .hamburger-inner:after,.hamburger--vortex.is-active .hamburger-inner:before{transition-delay:0s}.hamburger--vortex.is-active .hamburger-inner:before{top:0;opacity:0}.hamburger--vortex.is-active .hamburger-inner:after{bottom:0;transform:rotate(90deg)}.hamburger--vortex-r .hamburger-inner{transition-duration:.2s;transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex-r .hamburger-inner:after,.hamburger--vortex-r .hamburger-inner:before{transition-duration:0s;transition-delay:.1s;transition-timing-function:linear}.hamburger--vortex-r .hamburger-inner:before{transition-property:top,opacity}.hamburger--vortex-r .hamburger-inner:after{transition-property:bottom,transform}.hamburger--vortex-r.is-active .hamburger-inner{transform:rotate(-765deg);transition-timing-function:cubic-bezier(.19,1,.22,1)}.hamburger--vortex-r.is-active .hamburger-inner:after,.hamburger--vortex-r.is-active .hamburger-inner:before{transition-delay:0s}.hamburger--vortex-r.is-active .hamburger-inner:before{top:0;opacity:0}.hamburger--vortex-r.is-active .hamburger-inner:after{bottom:0;transform:rotate(-90deg)}.sidebar{background:#202e4e;position:fixed;z-index:2;width:100%;height:44px;box-shadow:0 .25rem .5rem -.1rem rgba(0,32,128,.2)}.sidebar__menu{position:absolute;font-weight:700;border:none;text-align:left;text-transform:uppercase;left:0;top:0;padding:.75rem 1rem;outline:0}.sidebar__menu-icon{height:24px}.sidebar__links{background:#202e4e;transition:transform .6s cubic-bezier(.165,.84,.44,1);transform-origin:0 0;transform:rotateX(-90deg);visibility:hidden;opacity:0;overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:378px;margin-top:44px;box-shadow:0 .25rem .5rem -.1rem rgba(0,32,128,.2);padding-bottom:1rem}.sidebar__links.is-active{transform:rotateX(0);visibility:visible;opacity:1}.sidebar__link{display:block;color:#e3f5ff;padding:.5rem .75rem;transition:all .1s ease-out;border-left:2px solid #576a85;margin:.5rem;font-weight:500;font-size:.95rem}.sidebar__link:hover{color:#88f4ff;background:hsla(0,0%,100%,.1);border-color:pink}.sidebar__section{padding:0 .75rem}.sidebar__section-heading{text-transform:capitalize;color:#e3f5ff;margin-bottom:.5rem}@media (min-width:992px){.sidebar{left:0;top:0;bottom:0;width:15%;max-width:250px;min-width:200px;height:100%;background:linear-gradient(-30deg,#2a3d67,#14264e);box-shadow:.4rem .4rem .8rem rgba(0,32,64,.1);overflow-y:auto;color:#fff}.sidebar::-webkit-scrollbar-track{background-color:rgba(0,0,0,.6)}.sidebar::-webkit-scrollbar{width:10px;background-color:#4b6191}.sidebar::-webkit-scrollbar-thumb{background-color:#4b6191}.sidebar__links{background:none;box-shadow:none;visibility:visible;opacity:1;transform:rotateX(0);margin-top:0;max-height:none}.sidebar__menu{display:none}}.header{position:relative;padding:5rem 1rem 4rem;background:#5b67ff;background:linear-gradient(45deg,#5cd2ff,#5b67ff,#681ae4);color:#fff;margin-bottom:2rem;text-align:center;overflow:hidden;z-index:1}.header:before{background-image:url(data:image/svg+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LjVzLTM5LDEwLjItNDIuMywzMC4zYy0zLjQsMjAuMSwxMC4xLDM5LjEsMzAuMiw0Mi41QzM2Ny44LDE0OC42LDM4Ni43LDEzNSwzOTAuMSwxMTQuOSIvPjwvZz48cGF0aCBjbGFzcz0ic3QyIiBkPSJNMzY5LjYsODAuOSIvPjxnPjxkZWZzPjxyZWN0IGlkPSJTVkdJRF8xMV8iIHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjEwODAiLz48L2RlZnM+PGNsaXBQYXRoIGlkPSJTVkdJRF8xMl8iPjx1c2UgeGxpbms6aHJlZj0iI1NWR0lEXzExXyIgIHN0eWxlPSJvdmVyZmxvdzp2aXNpYmxlOyIvPjwvY2xpcFBhdGg+PHBhdGggY2xhc3M9InN0MTAiIGQ9Ik03MTQuNyw5NjljMTYwLjUtNjIuOCwyODguNSwyOC43LDQxNy4xLDExOS45Ii8+PHBhdGggY2xhc3M9InN0MTEiIGQ9Ik0xNjA3LjEsNjU4LjIiLz48cGF0aCBjbGFzcz0ic3QxMCIgZD0iTTMxMy41LDE1Mi41Yy02NS40LDY1LjYtMTMxLDEzMS42LTIzNi40LDExMy43Ii8+PHBhdGggY2xhc3M9InN0MTAiIGQ9Ik04MzguNSwzODQuMWMtODAuNiw0NC4zLTE2MS42LDg4LjMtMjU3LjEsNDAuNSIvPjxwYXRoIGNsYXNzPSJzdDEwIiBkPSJNMTYwNy4zLDY2NS45Yy04LjYtOTUuMy0yMS4xLTE4Ni45LDY0LjEtMjU5LjkiLz48L2c+PHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MTguMiwzOTUuNCIvPjwvc3ZnPg==);width:150%;height:150%;top:0;opacity:.1;z-index:-1}.header:after,.header:before{content:"";position:absolute;left:0}.header:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxLjQxNCI+PHBhdGggZD0iTTEyIDEybDEyIDEySDBsMTItMTJ6IiBmaWxsPSIjZjZmN2ZkIi8+PC9zdmc+);background-size:24px 24px;width:100%;height:24px;bottom:-1px}.header__logo{height:146px;user-select:none}.header__heading{font-weight:200;font-size:3rem;margin:1rem 0;line-height:1.2}.header__description{font-size:1.5rem;max-width:600px;margin:0 auto 1rem;font-weight:300;letter-spacing:.4px}.header__css{background:-webkit-linear-gradient(-45deg,#f8ffc0,#88f4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:4rem}.header__github-button{color:#fff}@media (min-width:579px){.header{padding:6rem 0 5rem}.header__heading{font-size:3.75rem}}@media (min-width:992px){.header{padding:2.5rem 0 5rem}}.snippet{position:relative;background:#fff;padding:2rem 5%;box-shadow:0 .4rem .8rem -.1rem rgba(0,32,128,.1),0 0 0 1px #f0f2f7;border-radius:.25rem;font-size:1.1rem;margin-bottom:1.5rem}.snippet h3{font-size:2rem;padding:.5rem 0;border-bottom:1px solid rgba(0,32,128,.1);margin-bottom:1.25rem;margin-top:0;line-height:1.3}.snippet h3 span:not(.snippet__tag){margin-right:.75rem}.snippet code:not([class*=lang]){background:#fcfaff;border:1px solid #e2ddff;color:#4b00da;border-radius:.15rem;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.9rem;padding:.2rem .4rem;margin:0 .1rem}.snippet ol{margin-top:.5rem}.snippet ol>li{margin-bottom:.5rem}.snippet>p{margin-top:.5rem}.snippet h4{display:inline-block;margin:1rem 0 .5rem;font-size:1.1rem;line-height:2}.snippet h4[data-type]{background:#333;padding:0 .5rem;border-radius:3px;font-size:.9rem;text-transform:uppercase;border:1px solid #c6d6ea;border-bottom-color:#b3c9e3;background:#fff;box-shadow:0 .25rem .5rem -.1rem rgba(0,32,64,.15)}.snippet h4[data-type=HTML]{color:#fff;border:none;background:linear-gradient(135deg,#ff4c9f,#ff7b74)}.snippet h4[data-type=CSS]{color:#fff;border:none;background:linear-gradient(135deg,#7983ff,#5f9de9)}.snippet h4[data-type=JavaScript]{color:#fff;border:none;background:linear-gradient(135deg,#ffb000,#f58818)}.snippet__browser-support{display:inline-block;font-size:2rem;font-weight:200;line-height:1;margin:.5rem 0}.snippet__subheading.is-html{color:#e22f70}.snippet__subheading.is-css{color:#0a91d4}.snippet__subheading.is-explanation{color:#4b00da}.snippet__support-note{color:#9fa5b5;font-weight:700}.snippet__requires-javascript{position:absolute;background:red;background:linear-gradient(145deg,#ff003b,#ff4b39);color:#fff;padding:.25rem .5rem;font-size:.9rem;transform:rotate(20deg);font-weight:700;top:1rem;right:0}.snippet-demo{background:#f5f6f9;border-radius:.25rem;padding:.75rem 1.25rem}.snippet-demo.is-distinct{background:linear-gradient(135deg,#ff4c9f,#ff7b74)}@media (min-width:768px){.snippet__requires-javascript{right:-.5rem}}.back-to-top-button{display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:2rem;font-weight:700;background:#fff;width:4rem;height:4rem;position:fixed;right:2rem;bottom:2rem;border-radius:50%;user-select:none;box-shadow:0 .4rem .8rem -.1rem rgba(0,32,128,.15);transition:all .2s ease-out;visibility:hidden;opacity:0;z-index:1;border:1px solid rgba(0,32,128,.1);outline:0}.back-to-top-button:focus,.back-to-top-button:hover{transform:scale(1.1);box-shadow:0 .8rem 1.6rem -.2rem rgba(0,32,128,.15);color:#35a8ff}.back-to-top-button:focus{box-shadow:0 .8rem 1.6rem -.2rem rgba(0,32,128,.15),0 0 2px 2px #35a8ff;outline-style:none}.back-to-top-button.is-visible{visibility:visible;opacity:1}.tags{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}.tags,.tags__tag{position:relative}.tags__tag{display:inline-block;top:-1px;font-weight:700;font-size:.75rem;text-transform:uppercase;color:#8385aa;white-space:nowrap;border:1px solid #c8cbf2;border-radius:2px;vertical-align:middle;line-height:2;padding:0 .5rem;margin-right:.5rem;transition:all .1s ease-out;outline:0}.tags__tag.is-large{font-size:.95rem;border-radius:.2rem}.tags__tag.is-large .feather{top:-2px;width:18px;height:18px}.tags__tag .feather{vertical-align:middle;margin-right:.25rem;position:relative;top:-1px;width:14px;height:14px}.tags button.tags__tag{user-select:none;cursor:pointer;margin-bottom:1rem;margin-right:1rem;background:#fff}.tags button.tags__tag:hover{background:#8385aa;border-color:#8385aa;color:#fff}.tags button.tags__tag.focus-visible:focus{box-shadow:0 0 0 .25rem rgba(131,133,170,.5)}.tags button.tags__tag:active{box-shadow:inset 0 .1rem .1rem .1rem rgba(0,0,0,.2);background:#666894;border-color:#666894}.tags button.tags__tag.is-active{background:#7983ff;border-color:#7983ff;color:#fff}.tags button.tags__tag.is-active.focus-visible:focus{box-shadow:0 0 0 .25rem rgba(121,131,255,.5)}.btn{display:inline-block;position:relative;top:-1px;font-weight:700;font-size:.75rem;text-transform:uppercase;color:#8385aa;white-space:nowrap;border:1px solid #c8cbf2;border-radius:2px;vertical-align:middle;line-height:2;padding:0 .5rem;margin-right:.5rem;transition:all .1s ease-out;outline:0}.btn.is-large{font-size:.95rem;border-radius:.2rem}.btn.is-large .feather{top:-2px;width:18px;height:18px}.btn .feather{vertical-align:middle;margin-right:.25rem;position:relative;top:-1px;width:14px;height:14px}button.btn{user-select:none;cursor:pointer;margin-bottom:1rem;margin-right:1rem;background:#fff}button.btn:hover{background:#8385aa;border-color:#8385aa;color:#fff}button.btn.focus-visible:focus{box-shadow:0 0 0 .25rem rgba(131,133,170,.5)}button.btn:active{box-shadow:inset 0 .1rem .1rem .1rem rgba(0,0,0,.2);background:#666894;border-color:#666894}button.btn.is-active{background:#7983ff;border-color:#7983ff;color:#fff}button.btn.is-active.focus-visible:focus{box-shadow:0 0 0 .25rem rgba(121,131,255,.5)}button.btn.codepen-btn{margin-top:.5rem} \ No newline at end of file diff --git a/docs/3df57813b7ec2de885ea6075ff46ed46.js b/docs/3df57813b7ec2de885ea6075ff46ed46.js index f8a7ac643..529afe87e 100644 --- a/docs/3df57813b7ec2de885ea6075ff46ed46.js +++ b/docs/3df57813b7ec2de885ea6075ff46ed46.js @@ -1,19 +1,30 @@ -require=function(r,e,n){function t(n,o){function i(r){return t(i.resolve(r))}function f(e){return r[n][1][e]||e}if(!e[n]){if(!r[n]){var c="function"==typeof require&&require;if(!o&&c)return c(n,!0);if(u)return u(n,!0);var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}i.resolve=f;var s=e[n]=new t.Module(n);r[n][0].call(s.exports,i,s,s.exports)}return e[n].exports}function o(r){this.id=r,this.bundle=t,this.exports={}}var u="function"==typeof require&&require;t.isParcelRequire=!0,t.Module=o,t.modules=r,t.cache=e,t.parent=u;for(var i=0;ie.length)return;if(!(w instanceof o)){p.lastIndex=0;var x=1;if(!(C=p.exec(w))&&f&&v!=t.length-1){if(p.lastIndex=k,!(C=p.exec(e)))break;for(var F=C.index+(h?C[1].length:0),S=C.index+C[0].length,A=v,j=k,P=t.length;A=(j+=t[A].length)&&(++v,k=j);if(t[v]instanceof o||t[A-1].greedy)continue;x=A-v,w=e.slice(k,j),C.index-=k}if(C){h&&(m=C[1].length);S=(F=C.index+m)+(C=C[0].slice(m)).length;var C,N=w.slice(0,F),O=w.slice(S),E=[v,x];N&&(++v,k+=N.length,E.push(N));var $=new o(u,d?n.tokenize(C,d):C,y,C,f);if(E.push($),O&&E.push(O),Array.prototype.splice.apply(t,E),1!=x&&n.matchGrammar(e,t,a,v,k,!0,u),s)break}else if(s)break}}}}},tokenize:function(e,t,a){var r=[e],i=t.rest;if(i){for(var s in i)t[s]=i[s];delete t.rest}return n.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){var a=n.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=n.hooks.all[e];if(a&&a.length)for(var r,i=0;r=a[i++];)r(t)}}},r=n.Token=function(e,t,a,n,r){this.type=e,this.content=t,this.alias=a,this.length=0|(n||"").length,this.greedy=!!r};if(r.stringify=function(e,t,a){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(a){return r.stringify(a,t,e)}).join("");var i={type:e.type,content:r.stringify(e.content,t,a),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:a};if(e.alias){var s="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,s)}n.hooks.run("wrap",i);var l=Object.keys(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(l?" "+l:"")+">"+i.content+""},!t.document)return t.addEventListener?(n.disableWorkerMessageHandler||t.addEventListener("message",function(e){var a=JSON.parse(e.data),r=a.language,i=a.code,s=a.immediateClose;t.postMessage(n.highlight(i,n.languages[r],r)),s&&t.close()},!1),t.Prism):t.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(n.filename=i.src,n.manual||i.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),t.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=a),void 0!==e&&(e.Prism=a),a.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),a.languages.xml=a.languages.markup,a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},a.languages.css.atrule.inside.rest=a.util.clone(a.languages.css),a.languages.markup&&(a.languages.insertBefore("markup","tag",{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:a.languages.css,alias:"language-css",greedy:!0}}),a.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:a.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:a.languages.css}},alias:"language-css"}},a.languages.markup.tag)),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|\d*\.?\d+(?:[Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),a.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[[^\]\r\n]+]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"}}),a.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}}}),a.languages.markup&&a.languages.insertBefore("markup","tag",{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:a.languages.javascript,alias:"language-javascript",greedy:!0}}),a.languages.js=a.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,r=t.getAttribute("data-src"),i=t,s=/\blang(?:uage)?-(?!\*)(\w+)\b/i;i&&!s.test(i.className);)i=i.parentNode;if(i&&(n=(t.className.match(s)||[,""])[1]),!n){var l=(r.match(/\.(\w+)$/)||[,""])[1];n=e[l]||l}var o=document.createElement("code");o.className="language-"+n,t.textContent="",o.textContent="Loading…",t.appendChild(o);var u=new XMLHttpRequest;u.open("GET",r,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(o.textContent=u.responseText,a.highlightElement(o)):u.status>=400?o.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:o.textContent="✖ Error: File does not exist or is empty")},u.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight)); -},{}],15:[function(require,module,exports) { +},{}],21:[function(require,module,exports) { +var global = (1,eval)("this"); +var e=(0,eval)("this");!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.feather=n():e.feather=n()}("undefined"!=typeof self?self:this,function(){return function(e){var n={};function i(t){if(n[t])return n[t].exports;var l=n[t]={i:t,l:!1,exports:{}};return e[t].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=e,i.c=n,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i(i.s=49)}([function(e,n,i){var t=i(36)("wks"),l=i(15),r=i(1).Symbol,o="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=o&&r[e]||(o?r:l)("Symbol."+e))}).store=t},function(e,n){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,n,i){var t=i(1),l=i(7),r=i(8),o=i(10),a=i(11),c=function(e,n,i){var y,p,h,x,s=e&c.F,u=e&c.G,f=e&c.S,d=e&c.P,v=e&c.B,g=u?t:f?t[n]||(t[n]={}):(t[n]||{}).prototype,m=u?l:l[n]||(l[n]={}),M=m.prototype||(m.prototype={});for(y in u&&(i=n),i)h=((p=!s&&g&&void 0!==g[y])?g:i)[y],x=v&&p?a(h,t):d&&"function"==typeof h?a(Function.call,h):h,g&&o(g,y,h,e&c.U),m[y]!=h&&r(m,y,x),d&&M[y]!=h&&(M[y]=h)};t.core=l,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,n,i){var t=i(9),l=i(29),r=i(31),o=Object.defineProperty;n.f=i(5)?Object.defineProperty:function(e,n,i){if(t(e),n=r(n,!0),t(i),l)try{return o(e,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[n]=i.value),e}},function(e,n,i){e.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,n){var i={}.hasOwnProperty;e.exports=function(e,n){return i.call(e,n)}},function(e,n){var i=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},function(e,n,i){var t=i(4),l=i(14);e.exports=i(5)?function(e,n,i){return t.f(e,n,l(1,i))}:function(e,n,i){return e[n]=i,e}},function(e,n,i){var t=i(2);e.exports=function(e){if(!t(e))throw TypeError(e+" is not an object!");return e}},function(e,n,i){var t=i(1),l=i(8),r=i(6),o=i(15)("src"),a=Function.toString,c=(""+a).split("toString");i(7).inspectSource=function(e){return a.call(e)},(e.exports=function(e,n,i,a){var y="function"==typeof i;y&&(r(i,"name")||l(i,"name",n)),e[n]!==i&&(y&&(r(i,o)||l(i,o,e[n]?""+e[n]:c.join(String(n)))),e===t?e[n]=i:a?e[n]?e[n]=i:l(e,n,i):(delete e[n],l(e,n,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||a.call(this)})},function(e,n,i){var t=i(32);e.exports=function(e,n,i){if(t(e),void 0===n)return e;switch(i){case 1:return function(i){return e.call(n,i)};case 2:return function(i,t){return e.call(n,i,t)};case 3:return function(i,t,l){return e.call(n,i,t,l)}}return function(){return e.apply(n,arguments)}}},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n){e.exports={}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n){var i=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+t).toString(36))}},function(e,n,i){var t=i(34),l=i(19);e.exports=function(e){return t(l(e))}},function(e,n,i){var t=i(11),l=i(38),r=i(39),o=i(9),a=i(22),c=i(40),y={},p={};(n=e.exports=function(e,n,i,h,x){var s,u,f,d,v=x?function(){return e}:c(e),g=t(i,h,n?2:1),m=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(s=a(e.length);s>m;m++)if((d=n?g(o(u=e[m])[0],u[1]):g(e[m]))===y||d===p)return d}else for(f=v.call(e);!(u=f.next()).done;)if((d=l(f,g,u.value,n))===y||d===p)return d}).BREAK=y,n.RETURN=p},function(e,n){var i=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?t:i)(e)}},function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,n,i){"use strict";var t=i(52),l=i(3),r=i(10),o=i(8),a=i(6),c=i(13),y=i(53),p=i(24),h=i(59),x=i(0)("iterator"),s=!([].keys&&"next"in[].keys()),u=function(){return this};e.exports=function(e,n,i,f,d,v,g){y(i,n,f);var m,M,w,b=function(e){if(!s&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new i(this,e)}}return function(){return new i(this,e)}},A=n+" Iterator",_="values"==d,z=!1,k=e.prototype,S=k[x]||k["@@iterator"]||d&&k[d],H=!s&&S||b(d),V=d?_?b("entries"):H:void 0,O="Array"==n&&k.entries||S;if(O&&(w=h(O.call(new e)))!==Object.prototype&&w.next&&(p(w,A,!0),t||a(w,x)||o(w,x,u)),_&&S&&"values"!==S.name&&(z=!0,H=function(){return S.call(this)}),t&&!g||!s&&!z&&k[x]||o(k,x,H),c[n]=H,c[A]=u,d)if(m={values:_?H:b("values"),keys:v?H:b("keys"),entries:V},g)for(M in m)M in k||r(k,M,m[M]);else l(l.P+l.F*(s||z),n,m);return m}},function(e,n,i){var t=i(55),l=i(37);e.exports=Object.keys||function(e){return t(e,l)}},function(e,n,i){var t=i(18),l=Math.min;e.exports=function(e){return e>0?l(t(e),9007199254740991):0}},function(e,n,i){var t=i(36)("keys"),l=i(15);e.exports=function(e){return t[e]||(t[e]=l(e))}},function(e,n,i){var t=i(4).f,l=i(6),r=i(0)("toStringTag");e.exports=function(e,n,i){e&&!l(e=i?e:e.prototype,r)&&t(e,r,{configurable:!0,value:n})}},function(e,n,i){var t=i(19);e.exports=function(e){return Object(t(e))}},function(e,n,i){var t=i(35),l=i(0)("toStringTag"),r="Arguments"==t(function(){return arguments}());e.exports=function(e){var n,i,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,n){try{return e[n]}catch(e){}}(n=Object(e),l))?i:r?t(n):"Object"==(o=t(n))&&"function"==typeof n.callee?"Arguments":o}},function(e,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=o(i(86)),l=o(i(88)),r=o(i(89));function o(e){return e&&e.__esModule?e:{default:e}}n.default=Object.keys(l.default).map(function(e){return new t.default(e,l.default[e],r.default[e])}).reduce(function(e,n){return e[n.name]=n,e},{})},function(e,n,i){"use strict";var t=i(51)(!0);i(20)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,n=this._t,i=this._i;return i>=n.length?{value:void 0,done:!0}:(e=t(n,i),this._i+=e.length,{value:e,done:!1})})},function(e,n,i){e.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(30)("div"),"a",{get:function(){return 7}}).a})},function(e,n,i){var t=i(2),l=i(1).document,r=t(l)&&t(l.createElement);e.exports=function(e){return r?l.createElement(e):{}}},function(e,n,i){var t=i(2);e.exports=function(e,n){if(!t(e))return e;var i,l;if(n&&"function"==typeof(i=e.toString)&&!t(l=i.call(e)))return l;if("function"==typeof(i=e.valueOf)&&!t(l=i.call(e)))return l;if(!n&&"function"==typeof(i=e.toString)&&!t(l=i.call(e)))return l;throw TypeError("Can't convert object to primitive value")}},function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,n,i){var t=i(9),l=i(54),r=i(37),o=i(23)("IE_PROTO"),a=function(){},c=function(){var e,n=i(30)("iframe"),t=r.length;for(n.style.display="none",i(58).appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("

30 Seconds of CSS

A curated collection of useful CSS snippets you can understand in 30 seconds or less.

Star

Box-sizing reset

Resets the box-model so that widths and heights are not affected by their borders or padding.

CSS

html {
+     30 Seconds of CSS         

30 Seconds of CSS

A curated collection of useful CSS snippets you can understand in 30 seconds or less.

Star

Bouncing loaderanimation

Creates a bouncing loader animation.

HTML

<div class="bouncing-loader">
+  <div></div>
+  <div></div>
+  <div></div>
+</div>
+

CSS

@keyframes bouncing-loader {
+  from {
+    opacity: 1;
+    transform: translateY(0);
+  }
+  to {
+    opacity: 0.1;
+    transform: translateY(-1rem);
+  }
+}
+.bouncing-loader {
+  display: flex;
+  justify-content: center;
+}
+.bouncing-loader > div {
+  width: 1rem;
+  height: 1rem;
+  margin: 3rem 0.2rem;
+  background: #8385aa;
+  border-radius: 50%;
+  animation: bouncing-loader 0.6s infinite alternate;
+}
+.bouncing-loader > div:nth-of-type(2) {
+  animation-delay: 0.2s;
+}
+.bouncing-loader > div:nth-of-type(3) {
+  animation-delay: 0.4s;
+}
+

Demo

Explanation

Note: 1rem is usually 16px.

  1. @keyframes defines an animation that has two states, where the element changes opacity, and is translated up on the 2D plane using transform: translateY().

  2. .bouncing-loader is the parent container of the bouncing circles and uses display: flex and justify-content: center to position them in the in the center.

  3. Using .bouncing-loader > div, we target the three child divs of the parent to be styled. The divs are given a width and height of 1rem, using border-radius: 50% to turn them from squares to circles.

  4. margin: 3rem 0.2rem specifies that each circle has a top/bottom margin of 3rem and left/right margin of 0.2rem so that they do not directly touch each other, giving them some breathing room.

  5. animation is a shorthand property for the various animation properties: animation-name, animation-duration, animation-iteration-count, animation-direction are used.

  6. animation-delay is used on the second and third div respectively, so that each element does not start the animation at the same time.

Browser support

95.3%

✅ No caveats.

Box-sizing resetlayout

Resets the box-model so that widths and heights are not affected by their borders or padding.

CSS

html {
   box-sizing: border-box;
 }
 *,
@@ -6,26 +39,33 @@
 *::after {
   box-sizing: inherit;
 }
-

Demo

Demo

Explanation

  1. box-sizing: border-box makes the addition of padding or borders not affect an element's width or height.
  2. box-sizing: inherit makes an element respect its parent's box-sizing rule.

Browser support

98.2%

✅ No caveats.

Clearfix

Ensures that an element self-clears its children.

Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.

HTML

<div class="clearfix">
+

Demo

Demo

Explanation

  1. box-sizing: border-box makes the addition of padding or borders not affect an element's width or height.
  2. box-sizing: inherit makes an element respect its parent's box-sizing rule.

Browser support

98.4%

✅ No caveats.

Circlevisual

Creates a circle shape with pure CSS.

HTML

<div class="circle"></div>
+

CSS

.circle {
+  border-radius: 50%;
+  width: 2rem;
+  height: 2rem;
+  background: #333;
+}
+

Demo

Explanation

border-radius: 50% curves the borders of an element to create a circle.

Since a circle has the same radius at any given point, the width and height must be the same. Differing values will create an ellipse.

Browser support

95.5%

✅ No caveats.

Clearfixlayout

Ensures that an element self-clears its children.

Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.

HTML

<div class="clearfix">
   <div class="floated">float a</div>
   <div class="floated">float b</div>
   <div class="floated">float c</div>
 </div>
 

CSS

.clearfix::after {
-  content: "";
+  content: '';
   display: block;
   clear: both;
 }
 .floated {
   float: left;
 }
-

Demo

float a
float b
float c

Explanation

  1. .clearfix::after defines a pseudo-element.
  2. content: '' allows the pseudo-element to affect layout.
  3. clear: both indicates that the left, right or both sides of the element cannot be adjacent to earlier floated elements within the same block formatting context.

Browser support

99+%

✅ No caveats.

Constant width to height ratio

Given an element of variable width, it will ensure its height remains proportionate in a responsive fashion (i.e., its width to height ratio remains constant).

HTML

<div class="constant-width-to-height-ratio"></div>
+

Demo

float a
float b
float c

Explanation

  1. .clearfix::after defines a pseudo-element.
  2. content: '' allows the pseudo-element to affect layout.
  3. clear: both indicates that the left, right or both sides of the element cannot be adjacent to earlier floated elements within the same block formatting context.

Browser support

99+%

⚠️ For this snippet to work properly you need to ensure that there are no non-floating children in the container and that there are no tall floats before the clearfixed container but in the same formatting context (e.g. floated columns).

Constant width to height ratiolayout

Given an element of variable width, it will ensure its height remains proportionate in a responsive fashion (i.e., its width to height ratio remains constant).

HTML

<div class="constant-width-to-height-ratio"></div>
 

CSS

.constant-width-to-height-ratio {
   background: #333;
   width: 50%;
   padding-top: 50%;
 }
-

Demo

Resize your browser window to see the proportion of the element remain the same.

Explanation

padding-top and padding-bottom can be used as an alternative to height such that the percentage value causes an element's height to become a percentage of its parent's width, i.e. 50% means the height will be 50% of the parent element's width, which means it acts the same as width. This allows its proportion to remain constant.

Browser support

99+%

⚠️ padding-top pushes any content within the element to the bottom.

Custom scrollbar

Customizes the scrollbar style for the document and elements with scrollable overflow, on WebKit platforms.

HTML

<div class="custom-scrollbar">
+

Demo

Resize your browser window to see the proportion of the element remain the same.

Explanation

padding-top and padding-bottom can be used as an alternative to height such that the percentage value causes an element's height to become a percentage of its parent's width, i.e. 50% means the height will be 50% of the parent element's width, which means it acts the same as width. This allows its proportion to remain constant.

Browser support

99+%

⚠️ padding-top pushes any content within the element to the bottom.

Custom scrollbarvisual

Customizes the scrollbar style for the document and elements with scrollable overflow, on WebKit platforms.

HTML

<div class="custom-scrollbar">
   <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?</p>
 </div>
 

CSS

/* Document scrollbar */
@@ -33,17 +73,17 @@
   width: 8px;
 }
 ::-webkit-scrollbar-track {
-  box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
+  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
   border-radius: 10px;
 }
 ::-webkit-scrollbar-thumb {
   border-radius: 10px;
-  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
+  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
 }
 /* Scrollable element */
 .some-element::webkit-scrollbar {
 }
-

Demo

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

Explanation

  1. ::-webkit-scrollbar targets the whole scrollbar element.
  2. ::-webkit-scrollbar-track targets only the scrollbar track.
  3. ::-webkit-scrollbar-thumb targets the scrollbar thumb.

There are many other pseudo-elements that you can use to style scrollbars. For more info, visit the WebKit Blog

Browser support

87.3%

⚠️ Scrollbar styling doesn't appear to be on any standards track.

Custom text selection

Changes the styling of text selection.

HTML

<p class="custom-text-selection">Select some of this text.</p>
+

Demo

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

Explanation

  1. ::-webkit-scrollbar targets the whole scrollbar element.
  2. ::-webkit-scrollbar-track targets only the scrollbar track.
  3. ::-webkit-scrollbar-thumb targets the scrollbar thumb.

There are many other pseudo-elements that you can use to style scrollbars. For more info, visit the WebKit Blog

Browser support

88.0%

⚠️ Scrollbar styling doesn't appear to be on any standards track.

Custom text selectionvisual

Changes the styling of text selection.

HTML

<p class="custom-text-selection">Select some of this text.</p>
 

CSS

::selection {
   background: aquamarine;
   color: black;
@@ -52,21 +92,19 @@
   background: deeppink;
   color: white;
 }
-

Demo

Select some of this text.

Explanation

::selection defines a pseudo selector on an element to style text within it when selected. Note that if you don't combine any other selector your style will be applied at document root level, to any selectable element.

Browser support

84.6%

⚠️ Requires prefixes for full support and is not actually in any specification.

Custom variables

CSS variables that contain specific values to be reused throughout a document.

CSS

:root {
-    --some-color: #da7800;
-    --some-keyword: italic;
-    --some-size: 1.25em;
-    --some-complex-value: 1px 1px 2px WhiteSmoke, 0 0 1em SlateGray , 0 0 0.2em SlateGray;
-}
-

Demo

CSS is awesome!

Explanation

Declare variable with --variable-name:.

Reuse declared variable throughout the document using the var(--variable-name) function.

Browser support

87.2%

⚠️ This is an experimental technology.

Disable selection

Makes the content unselectable.

HTML

<p>You can select me.</p>
+

Demo

Select some of this text.

Explanation

::selection defines a pseudo selector on an element to style text within it when selected. Note that if you don't combine any other selector your style will be applied at document root level, to any selectable element.

Browser support

84.9%

⚠️ Requires prefixes for full support and is not actually in any specification.

Disable selectioninteractivity

Makes the content unselectable.

HTML

<p>You can select me.</p>
 <p class="unselectable">You can't select me!</p>
 

CSS

.unselectable {
   user-select: none;
 }
-

Demo

You can select me.

You can't select me!

Explanation

user-select: none specifies that the text cannot be selected.

Browser support

86.3%

⚠️ Requires prefixes for full support.

Donut spinner

Creates a donut spinner that can be used to indicate the loading of content.

HTML

<div class="donut"></div>
+

Demo

You can select me.

You can't select me!

Explanation

user-select: none specifies that the text cannot be selected.

Browser support

87.2%

⚠️ Requires prefixes for full support. ⚠️ This is not a secure method to prevent users from copying content.

Donut spinneranimation

Creates a donut spinner that can be used to indicate the loading of content.

HTML

<div class="donut"></div>
 

CSS

@keyframes donut-spin {
-  0% { transform: rotate(0deg); }
-  100% { transform: rotate(360deg); }
+  0% {
+    transform: rotate(0deg);
+  }
+  100% {
+    transform: rotate(360deg);
+  }
 }
 .donut {
   display: inline-block;
@@ -77,7 +115,7 @@
   height: 30px;
   animation: donut-spin 1.2s linear infinite;
 }
-

Demo

Explanation

Use a semi-transparent border for the whole element, except one side that will serve as the loading indicator for the donut. Use animation to rotate the element.

Browser support

94.8%

⚠️ Requires prefixes for full support.

Easing variables

Variables that can be reused for transition-timing-function properties, more powerful than the built-in ease, ease-in, ease-out and ease-in-out.

HTML

<div class="easing-variables"></div>
+

Demo

Explanation

Use a semi-transparent border for the whole element, except one side that will serve as the loading indicator for the donut. Use animation to rotate the element.

Browser support

95.3%

⚠️ Requires prefixes for full support.

Easing variablesanimation

Variables that can be reused for transition-timing-function properties, more powerful than the built-in ease, ease-in, ease-out and ease-in-out.

HTML

<div class="easing-variables"></div>
 

CSS

:root {
   --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
   --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
@@ -107,14 +145,14 @@
 .easing-variables:hover {
   transform: rotate(45deg);
 }
-

Demo

Hover

Explanation

The variables are defined globally within the :root CSS pseudo-class which matches the root element of a tree representing the document. In HTML, :root represents the <html> element and is identical to the selector html, except that its specificity is higher.

Browser support

87.2%

✅ No caveats.

Etched text

Creates an effect where text appears to be "etched" or engraved into the background.

HTML

<p class="etched-text">I appear etched into the background.</p>
+

Demo

Hover

Explanation

The variables are defined globally within the :root CSS pseudo-class which matches the root element of a tree representing the document. In HTML, :root represents the <html> element and is identical to the selector html, except that its specificity is higher.

Browser support

88.0%

✅ No caveats.

Etched textvisual

Creates an effect where text appears to be "etched" or engraved into the background.

HTML

<p class="etched-text">I appear etched into the background.</p>
 

CSS

.etched-text {
   text-shadow: 0 2px white;
   font-size: 1.5rem;
   font-weight: bold;
   color: #b8bec5;
 }
-

Demo

I appear etched into the background.

Explanation

text-shadow: 0 2px white creates a white shadow offset 0px horizontally and 2px vertically from the origin position.

The background must be darker than the shadow for the effect to work.

The text color should be slightly faded to make it look like it's engraved/carved out of the background.

Browser support

97.9%

✅ No caveats.

Evenly distributed children

Evenly distributes child elements within a parent element.

HTML

<div class="evenly-distributed-children">
+

Demo

I appear etched into the background.

Explanation

text-shadow: 0 2px white creates a white shadow offset 0px horizontally and 2px vertically from the origin position.

The background must be darker than the shadow for the effect to work.

The text color should be slightly faded to make it look like it's engraved/carved out of the background.

Browser support

98.1%

✅ No caveats.

Evenly distributed childrenlayout

Evenly distributes child elements within a parent element.

HTML

<div class="evenly-distributed-children">
   <p>Item1</p>
   <p>Item2</p>
   <p>Item3</p>
@@ -123,13 +161,29 @@
   display: flex;
   justify-content: space-between;
 }
-

Demo

Item1

Item2

Item3

Explanation

  1. display: flex enables flexbox.
  2. justify-content: space-between evenly distributes child elements horizontally. The first item is positioned at the left edge, while the last item is positioned at the right edge.

Alternatively, use justify-content: space-around to distribute the children with space around them, rather than between them.

Browser support

97.8%

⚠️ Needs prefixes for full support.

Gradient text

Gives text a gradient color.

HTML

<p class="gradient-text">Gradient text</p>
+

Demo

Item1

Item2

Item3

Explanation

  1. display: flex enables flexbox.
  2. justify-content: space-between evenly distributes child elements horizontally. The first item is positioned at the left edge, while the last item is positioned at the right edge.

Alternatively, use justify-content: space-around to distribute the children with space around them, rather than between them.

Browser support

98.1%

⚠️ Needs prefixes for full support.

Flexbox centeringlayout

Horizontally and vertically centers a child element within a parent element using flexbox.

HTML

<div class="flexbox-centering">
+  <div class="child">Centered content.</div>
+</div>
+

CSS

.flexbox-centering {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+

Demo

Centered content.

Explanation

  1. display: flex enables flexbox.
  2. justify-content: center centers the child horizontally.
  3. align-items: center centers the child vertically.

Browser support

98.1%

⚠️ Needs prefixes for full support.

Gradient textvisual

Gives text a gradient color.

HTML

<p class="gradient-text">Gradient text</p>
 

CSS

.gradient-text {
   background: -webkit-linear-gradient(pink, red);
   -webkit-text-fill-color: transparent;
   -webkit-background-clip: text;
 }
-

Demo

Gradient text

Explanation

  1. background: -webkit-linear-gradient(...) gives the text element a gradient background.
  2. webkit-text-fill-color: transparent fills the text with a transparent color.
  3. webkit-background-clip: text clips the background with the text, filling the text with the gradient background as the color.

Browser support

90.7%

⚠️ Uses non-standard properties.

Hairline border

Gives an element a border equal to 1 native device pixel in width, which can look very sharp and crisp.

HTML

<div class="hairline-border">text</div>
+

Demo

Gradient text

Explanation

  1. background: -webkit-linear-gradient(...) gives the text element a gradient background.
  2. webkit-text-fill-color: transparent fills the text with a transparent color.
  3. webkit-background-clip: text clips the background with the text, filling the text with the gradient background as the color.

Browser support

91.5%

⚠️ Uses non-standard properties.

Grid centeringlayout

Horizontally and vertically centers a child element within a parent element using grid.

HTML

<div class="grid-centering">
+  <div class="child">Centered content.</div>
+</div>
+

CSS

.grid-centering {
+  display: grid;
+  justify-content: center;
+  align-items: center;
+}
+

Demo

Centered content.

Explanation

  1. display: grid enables grid.
  2. justify-content: center centers the child horizontally.
  3. align-items: center centers the child vertically.

Browser support

87.6%

✅ No caveats.

Hairline bordervisual

Gives an element a border equal to 1 native device pixel in width, which can look very sharp and crisp.

HTML

<div class="hairline-border">text</div>
 

CSS

.hairline-border {
   box-shadow: 0 0 0 1px;
 }
@@ -148,15 +202,7 @@
     box-shadow: 0 0 0 0.25px;
   }
 }
-

Demo

Text with a hairline border around it.

Explanation

  1. box-shadow, when only using spread, adds a pseudo-border which can use subpixels*.
  2. Use @media (min-resolution: ...) to check the device pixel ratio (1dppx equals 96 DPI), setting the spread of the box-shadow equal to 1 / dppx.

Browser Support

95.0%

⚠️ Needs alternate syntax and JavaScript user agent checking for full support.


*Chrome does not support subpixel values on border. Safari does not support subpixel values on box-shadow. Firefox supports subpixel values on both.

Horizontal and vertical centering

Horizontally and vertically centers a child element within a parent element.

HTML

<div class="horizontal-and-vertical-centering">
-  <div class="child"></div>
-</div>
-

CSS

.horizontal-and-vertical-centering {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-

Demo

Centered content.

Explanation

  1. display: flex enables flexbox.
  2. justify-content: center centers the child horizontally.
  3. align-items: center centers the child vertically.

Browser support

97.8%

⚠️ Needs prefixes for full support.

Hover underline animation

Creates an animated underline effect when the text is hovered over.

Credit: https://flatuicolors.com/

HTML

<p class="hover-underline-animation">Hover this text to see the effect!</p>
+

Demo

Text with a hairline border around it.

Explanation

  1. box-shadow, when only using spread, adds a pseudo-border which can use subpixels*.
  2. Use @media (min-resolution: ...) to check the device pixel ratio (1dppx equals 96 DPI), setting the spread of the box-shadow equal to 1 / dppx.

Browser Support

95.5%

⚠️ Needs alternate syntax and JavaScript user agent checking for full support.


*Chrome does not support subpixel values on border. Safari does not support subpixel values on box-shadow. Firefox supports subpixel values on both.

Hover underline animationanimation

Creates an animated underline effect when the text is hovered over.

Credit: https://flatuicolors.com/

HTML

<p class="hover-underline-animation">Hover this text to see the effect!</p>
 

CSS

.hover-underline-animation {
   display: inline-block;
   position: relative;
@@ -178,7 +224,7 @@
   transform: scaleX(1);
   transform-origin: bottom left;
 }
-

Demo

Hover this text to see the effect!

Explanation

  1. display: inline-block makes the block p an inline-block to prevent the underline from spanning the entire parent width rather than just the content (text).
  2. position: relative on the element establishes a Cartesian positioning context for pseudo-elements.
  3. ::after defines a pseudo-element.
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. width: 100% ensures the pseudo-element spans the entire width of the text block.
  6. transform: scaleX(0) initially scales the pseudo element to 0 so it has no width and is not visible.
  7. bottom: 0 and left: 0 position it to the bottom left of the block.
  8. transition: transform 0.25s ease-out means changes to transform will be transitioned over 0.25 seconds with an ease-out timing function.
  9. transform-origin: bottom right means the transform anchor point is positioned at the bottom right of the block.
  10. :hover::after then uses scaleX(1) to transition the width to 100%, then changes the transform-origin to bottom left so that the anchor point is reversed, allowing it transition out in the other direction when hovered off.

Browser support

94.9%

✅ No caveats.

Mouse cursor gradient tracking

A hover effect where the gradient follows the mouse cursor.

Credit: Tobias Reich

HTML

<button class="mouse-cursor-gradient-tracking">
+

Demo

Hover this text to see the effect!

Explanation

  1. display: inline-block makes the block p an inline-block to prevent the underline from spanning the entire parent width rather than just the content (text).
  2. position: relative on the element establishes a Cartesian positioning context for pseudo-elements.
  3. ::after defines a pseudo-element.
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. width: 100% ensures the pseudo-element spans the entire width of the text block.
  6. transform: scaleX(0) initially scales the pseudo element to 0 so it has no width and is not visible.
  7. bottom: 0 and left: 0 position it to the bottom left of the block.
  8. transition: transform 0.25s ease-out means changes to transform will be transitioned over 0.25 seconds with an ease-out timing function.
  9. transform-origin: bottom right means the transform anchor point is positioned at the bottom right of the block.
  10. :hover::after then uses scaleX(1) to transition the width to 100%, then changes the transform-origin to bottom left so that the anchor point is reversed, allowing it transition out in the other direction when hovered off.

Browser support

95.4%

✅ No caveats.

Mouse cursor gradient trackingvisualinteractivity

A hover effect where the gradient follows the mouse cursor.

Credit: Tobias Reich

HTML

<button class="mouse-cursor-gradient-tracking">
   <span>Hover me</span>
 </button>
 

CSS

.mouse-cursor-gradient-tracking {
@@ -205,21 +251,21 @@
   height: var(--size);
   background: radial-gradient(circle closest-side, pink, transparent);
   transform: translate(-50%, -50%);
-  transition: width .2s ease, height .2s ease;
+  transition: width 0.2s ease, height 0.2s ease;
 }
 .mouse-cursor-gradient-tracking:hover::before {
   --size: 200px;
 }
 

JavaScript

var btn = document.querySelector('.mouse-cursor-gradient-tracking')
-btn.onmousemove = function (e) {
+btn.onmousemove = function(e) {
   var x = e.pageX - btn.offsetLeft
   var y = e.pageY - btn.offsetTop
   btn.style.setProperty('--x', x + 'px')
   btn.style.setProperty('--y', y + 'px')
 }
-

Demo

Explanation

TODO

Note!

If the element's parent has a positioning context (position: relative), you will need to subtract its offsets as well.

var x = e.pageX - btn.offsetLeft - btn.offsetParent.offsetLeft
+

Demo

Explanation

TODO

Note!

If the element's parent has a positioning context (position: relative), you will need to subtract its offsets as well.

var x = e.pageX - btn.offsetLeft - btn.offsetParent.offsetLeft
 var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
-

Browser support

87.2%

Requires JavaScript
⚠️ Requires JavaScript.

Overflow scroll gradient

Adds a fading gradient to an overflowing element to better indicate there is more content to be scrolled.

HTML

<div class="overflow-scroll-gradient">
+

Browser support

88.0%

Requires JavaScript
⚠️ Requires JavaScript.

Overflow scroll gradientvisual

Adds a fading gradient to an overflowing element to better indicate there is more content to be scrolled.

HTML

<div class="overflow-scroll-gradient">
   <div class="overflow-scroll-gradient__scroller">
     Content to be scrolled
   </div>
@@ -231,21 +277,24 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   content: '';
   position: absolute;
   bottom: 0;
-  width: 300px;
+  width: 240px;
   height: 25px;
-  background: linear-gradient(rgba(255, 255, 255, 0.001), white); /* transparent keyword is broken in Safari */
+  background: linear-gradient(
+    rgba(255, 255, 255, 0.001),
+    white
+  ); /* transparent keyword is broken in Safari */
   pointer-events: none;
 }
 .overflow-scroll-gradient__scroller {
   overflow-y: scroll;
   background: white;
-  width: 300px;
-  height: 250px;
+  width: 240px;
+  height: 200px;
   padding: 15px 0;
   line-height: 1.2;
   text-align: center;
 }
-

Demo

Content to be scrolled

Explanation

  1. position: relative on the parent establishes a Cartesian positioning context for pseudo-elements.
  2. ::after defines a pseudo element.
  3. background-image: linear-gradient(...) adds a linear gradient that fades from transparent to white (top to bottom).
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. width: 300px matches the size of the scrolling element (which is a child of the parent that has the pseudo element).
  6. height: 25px is the height of the fading gradient pseudo-element, which should be kept relatively small.
  7. bottom: 0 positions the pseudo-element at the bottom of the parent.
  8. pointer-events: none specifies that the pseudo-element cannot be a target of mouse events, allowing text behind it to still be selectable/interactive.

Browser support

94.8%

✅ No caveats.

Popout menu

Reveals an interactive popout menu on hover.

HTML

<div class="reference">
+

Demo

Content to be scrolled

Explanation

  1. position: relative on the parent establishes a Cartesian positioning context for pseudo-elements.
  2. ::after defines a pseudo element.
  3. background-image: linear-gradient(...) adds a linear gradient that fades from transparent to white (top to bottom).
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. width: 240px matches the size of the scrolling element (which is a child of the parent that has the pseudo element).
  6. height: 25px is the height of the fading gradient pseudo-element, which should be kept relatively small.
  7. bottom: 0 positions the pseudo-element at the bottom of the parent.
  8. pointer-events: none specifies that the pseudo-element cannot be a target of mouse events, allowing text behind it to still be selectable/interactive.

Browser support

95.4%

✅ No caveats.

Popout menuinteractivity

Reveals an interactive popout menu on hover.

HTML

<div class="reference">
   <div class="popout-menu">
     Popout menu
   </div>
@@ -261,15 +310,12 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
 .reference:hover > .popout-menu {
   visibility: visible;
 }
-

Demo

Popout menu

Explanation

  1. position: relative on the reference parent establishes a Cartesian positioning context for its child.
  2. position: absolute takes the popout menu out of the flow of the document and positions it in relation to the parent.
  3. left: 100% moves the the popout menu 100% of its parent's width from the left.
  4. visibility: hidden hides the popout menu initially and allows for transitions (unlike display: none).
  5. .reference:hover > .popout-menu means that when .reference is hovered over, select immediate children with a class of .popout-menu and change their visibility to visible, which shows the popout.

Browser support

99+%

✅ No caveats.

Pretty text underline

A nicer alternative to text-decoration: underline where descenders do not clip the underline. Natively implemented as text-decoration-skip-ink: auto but it has less control over the underline.

HTML

<p class="pretty-text-underline">Pretty text underline without clipping descending letters.</p>
+

Demo

Popout menu

Explanation

  1. position: relative on the reference parent establishes a Cartesian positioning context for its child.
  2. position: absolute takes the popout menu out of the flow of the document and positions it in relation to the parent.
  3. left: 100% moves the the popout menu 100% of its parent's width from the left.
  4. visibility: hidden hides the popout menu initially and allows for transitions (unlike display: none).
  5. .reference:hover > .popout-menu means that when .reference is hovered over, select immediate children with a class of .popout-menu and change their visibility to visible, which shows the popout.

Browser support

99+%

✅ No caveats.

Pretty text underlinevisual

A nicer alternative to text-decoration: underline where descenders do not clip the underline. Natively implemented as text-decoration-skip-ink: auto but it has less control over the underline.

HTML

<p class="pretty-text-underline">Pretty text underline without clipping descending letters.</p>
 

CSS

.pretty-text-underline {
   font-family: Arial, sans-serif;
   display: inline;
   font-size: 18px;
-  text-shadow: 1px 1px 0 #f5f6f9,
-    -1px 1px 0 #f5f6f9,
-    -1px -1px 0 #f5f6f9,
-    1px -1px 0 #f5f6f9;
+  text-shadow: 1px 1px 0 #f5f6f9, -1px 1px 0 #f5f6f9, -1px -1px 0 #f5f6f9, 1px -1px 0 #f5f6f9;
   background-image: linear-gradient(90deg, currentColor 100%, transparent 100%);
   background-position: 0 0.98em;
   background-repeat: repeat-x;
@@ -283,10 +329,18 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   background-color: rgba(0, 150, 255, 0.3);
   text-shadow: none;
 }
-

Demo

Pretty text underline without clipping descending letters.

Explanation

  1. text-shadow: ... has 4 values with offsets that cover a 4x4 px area to ensure the underline has a "thick" shadow that covers the line where descenders clip it. Use a color that matches the background. For a larger font, use a larger px size.
  2. background-image: linear-gradient(...) creates a 90deg gradient with the current text color (currentColor).
  3. The background-* properties size the gradient as 1x1px at the bottom and repeats it along the x-axis.
  4. The ::selection pseudo selector ensures the text shadow does not interfere with text selection.

Browser support

94.8%

⚠️ The distance of the underline from the text depends on the internal metrics of a font, so you must ensure everyone sees the same font (i.e. no system fonts which will change based on the OS).

Shape separator

Uses an SVG shape to separate two different blocks to create more a interesting visual appearance compared to standard horizontal separation.

HTML

<div class="shape-separator"></div>
+

Demo

Pretty text underline without clipping descending letters.

Explanation

  1. text-shadow: ... has 4 values with offsets that cover a 4x4 px area to ensure the underline has a "thick" shadow that covers the line where descenders clip it. Use a color that matches the background. For a larger font, use a larger px size.
  2. background-image: linear-gradient(...) creates a 90deg gradient with the current text color (currentColor).
  3. The background-* properties size the gradient as 1x1px at the bottom and repeats it along the x-axis.
  4. The ::selection pseudo selector ensures the text shadow does not interfere with text selection.

Browser support

95.4%

⚠️ The distance of the underline from the text depends on the internal metrics of a font, so you must ensure everyone sees the same font (i.e. no system fonts which will change based on the OS).

Reset all stylesvisual

Resets all styles to default values with one property. This will not affect direction and unicode-bidi properties.

HTML

<div class="reset-all-styles">
+  <h4>Title</h4>
+  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?</p>
+</div>
+

CSS

.reset-all-styles {
+  all: initial;
+}
+

Demo

Title

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

Explanation

The all property allows you to reset all styles (inherited or not) to default values.

Browser support

88.3%

⚠️ MS Edge status is under consideration.

Shape separatorvisual

Uses an SVG shape to separate two different blocks to create more a interesting visual appearance compared to standard horizontal separation.

HTML

<div class="shape-separator"></div>
 

CSS

.shape-separator {
   position: relative;
   height: 48px;
+  background: #333;
 }
 .shape-separator::after {
   content: '';
@@ -296,11 +350,27 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   height: 24px;
   bottom: 0;
 }
-

Demo

Explanation

  1. position: relative on the element establishes a Cartesian positioning context for pseudo elements.
  2. ::after defines a pseudo element.
  3. background-image: url(...) adds the SVG shape (a 24x24 triangle in base64 format) as the background image of the pseudo element, which repeats by default. It must be the same color as the block that is being separated.
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. width: 100% ensures the element stretches the entire width of its parent.
  6. height: 24px is the same height as the shape.
  7. bottom: 0 positions the pseudo element at the bottom of the parent.

Browser support

98.0%

✅ No caveats.

System font stack

Uses the native font of the operating system to get close to a native app feel.

HTML

<p class="system-font-stack">This text uses the system font.</p>
-

CSS

.system-font-stack {
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
+

Demo

Explanation

  1. position: relative on the element establishes a Cartesian positioning context for pseudo elements.
  2. ::after defines a pseudo element.
  3. background-image: url(...) adds the SVG shape (a 24x24 triangle in base64 format) as the background image of the pseudo element, which repeats by default. It must be the same color as the block that is being separated.
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. width: 100% ensures the element stretches the entire width of its parent.
  6. height: 24px is the same height as the shape.
  7. bottom: 0 positions the pseudo element at the bottom of the parent.

Browser support

98.3%

✅ No caveats.

Sibling fadeinteractivity

Fades out the siblings of a hovered item.

HTML

<div class="sibling-fade">
+  <span>Item 1</span>
+  <span>Item 2</span>
+  <span>Item 3</span>
+  <span>Item 4</span>
+  <span>Item 5</span>
+  <span>Item 6</span>
+</div>
+

CSS

span {
+  padding: 0 1rem;
+  transition: opacity 0.2s;
 }
-

Demo

This text uses the system font.

Explanation

The browser looks for each successive font, preferring the first one if possible, and falls back to the next if it cannot find the font (on the system or defined in CSS).

  1. -apple-system is San Francisco, used on iOS and macOS (not Chrome however)
  2. BlinkMacSystemFont is San Francisco, used on macOS Chrome
  3. Segoe UI is used on Windows 10
  4. Roboto is used on Android
  5. Oxygen-Sans is used on GNU+Linux
  6. Ubuntu is used on Linux
  7. "Helvetica Neue" and Helvetica is used on macOS 10.10 and below (wrapped in quotes because it has a space)
  8. Arial is a font widely supported by all operating systems
  9. sans-serif is the fallback sans-serif font if none of the other fonts are supported

Browser support

99+%

✅ No caveats.

Triangle

Creates a triangle shape with pure CSS.

HTML

<div class="triangle"></div>
+.sibling-fade:hover span:not(:hover) {
+  opacity: 0.5;
+}
+

Demo

Explanation

  1. transition: opacity 0.2s specifies that changes to opacity will be transitioned over 0.2 seconds.
  2. .sibling-fade:hover span:not(:hover) specifies that when the parent is hovered, select any span children that are not currently being hovered and change their opacity to 0.5.

Browser support

95.4%

✅ No caveats.

System font stackvisual

Uses the native font of the operating system to get close to a native app feel.

HTML

<p class="system-font-stack">This text uses the system font.</p>
+

CSS

.system-font-stack {
+  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
+    Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
+}
+

Demo

This text uses the system font.

Explanation

The browser looks for each successive font, preferring the first one if possible, and falls back to the next if it cannot find the font (on the system or defined in CSS).

  1. -apple-system is San Francisco, used on iOS and macOS (not Chrome however)
  2. BlinkMacSystemFont is San Francisco, used on macOS Chrome
  3. Segoe UI is used on Windows 10
  4. Roboto is used on Android
  5. Oxygen-Sans is used on GNU+Linux
  6. Ubuntu is used on Linux
  7. "Helvetica Neue" and Helvetica is used on macOS 10.10 and below (wrapped in quotes because it has a space)
  8. Arial is a font widely supported by all operating systems
  9. sans-serif is the fallback sans-serif font if none of the other fonts are supported

Browser support

99+%

✅ No caveats.

Trianglevisual

Creates a triangle shape with pure CSS.

HTML

<div class="triangle"></div>
 

CSS

.triangle {
   width: 0;
   height: 0;
@@ -308,11 +378,11 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   border-left: 20px solid transparent;
   border-right: 20px solid transparent;
 }
-

Demo

Explanation

View this link for a detailed explanation.

The color of the border is the color of the triangle. The side the triangle tip points corresponds to the opposite border-* property. For example, a color on border-top means the arrow points downward.

Experiment with the px values to change the proportion of the triangle.

Browser support

99+%

✅ No caveats.

Truncate text

If the text is longer than one line, it will be truncated and end with an ellipsis .

HTML

<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
+

Demo

Explanation

View this link for a detailed explanation.

The color of the border is the color of the triangle. The side the triangle tip points corresponds to the opposite border-* property. For example, a color on border-top means the arrow points downward.

Experiment with the px values to change the proportion of the triangle.

Browser support

99+%

✅ No caveats.

Truncate textlayout

If the text is longer than one line, it will be truncated and end with an ellipsis .

HTML

<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
 

CSS

.truncate-text {
   overflow: hidden;
   white-space: nowrap;
   text-overflow: ellipsis;
   width: 200px;
 }
-

Demo

This text will be truncated if it exceeds 200px in width.

Explanation

  1. overflow: hidden prevents the text from overflowing its dimensions (for a block, 100% width and auto height).
  2. white-space: nowrap prevents the text from exceeding one line in height.
  3. text-overflow: ellipsis makes it so that if the text exceeds its dimensions, it will end with an ellipsis.
  4. width: 200px; ensures the element has a dimension, to know when to get ellipsis

Browser support

98.1%

⚠️ Only works for single line elements.

\ No newline at end of file +

Demo

This text will be truncated if it exceeds 200px in width.

Explanation

  1. overflow: hidden prevents the text from overflowing its dimensions (for a block, 100% width and auto height).
  2. white-space: nowrap prevents the text from exceeding one line in height.
  3. text-overflow: ellipsis makes it so that if the text exceeds its dimensions, it will end with an ellipsis.
  4. width: 200px; ensures the element has a dimension, to know when to get ellipsis

Browser support

98.4%

⚠️ Only works for single line elements.

diff --git a/index.html b/index.html index 8bca32067..ec1680849 100644 --- a/index.html +++ b/index.html @@ -14,33 +14,49 @@
@@ -56,8 +72,134 @@
+
-

Box-sizing reset

+

Bouncing loaderanimation

+

Creates a bouncing loader animation.

+

HTML

<div class="bouncing-loader">
+  <div></div>
+  <div></div>
+  <div></div>
+</div>
+
+

CSS

@keyframes bouncing-loader {
+  from {
+    opacity: 1;
+    transform: translateY(0);
+  }
+  to {
+    opacity: 0.1;
+    transform: translateY(-1rem);
+  }
+}
+.bouncing-loader {
+  display: flex;
+  justify-content: center;
+}
+.bouncing-loader > div {
+  width: 1rem;
+  height: 1rem;
+  margin: 3rem 0.2rem;
+  background: #8385aa;
+  border-radius: 50%;
+  animation: bouncing-loader 0.6s infinite alternate;
+}
+.bouncing-loader > div:nth-of-type(2) {
+  animation-delay: 0.2s;
+}
+.bouncing-loader > div:nth-of-type(3) {
+  animation-delay: 0.4s;
+}
+
+

Demo

+
+
+
+
+
+
+
+ +

Explanation

+

Note: 1rem is usually 16px.

+
    +
  1. +

    @keyframes defines an animation that has two states, where the element changes opacity, and is translated up on the 2D plane using transform: translateY().

    +
  2. +
  3. +

    .bouncing-loader is the parent container of the bouncing circles and uses display: flex and justify-content: center to position them in the in the center.

    +
  4. +
  5. +

    Using .bouncing-loader > div, we target the three child divs of the parent to be styled. The divs are given a width and height of 1rem, using border-radius: 50% to turn + them from squares to circles.

    +
  6. +
  7. +

    margin: 3rem 0.2rem specifies that each circle has a top/bottom margin of 3rem and left/right margin of 0.2rem so that they do not directly touch each other, giving them some breathing room.

    +
  8. +
  9. +

    animation is a shorthand property for the various animation properties: animation-name, animation-duration, animation-iteration-count, animation-direction are used.

    +
  10. +
  11. +

    animation-delay is used on the second and third div respectively, so that each element does not start the animation at the same time.

    +
  12. +
+

Browser support

+
+
+ 95.3% +
+
+

✅ No caveats.

+ + + +
+
+

Box-sizing resetlayout

Resets the box-model so that widths and heights are not affected by their borders or padding.

CSS

html {
   box-sizing: border-box;
@@ -68,7 +210,7 @@
   box-sizing: inherit;
 }
 
-

Demo

+

Demo

Demo
@@ -83,15 +225,15 @@ border: 5px solid; } -

Explanation

+

Explanation

  1. box-sizing: border-box makes the addition of padding or borders not affect an element's width or height.
  2. box-sizing: inherit makes an element respect its parent's box-sizing rule.
-

Browser support

+

Browser support

- 98.2% + 98.4%

✅ No caveats.

@@ -100,11 +242,55 @@ https://caniuse.com/#feat=css3-boxsizing + +
-

Clearfix

+

Circlevisual

+

Creates a circle shape with pure CSS.

+

HTML

<div class="circle"></div>
+
+

CSS

.circle {
+  border-radius: 50%;
+  width: 2rem;
+  height: 2rem;
+  background: #333;
+}
+
+

Demo

+
+
+
+ +

Explanation

+

border-radius: 50% curves the borders of an element to create a circle.

+

Since a circle has the same radius at any given point, the width and height must be the same. Differing values will create an ellipse.

+

Browser support

+
+
+ 95.5% +
+
+

✅ No caveats.

+ + + +
+
+

Clearfixlayout

Ensures that an element self-clears its children.

-
Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.
+
Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.

HTML

<div class="clearfix">
   <div class="floated">float a</div>
   <div class="floated">float b</div>
@@ -112,7 +298,7 @@
 </div>
 

CSS

.clearfix::after {
-  content: "";
+  content: '';
   display: block;
   clear: both;
 }
@@ -120,7 +306,7 @@
   float: left;
 }
 
-

Demo

+

Demo

float a
@@ -138,22 +324,24 @@ float: left; } -

Explanation

+

Explanation

  1. .clearfix::after defines a pseudo-element.
  2. content: '' allows the pseudo-element to affect layout.
  3. clear: both indicates that the left, right or both sides of the element cannot be adjacent to earlier floated elements within the same block formatting context.
-

Browser support

+

Browser support

99+%
-

✅ No caveats.

+

⚠️ For this snippet to work properly you need to ensure that there are no non-floating children in the container and that there are no tall floats before the clearfixed container but in the same formatting context (e.g. floated columns).

+ +
-

Constant width to height ratio

+

Constant width to height ratiolayout

Given an element of variable width, it will ensure its height remains proportionate in a responsive fashion (i.e., its width to height ratio remains constant).

HTML

<div class="constant-width-to-height-ratio"></div>
 
@@ -163,7 +351,7 @@ padding-top: 50%; } -

Demo

+

Demo

Resize your browser window to see the proportion of the element remain the same.

@@ -175,19 +363,21 @@ padding-top: 50%; } -

Explanation

+

Explanation

padding-top and padding-bottom can be used as an alternative to height such that the percentage value causes an element's height to become a percentage of its parent's width, i.e. 50% means the height will be 50% of the parent element's width, which means it acts the same as width. This allows its proportion to remain constant.

-

Browser support

+

Browser support

99+%

⚠️ padding-top pushes any content within the element to the bottom.

+ +
-

Custom scrollbar

+

Custom scrollbarvisual

Customizes the scrollbar style for the document and elements with scrollable overflow, on WebKit platforms.

HTML

<div class="custom-scrollbar">
   <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?</p>
@@ -198,18 +388,18 @@
   width: 8px;
 }
 ::-webkit-scrollbar-track {
-  box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
+  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
   border-radius: 10px;
 }
 ::-webkit-scrollbar-thumb {
   border-radius: 10px;
-  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
+  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
 }
 /* Scrollable element */
 .some-element::webkit-scrollbar {
 }
 
-

Demo

+

Demo

@@ -237,7 +427,7 @@ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5); } -

Explanation

+

Explanation

  1. ::-webkit-scrollbar targets the whole scrollbar element.
  2. ::-webkit-scrollbar-track targets only the scrollbar track.
  3. @@ -246,10 +436,10 @@

    There are many other pseudo-elements that you can use to style scrollbars. For more info, visit the WebKit Blog

    -

    Browser support

    +

    Browser support

    - 87.3% + 88.0%

    ⚠️ Scrollbar styling doesn't appear to be on any standards track.

    @@ -258,9 +448,11 @@ https://caniuse.com/#feat=css-scrollbar + +
-

Custom text selection

+

Custom text selectionvisual

Changes the styling of text selection.

HTML

<p class="custom-text-selection">Select some of this text.</p>
 
@@ -273,7 +465,7 @@ color: white; } -

Demo

+

Demo

Select some of this text.

@@ -287,12 +479,12 @@ color: white; } -

Explanation

+

Explanation

::selection defines a pseudo selector on an element to style text within it when selected. Note that if you don't combine any other selector your style will be applied at document root level, to any selectable element.

-

Browser support

+

Browser support

- 84.6% + 84.9%

⚠️ Requires prefixes for full support and is not actually @@ -302,62 +494,11 @@ in any specification.

https://caniuse.com/#feat=css-selection + +
-

Custom variables

-

CSS variables that contain specific values to be reused throughout a document.

-

CSS

:root {
-    --some-color: #da7800;
-    --some-keyword: italic;
-    --some-size: 1.25em;
-    --some-complex-value: 1px 1px 2px WhiteSmoke, 0 0 1em SlateGray , 0 0 0.2em SlateGray;
-}
-
-

Demo

- - -
-
-

CSS is awesome!

-
-
- - - -

Explanation

-

Declare variable with --variable-name:.

-

Reuse declared variable throughout the document using the var(--variable-name) function.

-

Browser support

-
-
- 87.2% -
-
-

⚠️ This is an experimental technology.

- - - -
-
-

Disable selection

+

Disable selectioninteractivity

Makes the content unselectable.

HTML

<p>You can select me.</p>
 <p class="unselectable">You can't select me!</p>
@@ -366,7 +507,7 @@ If no link is provided, it defaults to 99+%. -->
   user-select: none;
 }
 
-

Demo

+

Demo

You can select me.

You can't select me!

@@ -376,29 +517,36 @@ If no link is provided, it defaults to 99+%. --> user-select: none; } -

Explanation

+

Explanation

user-select: none specifies that the text cannot be selected.

-

Browser support

+

Browser support

- 86.3% + 87.2%
-

⚠️ Requires prefixes for full support.

+

⚠️ Requires prefixes for full support. + ⚠️ This is not a secure method to prevent users from copying content.

+ +
-

Donut spinner

+

Donut spinneranimation

Creates a donut spinner that can be used to indicate the loading of content.

HTML

<div class="donut"></div>
 

CSS

@keyframes donut-spin {
-  0% { transform: rotate(0deg); }
-  100% { transform: rotate(360deg); }
+  0% {
+    transform: rotate(0deg);
+  }
+  100% {
+    transform: rotate(360deg);
+  }
 }
 .donut {
   display: inline-block;
@@ -410,7 +558,7 @@ If no link is provided, it defaults to 99+%. -->
   animation: donut-spin 1.2s linear infinite;
 }
 
-

Demo

+

Demo

@@ -433,12 +581,12 @@ If no link is provided, it defaults to 99+%. --> animation: snippet-demo__donut-spin 1.2s linear infinite; } -

Explanation

+

Explanation

Use a semi-transparent border for the whole element, except one side that will serve as the loading indicator for the donut. Use animation to rotate the element.

-

Browser support

+

Browser support

- 94.8% + 95.3%

⚠️ Requires prefixes for full support.

@@ -450,9 +598,11 @@ If no link is provided, it defaults to 99+%. --> https://caniuse.com/#feat=transforms2d + +
-

Easing variables

+

Easing variablesanimation

Variables that can be reused for transition-timing-function properties, more powerful than the built-in ease, ease-in, ease-out and ease-in-out.

HTML

<div class="easing-variables"></div>
 
@@ -486,7 +636,7 @@ If no link is provided, it defaults to 99+%. --> transform: rotate(45deg); } -

Demo

+

Demo

Hover
@@ -527,13 +677,13 @@ If no link is provided, it defaults to 99+%. --> transform: rotate(45deg); } -

Explanation

+

Explanation

The variables are defined globally within the :root CSS pseudo-class which matches the root element of a tree representing the document. In HTML, :root represents the <html> element and is identical to the selector html, except that its specificity is higher.

-

Browser support

+

Browser support

- 87.2% + 88.0%

✅ No caveats.

@@ -542,9 +692,11 @@ If no link is provided, it defaults to 99+%. --> https://caniuse.com/#feat=css-variables + +
-

Etched text

+

Etched textvisual

Creates an effect where text appears to be "etched" or engraved into the background.

HTML

<p class="etched-text">I appear etched into the background.</p>
 
@@ -555,7 +707,7 @@ If no link is provided, it defaults to 99+%. --> color: #b8bec5; } -

Demo

+

Demo

I appear etched into the background.

@@ -567,14 +719,14 @@ If no link is provided, it defaults to 99+%. --> text-shadow: 0 2px 0 white; } -

Explanation

+

Explanation

text-shadow: 0 2px white creates a white shadow offset 0px horizontally and 2px vertically from the origin position.

The background must be darker than the shadow for the effect to work.

The text color should be slightly faded to make it look like it's engraved/carved out of the background.

-

Browser support

+

Browser support

- 97.9% + 98.1%

✅ No caveats.

@@ -583,9 +735,11 @@ If no link is provided, it defaults to 99+%. --> https://caniuse.com/#feat=css-textshadow + +
-

Evenly distributed children

+

Evenly distributed childrenlayout

Evenly distributes child elements within a parent element.

HTML

<div class="evenly-distributed-children">
   <p>Item1</p>
@@ -598,7 +752,7 @@ If no link is provided, it defaults to 99+%. -->
   justify-content: space-between;
 }
 
-

Demo

+

Demo

Item1

@@ -613,16 +767,16 @@ If no link is provided, it defaults to 99+%. --> justify-content: space-between; } -

Explanation

+

Explanation

  1. display: flex enables flexbox.
  2. justify-content: space-between evenly distributes child elements horizontally. The first item is positioned at the left edge, while the last item is positioned at the right edge.

Alternatively, use justify-content: space-around to distribute the children with space around them, rather than between them.

-

Browser support

+

Browser support

- 97.8% + 98.1%

⚠️ Needs prefixes for full support.

@@ -631,9 +785,59 @@ If no link is provided, it defaults to 99+%. --> https://caniuse.com/#feat=flexbox + +
-

Gradient text

+

Flexbox centeringlayout

+

Horizontally and vertically centers a child element within a parent element using flexbox.

+

HTML

<div class="flexbox-centering">
+  <div class="child">Centered content.</div>
+</div>
+
+

CSS

.flexbox-centering {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+

Demo

+
+
+

Centered content.

+
+
+ +

Explanation

+
    +
  1. display: flex enables flexbox.
  2. +
  3. justify-content: center centers the child horizontally.
  4. +
  5. align-items: center centers the child vertically.
  6. +
+

Browser support

+
+
+ 98.1% +
+
+

⚠️ Needs prefixes for full support.

+ + + +
+
+

Gradient textvisual

Gives text a gradient color.

HTML

<p class="gradient-text">Gradient text</p>
 
@@ -643,7 +847,7 @@ If no link is provided, it defaults to 99+%. --> -webkit-background-clip: text; } -

Demo

+

Demo

Gradient text @@ -659,16 +863,16 @@ If no link is provided, it defaults to 99+%. --> margin: 0; } -

Explanation

+

Explanation

  1. background: -webkit-linear-gradient(...) gives the text element a gradient background.
  2. webkit-text-fill-color: transparent fills the text with a transparent color.
  3. webkit-background-clip: text clips the background with the text, filling the text with the gradient background as the color.
-

Browser support

+

Browser support

- 90.7% + 91.5%

⚠️ Uses non-standard properties.

@@ -677,9 +881,59 @@ If no link is provided, it defaults to 99+%. --> https://caniuse.com/#feat=text-stroke + +
-

Hairline border

+

Grid centeringlayout

+

Horizontally and vertically centers a child element within a parent element using grid.

+

HTML

<div class="grid-centering">
+  <div class="child">Centered content.</div>
+</div>
+
+

CSS

.grid-centering {
+  display: grid;
+  justify-content: center;
+  align-items: center;
+}
+
+

Demo

+
+
+

Centered content.

+
+
+ +

Explanation

+
    +
  1. display: grid enables grid.
  2. +
  3. justify-content: center centers the child horizontally.
  4. +
  5. align-items: center centers the child vertically.
  6. +
+

Browser support

+
+
+ 87.6% +
+
+

✅ No caveats.

+ + + +
+
+

Hairline bordervisual

Gives an element a border equal to 1 native device pixel in width, which can look very sharp and crisp.

HTML

<div class="hairline-border">text</div>
 
@@ -702,7 +956,7 @@ If no link is provided, it defaults to 99+%. --> } } -

Demo

+

Demo

Text with a hairline border around it.

@@ -726,15 +980,15 @@ If no link is provided, it defaults to 99+%. --> } } -

Explanation

+

Explanation

  1. box-shadow, when only using spread, adds a pseudo-border which can use subpixels*.
  2. Use @media (min-resolution: ...) to check the device pixel ratio (1dppx equals 96 DPI), setting the spread of the box-shadow equal to 1 / dppx.
-

Browser Support

+

Browser Support

- 95.0% + 95.5%

⚠️ Needs alternate syntax and JavaScript user agent checking for full support.

@@ -748,55 +1002,11 @@ If no link is provided, it defaults to 99+%. -->

*Chrome does not support subpixel values on border. Safari does not support subpixel values on box-shadow. Firefox supports subpixel values on both.

+ +
-

Horizontal and vertical centering

-

Horizontally and vertically centers a child element within a parent element.

-

HTML

<div class="horizontal-and-vertical-centering">
-  <div class="child"></div>
-</div>
-
-

CSS

.horizontal-and-vertical-centering {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-
-

Demo

-
-
-

Centered content.

-
-
- -

Explanation

-
    -
  1. display: flex enables flexbox.
  2. -
  3. justify-content: center centers the child horizontally.
  4. -
  5. align-items: center centers the child vertically.
  6. -
-

Browser support

-
-
- 97.8% -
-
-

⚠️ Needs prefixes for full support.

- -
-
-

Hover underline animation

+

Hover underline animationanimation

Creates an animated underline effect when the text is hovered over.

Credit: @@ -827,7 +1037,7 @@ If no link is provided, it defaults to 99+%. --> transform-origin: bottom left; } -

Demo

+

Demo

Hover this text to see the effect!

@@ -854,7 +1064,7 @@ If no link is provided, it defaults to 99+%. --> transform-origin: bottom left; } -

Explanation

+

Explanation

  1. display: inline-block makes the block p an inline-block to prevent the underline from spanning the entire parent width rather than just the content (text).
  2. position: relative on the element establishes a Cartesian positioning context for pseudo-elements.
  3. @@ -868,10 +1078,10 @@ If no link is provided, it defaults to 99+%. -->
  4. :hover::after then uses scaleX(1) to transition the width to 100%, then changes the transform-origin to bottom left so that the anchor point is reversed, allowing it transition out in the other direction when hovered off.
-

Browser support

+

Browser support

- 94.9% + 95.4%

✅ No caveats.

@@ -883,9 +1093,11 @@ If no link is provided, it defaults to 99+%. --> https://caniuse.com/#feat=css-transitions + +
-

Mouse cursor gradient tracking

+

Mouse cursor gradient trackingvisualinteractivity

A hover effect where the gradient follows the mouse cursor.

Credit: @@ -920,21 +1132,21 @@ If no link is provided, it defaults to 99+%. --> height: var(--size); background: radial-gradient(circle closest-side, pink, transparent); transform: translate(-50%, -50%); - transition: width .2s ease, height .2s ease; + transition: width 0.2s ease, height 0.2s ease; } .mouse-cursor-gradient-tracking:hover::before { --size: 200px; }

JavaScript

var btn = document.querySelector('.mouse-cursor-gradient-tracking')
-btn.onmousemove = function (e) {
+btn.onmousemove = function(e) {
   var x = e.pageX - btn.offsetLeft
   var y = e.pageY - btn.offsetTop
   btn.style.setProperty('--x', x + 'px')
   btn.style.setProperty('--y', y + 'px')
 }
 
-

Demo

+

Demo

-

Overflow scroll gradient

+

Overflow scroll gradientvisual

Adds a fading gradient to an overflowing element to better indicate there is more content to be scrolled.

HTML

<div class="overflow-scroll-gradient">
   <div class="overflow-scroll-gradient__scroller">
@@ -1021,22 +1235,25 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   content: '';
   position: absolute;
   bottom: 0;
-  width: 300px;
+  width: 240px;
   height: 25px;
-  background: linear-gradient(rgba(255, 255, 255, 0.001), white); /* transparent keyword is broken in Safari */
+  background: linear-gradient(
+    rgba(255, 255, 255, 0.001),
+    white
+  ); /* transparent keyword is broken in Safari */
   pointer-events: none;
 }
 .overflow-scroll-gradient__scroller {
   overflow-y: scroll;
   background: white;
-  width: 300px;
-  height: 250px;
+  width: 240px;
+  height: 200px;
   padding: 15px 0;
   line-height: 1.2;
   text-align: center;
 }
 
-

Demo

+

Demo

@@ -1052,7 +1269,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop content: ''; background: linear-gradient(rgba(255, 255, 255, 0.001), white); position: absolute; - width: 300px; + width: 240px; height: 25px; bottom: 0; pointer-events: none; @@ -1060,31 +1277,31 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop .snippet-demo__overflow-scroll-gradient__scroller { overflow-y: scroll; background: white; - width: 300px; - height: 250px; + width: 240px; + height: 200px; padding: 15px 0; line-height: 1.2; text-align: center; } -

Explanation

+

Explanation

  1. position: relative on the parent establishes a Cartesian positioning context for pseudo-elements.
  2. ::after defines a pseudo element.
  3. background-image: linear-gradient(...) adds a linear gradient that fades from transparent to white (top to bottom).
  4. position: absolute takes the pseudo element out of the flow of the document and positions it in relation to the parent.
  5. -
  6. width: 300px matches the size of the scrolling element (which is a child of the parent that has the pseudo element).
  7. +
  8. width: 240px matches the size of the scrolling element (which is a child of the parent that has the pseudo element).
  9. height: 25px is the height of the fading gradient pseudo-element, which should be kept relatively small.
  10. bottom: 0 positions the pseudo-element at the bottom of the parent.
  11. pointer-events: none specifies that the pseudo-element cannot be a target of mouse events, allowing text behind it to still be selectable/interactive.
-

Browser support

+

Browser support

- 94.8% + 95.4%

✅ No caveats.

@@ -1093,9 +1310,11 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop https://caniuse.com/#feat=css-gradients + +
-

Popout menu

+

Popout menuinteractivity

Reveals an interactive popout menu on hover.

HTML

<div class="reference">
   <div class="popout-menu">
@@ -1115,7 +1334,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   visibility: visible;
 }
 
-

Demo

+

Demo

@@ -1146,7 +1365,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop visibility: visible; } -

Explanation

+

Explanation

  1. position: relative on the reference parent establishes a Cartesian positioning context for its child.
  2. position: absolute takes the popout menu out of the flow of the document and positions it in relation to the parent.
  3. @@ -1155,16 +1374,18 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
  4. .reference:hover > .popout-menu means that when .reference is hovered over, select immediate children with a class of .popout-menu and change their visibility to visible, which shows the popout.
-

Browser support

+

Browser support

99+%

✅ No caveats.

+ +
-

Pretty text underline

+

Pretty text underlinevisual

A nicer alternative to text-decoration: underline where descenders do not clip the underline. Natively implemented as text-decoration-skip-ink: auto but it has less control over the underline.

HTML

<p class="pretty-text-underline">Pretty text underline without clipping descending letters.</p>
 
@@ -1172,10 +1393,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop font-family: Arial, sans-serif; display: inline; font-size: 18px; - text-shadow: 1px 1px 0 #f5f6f9, - -1px 1px 0 #f5f6f9, - -1px -1px 0 #f5f6f9, - 1px -1px 0 #f5f6f9; + text-shadow: 1px 1px 0 #f5f6f9, -1px 1px 0 #f5f6f9, -1px -1px 0 #f5f6f9, 1px -1px 0 #f5f6f9; background-image: linear-gradient(90deg, currentColor 100%, transparent 100%); background-position: 0 0.98em; background-repeat: repeat-x; @@ -1190,7 +1408,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop text-shadow: none; } -

Demo

+

Demo

Pretty text underline without clipping descending letters.

@@ -1214,7 +1432,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop text-shadow: none; } -

Explanation

+

Explanation

  1. text-shadow: ... has 4 values with offsets that cover a 4x4 px area to ensure the underline has a "thick" shadow that covers the line where descenders clip it. Use a color that matches the background. For a larger font, use a larger px size.
  2. @@ -1223,10 +1441,10 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
  3. The ::selection pseudo selector ensures the text shadow does not interfere with text selection.
-

Browser support

+

Browser support

- 94.8% + 95.4%

⚠️ The distance of the underline from the text depends on the internal metrics of a font, so you must ensure everyone sees the same font (i.e. no system fonts which will change based on the OS).

@@ -1238,15 +1456,59 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop https://caniuse.com/#feat=css-gradients + +
-

Shape separator

+

Reset all stylesvisual

+

Resets all styles to default values with one property. This will not affect direction and unicode-bidi properties.

+

HTML

<div class="reset-all-styles">
+  <h4>Title</h4>
+  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?</p>
+</div>
+
+

CSS

.reset-all-styles {
+  all: initial;
+}
+
+

Demo

+
+
+

Title

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

+
+
+ +

Explanation

+

The all property allows you to reset all styles (inherited or not) to default values.

+

Browser support

+
+
+ 88.3% +
+
+

⚠️ MS Edge status is under consideration.

+ + + +
+
+

Shape separatorvisual

Uses an SVG shape to separate two different blocks to create more a interesting visual appearance compared to standard horizontal separation.

HTML

<div class="shape-separator"></div>
 

CSS

.shape-separator {
   position: relative;
   height: 48px;
+  background: #333;
 }
 .shape-separator::after {
   content: '';
@@ -1257,7 +1519,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
   bottom: 0;
 }
 
-

Demo

+

Demo

@@ -1276,7 +1538,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop bottom: 0; } -

Explanation

+

Explanation

  1. position: relative on the element establishes a Cartesian positioning context for pseudo elements.
  2. ::after defines a pseudo element.
  3. @@ -1287,10 +1549,10 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
  4. height: 24px is the same height as the shape.
  5. bottom: 0 positions the pseudo element at the bottom of the parent.
-

Browser support

+

Browser support

- 98.0% + 98.3%

✅ No caveats.

@@ -1299,17 +1561,88 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop https://caniuse.com/#feat=svg + +
-

System font stack

+

Sibling fadeinteractivity

+

Fades out the siblings of a hovered item.

+

HTML

<div class="sibling-fade">
+  <span>Item 1</span>
+  <span>Item 2</span>
+  <span>Item 3</span>
+  <span>Item 4</span>
+  <span>Item 5</span>
+  <span>Item 6</span>
+</div>
+
+

CSS

span {
+  padding: 0 1rem;
+  transition: opacity 0.2s;
+}
+.sibling-fade:hover span:not(:hover) {
+  opacity: 0.5;
+}
+
+

Demo

+
+ +
+ +

Explanation

+
    +
  1. transition: opacity 0.2s specifies that changes to opacity will be transitioned over 0.2 seconds.
  2. +
  3. .sibling-fade:hover span:not(:hover) specifies that when the parent is hovered, select any span children that are not currently being hovered and change their opacity to 0.5.
  4. +
+

Browser support

+
+
+ 95.4% +
+
+

✅ No caveats.

+ + + +
+
+

System font stackvisual

Uses the native font of the operating system to get close to a native app feel.

HTML

<p class="system-font-stack">This text uses the system font.</p>
 

CSS

.system-font-stack {
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
+  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
+    Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;
 }
 
-

Demo

+

Demo

This text uses the system font.

@@ -1318,7 +1651,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; } -

Explanation

+

Explanation

The browser looks for each successive font, preferring the first one if possible, and falls back to the next if it cannot find the font (on the system or defined in CSS).

  1. -apple-system is San Francisco, used on iOS and macOS (not Chrome however)
  2. @@ -1331,16 +1664,18 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop
  3. Arial is a font widely supported by all operating systems
  4. sans-serif is the fallback sans-serif font if none of the other fonts are supported
-

Browser support

+

Browser support

99+%

✅ No caveats.

+ +
-

Triangle

+

Trianglevisual

Creates a triangle shape with pure CSS.

HTML

<div class="triangle"></div>
 
@@ -1352,7 +1687,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop border-right: 20px solid transparent; } -

Demo

+

Demo

@@ -1399,22 +1734,24 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop border-right: 15px solid transparent; } -

Explanation

+

Explanation

View this link for a detailed explanation.

The color of the border is the color of the triangle. The side the triangle tip points corresponds to the opposite border-* property. For example, a color on border-top means the arrow points downward.

Experiment with the px values to change the proportion of the triangle.

-

Browser support

+

Browser support

99+%

✅ No caveats.

+ +
-

Truncate text

+

Truncate textlayout

If the text is longer than one line, it will be truncated and end with an ellipsis .

HTML

<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
 
@@ -1425,7 +1762,7 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop width: 200px; } -

Demo

+

Demo

This text will be truncated if it exceeds 200px in width. @@ -1440,17 +1777,17 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop margin: 0; } -

Explanation

+

Explanation

  1. overflow: hidden prevents the text from overflowing its dimensions (for a block, 100% width and auto height).
  2. white-space: nowrap prevents the text from exceeding one line in height.
  3. text-overflow: ellipsis makes it so that if the text exceeds its dimensions, it will end with an ellipsis.
  4. width: 200px; ensures the element has a dimension, to know when to get ellipsis
-

Browser support

+

Browser support

- 98.1% + 98.4%

⚠️ Only works for single line elements.

@@ -1459,10 +1796,11 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop https://caniuse.com/#feat=text-overflow + +
-
- + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 6a87cd27a..064af836b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -236,7 +236,7 @@ "dev": true, "requires": { "browserslist": "1.7.7", - "caniuse-db": "1.0.30000810", + "caniuse-db": "1.0.30000812", "normalize-range": "0.1.2", "num2fraction": "1.2.2", "postcss": "5.2.18", @@ -261,7 +261,7 @@ "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", "dev": true, "requires": { - "caniuse-db": "1.0.30000810", + "caniuse-db": "1.0.30000812", "electron-to-chromium": "1.3.34" } }, @@ -1703,7 +1703,7 @@ "dev": true, "requires": { "browserslist": "1.7.7", - "caniuse-db": "1.0.30000810", + "caniuse-db": "1.0.30000812", "lodash.memoize": "4.1.2", "lodash.uniq": "4.5.0" }, @@ -1714,16 +1714,16 @@ "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", "dev": true, "requires": { - "caniuse-db": "1.0.30000810", + "caniuse-db": "1.0.30000812", "electron-to-chromium": "1.3.34" } } } }, "caniuse-db": { - "version": "1.0.30000810", - "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000810.tgz", - "integrity": "sha1-vSWDDEHvq2Qzmi44H0lnc0PIRQk=", + "version": "1.0.30000812", + "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000812.tgz", + "integrity": "sha1-KcKN1pJ+5D6MKrZI5SNqyRbJfWk=", "dev": true }, "caniuse-lite": { @@ -1934,6 +1934,11 @@ } } }, + "classnames": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.5.tgz", + "integrity": "sha1-+zgB1FNGdknvNgPH1hoCvRKb3m0=" + }, "cli-boxes": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", @@ -3107,6 +3112,14 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "feather-icons": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/feather-icons/-/feather-icons-4.7.0.tgz", + "integrity": "sha512-/dKhEelpOazdN0MtcBZTgqo1tZHn35y40V0sGPi6FzzwNbQ5H6vzTqYWWMeRtKw5JePmog7RthR/PYPA1lYNFA==", + "requires": { + "classnames": "2.2.5" + } + }, "filename-regex": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", @@ -3148,6 +3161,11 @@ "integrity": "sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=", "dev": true }, + "focus-visible": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/focus-visible/-/focus-visible-4.1.0.tgz", + "integrity": "sha512-K+bqYCQOPs5qHFag28o36TyILpqx43Qlq8/YxWdXEOWy3LZmxk8P+dhI5oPzuC28nwwIcerRNwRNiT3Msk0MqA==" + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -7601,7 +7619,7 @@ "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", "dev": true, "requires": { - "caniuse-db": "1.0.30000810", + "caniuse-db": "1.0.30000812", "electron-to-chromium": "1.3.34" } }, diff --git a/package.json b/package.json index 5501c504f..7325aa9c1 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "babel-cli": "^6.26.0", "babel-preset-env": "^1.6.1", "babel-preset-stage-2": "^6.24.1", - "caniuse-db": "^1.0.30000810", + "caniuse-db": "^1.0.30000812", "jsdom": "^11.6.2", "marked": "^0.3.16", "node-sass": "^4.7.2", @@ -25,5 +25,9 @@ "prettier": "^1.10.2", "pretty": "^2.0.0", "prismjs": "^1.11.0" + }, + "dependencies": { + "feather-icons": "^4.7.0", + "focus-visible": "^4.1.0" } } diff --git a/scripts/build.js b/scripts/build.js index a2aa0a056..bc9f6f797 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -2,71 +2,134 @@ const fs = require('fs') const path = require('path') const marked = require('marked') const pretty = require('pretty') -const { JSDOM } = require('jsdom') const caniuseDb = require('caniuse-db/data.json') -const { toKebabCase, emptyHTML } = require('../utils/utils.js') - -const renderer = new marked.Renderer() -renderer.heading = (text, level) => - level === 3 - ? `${text}` - : `${text}` -renderer.link = (url, _, text) => `${text || url}` +const { toKebabCase, createElement, template, dom } = require('../utils/utils.js') const SNIPPETS_PATH = './snippets' -const SNIPPET_CONTAINER_SELECTOR = '.main > .container' +const TAGS = [ + { + name: 'all', + icon: 'check' + }, + { + name: 'layout', + icon: 'layout' + }, + { + name: 'visual', + icon: 'eye' + }, + { + name: 'animation', + icon: 'loader' + }, + { + name: 'interactivity', + icon: 'edit-2' + } +] -const createElement = str => { - const el = document.createElement('div') - el.innerHTML = str - return el.firstElementChild +const renderer = new marked.Renderer() +renderer.heading = (text, level) => { + if (level === 3) { + return `${text}` + } else { + return ['HTML', 'CSS', 'JavaScript'].includes(text) + ? `${text}` + : `${text}` + } +} +renderer.link = (url, _, text) => `${text || url}` + +const document = dom('./src/html/index.html') +const components = { + backToTopButton: dom('./src/html/components/back-to-top-button.html'), + sidebar: dom('./src/html/components/sidebar.html'), + header: dom('./src/html/components/header.html'), + main: dom('./src/html/components/main.html'), + tags: dom('./src/html/components/tags.html') } -const template = markdown => ` -
- ${markdown} -
-` - -const document = new JSDOM(fs.readFileSync('./index.html', 'utf8')).window.document -const snippetContainer = document.querySelector('.main > .container') -const sidebarLinks = document.querySelector('.sidebar__links') -emptyHTML(snippetContainer, sidebarLinks) +const snippetContainer = components.main.querySelector('.container') +const sidebarLinkContainer = components.sidebar.querySelector('.sidebar__links') +TAGS.slice(1).forEach(tag => { + sidebarLinkContainer.append( + createElement(` + + `) + ) +}) for (const snippetFile of fs.readdirSync(SNIPPETS_PATH)) { const snippetPath = path.join(SNIPPETS_PATH, snippetFile) const snippetData = fs.readFileSync(snippetPath, 'utf8') const markdown = marked(snippetData, { renderer }) - const snippetTemplate = template(markdown) - const el = createElement(snippetTemplate) - snippetContainer.append(el) - - sidebarLinks.append( - createElement( - `${ - el.querySelector('h3').innerHTML - }` - ) - ) + const snippetEl = createElement(`
${markdown}
`) + snippetContainer.append(snippetEl) + // browser support usage const featUsageShares = (snippetData.match(/https?:\/\/caniuse\.com\/#feat=.*/g) || []).map( feat => { const featData = caniuseDb.data[feat.match(/#feat=(.*)/)[1]] return featData ? Number(featData.usage_perc_y + featData.usage_perc_a) : 100 } ) - - el.querySelector('h4:last-of-type').after( + const browserSupportHeading = snippetEl.querySelector('h4:last-of-type') + browserSupportHeading.after( createElement(`
${featUsageShares.length ? Math.min(...featUsageShares).toPrecision(3) : '99+'}%
- `) + `) ) + + // sidebar link + const link = createElement( + `${ + snippetEl.querySelector('h3').innerHTML + }` + ) + + // tags + const tags = (snippetData.match(//) || [, ''])[1] + .split(/,\s*/) + .forEach(tag => { + tag = tag.trim().toLowerCase() + snippetEl + .querySelector('h3') + .append( + createElement( + `${tag}` + ) + ) + + sidebarLinkContainer.querySelector(`section[data-type="${tag}"]`).append(link) + }) } +// build dom +TAGS.forEach(tag => + components.tags.append( + createElement( + `` + ) + ) +) +const content = document.querySelector('.content-wrapper') +content.before(components.backToTopButton) +content.before(components.sidebar) +content.append(components.header) +content.append(components.main) +components.main.querySelector('.container').prepend(components.tags) + // doctype declaration gets stripped, add it back in const html = ` ${pretty(document.documentElement.outerHTML, { ocd: true })} diff --git a/snippets/bouncing-loader.md b/snippets/bouncing-loader.md new file mode 100644 index 000000000..105167cc0 --- /dev/null +++ b/snippets/bouncing-loader.md @@ -0,0 +1,113 @@ +### Bouncing loader + +Creates a bouncing loader animation. + +#### HTML + +```html +
+
+
+
+
+``` + +#### CSS + +```css +@keyframes bouncing-loader { + from { + opacity: 1; + transform: translateY(0); + } + to { + opacity: 0.1; + transform: translateY(-1rem); + } +} +.bouncing-loader { + display: flex; + justify-content: center; +} +.bouncing-loader > div { + width: 1rem; + height: 1rem; + margin: 3rem 0.2rem; + background: #8385aa; + border-radius: 50%; + animation: bouncing-loader 0.6s infinite alternate; +} +.bouncing-loader > div:nth-of-type(2) { + animation-delay: 0.2s; +} +.bouncing-loader > div:nth-of-type(3) { + animation-delay: 0.4s; +} +``` + +#### Demo + +
+
+
+
+
+
+
+ + + +#### Explanation + +Note: `1rem` is usually `16px`. + +1. `@keyframes` defines an animation that has two states, where the element changes `opacity`, and is translated up on the 2D plane using `transform: translateY()`. + +2. `.bouncing-loader` is the parent container of the bouncing circles and uses `display: flex` + and `justify-content: center` to position them in the in the center. + +3. Using `.bouncing-loader > div`, we target the three child `div`s of the parent to be styled. The `div`s are given a width and height of `1rem`, using `border-radius: 50%` to turn them from squares to circles. + +4. `margin: 3rem 0.2rem` specifies that each circle has a top/bottom margin of `3rem` and left/right margin + of `0.2rem` so that they do not directly touch each other, giving them some breathing room. + +5. `animation` is a shorthand property for the various animation properties: `animation-name`, `animation-duration`, `animation-iteration-count`, `animation-direction` are used. + +6. `animation-delay` is used on the second and third `div` respectively, so that each element does not start the animation at the same time. + +#### Browser support + +✅ No caveats. + +* https://caniuse.com/#feat=css-animation + + diff --git a/snippets/box-sizing-reset.md b/snippets/box-sizing-reset.md index 1bdd33e2f..eb5a2e3fb 100644 --- a/snippets/box-sizing-reset.md +++ b/snippets/box-sizing-reset.md @@ -44,3 +44,5 @@ html { ✅ No caveats. * https://caniuse.com/#feat=css3-boxsizing + + diff --git a/snippets/circle.md b/snippets/circle.md new file mode 100644 index 000000000..60e373e18 --- /dev/null +++ b/snippets/circle.md @@ -0,0 +1,50 @@ +### Circle + +Creates a circle shape with pure CSS. + +#### HTML + +```html +
+``` + +#### CSS + +```css +.circle { + border-radius: 50%; + width: 2rem; + height: 2rem; + background: #333; +} +``` + +#### Demo + +
+
+
+ + + +#### Explanation + +`border-radius: 50%` curves the borders of an element to create a circle. + +Since a circle has the same radius at any given point, the `width` and `height` must be the same. Differing +values will create an ellipse. + +#### Browser support + +✅ No caveats. + +* https://caniuse.com/#feat=border-radius + + diff --git a/snippets/clearfix.md b/snippets/clearfix.md index e1fe64e6a..82ee5d7b7 100644 --- a/snippets/clearfix.md +++ b/snippets/clearfix.md @@ -18,7 +18,7 @@ Ensures that an element self-clears its children. ```css .clearfix::after { - content: ""; + content: ''; display: block; clear: both; } @@ -59,4 +59,6 @@ Ensures that an element self-clears its children. #### Browser support -✅ No caveats. +⚠️ For this snippet to work properly you need to ensure that there are no non-floating children in the container and that there are no tall floats before the clearfixed container but in the same formatting context (e.g. floated columns). + + diff --git a/snippets/constant-width-to-height-ratio.md b/snippets/constant-width-to-height-ratio.md index ff7ef0122..61ee886c8 100644 --- a/snippets/constant-width-to-height-ratio.md +++ b/snippets/constant-width-to-height-ratio.md @@ -43,3 +43,5 @@ causes an element's height to become a percentage of its parent's width, i.e. `5 #### Browser support ⚠️ `padding-top` pushes any content within the element to the bottom. + + diff --git a/snippets/custom-scrollbar.md b/snippets/custom-scrollbar.md index b63cc00ae..e6542dbbf 100644 --- a/snippets/custom-scrollbar.md +++ b/snippets/custom-scrollbar.md @@ -19,13 +19,13 @@ Customizes the scrollbar style for the document and elements with scrollable ove } ::-webkit-scrollbar-track { - box-shadow: inset 0 0 6px rgba(0,0,0,0.3); + box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); border-radius: 10px; } ::-webkit-scrollbar-thumb { border-radius: 10px; - box-shadow: inset 0 0 6px rgba(0,0,0,0.5); + box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5); } /* Scrollable element */ @@ -80,3 +80,5 @@ There are many other pseudo-elements that you can use to style scrollbars. For m ⚠️ Scrollbar styling doesn't appear to be on any standards track. * https://caniuse.com/#feat=css-scrollbar + + diff --git a/snippets/custom-text-selection.md b/snippets/custom-text-selection.md index ff5136934..927c0937a 100644 --- a/snippets/custom-text-selection.md +++ b/snippets/custom-text-selection.md @@ -48,3 +48,5 @@ Changes the styling of text selection. in any specification. * https://caniuse.com/#feat=css-selection + + diff --git a/snippets/disable-selection.md b/snippets/disable-selection.md index 3250911b7..5d3094414 100644 --- a/snippets/disable-selection.md +++ b/snippets/disable-selection.md @@ -37,5 +37,8 @@ Makes the content unselectable. #### Browser support ⚠️ Requires prefixes for full support. +⚠️ This is not a secure method to prevent users from copying content. * https://caniuse.com/#feat=user-select-none + + diff --git a/snippets/donut-spinner.md b/snippets/donut-spinner.md index 2c921414e..215972229 100644 --- a/snippets/donut-spinner.md +++ b/snippets/donut-spinner.md @@ -12,8 +12,12 @@ Creates a donut spinner that can be used to indicate the loading of content. ```css @keyframes donut-spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } } .donut { display: inline-block; @@ -59,3 +63,5 @@ serve as the loading indicator for the donut. Use `animation` to rotate the elem * https://caniuse.com/#feat=css-animation * https://caniuse.com/#feat=transforms2d + + diff --git a/snippets/easing-variables.md b/snippets/easing-variables.md index de2ba1600..711642b27 100644 --- a/snippets/easing-variables.md +++ b/snippets/easing-variables.md @@ -104,3 +104,5 @@ The variables are defined globally within the `:root` CSS pseudo-class which mat ✅ No caveats. * https://caniuse.com/#feat=css-variables + + diff --git a/snippets/etched-text.md b/snippets/etched-text.md index 81f81911e..0f03b8f65 100644 --- a/snippets/etched-text.md +++ b/snippets/etched-text.md @@ -49,3 +49,5 @@ of the background. ✅ No caveats. * https://caniuse.com/#feat=css-textshadow + + diff --git a/snippets/evenly-distributed-children.md b/snippets/evenly-distributed-children.md index 35d9a1370..52583be88 100644 --- a/snippets/evenly-distributed-children.md +++ b/snippets/evenly-distributed-children.md @@ -51,3 +51,5 @@ Alternatively, use `justify-content: space-around` to distribute the children wi ⚠️ Needs prefixes for full support. * https://caniuse.com/#feat=flexbox + + diff --git a/snippets/horizontal-and-vertical-centering.md b/snippets/flexbox-centering.md similarity index 64% rename from snippets/horizontal-and-vertical-centering.md rename to snippets/flexbox-centering.md index 6843798f4..3b651181b 100644 --- a/snippets/horizontal-and-vertical-centering.md +++ b/snippets/flexbox-centering.md @@ -1,19 +1,19 @@ -### Horizontal and vertical centering +### Flexbox centering -Horizontally and vertically centers a child element within a parent element. +Horizontally and vertically centers a child element within a parent element using `flexbox`. #### HTML ```html -
-
+
+
Centered content.
``` #### CSS ```css -.horizontal-and-vertical-centering { +.flexbox-centering { display: flex; justify-content: center; align-items: center; @@ -23,13 +23,13 @@ Horizontally and vertically centers a child element within a parent element. #### Demo
-
-

Centered content.

+
+

Centered content.

+ +#### Explanation + +1. `display: grid` enables grid. +2. `justify-content: center` centers the child horizontally. +3. `align-items: center` centers the child vertically. + +#### Browser support + +✅ No caveats. + +* https://caniuse.com/#feat=css-grid + + diff --git a/snippets/hairline-border.md b/snippets/hairline-border.md index c27caf34a..e473077f1 100644 --- a/snippets/hairline-border.md +++ b/snippets/hairline-border.md @@ -81,3 +81,5 @@ very sharp and crisp.
\*Chrome does not support subpixel values on `border`. Safari does not support subpixel values on `box-shadow`. Firefox supports subpixel values on both. + + diff --git a/snippets/hover-underline-animation.md b/snippets/hover-underline-animation.md index 51f8d3064..d84e1429c 100644 --- a/snippets/hover-underline-animation.md +++ b/snippets/hover-underline-animation.md @@ -69,7 +69,7 @@ Creates an animated underline effect when the text is hovered over. #### Explanation 1. `display: inline-block` makes the block `p` an `inline-block` to prevent the underline from -spanning the entire parent width rather than just the content (text). + spanning the entire parent width rather than just the content (text). 2. `position: relative` on the element establishes a Cartesian positioning context for pseudo-elements. 3. `::after` defines a pseudo-element. 4. `position: absolute` takes the pseudo element out of the flow of the document and positions it in relation to the parent. @@ -77,11 +77,11 @@ spanning the entire parent width rather than just the content (text). 6. `transform: scaleX(0)` initially scales the pseudo element to 0 so it has no width and is not visible. 7. `bottom: 0` and `left: 0` position it to the bottom left of the block. 8. `transition: transform 0.25s ease-out` means changes to `transform` will be transitioned over 0.25 seconds -with an `ease-out` timing function. + with an `ease-out` timing function. 9. `transform-origin: bottom right` means the transform anchor point is positioned at the bottom right of the block. 10. `:hover::after` then uses `scaleX(1)` to transition the width to 100%, then changes the `transform-origin` -to `bottom left` so that the anchor point is reversed, allowing it transition out in the other direction when -hovered off. + to `bottom left` so that the anchor point is reversed, allowing it transition out in the other direction when + hovered off. #### Browser support @@ -89,3 +89,5 @@ hovered off. * https://caniuse.com/#feat=transforms2d * https://caniuse.com/#feat=css-transitions + + diff --git a/snippets/mouse-cursor-gradient-tracking.md b/snippets/mouse-cursor-gradient-tracking.md index 771563d03..3af06d91c 100644 --- a/snippets/mouse-cursor-gradient-tracking.md +++ b/snippets/mouse-cursor-gradient-tracking.md @@ -41,7 +41,7 @@ A hover effect where the gradient follows the mouse cursor. height: var(--size); background: radial-gradient(circle closest-side, pink, transparent); transform: translate(-50%, -50%); - transition: width .2s ease, height .2s ease; + transition: width 0.2s ease, height 0.2s ease; } .mouse-cursor-gradient-tracking:hover::before { @@ -53,7 +53,7 @@ A hover effect where the gradient follows the mouse cursor. ```js var btn = document.querySelector('.mouse-cursor-gradient-tracking') -btn.onmousemove = function (e) { +btn.onmousemove = function(e) { var x = e.pageX - btn.offsetLeft var y = e.pageY - btn.offsetTop btn.style.setProperty('--x', x + 'px') @@ -131,7 +131,10 @@ var y = e.pageY - btn.offsetTop - btn.offsetParent.offsetTop ``` #### Browser support +
Requires JavaScript
⚠️ Requires JavaScript. * https://caniuse.com/#feat=css-variables + + diff --git a/snippets/overflow-scroll-gradient.md b/snippets/overflow-scroll-gradient.md index e4603cb4b..94dd4b776 100644 --- a/snippets/overflow-scroll-gradient.md +++ b/snippets/overflow-scroll-gradient.md @@ -22,16 +22,19 @@ Adds a fading gradient to an overflowing element to better indicate there is mor content: ''; position: absolute; bottom: 0; - width: 300px; + width: 240px; height: 25px; - background: linear-gradient(rgba(255, 255, 255, 0.001), white); /* transparent keyword is broken in Safari */ + background: linear-gradient( + rgba(255, 255, 255, 0.001), + white + ); /* transparent keyword is broken in Safari */ pointer-events: none; } .overflow-scroll-gradient__scroller { overflow-y: scroll; background: white; - width: 300px; - height: 250px; + width: 240px; + height: 200px; padding: 15px 0; line-height: 1.2; text-align: center; @@ -56,7 +59,7 @@ Adds a fading gradient to an overflowing element to better indicate there is mor content: ''; background: linear-gradient(rgba(255, 255, 255, 0.001), white); position: absolute; - width: 300px; + width: 240px; height: 25px; bottom: 0; pointer-events: none; @@ -64,8 +67,8 @@ Adds a fading gradient to an overflowing element to better indicate there is mor .snippet-demo__overflow-scroll-gradient__scroller { overflow-y: scroll; background: white; - width: 300px; - height: 250px; + width: 240px; + height: 200px; padding: 15px 0; line-height: 1.2; text-align: center; @@ -73,7 +76,7 @@ Adds a fading gradient to an overflowing element to better indicate there is mor #### Explanation @@ -81,10 +84,10 @@ document.querySelector('.snippet-demo__overflow-scroll-gradient__scroller').inne 1. `position: relative` on the parent establishes a Cartesian positioning context for pseudo-elements. 2. `::after` defines a pseudo element. 3. `background-image: linear-gradient(...)` adds a linear gradient that fades from transparent to white -(top to bottom). + (top to bottom). 4. `position: absolute` takes the pseudo element out of the flow of the document and positions it in relation to the parent. -5. `width: 300px` matches the size of the scrolling element (which is a child of the parent that has - the pseudo element). +5. `width: 240px` matches the size of the scrolling element (which is a child of the parent that has + the pseudo element). 6. `height: 25px` is the height of the fading gradient pseudo-element, which should be kept relatively small. 7. `bottom: 0` positions the pseudo-element at the bottom of the parent. 8. `pointer-events: none` specifies that the pseudo-element cannot be a target of mouse events, allowing text behind it to still be selectable/interactive. @@ -94,3 +97,5 @@ document.querySelector('.snippet-demo__overflow-scroll-gradient__scroller').inne ✅ No caveats. * https://caniuse.com/#feat=css-gradients + + diff --git a/snippets/popout-menu.md b/snippets/popout-menu.md index 191cd92e2..859a33475 100644 --- a/snippets/popout-menu.md +++ b/snippets/popout-menu.md @@ -75,3 +75,5 @@ Reveals an interactive popout menu on hover. #### Browser support ✅ No caveats. + + diff --git a/snippets/pretty-text-underline.md b/snippets/pretty-text-underline.md index aa768666c..ba2e137c4 100644 --- a/snippets/pretty-text-underline.md +++ b/snippets/pretty-text-underline.md @@ -16,10 +16,7 @@ Natively implemented as `text-decoration-skip-ink: auto` but it has less control font-family: Arial, sans-serif; display: inline; font-size: 18px; - text-shadow: 1px 1px 0 #f5f6f9, - -1px 1px 0 #f5f6f9, - -1px -1px 0 #f5f6f9, - 1px -1px 0 #f5f6f9; + text-shadow: 1px 1px 0 #f5f6f9, -1px 1px 0 #f5f6f9, -1px -1px 0 #f5f6f9, 1px -1px 0 #f5f6f9; background-image: linear-gradient(90deg, currentColor 100%, transparent 100%); background-position: 0 0.98em; background-repeat: repeat-x; @@ -70,13 +67,13 @@ Natively implemented as `text-decoration-skip-ink: auto` but it has less control #### Explanation 1. `text-shadow: ...` has 4 values with offsets that cover a 4x4 px area to ensure the underline - has a "thick" shadow that covers the line where descenders clip it. Use a color - that matches the background. For a larger font, use a larger `px` size. + has a "thick" shadow that covers the line where descenders clip it. Use a color + that matches the background. For a larger font, use a larger `px` size. 2. `background-image: linear-gradient(...)` creates a 90deg gradient with the current - text color (`currentColor`). + text color (`currentColor`). 3. The `background-*` properties size the gradient as 1x1px at the bottom and repeats it along the x-axis. 4. The `::selection` pseudo selector ensures the text shadow does not interfere with text - selection. + selection. #### Browser support @@ -84,3 +81,5 @@ Natively implemented as `text-decoration-skip-ink: auto` but it has less control * https://caniuse.com/#feat=css-textshadow * https://caniuse.com/#feat=css-gradients + + diff --git a/snippets/reset-all-styles.md b/snippets/reset-all-styles.md new file mode 100644 index 000000000..7d707a5ae --- /dev/null +++ b/snippets/reset-all-styles.md @@ -0,0 +1,47 @@ +### Reset all styles + +Resets all styles to default values with one property. This will not affect `direction` and `unicode-bidi` properties. + +#### HTML + +```html +
+

Title

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

+
+``` + +#### CSS + +```css +.reset-all-styles { + all: initial; +} +``` + +#### Demo + +
+
+

Title

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?

+
+
+ + + +#### Explanation + +The `all` property allows you to reset all styles (inherited or not) to default values. + +#### Browser support + +⚠️ MS Edge status is under consideration. + +* https://caniuse.com/#feat=css-all + + diff --git a/snippets/shape-separator.md b/snippets/shape-separator.md index a0a5479e4..dbcc4d8a8 100644 --- a/snippets/shape-separator.md +++ b/snippets/shape-separator.md @@ -14,6 +14,7 @@ Uses an SVG shape to separate two different blocks to create more a interesting .shape-separator { position: relative; height: 48px; + background: #333; } .shape-separator::after { content: ''; @@ -64,3 +65,5 @@ Uses an SVG shape to separate two different blocks to create more a interesting ✅ No caveats. * https://caniuse.com/#feat=svg + + diff --git a/snippets/sibling-fade.md b/snippets/sibling-fade.md new file mode 100644 index 000000000..fb454aeaa --- /dev/null +++ b/snippets/sibling-fade.md @@ -0,0 +1,74 @@ +### Sibling fade + +Fades out the siblings of a hovered item. + +#### HTML + +```html +
+ Item 1 + Item 2 + Item 3 + Item 4 + Item 5 + Item 6 +
+``` + +#### CSS + +```css +span { + padding: 0 1rem; + transition: opacity 0.2s; +} + +.sibling-fade:hover span:not(:hover) { + opacity: 0.5; +} +``` + +#### Demo + +
+ +
+ + + +#### Explanation + +1. `transition: opacity 0.2s` specifies that changes to opacity will be transitioned over 0.2 seconds. +2. `.sibling-fade:hover span:not(:hover)` specifies that when the parent is hovered, select any `span` children + that are not currently being hovered and change their opacity to `0.5`. + +#### Browser support + +✅ No caveats. + +* https://caniuse.com/#feat=css-sel3 +* https://caniuse.com/#feat=css-transitions + + diff --git a/snippets/system-font-stack.md b/snippets/system-font-stack.md index 5b725be11..bc92b01f9 100644 --- a/snippets/system-font-stack.md +++ b/snippets/system-font-stack.md @@ -12,7 +12,8 @@ Uses the native font of the operating system to get close to a native app feel. ```css .system-font-stack { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, + Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif; } ``` @@ -46,3 +47,5 @@ falls back to the next if it cannot find the font (on the system or defined in C #### Browser support ✅ No caveats. + + diff --git a/snippets/triangle.md b/snippets/triangle.md index b39bcf41e..5eb503bcc 100644 --- a/snippets/triangle.md +++ b/snippets/triangle.md @@ -89,3 +89,5 @@ Experiment with the `px` values to change the proportion of the triangle. #### Browser support ✅ No caveats. + + diff --git a/snippets/truncate-text.md b/snippets/truncate-text.md index 4f8024518..4781105a7 100644 --- a/snippets/truncate-text.md +++ b/snippets/truncate-text.md @@ -51,3 +51,5 @@ If the text is longer than one line, it will be truncated and end with an ellips ⚠️ Only works for single line elements. * https://caniuse.com/#feat=text-overflow + + diff --git a/src/css/components/base.scss b/src/css/components/base.scss index 16ac5bc11..ad1e40404 100644 --- a/src/css/components/base.scss +++ b/src/css/components/base.scss @@ -1,5 +1,12 @@ html { font-size: 0.95rem; + box-sizing: border-box; +} + +*, +*::after, +*::before { + box-sizing: inherit; } body { @@ -32,7 +39,7 @@ ol { } .container { - max-width: 1000px; + max-width: 64rem; padding: 0 2%; margin: 0 auto; } diff --git a/src/css/components/buttons.scss b/src/css/components/buttons.scss new file mode 100644 index 000000000..97e65aacc --- /dev/null +++ b/src/css/components/buttons.scss @@ -0,0 +1,76 @@ +.btn { + display: inline-block; + position: relative; + top: -1px; + font-weight: bold; + font-size: 0.75rem; + text-transform: uppercase; + color: #8385aa; + white-space: nowrap; + border: 1px solid #c8cbf2; + border-radius: 2px; + vertical-align: middle; + line-height: 2; + padding: 0 0.5rem; + margin-right: 0.5rem; + transition: all 0.1s ease-out; + outline: 0; + + &.is-large { + font-size: 0.95rem; + border-radius: 0.2rem; + + .feather { + top: -2px; + width: 18px; + height: 18px; + } + } + + .feather { + vertical-align: middle; + margin-right: 0.25rem; + position: relative; + top: -1px; + width: 14px; + height: 14px; + } +} + +button.btn { + user-select: none; + cursor: pointer; + margin-bottom: 1rem; + margin-right: 1rem; + background: white; + + &:hover { + background: #8385aa; + border-color: #8385aa; + color: white; + } + + &.focus-visible:focus { + box-shadow: 0 0 0 0.25rem transparentize(#8385aa, 0.5); + } + + &:active { + box-shadow: inset 0 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.2); + background: darken(#8385aa, 10); + border-color: darken(#8385aa, 10); + } + + &.is-active { + background: #7983ff; + border-color: #7983ff; + color: white; + + &.focus-visible:focus { + box-shadow: 0 0 0 0.25rem transparentize(#7983ff, 0.5); + } + } + + &.codepen-btn { + margin-top: 0.5rem; + } +} diff --git a/src/css/components/header.scss b/src/css/components/header.scss index de9465cb4..56c891c88 100644 --- a/src/css/components/header.scss +++ b/src/css/components/header.scss @@ -1,7 +1,8 @@ .header { position: relative; padding: 5rem 1rem 4rem; - background: linear-gradient(#5cd2ff, #5b67ff, #681ae4); + background: #5b67ff; + background: linear-gradient(45deg, #5cd2ff, #5b67ff, #681ae4); color: white; margin-bottom: 2rem; text-align: center; diff --git a/src/css/components/sidebar.scss b/src/css/components/sidebar.scss index 78bd98709..536e92abb 100644 --- a/src/css/components/sidebar.scss +++ b/src/css/components/sidebar.scss @@ -35,6 +35,7 @@ max-height: 378px; margin-top: 44px; box-shadow: 0 0.25rem 0.5rem -0.1rem rgba(0, 32, 128, 0.2); + padding-bottom: 1rem; &.is-active { transform: rotateX(0); @@ -59,6 +60,16 @@ border-color: pink; } } + + &__section { + padding: 0 0.75rem; + } + + &__section-heading { + text-transform: capitalize; + color: #e3f5ff; + margin-bottom: 0.5rem; + } } @media (min-width: 992px) { diff --git a/src/css/components/snippet.scss b/src/css/components/snippet.scss index d02e323ad..787521772 100644 --- a/src/css/components/snippet.scss +++ b/src/css/components/snippet.scss @@ -14,6 +14,10 @@ margin-bottom: 1.25rem; margin-top: 0; line-height: 1.3; + + span:not(.snippet__tag) { + margin-right: 0.75rem; + } } code:not([class*='lang']) { @@ -42,16 +46,20 @@ h4 { display: inline-block; margin: 1rem 0 0.5rem; + font-size: 1.1rem; line-height: 2; - padding: 0 0.5rem; - border-radius: 3px; - font-size: 0.9rem; - text-transform: uppercase; - background: #333; - border: 1px solid #c6d6ea; - border-bottom-color: darken(#c6d6ea, 5); - background: white; - box-shadow: 0 0.25rem 0.5rem -0.1rem rgba(0, 32, 64, 0.15); + + &[data-type] { + background: #333; + padding: 0 0.5rem; + border-radius: 3px; + font-size: 0.9rem; + text-transform: uppercase; + border: 1px solid #c6d6ea; + border-bottom-color: darken(#c6d6ea, 5); + background: white; + box-shadow: 0 0.25rem 0.5rem -0.1rem rgba(0, 32, 64, 0.15); + } &[data-type='HTML'] { color: white; @@ -107,6 +115,9 @@ top: 1rem; right: 0; } + + &__tag { + } } .snippet-demo { diff --git a/src/css/components/tags.scss b/src/css/components/tags.scss new file mode 100644 index 000000000..f5e322df5 --- /dev/null +++ b/src/css/components/tags.scss @@ -0,0 +1,84 @@ +.tags { + position: relative; + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + margin-bottom: 1rem; + + &__tag { + display: inline-block; + position: relative; + top: -1px; + font-weight: bold; + font-size: 0.75rem; + text-transform: uppercase; + color: #8385aa; + white-space: nowrap; + border: 1px solid #c8cbf2; + border-radius: 2px; + vertical-align: middle; + line-height: 2; + padding: 0 0.5rem; + margin-right: 0.5rem; + transition: all 0.1s ease-out; + outline: 0; + + &.is-large { + font-size: 0.95rem; + border-radius: 0.2rem; + + .feather { + top: -2px; + width: 18px; + height: 18px; + } + } + + .feather { + vertical-align: middle; + margin-right: 0.25rem; + position: relative; + top: -1px; + width: 14px; + height: 14px; + } + } + + button.tags__tag { + user-select: none; + cursor: pointer; + margin-bottom: 1rem; + margin-right: 1rem; + background: white; + + &:hover { + background: #8385aa; + border-color: #8385aa; + color: white; + } + + &.focus-visible:focus { + box-shadow: 0 0 0 0.25rem transparentize(#8385aa, 0.5); + } + + &:active { + box-shadow: inset 0 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.2); + background: darken(#8385aa, 10); + border-color: darken(#8385aa, 10); + } + + &.is-active { + background: #7983ff; + border-color: #7983ff; + color: white; + + &.focus-visible:focus { + box-shadow: 0 0 0 0.25rem transparentize(#7983ff, 0.5); + } + } + } +} + +@media (min-width: 579px) { +} diff --git a/src/css/index.scss b/src/css/index.scss index a17bae5dc..a341ee426 100644 --- a/src/css/index.scss +++ b/src/css/index.scss @@ -4,3 +4,5 @@ @import './components/header.scss'; @import './components/snippet.scss'; @import './components/back-to-top-button.scss'; +@import './components/tags.scss'; +@import './components/buttons.scss'; diff --git a/src/html/components/back-to-top-button.html b/src/html/components/back-to-top-button.html new file mode 100644 index 000000000..b7e710382 --- /dev/null +++ b/src/html/components/back-to-top-button.html @@ -0,0 +1 @@ + diff --git a/src/html/components/footer.html b/src/html/components/footer.html new file mode 100644 index 000000000..5f6968b80 --- /dev/null +++ b/src/html/components/footer.html @@ -0,0 +1 @@ +
diff --git a/src/html/components/header.html b/src/html/components/header.html new file mode 100644 index 000000000..6752c47cc --- /dev/null +++ b/src/html/components/header.html @@ -0,0 +1,10 @@ +
+
+ +

30 Seconds of CSS

+

+ A curated collection of useful CSS snippets you can understand in 30 seconds or less. +

+ Star +
+
diff --git a/src/html/components/main.html b/src/html/components/main.html new file mode 100644 index 000000000..ed318e4b9 --- /dev/null +++ b/src/html/components/main.html @@ -0,0 +1,4 @@ +
+
+
+
diff --git a/src/html/components/sidebar.html b/src/html/components/sidebar.html new file mode 100644 index 000000000..b9fceb908 --- /dev/null +++ b/src/html/components/sidebar.html @@ -0,0 +1,9 @@ + diff --git a/src/html/components/tags.html b/src/html/components/tags.html new file mode 100644 index 000000000..97a84ba3e --- /dev/null +++ b/src/html/components/tags.html @@ -0,0 +1 @@ + diff --git a/src/html/index.html b/src/html/index.html new file mode 100644 index 000000000..10b35a213 --- /dev/null +++ b/src/html/index.html @@ -0,0 +1,15 @@ + + + + + + 30 Seconds of CSS + + + + + + +
+ + diff --git a/src/js/components/CodepenCopy.js b/src/js/components/CodepenCopy.js new file mode 100644 index 000000000..f4dc6389f --- /dev/null +++ b/src/js/components/CodepenCopy.js @@ -0,0 +1,28 @@ +import { selectAll } from '../deps/utils' + +const snippets = selectAll('.snippet') +snippets.forEach(snippet => { + var codepenForm = document.createElement('form') + codepenForm.action = 'https://codepen.io/pen/define' + codepenForm.method = 'POST' + codepenForm.target = '_blank' + var codepenInput = document.createElement('input') + codepenInput.type = 'hidden' + codepenInput.name = 'data' + var codepenButton = document.createElement('button') + codepenButton.classList = 'btn is-large codepen-btn' + codepenButton.innerHTML = 'Edit on Codepen' + var css = snippet.querySelector('pre code.lang-css') + var html = snippet.querySelector('pre code.lang-html') + var js = snippet.querySelector('pre code.lang-js') + var data = { + css: css.textContent, + title: snippet.querySelector('h3 > span').textContent, + html: html ? html.textContent : '', + js: js ? js.textContent : '' + } + codepenInput.value = JSON.stringify(data) + codepenForm.appendChild(codepenInput) + codepenForm.appendChild(codepenButton) + snippet.insertBefore(codepenForm, snippet.querySelector('.snippet-demo').nextSibling) +}) diff --git a/src/js/components/Menu.js b/src/js/components/Menu.js deleted file mode 100644 index 9634c65aa..000000000 --- a/src/js/components/Menu.js +++ /dev/null @@ -1,38 +0,0 @@ -import jump from '../deps/jump' -import { select, selectAll, easeOutQuint } from '../deps/utils' - -const menu = select('.hamburger') -const links = select('.sidebar__links') -const ACTIVE_CLASS = 'is-active' - -const toggle = () => { - const els = [menu, links] - els.forEach(el => el.classList.toggle(ACTIVE_CLASS)) - menu.setAttribute('aria-expanded', menu.classList.contains(ACTIVE_CLASS) ? 'true' : 'false') -} - -menu.addEventListener('click', toggle) - -links.addEventListener('click', e => { - setTimeout(toggle, 40) - if (e.target.classList.contains('sidebar__link')) { - e.preventDefault() - jump(e.target.getAttribute('href'), { - duration: 750, - offset: window.innerWidth <= 768 ? -64 : -32, - easing: easeOutQuint - }) - } -}) - -document.addEventListener('click', e => { - if ( - !e.target.closest('.sidebar__links') && - !e.target.closest('.hamburger') && - links.classList.contains(ACTIVE_CLASS) - ) { - toggle() - } -}) - -export default { toggle } diff --git a/src/js/components/Sidebar.js b/src/js/components/Sidebar.js new file mode 100644 index 000000000..523738f1b --- /dev/null +++ b/src/js/components/Sidebar.js @@ -0,0 +1,50 @@ +import jump from '../deps/jump' +import { select, selectAll, easeOutQuint } from '../deps/utils' + +const menu = select('.hamburger') +const links = select('.sidebar__links') +const sections = selectAll('.sidebar__section') +const ACTIVE_CLASS = 'is-active' + +const toggle = () => { + if (window.innerWidth <= 991) { + const els = [menu, links] + els.forEach(el => el.classList.toggle(ACTIVE_CLASS)) + menu.setAttribute('aria-expanded', menu.classList.contains(ACTIVE_CLASS) ? 'true' : 'false') + } +} + +menu.addEventListener('click', toggle) + +links.addEventListener('click', e => { + const link = e.target.closest('.sidebar__link') + if (link) { + setTimeout(toggle, 50) + jump(link.getAttribute('href'), { + duration: 500, + easing: easeOutQuint, + offset: window.innerWidth <= 991 ? -64 : -32 + }) + } +}) + +document.addEventListener('click', e => { + if ( + !e.target.closest('.sidebar__links') && + !e.target.closest('.hamburger') && + links.classList.contains(ACTIVE_CLASS) + ) { + toggle() + } +}) + +EventHub.on('Tag.click', data => { + sections.forEach(section => { + section.style.display = 'block' + if (section.dataset.type !== data.type && data.type !== 'all') { + section.style.display = 'none' + } + }) +}) + +export default { toggle } diff --git a/src/js/components/Snippet.js b/src/js/components/Snippet.js new file mode 100644 index 000000000..01e6c0bad --- /dev/null +++ b/src/js/components/Snippet.js @@ -0,0 +1,13 @@ +import { selectAll } from '../deps/utils' + +const snippets = selectAll('.snippet') +EventHub.on('Tag.click', data => { + snippets.forEach(snippet => { + snippet.style.display = 'block' + if (data.type === 'all') return + const tags = selectAll('.tags__tag', snippet) + if (!tags.some(el => el.dataset.type === data.type)) { + snippet.style.display = 'none' + } + }) +}) diff --git a/src/js/components/Tag.js b/src/js/components/Tag.js new file mode 100644 index 000000000..734b2b320 --- /dev/null +++ b/src/js/components/Tag.js @@ -0,0 +1,14 @@ +import { select, selectAll, on } from '../deps/utils' + +const tagButtons = selectAll('button.tags__tag') + +const onClick = function() { + tagButtons.forEach(button => button.classList.remove('is-active')) + this.classList.add('is-active') + + EventHub.emit('Tag.click', { + type: this.dataset.type + }) +} + +tagButtons.forEach(button => on(button, 'click', onClick)) diff --git a/src/js/deps/utils.js b/src/js/deps/utils.js index bc16eef8e..ba5673286 100644 --- a/src/js/deps/utils.js +++ b/src/js/deps/utils.js @@ -1,8 +1,34 @@ -export const select = s => document.querySelector(s) -export const selectAll = s => [].slice.call(document.querySelectorAll(s)) +export const select = (s, parent = document) => parent.querySelector(s) + +export const selectAll = (s, parent = document) => [].slice.call(parent.querySelectorAll(s)) + export const scrollY = () => window.scrollY || window.pageYOffset + export const easeOutQuint = (t, b, c, d) => c * ((t = t / d - 1) * t ** 4 + 1) + b +export const on = (el, evt, fn, opts = {}) => { + const delegatorFn = e => e.target.matches(opts.target) && fn.call(e.target, e) + el.addEventListener(evt, opts.target ? delegatorFn : fn, opts.options || false) + if (opts.target) return delegatorFn +} + +export const createEventHub = () => ({ + hub: Object.create(null), + emit(event, data) { + ;(this.hub[event] || []).forEach(handler => handler(data)) + }, + on(event, handler) { + if (!this.hub[event]) this.hub[event] = [] + this.hub[event].push(handler) + }, + off(event, handler) { + const i = (this.hub[event] || []).findIndex(h => h === handler) + if (i > -1) this.hub[event].splice(i, 1) + } +}) + +window.EventHub = createEventHub() + /* * Make iOS behave normally. */ diff --git a/src/js/index.js b/src/js/index.js index dc97aae66..3bb46db20 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1,6 +1,9 @@ // Deps +import 'focus-visible' import 'normalize.css' import 'prismjs' +import feather from 'feather-icons' +feather.replace() // CSS import '../css/deps/prism.css' @@ -10,5 +13,8 @@ import '../css/index.scss' import './deps/polyfills' // Components -import Menu from './components/Menu' +import Sidebar from './components/Sidebar' import BackToTopButton from './components/BackToTopButton' +import Tag from './components/Tag' +import Snippet from './components/Snippet' +import CodepenCopy from './components/CodepenCopy' diff --git a/utils/utils.js b/utils/utils.js index 916e04530..1ce71e567 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -1,8 +1,20 @@ +const fs = require('fs') +const { JSDOM } = require('jsdom') + exports.toKebabCase = str => str && str .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g) .map(x => x.toLowerCase()) - .join('-'); + .join('-') -exports.emptyHTML = (...els) => els.forEach(el => (el.innerHTML = '')) +exports.dom = path => { + const doc = new JSDOM(fs.readFileSync(path, 'utf8')).window.document + return path.includes('component') ? doc.body.firstElementChild : doc +} + +exports.createElement = str => { + const el = new JSDOM().window.document.createElement('div') + el.innerHTML = str + return el.firstElementChild +}