diff options
Diffstat (limited to 'src/props-shortcodes.scss')
| -rw-r--r-- | src/props-shortcodes.scss | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/props-shortcodes.scss b/src/props-shortcodes.scss new file mode 100644 index 0000000..2c678a7 --- /dev/null +++ b/src/props-shortcodes.scss | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | //// | ||
| 2 | /// Shorter version of the prop-related functions. Useful to reduce clutter. | ||
| 3 | /// | ||
| 4 | /// @group Props shortcodes | ||
| 5 | /// | ||
| 6 | /// @access public | ||
| 7 | //// | ||
| 8 | |||
| 9 | /// | ||
| 10 | /// @alias iro-props-namespace | ||
| 11 | /// | ||
| 12 | @mixin namespace($name) { | ||
| 13 | @include iro-props-namespace($name); | ||
| 14 | } | ||
| 15 | |||
| 16 | /// | ||
| 17 | /// @alias iro-props-ns-name | ||
| 18 | /// | ||
| 19 | @function namespace() { | ||
| 20 | @return iro-props-ns-name(); | ||
| 21 | } | ||
| 22 | |||
| 23 | /// | ||
| 24 | /// @alias iro-props-store | ||
| 25 | /// | ||
| 26 | @function store($map, $tree: $iro-props-default-tree, $merge: false, $global: false) { | ||
| 27 | @return iro-props-store($map, $tree, $merge, $global); | ||
| 28 | } | ||
| 29 | |||
| 30 | /// | ||
| 31 | /// @alias iro-props-store | ||
| 32 | /// | ||
| 33 | @mixin store($map, $tree: $iro-props-default-tree, $merge: false, $global: false) { | ||
| 34 | @include iro-props-store($map, $tree, $merge, $global); | ||
| 35 | } | ||
| 36 | |||
| 37 | /// | ||
| 38 | /// @alias iro-props-clear | ||
| 39 | /// | ||
| 40 | @mixin clear($tree: $iro-props-default-tree) { | ||
| 41 | @include iro-props-clear($tree); | ||
| 42 | } | ||
| 43 | |||
| 44 | /// | ||
| 45 | /// @alias iro-props-clear | ||
| 46 | /// | ||
| 47 | @function clear($tree: $iro-props-default-tree) { | ||
| 48 | @return iro-props-clear($tree); | ||
| 49 | } | ||
| 50 | |||
| 51 | /// | ||
| 52 | /// @alias iro-props-get | ||
| 53 | /// | ||
| 54 | @function prop($key: (), $tree: $iro-props-default-tree, $default: null, $global: false) { | ||
| 55 | @return iro-props-get($key, $tree, $default, $global); | ||
| 56 | } | ||
| 57 | |||
| 58 | /// | ||
| 59 | /// @alias iro-props-get-native | ||
| 60 | /// | ||
| 61 | @function n-prop($key, $tree: null, $default: null, $global: false) { | ||
| 62 | @return iro-props-get-native($key, $tree, $default, $global); | ||
| 63 | } | ||
| 64 | |||
| 65 | /// | ||
| 66 | /// @alias iro-props-assign-native | ||
| 67 | /// | ||
| 68 | @mixin n-assign($tree: $iro-props-default-tree, $root: (), $skip: (), $prefix: '', $global: false) { | ||
| 69 | @include iro-props-assign-native($tree, $root, $skip, $prefix, $global); | ||
| 70 | } | ||
| 71 | |||
| 72 | /// | ||
| 73 | /// @alias iro-props-ref | ||
| 74 | /// | ||
| 75 | @function ref($tree: $iro-props-default-tree, $key: null, $global: false) { | ||
| 76 | @return iro-props-ref($tree, $key, $global); | ||
| 77 | } | ||
