extensions/MultimediaViewer/resources/mmv/mmv.mixins.less
raw| 1 | @import 'mediawiki.skin.variables.less'; |
| 2 | |
| 3 | // from https://stackoverflow.com/a/12178019/323407 |
| 4 | .fade-out-vertical( @backgroundColor: @background-color-base ) { |
| 5 | background-image: linear-gradient( to bottom, @background-color-transparent 0%, @backgroundColor 100% ); // W3C |
| 6 | } |
| 7 | |
| 8 | .fade-out-horizontal( @backgroundColor: @background-color-base ) { |
| 9 | background-image: linear-gradient( to right, @background-color-transparent 0%, @backgroundColor 100% ); // W3C |
| 10 | } |