diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2018-08-27 19:13:42 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2018-08-27 19:13:42 -0400 |
| commit | 867353b827eabb294f1cc8d0d825669cf64b7138 (patch) | |
| tree | fdef5687b3ce7941104e6fa31763c1b08d0d82aa /mkdocs-material/src/assets/stylesheets/modules/search/_animation.scss | |
| parent | cbdf8b6925dcf4b5fd29868797fe0195de5680ee (diff) | |
switch from mkdocs-material to a custom readthedocs style for user docs as well
Diffstat (limited to 'mkdocs-material/src/assets/stylesheets/modules/search/_animation.scss')
| -rw-r--r-- | mkdocs-material/src/assets/stylesheets/modules/search/_animation.scss | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/mkdocs-material/src/assets/stylesheets/modules/search/_animation.scss b/mkdocs-material/src/assets/stylesheets/modules/search/_animation.scss deleted file mode 100644 index 37df48f3..00000000 --- a/mkdocs-material/src/assets/stylesheets/modules/search/_animation.scss +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (c) 2016 Martin Donath <martin.donath@squidfunk.com> - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -/* ---------------------------------------------------------------------------- - * Search animation - * ------------------------------------------------------------------------- */ - -/* - * Animate header bar in offset and opacity - */ -.bar { - transform: translate3d(0, 0, 0); - transition: opacity .2s cubic-bezier(.75, 0, .25, 1), - transform .4s cubic-bezier(.75, 0, .25, 1); - - /* - * Active search mode - */ - #toggle-search:checked ~ .header &, - .toggle-search & { - transform: translate3d(0, -56px, 0); - } - - /* - * Search animations - */ - &.search { - - /* - * Hide reset button by default - */ - .button-reset { - transform: scale(0.5, 0.5); - transition: opacity .4s cubic-bezier(.1, .7, .1, 1), - transform .4s cubic-bezier(.1, .7, .1, 1); - opacity: 0; - } - - /* - * Show reset button if search is not empty - */ - &.non-empty .button-reset { - transform: scale(1.0, 1.0); - opacity: 1; - } - } -} - -/* - * Search results - */ -.results { - transition: opacity .3s .1s, - width .0s .4s, - height .0s .4s; - - /* - * Active search mode - */ - #toggle-search:checked ~ .main &, - .toggle-search & { - transition: opacity .4s, - width .0s, - height .0s; - } - - /* - * Search result item link - */ - .list a { - transition: background .25s; - } -} - -/* - * Just hide and show bars, if browser doesn't support 3D transforms - */ -.no-csstransforms3d { - - /* - * Show default bar - */ - .bar.default { - display: table; - } - - /* - * Hide search bar - */ - .bar.search { - display: none; - margin-top: 0; - } - - /* - * Active search mode - */ - #toggle-search:checked ~ .header, - .toggle-search { - - /* - * Hide default bar - */ - .bar.default { - display: none; - } - - /* - * Show search bar - */ - .bar.search { - display: table; - } - } -}
\ No newline at end of file |
