Questions tagged [sass-rails]

This tag is for the Ruby tools Sass precompiler used together with the Rails web framework.

19 questions
0
votes
1 answer

How to make sass color compare function with multiple parameters?

The current colorcontrast function comparing with three colors only. Looking for best solution to build with multiple parameters like @function colorcontrast($color, $rest...) { for color: colorcontrast(yellow, blue, orange, tomato, deekskyblue);…
Mo.
  • 26,306
  • 36
  • 159
  • 225
0
votes
1 answer

How can I organize js, css and scss files for proper import and pipelining?

Recently I bought a theme with assets in assets folders as:- 1) assets/js/something.js 2) assets/css/something.cs 3) assets/sass/main.scss (with import statements for files inside 3 no. dashboard folder and sub-folders inside dashboard) 4)…
codemilan
  • 1,072
  • 3
  • 12
  • 32
0
votes
2 answers

Variables are global with SASS but not SCSS

I have my application.css.scss set like this: @import "base/variables"; @import "./application/application"; Like the documentation says I am not using Sprockets' directives (require, require_tree, and require_self) at all so I expect my variables…
Zealot
  • 687
  • 4
  • 17
0
votes
0 answers

Error with sass-rails gem when trying to run rails server

I am using ruby 2.3.0, and rails 4.2.0. when I try to run rails server, I am getting error that seems to be related to sass-rails gem. I am not sure why this isn't working. Thank You here is the error: roman@quotebeam:~/workspace/hello_app$ rails…
Roman
  • 1
1
2