]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-base/sass/etc/mixins/border.scss
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-base / sass / etc / mixins / border.scss
CommitLineData
6527f429
DM
1/**\r
2 * Creates a border on an element.\r
3 * If any of the parameters is specified as a list, or if any paramter is null,\r
4 * border-style, border-width, and border-color will be specified as separate properties,\r
5 * otherwise all will be collapsed into a single "border" property.\r
6 *\r
7 * @param {number/list} $width\r
8 * The border-width\r
9 *\r
10 * @param {string/list} $style\r
11 * The border-style\r
12 *\r
13 * @param {color/list} $color\r
14 * The border-color\r
15 * \r
16 * @member Global_CSS\r
17 * @private\r
18 */\r
19@mixin border($width: null, $style: null, $color: null) {\r
20 @if $width != null and $style != null and $color != null and\r
21 length($width) == 1 and length($style) == 1 and length($color) == 1 {\r
22 border: $width $style $color;\r
23 } @else {\r
24 border-width: $width;\r
25 border-style: $style;\r
26 border-color: $color;\r
27 }\r
28}