Angular Component
variables
red
$red: #ff0000;Description
Example variable for color red
Type
Color
Author
Philip Callender
green
$green: #00ff00;Description
Example variable for color green
Type
Color
Author
Philip Callender
blue
$blue: #0000ff;Description
Example variable for color blue
Type
Color
Author
Philip Callender
csss
pastac-example-component
@css pastac-example-component() { ... }.red
@css .red() { ... }mixins
size
@mixin size($width, $height: $width) { ... }Description
Example mixin to size elements in a single line. This mixin is essentially a short hand to define both width and height simultaneously.
Parameters
| parameterName | parameterDescription | parameterType | parameterDefault value |
|---|---|---|---|
$width | Element's width | Length | —none |
$height | Element's height | Length | $width |
Output
width and height
Example
Sizing .foo
.foo {
@include size(100%, 3em);
}Author
Philip Callender