]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * @class Global_CSS\r | |
3 | */\r | |
4 | \r | |
5 | /**\r | |
6 | * Creates a border on an element.\r | |
7 | * If any of the parameters is specified as a list, or if any paramter is null,\r | |
8 | * border-style, border-width, and border-color will be specified as separate properties,\r | |
9 | * otherwise all will be collapsed into a single "border" property.\r | |
10 | *\r | |
11 | * @param {number/list} $width\r | |
12 | * The border-width\r | |
13 | *\r | |
14 | * @param {string/list} $style\r | |
15 | * The border-style\r | |
16 | *\r | |
17 | * @param {color/list} $color\r | |
18 | * The border-color\r | |
19 | *\r | |
20 | * @private\r | |
21 | */\r | |
22 | @mixin border($width: null, $style: null, $color: null) {\r | |
23 | @if $width != null and $style != null and $color != null and\r | |
24 | length($width) == 1 and length($style) == 1 and length($color) == 1 {\r | |
25 | border: $width $style $color;\r | |
26 | } @else {\r | |
27 | border-width: $width;\r | |
28 | border-style: $style;\r | |
29 | border-color: $color;\r | |
30 | }\r | |
31 | } |