Differences between SCSS and LESS - sass - Stack Overflow

文章推薦指數: 80 %
投票人數:10人

Both Sass and Less are CSS preprocessors. ... A CSS preprocessor is basically a scripting language that extends CSS and then compiles it into ... Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam Collectives™onStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore DifferencesbetweenSCSSandLESS AskQuestion Asked 3years,9monthsago Modified 2years,10monthsago Viewed 32ktimes 31 1 IhavereadaboutSCSSandLESS.ButIcan'tunderstandthedifferencesclearly. IknowSCSSandLESSbothhavemorefunctionalityofCSS(ImeanextensionofCSS). WhatisdifferentbetweenSCSSandLESS? Whichoneisbetter? sassless Share Improvethisquestion Follow editedJul16,2019at7:46 Cœur 34.7k2424goldbadges185185silverbadges251251bronzebadges askedAug24,2018at11:10 BanukobhanNagendramBanukobhanNagendram 2,07533goldbadges2020silverbadges2222bronzebadges 2 1 What'sthedifferencebetweenPythonandRuby?Lots.Likelytoomuchtoanswerhere.Searching"SASSvsLess"willgiveyoumanyrelevanthitsthatcomparethemindetail.SASSisprobablybetter,butthat'sjustanopinion. – Amadan Aug24,2018at11:19 1 @asyardI'veapprovedyoureditforthetitle,butrejectedtheeditpartforthebody. – Cœur Jul16,2019at7:47 Addacomment  |  2Answers 2 Sortedby: Resettodefault Highestscore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 31 BothSassandLessareCSSpreprocessors. Fromkeycdn.com ACSSpreprocessorisbasicallyascriptinglanguagethatextendsCSSandthencompilesitintoregularCSS. SoSassandLessdon'tchangethefunctionalityofCSS,astheyarecompiledintoplainoldCSS.WhattheydoismakeiteasiertowriteandmaintainCSSwithtoolssuchasmixins,nesting,variables,andmore. SCSS,whichstandsfor'SassyCSS'isoneoftwosyntaxesforSass. Fromthesassreference: Thesecondandoldersyntax,knownastheindentedsyntax(orsometimesjust"Sass"),providesamoreconcisewayofwritingCSS. Thedifference BothSassandLesshaveverysimilarfeatures.SassusesRubywhereasLessusesJavascript.Therearesyntacticaldifferences,forexample,Sassuses$forvariableswhereaslessuses@. Therearesomeslightlymoresubjectivedifferences,thiswebsiteclaimsthat"LESSHasMoreUser-FriendlyDocumentationThanSass",howeverpersonallyIhavefoundtheSassdocumentationandexamplesveryeasytouse. Share Improvethisanswer Follow answeredAug24,2018at11:32 KeirKeir 57633silverbadges88bronzebadges Addacomment  |  10 SCSSandLESSareboth"supersets"ofvanillaCSS.ThatmeansvalidCSSisautomaticallyalsovalidSCSSandLESS,butnotnecessarilytheotherwayaround. ThedifferencebetweenSCSSandLESSisthattheyhaveadifferentsyntax.Theymostlyhavethesamefunctionalities. YoucanreadmoreaboutSCSSandLESShere. Share Improvethisanswer Follow answeredAug24,2018at11:18 jrswgtrjrswgtr 2,18788goldbadges2222silverbadges4141bronzebadges Addacomment  |  YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedsasslessoraskyourownquestion. TheOverflowBlog Remoteworkiskillingbigoffices.Citiesmustchangetosurvive Onthequantuminternet,datadoesn’tstream;itteleports FeaturedonMeta AnnouncingthearrivalofValuedAssociate#1214:Dalmarus Improvementstositestatusandincidentcommunication CollectivesUpdate:IntroducingBulletins The[comma]tagisbeingburninated AskWizardTestResultsandNextSteps Visitchat Related 2311 What'sthedifferencebetweenSCSSandSass? 576 ImportregularCSSfileinSCSSfile? 428 Sass.scss:Nestingandmultipleclasses? 3 Sharingavariablesfilebetweenlessandscss 184 WhatisthedifferencebetweenCSSandSCSS? 0 SCSSif..statementconversioninLESS HotNetworkQuestions WhyisthevoteofnoconfidenceontheprimeministerforConservativeMPsonly? Interpretingstandarderrorfordummyvariablesinlinearregressionmodels Findingthelengthofalineconstructedbycoordinates Isitpettytoexpectpeopletouseyourtitleinaprofessionalsetting? Measurethetotalruntimeofafunctioninaproject Cananon-mountpullacart? Isthisplacecalledabarn? What'sthefastest/mostfun/craziestwaytomakeaflowerpotinblender? Whenwesayarigidbodyisasystemofparticles,whatexactlyare'particles'here? CanIseehowacompanyisusingitsdebt? ExpectationswhendressinginaDutchhotelroom(nocurtains) WhyisSamunsureaboutwhetherornothehastakenouttheElf-ropebeforeinchapter12ofTwoTowers? howtocombineverticesintoasurface \NewDocumentCommandnotworkinginpgfplotswhen\newcommanddoes InnersillcorrosionimplicationsinRover452003 IsthereenoughsupportintheUKparliamentforanoconfidencevoteinthePM? Howadd1inmathexpressioninsideTikZ\foreachloop MakethelistFibonacci-like Ifeelmorecomfortableworkingfromanoffice.Isthisnowa'drawback'? Significanceof`[...]&wait$!` isitraretoelidethefinalvowelifitislong? howtoremovethispin/nail CoefficientsreturnedfromCoefficientRules WillIbebarredfromtravelingtotheUSinthefuture,afteratenseimmigrationinterrogation? morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?