Converts scss to css

CssSass

Css Problem Overview


Does anyone know how can I convert this code to standard css? It's not working in their editor.

http://codepen.io/andymcfee/pen/eyahr

Css Solutions


Solution 1 - Css

If you click on the title CSS (SCSS) in CodePen (don't change the pre-processor with the gear) it will switch to the compiled CSS view.

Codepen Screenshot of Compiled Preview

Solution 2 - Css

In terminal run this command in the folder where the systlesheets are:

sass --watch style.scss:style.css 

Source:

http://sass-lang.com/

When ever it notices a change in the .scss file it will update your .css

This only works when your .scss is on your local machine. Try copying the code to a file and running it locally.

Solution 3 - Css

This is an online/offline solution and very easy to convert. SCSS to CSS converter

enter image description here

Solution 4 - Css

First of all, you have to install Ruby if it is not on your machine.

1.Open a terminal window. 2.Run the command which ruby.

If you see a path such as /usr/bin/ruby, Ruby is installed. If you don't see any response or get an error message, Ruby is not installed. To verify that you have a current version of Ruby, run the command ruby -v.

If ruby is not installed on your machine then

sudo apt-get install ruby2.0
sudo apt-get install ruby2.0-dev
sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem2.0 1 

After then install Sass gem by running this command

sudo gem install sass --no-user-install

Then copy or add any .sass file and go to that file path and then

sass --watch style.scss:style.css 

When ever it notices a change in the .scss file it will update your .css

This only works when your .scss is on your local machine. Try copying the code to a file and running it locally.

Solution 5 - Css

You can use sass /sassFile.scss /cssFile.css

> Attention: Before using sass command you must install ruby and then install sass. > > For installing sass, after ruby installation type gem install sass in your Terminal > > Hint: sass compile SCSS files

Solution 6 - Css

Install Ruby-sass using below command
sudo apt-get -y update
sudo apt-get -y install ruby-full
sudo apt install ruby-sass
gem install bundler

Example
sass SCSS_FILE_PATH:CSS_FILE_PATH;

e.g sass mda/at-md-black.scss:css/at-md-black.css;

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBarbaraView Question on Stackoverflow
Solution 1 - Cssy8rView Answer on Stackoverflow
Solution 2 - Cssjoshuahornby10View Answer on Stackoverflow
Solution 3 - Css0xdwView Answer on Stackoverflow
Solution 4 - CssRahi.ShahView Answer on Stackoverflow
Solution 5 - CssAmerllicAView Answer on Stackoverflow
Solution 6 - CssSagar JadhavView Answer on Stackoverflow