If you use Sass extension, you can work with CSS variables.
First, let's create our css variable.
\:root
--MyColor: #5966D2
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
$font-name: 'GT-Walsheim'; | |
$font-path: '../fonts/'; | |
$weights: ( | |
400 'Regular', |
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import { fromPairs, map, pick } from "ramda"; | |
/** | |
* Wraps a React component into Angular component. Returns a new Angular component. | |
* | |
* Usage: angular.module('some.module').component('newAngularComponent', react2angular(MyReactComponent)) | |
* (the usage is the same as in similar lib https://github.com/coatue-oss/react2angular) | |
*/ |
<img srcset="image-320w.jpg 320w, | |
image-480w.jpg 480w, | |
image-800w.jpg 800w" | |
sizes="(max-width: 320px) 300px, | |
(max-width: 480px) 440px, | |
800px" | |
src="image-800w.jpg" alt="Image"> |
// WordPress hook call stack debug: | |
$debug = debug_backtrace(); | |
foreach($debug as $item){ | |
echo $item['file'] .':' .$item['line'] .' - '.$item['function'].'()' ."\n"; | |
if(!empty($item['args']) && is_array($item['args']) && isset($item['args'][1]) && is_string($item['args'][1])){ | |
echo ' --- '. $item['args'][1] ."\n"; | |
} | |
} |