Does anyone know how can I convert this code to standard css? It's not working in their editor.
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
You can use
sass /sassFile.scss /cssFile.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 commandruby -v
.If ruby is not installed on your machine then
After then install Sass gem by running this command
Then copy or add any .sass file and go to that file path and then
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.
This is an online/offline solution and very easy to convert them. Scss to css converter
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.In terminal run this command in the folder where the systlesheets are:
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.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;