Complete the code to get the color value from the map.
$colors: (primary: #ff0000, secondary: #00ff00); $main-color: map-get($colors, [1]);
The map-get function retrieves the value for the key primary from the $colors map.
Complete the code to get the font size from the map.
$settings: (font-size: 16px, line-height: 1.5); $size: map-get($settings, [1]);
The map-get function fetches the value for the key font-size from the $settings map.
Fix the error in the code to correctly get the padding value.
$layout: (margin: 10px, padding: 20px); $pad: map-get($layout, [1]);
The key padding exists in the $layout map and is used to get the padding value.
Fill both blanks to get the correct values from the map.
$theme: (color: #333, font: Arial); $text-color: map-get($theme, [1]); $font-family: map-get($theme, [2]);
The keys color and font are used to get the text color and font family from the $theme map.
Fill all three blanks to correctly access values from the map.
$config: (width: 100px, height: 200px, display: block); $w: map-get($config, [1]); $h: map-get($config, [2]); $d: map-get($config, [3]);
The keys width, height, and display are used to get their respective values from the $config map.
