Inline SVG in CSS via Webpack - svg

I would like to have SVG's written inline in the CSS. In other projects I did this using https://github.com/haithembelhaj/sass-inline-svg in the grunt task. Works fine and I would like to use this solution in a project (Angular), which is built with Webpack.
Important is, that i have to change the colors (stroke, fill) via CSS.
Does anyone know if & how I get this in or if not, if there is an equivalent solution as Webpack plugin?

Related

How do I change CSS in Magento 2?

The website has a blog and I want to make a font a bit larger. How do I find the right CSS to change?
I used to do it in WordPress. You would just go inspect element, find .body and change font-size to 16px or whatever you want.
In Magento2 everything is in line 2.
Answer: You need to install gulp. After you install gulp you have to find where he stores his CSS. After that you need to run gulp so he can process it and viola.
The answer to your question is :
You should not edit/modify files within pub/* or vendor/* directory.
Pub is for deployment and vendor is for default structure, which you
override via your template or custom modules. Instead:
create a new theme inside app/design/frontend/{vendor}/{yourTheme}/. You can use Blank or Luma
theme. You can also create new theme which inherites from Blank
(inheritance is defined within theme.xml). If you are already using
some theme then skip this step.
edit .less within your theme so the changes stay visible and don't get replaced when clearing the cache or upgrading the system.
Use grunt to compile your .less into deployment files.
You can also setup sourcemaps to pin point your styling within the theme .less files so you can be more productive.
See here: https://magento.stackexchange.com/a/96480
Personally i would advise you not to modify an installed theme, because after an update you will probably need to do it again.
If you know some CSS it should not be hard to make it in another theme.
Does it help ?
Solution: You need to install gulp. After you install gulp you have to find where he stores his css. After that you need to run gulp so he can process it and viola.

Fix or disable Stylus preprocessing for Basic/Starter node.js web project

I've created both a Basic Express 3 project and a Starter Express 3 project in Visual Studio 2015 Community Edition and I notice that, although the .styl file is where I'm supposed to write my styles, there's no syntax support / IntelliSense / coloring.
Web Essentials 2015.1 is installed but doesn't seem to bring anything extra to the table in this regard.
Can I either
make this Stylus support work out of the box for the templates or
disable this particular css preprocessing altogether in favor of simple css?
because as it stands now, this is killing productivity.
Removing the .styl file will break the file watch and will avoid the preprocessor compiling a css file based upon the .styl file.
You can now simply use standard css or add e.g. a LESS file instead.
It was a straightforward answer to a straightforward question, but one that might prove useful to someone.

Sublime text syntax coloring quote issue

I'm using sublime text 3 to code some react native stuff and when writing in text components I use quotes that mess up all the syntax coloring as in the picture below. Is there any way to fix this ?
React JSX syntax
JSX is the JavaScript Syntax extension you normally use in your render method.
Correct Color Scheme
Since JSX is an extension to the plain JavaScript, Sublime doesn't know about it. You have to tell Sublime to use the extension babel-sublime.
Installation of babel-sublime
Just follow the official documentation to install this plugin. I don't write it down, in case something changes in the future.
Also check the documentation about Package Control, which you use to manage your Sublime Packages.

Map not showing colors when using HighCharts with Map plugin

As can be seen at the following url http://www.highcharts.com/studies/map-from-svg.htm, when rendering a map with Highmaps from SVG the color range is no longer working on the map. Instead all countries/continents are the same color.
I do know for a fact that this used to work correctly as I have a working version locally with an older version of the maps plugin 'Map plugin v0.1 for Highcharts'. However when I upgrade my Highcharts version and Map plugin then it no longer works as expected.
With the newer api for HighMaps plotOptions.map.colorRange no longer seems to exist.
I have also tried colorAxis with dataClasses and min/max but this does not work either. In fact I can't find an example where this works while using an SVG instead of .js map file.
If there is a way to do this with the new HighMaps please help.

how to use susy with compass.app

I'm using compass.app from compass.handlino.com and I'm wondering if it's possible to use the Susy responsive grid system without have to use the command line.
I chose Compass.app because it allows me to use SASS and SCSS and watch files without using the command line, so i'd like to know if its also possible to use Susy.
I've searched everywhere and I haven't been able to find a concise answer. Can I use Susy with Compass.app for windows, and if so How?
Thanks
Yes, you can use compass.app or fire.app create a susy project:
Create Project > susy > project
Screenshot:
http://d.pr/i/t4XN
or add #import "susy"; in your scss file directly.

Resources