Changeset 49799
- Timestamp:
- 12/14/2020 03:20:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/assets/sass/02-tools/functions.scss
r49574 r49799 47 47 } 48 48 49 // ep set function to set a value in nested maps50 // uthor Hugo Giraudel51 // ccess public52 // aram {Map} $map - Map53 // aram {List} $keys - Key chaine54 // aram {*} $value - Value to assign55 // eturn {Map}49 // Deep set function to set a value in nested maps 50 // @author Hugo Giraudel 51 // @access public 52 // @param {Map} $map - Map 53 // @param {List} $keys - Key chaine 54 // @param {*} $value - Value to assign 55 // @return {Map} 56 56 // 57 // ample:58 // _prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px);57 // Example: 58 // $__prefix-default-config: map-deep-set($__prefix-default-config, "layouts" "M", 650px); 59 59 @function map-deep-set($map, $keys, $value) { 60 60 $maps: ($map); … … 64 64 // Warn the user we will be overriding it with $value 65 65 @if type-of(nth($keys, -1)) == "map" { 66 @warn "The last key you specified is a map; it will be overrid edwith `#{$value}`.";66 @warn "The last key you specified is a map; it will be overridden with `#{$value}`."; 67 67 } 68 68
Note: See TracChangeset
for help on using the changeset viewer.