react-code-dataset / wp-calypso /client /assets /stylesheets /shared /functions /_overflow-gradient.scss
react-code-dataset / wp-calypso /client /assets /stylesheets /shared /functions /_overflow-gradient.scss
Download wp-calypso/client/assets/stylesheets/shared/functions/_overflow-gradient.scss from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 950 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/assets/stylesheets/shared/functions/_overflow-gradient.scss
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/assets/stylesheets/shared/functions/_overflow-gradient.scss
-
curl -L -o _overflow-gradient.scss https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/assets/stylesheets/shared/functions/_overflow-gradient.scss
950 Bytes
| // ========================================================================== | |
| // Returns a linear gradient used to fade elements extending outside their parent | |
| // | |
| // The input value for the function must be individual RGB values. For conversion | |
| // of hexadecimal color values please use the hex-to-rgb() color function. | |
| // | |
| // The rgba() notation needs to be escaped in order to support CSS custom | |
| // properties. If it were not escaped SASS would interpret it as a SASS color | |
| // function which doesn't allow for CSS custom properties as input values. | |
| // | |
| // Usage: | |
| // background: overflow-gradient( var( --color-sidebar-background-rgb ) ); | |
| // border-image: overflow-gradient( var( --color-neutral-light-rgb ) ), to left ); | |
| // ========================================================================== | |
| @function overflow-gradient( $color, $stop: 90%, $direction: to right ) { | |
| @return linear-gradient( | |
| $direction, | |
| transparent, | |
| $color $stop | |
| ); | |
| } | |