IRMA web front-end

IRMA web front-end

Source: mixins/animation.scss, line 1

3.1 Animation

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

Source: mixins/animation.scss, line 8

3.1.1 animation($animation)

A mixin for vendor prefixing the animation declaration

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

Source: mixins/animation.scss, line 26

3.1.2 animation-delay($delay)

A mixin for vendor prefixing the animation-delay declaration

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

Source: mixins/animation.scss, line 44

3.1.3 keyframes($name) { ... }

A mixin for vendor prefixing the @keyframes declaration

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

Source: mixins/animation.scss, line 68

3.1.4 transition($props);

A mixin for vendor prefixing transitions

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

Source: mixins/center.scss, line 1

3.2 Center

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

.complicated-element {
  @include center;
}

Source: 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: mixins/reset.scss, line 1

3.4 reset($children-too: false)

A mixin that resets margin, 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: 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: mixins/responsiveness.scss, line 63

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: mixins/responsiveness.scss, line 99

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: mixins/responsiveness.scss, line 27

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: mixins/responsiveness.scss, line 45

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: mixins/responsiveness.scss, line 81

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: mixins/responsiveness.scss, line 9

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
}