Dotclear

source: themes/berlin/scss/init/_mixins-functions.scss @ 2640:489437dde4f5

Revision 2640:489437dde4f5, 531 bytes checked in by Anne Kozlika <kozlika@…>, 12 years ago (diff)

New default theme BERLIN, first commit.
Needs A LOT of clean-up and to be enhanced.

Line 
1// mixin svg fallback
2@mixin svg(
3    $file-name,
4    $css-img-path: $css-img-path) {
5    background-image: url($css-img-path+'/'+$file-name+'.png');
6    background-image: url($css-img-path+'/'+$file-name+'.svg'), none;
7}
8
9@mixin bg-with-svg(
10    $file-name,
11    $css-img-path: $css-img-path,
12    $repeat: no-repeat,
13    $position: 50% 50%,
14    $bg-color: transparent) {
15    background: url($css-img-path+'/'+$file-name+'.png') $repeat, $position, $bg-color;
16    background-image: url($css-img-path+'/'+$file-name+'.svg'), none;
17}
Note: See TracBrowser for help on using the repository browser.

Sites map