|
@@ -58,6 +58,9 @@ both compile to:
|
|
|
width: 65%;
|
|
width: 65%;
|
|
|
*********************/
|
|
*********************/
|
|
|
|
|
|
|
|
|
|
+@function calc-percent($target, $container) {
|
|
|
|
|
+ @return ($target / $container) * 100%;
|
|
|
|
|
+}
|
|
|
@function cp($target, $container) {
|
|
@function cp($target, $container) {
|
|
|
@return calc-percent($target, $container);
|
|
@return calc-percent($target, $container);
|
|
|
-}
|
|
|
|
|
|
|
+}
|