Thanks, Cutter...

I read the article you referenced and it did clarify some things,
but, being an overview of many different approaches and frameworks
to utilizing CSS, it opened up a large can of worms!

I'm going to check out the BEM approach, first, just as a starting point.

Re: your comments

Variables seem to be the same as a class, to me. I can set a variable
in one place in LESS and change the CSS by changing the variable. But
the exact same effect seems to take place if I create a class, assign
it to elements, then change the class. In that limited usage, a variable
seems no different than a class. One change, many affected elements.

I'll have to study more to understand your comment about
"variables and conditions", especially the "conditions" part. I don't
think I've read about "conditions", yet.

But one question I need clarification concerning: if I don't use LESS,
and work with a naming convention, such as BEM, can a pre-processor
still be used with that to compile several stylesheets into a single
stylesheet? Or do pre-processors work with only certains frameworks,
like LESS or SASS?

Rick

-----Original Message-----
From: Steve 'Cutter' Blades [mailto:cold.fus...@cutterscrossing.com] 
Sent: Tuesday, September 10, 2013 11:00 AM
To: cf-talk
Subject: Re: Best way to use LESS CSS with CF?


Variables are on small advantage. It's nice to be able to set a variable 
for a color, for instance, and reuse it in several hundred locations, in 
a variety of scenarios, without having to apply a separate class to 
thousands of lines of code throughout an application. If the color 
changes, the variable changes, it updates all of the other style 
declarations automatically, BAM!

Mixins are where the power truly shines through. The ability to write 
little functions, to dynamically create declarations based upon 
variables and conditions. That's very powerful.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer
____________
http://cutterscrossing.com


Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

"The best way to predict the future is to help create it"

On 9/10/2013 7:58 AM, Rick Faircloth wrote:
> I'm just now looking seriously into LESS and its usage.
> So far, I've really only looked at its use of variables.
>
> As far as variables are concerned, I don't see much difference
> between using variables and classes.
>
> I can define, say, a class this way in CSS:
>
> .titleColor { color: blue }
>
> and use it this way: <p class="titleColor">
>
> or define this way with LESS:
>
> @titleColor { color: blue }
>
> .titleColor { color: @titleColor }
>
> and use it this way: <p class="titleColor">
>
> Seems like LESS is more in this case and of
> insignificant benefit.
>
> Am I missing the point and best use of variables?
>
> Thanks for the feedback!
>
> Rick
>
>
>
>
> -----Original Message-----
> From: Steve 'Cutter' Blades [mailto:cold.fus...@cutterscrossing.com]
> Sent: Tuesday, September 10, 2013 7:58 AM
> To: cf-talk
> Subject: Re: Best way to use LESS CSS with CF?
>
>
> As a heavy Bootstrap user, I use LESS constantly. Once you really dig
> in, you find out quickly just how useful it truly is. Tech like LESS and
> SASS are perfect for those creating "skinned" applications.
>
> Steve 'Cutter' Blades
> Adobe Community Professional
> Adobe Certified Expert
> Advanced Macromedia ColdFusion MX 7 Developer
> ____________
> http://cutterscrossing.com
>
>
> Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
> https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
>
> "The best way to predict the future is to help create it"
>
> On 9/10/2013 6:34 AM, Rick Faircloth wrote:
>> Thanks for the info, Cutter...
>>
>> Are you currently using LESS? If so, what are your thoughts
>> about its usefulness?
>>
>>
>>
>> -----Original Message-----
>> From: Steve 'Cutter' Blades [mailto:cold.fus...@cutterscrossing.com]
>> Sent: Monday, September 09, 2013 8:19 AM
>> To: cf-talk
>> Subject: Re: Best way to use LESS CSS with CF?
>>
>>
>> You compile LESS down to css files, you don't serve it up to the browser.
>>
>> I like cfstatic for asset management. It can also compile LESS on the fly.
>>
>> Steve 'Cutter' Blades
>> Adobe Community Professional
>> Adobe Certified Expert
>> Advanced Macromedia ColdFusion MX 7 Developer
>> ____________
>> http://cutterscrossing.com
>>
>>
>> Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
>> https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
>>
>> "The best way to predict the future is to help create it"
>>
>> On 9/7/2013 1:53 PM, Rick Faircloth wrote:
>>> Nevermind... I figured out I need to set a mime type for .less
>>> and then set that type to text/css.
>>>
>>> In other words:
>>>
>>> Extention: less
>>> Mime Type: text/css
>>>
>>> Rick
>>>
>>> -----Original Message-----
>>> From: Rick Faircloth [mailto:r...@whitestonemedia.com]
>>> Sent: Saturday, September 07, 2013 2:39 PM
>>> To: cf-talk
>>> Subject: Best way to use LESS CSS with CF?
>>>
>>>
>>> Hi, all...
>>>
>>> Anyone using LESS with their CSS?
>>>
>>> I'm trying to get a handle on using LESS with my CSS,
>>> but I'm not quite getting it to work.
>>>
>>> I'm including the styles.less and the less.js files,
>>> but I'm missing something, because the variables don't
>>> affect the output.
>>>
>>> Do I need some kind of compiler for this to work with CF?
>>>
>>> Thanks for the guidance!
>>>
>>> Rick
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356736
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to