Closed (fixed)
Project:
Omega
Version:
7.x-4.0-beta6
Component:
Ohm
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2013 at 23:52 UTC
Updated:
11 Aug 2013 at 17:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
dddbbb commentedPatch attached.
Comment #2
fubhy commentedVariables are required very early as they are (potentially) needed by external libraries (e.g. compass reads from the $legacy variables to adjust the output for which IE version you want to support). Hence, they have to be available everywhere (so, yes, "_utility.scss" is the right place) and they have to be imported early.
You have to understand the variable inheritance in Sass to fully understand why it works like this and makes total sense. Please read about variable inheritance and how the "!default" suffix works to fully understand this (you can find that in the sass documentation on the web).
Comment #3
dddbbb commentedThanks for taking the time to reply but I'm not sure if a) I still don't quite understand your reasoning (entirely possible - hence not re-opening the issue) or b) perhaps you've misunderstood the point I was trying to make. I'll try to clarify in case of the latter.
I totally get this and it's not what I'm disputing. My question is not, "why are variables loaded so early?", nor is it "why are variables loaded in _utility.scss?". My question is "why are variables imported *again* in _dependencies.scss when they've just been imported via _utility.scss, especially given the import order in _utility.scss (variables followed by dependencies - naturally)?" It seems to me that that second import of variables (in _dependecies.scss. *after* importing all the libraries) is doing nothing. Commenting out that import line & recompiling to CSS seems prove that theory: no errors, no visible/functional difference that I've managed to spot.
I have read up on the !default suffix in Sass as you suggested but it still doesn't seem to shed any light on the above point. The suffix is only used once in Ohm (abstractions/_grid.scss) to help with toggling susy-grid-background. I've tested around this and my patch doesn't seem to affect any of that.
If you're still confident that I'm wrong then please don't worry about replying - I'm sure you're very busy maintaining this splendid project; I'm sure I'll figure it out eventually and I don't want to be an unnecessary PITA :D
Comment #4
fubhy commentedOh, yes, I misunderstood you. Sorry... Just answered it quickly while on the train and didn't check the code nor read the question thoroughly. My bad. Yes, it's redundant to import it in _dependencies.scss again. Must be a copy&paste error.
Comment #5
fubhy commentedCommited to 4.x-dev. Also fixed it in the extended starterkit before commit. Congratulations on your first commit.
http://drupalcode.org/project/omega.git/commit/b18f26d
Comment #6
dddbbb commentedA credit!! Woop!
May it be the first of many :D
Thanks.