Skip to content

Instantly share code, notes, and snippets.

@cwillsey06
Last active June 17, 2023 06:17
Show Gist options
  • Select an option

  • Save cwillsey06/d0aab41a6088c199cf801238d230e20f to your computer and use it in GitHub Desktop.

Select an option

Save cwillsey06/d0aab41a6088c199cf801238d230e20f to your computer and use it in GitHub Desktop.
Minimize Copepen Header
/* ==UserStyle==
@name Minimize Copepen Header
@namespace github.com/openstyles/stylus
@version 1.0.0
@description minimizes codepen header-bar (supposedly a pro feature...)
@author cwillsey06
@preprocessor uso
@var text panel-height "header height when minimized" 5px
@var text panel-opacity "header opacity when minimized" 0
@var text animation-dur "header animation duration" 500ms
@var text animation-del "header animation delay" 1000ms
==/UserStyle== */
@-moz-document regexp("https?://codepen.io/.*?pen.*") {
#main-header:not(:hover) {
height: /*[[panel-height]]*/;
opacity: /*[[panel-opacity]]*/;
transition-duration: /*[[animation-dur]]*/;
transition-delay: /*[[animation-del]]*/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment