Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
@mixin box-shadow($shadow...) {
1
@mixin box-shadow($shadow...) {
2
  @if $enable-shadows {
2
  @if $enable-shadows {
3
    $result: ();
3
    $result: ();
Línea 4... Línea 4...
4
 
4
 
5
    @if (length($shadow) == 1) {
5
    @each $value in $shadow {
6
      // We can pass `@include box-shadow(none);`
6
      @if $value != null {
7
      $result: $shadow;
7
        $result: append($result, $value, "comma");
8
    } @else {
-
 
9
      // Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
8
      }
10
      @for $i from 1 through length($shadow) {
-
 
11
        @if nth($shadow, $i) != "none" {
9
      @if $value == none and length($shadow) > 1 {
12
          $result: append($result, nth($shadow, $i), "comma");
-
 
13
        }
10
        @warn "The keyword 'none' must be used as a single argument.";
14
      }
11
      }
-
 
12
    }
15
    }
13
 
16
    @if (length($result) > 0) {
14
    @if (length($result) > 0) {
17
      box-shadow: $result;
15
      box-shadow: $result;
18
    }
16
    }
19
  }
17
  }