Install SaSS offline in a Microsoft environment - css

Does anybody knows how to install SaSS in offline mode? Can't find the right "gem" file.

Gem file url : http://rubygems.org/gems/sass

Related

Getting started with 2SXC Bootstrap 4 Instant Theme

I've installed Bootstrap 4 Instant Theme on my dev machine, which has DNN installed. I can get the theme up OK.
I've installed Node.js and that looks OK.
I've run npm ci in the app/theme folder, and that seems to have run OK. There is a webpack.config.js file in the folder.
I don't get the "run webpack" instruction!
When I make changes to the _variables.scss file and save and then refresh my page, I don't get the theme updates.
The Client Resource Management was already disabled.
I've cleared the cache and restarted the application.
What am I missing, or what is missing from the documentation that it assumes I know?
Just to be sure: did you compile the scss? As Bootstrap 4 uses SASS, the scss need to be compiled in order to take effect.
Try
npx webpack --config webpack.config.js
cmd is enough to run the command. I use a .bat with this to quick compile.
run npm run webpack from commandline.
I have extended the instructions and explained the step better. I hope you were able to move on by now.
João Gomes, thx for your quick answer =)

Update SASS in ruby

I am working on a project based on ruby. How can I update the SASS engine? My PC has one version, but my project doesn't.
I've tried using gem update, but it doesn't update SASS.
Any help?
If you are using bundler, you can just run
bundle update sass
Without bundler rubygems can install fresh version, but your app may use old one. Try to uninstall older version.
But the best solution to escape such problems - is to use bundler.

Installing Sass on PC with no command line knowledge

I'm going through the Sass tutorial and am stuck at this part:
Once you have Ruby installed, you can install Sass by running
gem install sass
So I opened up command prompt and typed in
gem install sass
Just like it said. It doesn't work though. I get this message back:
'gem' is not recognized as an internal or external command, operable program or batch file.
I have almost no knowledge of command line but wish to use Sass. Can someone please walk me through what I'm doing wrong?
Yes I did searches for tutorials for people who don't know command line. I only came up with a Mac guide, which does me no good since I'm on Windows 8, and a program that my company has blocked access to.
This just means the gem executable is not in your %path%. You can either run the ruby installer again and select the check box during the install for "Include ruby in path" (or some similar message) or just add the path (something like C:\Ruby200) to your system %path% variable.
Use Ruby Installer for Windows to install Ruby. After that you'll be able to do gem install sass.
Also, i recommend you get familiar with Compass as soon as possible. Compass is a very ambiguous thing for newcomers, so here's an explaination for you: Import common modules by default when compiling SCSS
And here's a great source of information for SASS newbies: https://github.com/Snugug/training-glossary/wiki

How to know the path of Compass executable?

I am trying to use compass with Drupal 7, Basic theme and Compass module on my local hosting on Windows. It is already installed on my computer. Should i install it to my local webserver again, how can i know the path of existing Compass exutable?
Some more details would help get to the root of the problem:
Are you running compass from the command line, or using a GUI utility?
Did you install compass via gem install compass ?
What version of Windows are you running?
If you have properly installed ruby and compass, you should be able to cd into your drupal theme's directory and run compass watch to compile.
You can use the where command from the windows command prompt (where compass or, if that doesn't work where ruby) which will search your current directory and $PATH. If you cannot find compass, then you may need to reinstall compass/ruby.
Hope that helps!

Django + Mac osx how to use less css?

There is no less css command line compiler in mac osx. But I am trying out a project which needs to use less css.
Also less is used to compress the css files in the project. How do I handle this? I read in less website that its js can be run on a node.js server - http://lesscss.org/#-server-side-usage
But I am not understanding how to integrate it with django. What should be the value for the COMPRESS_PRECOMPILERS ?
COMPRESS_PRECOMPILERS = (
('text/less',""),
)
Any help appreciated from someone who has already solved this problem.
Install node.js and npm (I used homebrew to install node.js and the instructions at http://npmjs.org/ to install npm)
Install the command-line less compiler with npm install --global less
Add lessc to COMPASS_PRECOMPILERS (directions).
Here's the relevant snippet:
COMPRESS_PRECOMPILERS = (
('text/less', 'lessc {infile} {outfile}'),
)
Also, COMPRESS_PRECOMPILERS is from django_compressor, a django app, not from django itself. I think django_compressor looks quite good, but there are other options available as well.
Have you tried the less.app for OS X?
http://incident57.com/less/

Resources