Yivi css

Yivi css

Source: src/mixins/animation.scss, line 1

3.1.1 Animation

These are some really simple mixins to write clean and DRY animations and leave the annoying vendor specific prefixing to the mixin.

animation($animation)

A mixin for vendor prefixing the animation declaration

.complicated-element {
  @include animation(animation-name 2s infinite linear);
}

Source: src/mixins/animation.scss, line 28

3.1.2 animation-delay($delay)

A mixin for vendor prefixing the animation-delay declaration

.complicated-element {
  @include animation-delay(2s);
}

Source: src/mixins/animation.scss, line 48

3.1.3 keyframes($name) { ... }

A mixin for vendor prefixing the @keyframes declaration

@include keyframes(animation-name) {
    // Your animation here
}

Source: src/mixins/animation.scss, line 74

3.1.4 transition($props);

A mixin for vendor prefixing transitions

.complicated-element {
  @include transition(transform 0.2s ease-in-out);
}

Source: src/mixins/center.scss, line 1

3.2 Center

Center the content in this element. Both vertically and horizontally.

.complicated-element {
  @include center;
}

Source: src/mixins/fonts.scss, line 1

3.3 font($family:, $size:, $color:)

Set the default styling for font family and size.

p {
  @include font;
}
  • The font family, defaults to $default-font

    $family
  • The font size, defaults to $default-font-size

    $size
  • The color to use for the font, defaults to $text-color

    $color

Source: src/mixins/reset.scss, line 1

3.4 reset($children-too: false)

A mixin that resets margin, background color, padding and box-sizing to reliable defaults on the given element (and optionally all its children).

.complicated-element {
  @include reset;
}
  • Apply the reset to all the element's children too. Defaults to false. Only use this option if you are sure that no unknown components can ever be a child of your element.

    $children-too

Source: src/mixins/responsiveness.scss, line 1

3.5 Responsiveness

We'll probably want to revisit this some time soon, but for now it will get us going.

Source: src/mixins/responsiveness.scss, line 71

3.5.1 on-large-computer {}

Mixin to specify styling that is only applicable to devices that have a mouse pointer with a minimum screen width of 768 pixels.

@include on-large-computer {
  Styling to apply
}

Source: src/mixins/responsiveness.scss, line 111

3.5.2 on-large-screen {}

Mixin to specify styling that is only applicable to devices that have a minimum screen width of 768 pixels.

@include on-large-screen {
   // Styling to apply
}

Source: src/mixins/responsiveness.scss, line 31

3.5.3 on-large-touchscreen {}

Mixin to specify styling that is only applicable to touchscreen devices with a minimum screen width of 768 pixels.

@include on-large-touchscreen {
   // Styling to apply
}

Source: src/mixins/responsiveness.scss, line 51

3.5.4 on-small-computer {}

Mixin to specify styling that is only applicable to devices that have a mouse pointer with a maximum screen width of 768 pixels.

@include on-small-computer {
   // Styling to apply
}

Source: src/mixins/responsiveness.scss, line 91

3.5.5 on-small-screen {}

Mixin to specify styling that is only applicable to devices that have a maximum screen width of 768 pixels.

@include on-small-screen {
  Styling to apply
}

Source: src/mixins/responsiveness.scss, line 11

3.5.6 on-small-touchscreen {}

Mixin to specify styling that is only applicable to touchscreen devices with a maximum screen width of 768 pixels.

@include on-small-touchscreen {
   // Styling to apply
}