jsfmt.spec.js.snap 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`import_comma.scss 1`] = `
  3. @import "rounded-corners", "text-shadow";
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. @import "rounded-corners", "text-shadow";
  6. `;
  7. exports[`scss.scss 1`] = `
  8. @media #{$g-breakpoint-tiny} {}
  9. .#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }
  10. a {height: calc(#{$foo} + 1);}
  11. div {
  12. background: {
  13. size: auto 60%;
  14. position: bottom 2px left;
  15. }
  16. }
  17. a { margin: 0 { left: 10px; } }
  18. $default: #111111 !default;
  19. $default: #111111 !default;
  20. $default: #111111
  21. !default;
  22. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  23. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  24. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value"
  25. !default;
  26. $global: #111111 !global;
  27. $global: #111111 !global;
  28. $global: #111111
  29. !global;
  30. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  31. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  32. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value"
  33. !global;
  34. $map: (key: value, other-key: other-value);
  35. $map: (key: value, other-key: other-value) !default;
  36. $map: (key: value, other-key: other-value) !default;
  37. $map: (key: value, other-key: other-value)
  38. !default;
  39. $map:
  40. (key: value, other-key: other-value)
  41. !default;
  42. $map: ( key : value , other-key : other-value);
  43. $map: ( key : value , other-key : other-value );
  44. $map: (
  45. key: value,
  46. other-key: other-value
  47. );
  48. $map: (
  49. key: value,
  50. other-key: other-value
  51. );
  52. $map: (
  53. key
  54. :
  55. value,
  56. other-key
  57. :
  58. other-value
  59. );
  60. $map: (
  61. key
  62. :
  63. value
  64. ,
  65. other-key
  66. :
  67. other-value
  68. );
  69. $map: (very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value, very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value);
  70. $map: ( very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key : very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value , very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key : very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value );
  71. $map: ( very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key : very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value , very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value );
  72. $map: (
  73. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  74. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  75. );
  76. $map: (
  77. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  78. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key: very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  79. );
  80. $map:
  81. (
  82. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key
  83. :
  84. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value
  85. ,
  86. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key
  87. :
  88. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  89. );
  90. $map: (
  91. key: (#d82d2d, #666),
  92. other-key: (#52bf4a, #fff),
  93. other-other-key: (#c23435, #fff)
  94. );
  95. $map: (
  96. key: (#d82d2d, #666),
  97. other-key: (#52bf4a, #fff),
  98. other-other-key: (#c23435, #fff)
  99. );
  100. $map: (
  101. key : ( #d82d2d , #666 ),
  102. other-key : ( #52bf4a , #fff ),
  103. other-other-key : ( #c23435 , #fff )
  104. );
  105. $map: (
  106. key : ( #d82d2d , #666 ) ,
  107. other-key : ( #52bf4a , #fff ),
  108. other-other-key : ( #c23435 , #fff )
  109. );
  110. $map: (
  111. key
  112. :
  113. (
  114. #d82d2d,
  115. #666
  116. )
  117. ,
  118. other-key
  119. :
  120. (
  121. #52bf4a,
  122. #fff
  123. )
  124. ,
  125. other-other-key
  126. :
  127. (
  128. #c23435
  129. ,
  130. #fff
  131. )
  132. );
  133. $map: map-merge($map, ($key: $value));
  134. $map: map-merge( $map , ( $key : $value ) );
  135. $map: map-merge( $map , ( $key : $value ) );
  136. $map: map-merge(
  137. $map,
  138. ($key: $value)
  139. );
  140. $map: map-merge(
  141. $map,
  142. ($key: $value)
  143. );
  144. $map:
  145. map-merge(
  146. $map
  147. ,
  148. (
  149. $key
  150. :
  151. $value
  152. )
  153. );
  154. $longVariable: (
  155. (mobile $mobile) (tablet $tablet) (desktop $desktop) (wide $wide)
  156. );
  157. $list-space: "item-1" "item-2" "item-3";
  158. $list-space:"item-1""item-2""item-3";
  159. $list-space: "item-1" "item-2" "item-3" ;
  160. $list-space: "item-1"
  161. "item-2"
  162. "item-3";
  163. $list-space
  164. :
  165. "item-1"
  166. "item-2"
  167. "item-3"
  168. ;
  169. $list-space
  170. :
  171. "item-1"
  172. "item-2"
  173. "item-3"
  174. ;
  175. $list-comma: "item-1", "item-2", "item-3";
  176. $list-comma:"item-1","item-2","item-3";
  177. $list-comma: "item-1" , "item-2" , "item-3" ;
  178. $list-comma: "item-1",
  179. "item-2",
  180. "item-3";
  181. $list-comma
  182. :
  183. "item-1"
  184. ,
  185. "item-2"
  186. ,
  187. "item-3"
  188. ;
  189. $list-comma
  190. :
  191. "item-1"
  192. ,
  193. "item-2"
  194. ,
  195. "item-3"
  196. ;
  197. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3", "item-3.1" "item-3.2" "item-3.3";
  198. $list:"item-1.1""item-1.2""item-1.3","item-2.1""item-2.2""item-2.3","item-3.1""item-3.2""item-3.3";
  199. $list: "item-1.1" "item-1.2" "item-1.3" , "item-2.1" "item-2.2" "item-2.3" , "item-3.1" "item-3.2" "item-3.3" ;
  200. $list: "item-1.1" "item-1.2" "item-1.3",
  201. "item-2.1" "item-2.2" "item-2.3",
  202. "item-3.1" "item-3.2" "item-3.3";
  203. $list
  204. :
  205. "item-1.1"
  206. "item-1.2"
  207. "item-1.3"
  208. ,
  209. "item-2.1"
  210. "item-2.2"
  211. "item-2.3"
  212. ,
  213. "item-3.1"
  214. "item-3.2"
  215. "item-3.3"
  216. ;
  217. $list
  218. :
  219. "item-1.1"
  220. "item-1.2"
  221. "item-1.3"
  222. ,
  223. "item-2.1"
  224. "item-2.2"
  225. "item-2.3"
  226. ,
  227. "item-3.1"
  228. "item-3.2"
  229. "item-3.3"
  230. ;
  231. $list: (("item-1.1", "item-1.2", "item-1.3"), ("item-2.1", "item-2.2", "item-2.3"), ("item-3.1", "item-3.2", "item-3.3"));
  232. $list:(("item-1.1","item-1.2","item-1.3"),("item-2.1","item-2.2","item-2.3"),("item-3.1","item-3.2","item-3.3"));
  233. $list: ( ( "item-1.1" , "item-1.2" , "item-1.3" ) , ( "item-2.1" , "item-2.2" , "item-2.3" ) , ( "item-3.1" , "item-3.2" , "item-3.3" ) ) ;
  234. $list: (
  235. ("item-1.1", "item-1.2", "item-1.3"),
  236. ("item-2.1", "item-2.2", "item-2.3"),
  237. ("item-3.1", "item-3.2", "item-3.3")
  238. );
  239. $list
  240. :
  241. (
  242. (
  243. "item-1.1"
  244. ,
  245. "item-1.2"
  246. ,
  247. "item-1.3"
  248. )
  249. ,
  250. (
  251. "item-2.1"
  252. ,
  253. "item-2.2"
  254. ,
  255. "item-2.3"
  256. )
  257. ,
  258. (
  259. "item-3.1"
  260. ,
  261. "item-3.2"
  262. ,
  263. "item-3.3"
  264. )
  265. )
  266. ;
  267. $list
  268. :
  269. (
  270. (
  271. "item-1.1"
  272. ,
  273. "item-1.2"
  274. ,
  275. "item-1.3"
  276. )
  277. ,
  278. (
  279. "item-2.1"
  280. ,
  281. "item-2.2"
  282. ,
  283. "item-2.3"
  284. )
  285. ,
  286. (
  287. "item-3.1"
  288. ,
  289. "item-3.2"
  290. ,
  291. "item-3.3"
  292. )
  293. )
  294. ;
  295. $var: (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0);
  296. $space-scale: (0, "0") (0.25, "0-25") (0.5, "0-5") (0.75, "0-75") (1, "1") (1.25, "1-25") (1.5, "1-5") (1.75, "1-75") (2, "2") (2.25, "2-25") (2.5, "2-5") (2.75, "2-75") (3, "3") (3.25, "3-25") (3.5, "3-5") (3.75, "3-75") (4, "4");
  297. .card-column-simple {
  298. @include breakpoint( getBp( md ) ) {
  299. padding: $spacing_content-sm $spacing_content-md;
  300. }
  301. @include breakpoint (getBp(md)) {
  302. &:nth-child(2n + 3) {
  303. clear: both;
  304. }
  305. }
  306. @include breakpoint (getBp(xl)) {
  307. &:nth-child(2n + 3) {
  308. clear: none;
  309. }
  310. &:nth-child(3n + 4) {
  311. clear: both;
  312. }
  313. }
  314. }
  315. @warn "Warn (#{$message}).";
  316. @warn "Warn (#{$message}).";
  317. @warn "Warn (#{$message}).";
  318. @warn #{$message};
  319. @warn "Very long long long long long long long long long long long long long line (#{$message}).";
  320. @warn
  321. "Very long long long long long long long long long long long long long line (#{$message}).";
  322. @error "Error (#{$message}).";
  323. @error "Error (#{$message}).";
  324. @error "Error (#{$message}).";
  325. @error #{$message};
  326. @error "Very long long long long long long long long long long long long long line Error (#{$message}).";
  327. @error
  328. "Very long long long long long long long long long long long long long line Error (#{$message}).";
  329. $buttonConfig: "save" 50px, 'cancel' 50px, "help" 100PX;
  330. $locale: "en_us";
  331. html[lang=#{$locale}] {
  332. font-size: 10px;
  333. }
  334. $alertClass: "error";
  335. p.message-#{$alertClass} {
  336. color: red;
  337. }
  338. $mediumBreakpoint: 768px;
  339. @media (max-width: #{$mediumBreakpoint}) {
  340. a {
  341. font-size: 18px;
  342. }
  343. }
  344. p {
  345. @media (max-width: 768px) {
  346. font-size: 150%;
  347. @media (orientation: landscape) {
  348. line-height: 75%;
  349. }
  350. }
  351. }
  352. .popularAnimal {
  353. background: gray;
  354. }
  355. .GoodBoy {
  356. color: green;
  357. }
  358. .dog {
  359. @extend .popularAnimal;
  360. @extend .GoodBoy;
  361. color: white;
  362. }
  363. %animal {
  364. background: gray;
  365. }
  366. .cat {
  367. @extend %animal;
  368. color: white;
  369. }
  370. .dog {
  371. @extend %animal;
  372. color: black;
  373. }
  374. %mfw-standing-out {
  375. font-size: 150%;
  376. font-style: italic;
  377. padding: 25px;
  378. }
  379. %mfwSlightlyShadowed {
  380. @include box-shadow(black 2px 2px 10px); // from Compass
  381. }
  382. %MFWRounded {
  383. @include border-radius(25px); // from Compass
  384. }
  385. #join-button {
  386. @extend %mfw-standing-out;
  387. @extend %mfwSlightlyShadowed;
  388. @extend %MFWRounded;
  389. background: green;
  390. color: white;
  391. }
  392. a {
  393. &:hover {
  394. color: red;
  395. }
  396. }
  397. p {
  398. body.no-touch & {
  399. display: none;
  400. }
  401. }
  402. .foo.bar .baz.bang, .bip.qux {
  403. $selector: &;
  404. }
  405. @mixin does-parent-exist {
  406. @if & {
  407. &:hover {
  408. color: red;
  409. }
  410. } @else {
  411. a {
  412. color: red;
  413. }
  414. }
  415. }
  416. p {
  417. @if 1 + 1 == 2 {
  418. border: 1px solid;
  419. }
  420. @if 5 < 3 {
  421. border: 2px dotted;
  422. }
  423. @if null {
  424. border: 3px double;
  425. }
  426. }
  427. $mosterType: monster;
  428. p {
  429. @if $mosterType == ocean {
  430. color: blue;
  431. } @else if $mosterType == matador {
  432. color: red;
  433. } @else if $mosterType == monster {
  434. color: green;
  435. } @else if $mosterType == nightKing {
  436. color: green;
  437. } @else if $mosterType == VeryWickedWolf {
  438. color: green;
  439. } @else {
  440. color: black;
  441. }
  442. }
  443. @for $i from 1 through 3 {
  444. .item-#{$i} {
  445. width: 2em * $i;
  446. }
  447. }
  448. @each $animal in puma, sea-slug, cheerfulDog, BigSalamander, "string", 'another-string', "camelCaseString", "PascalCaseString" {
  449. .#{$animal}-icon {
  450. background-image: url('/images/#{$animal}.png');
  451. }
  452. }
  453. $i: 6;
  454. @while $i > 0 {
  455. .item-#{$i} {
  456. width: 2em * $i;
  457. }
  458. $i: $i - 2;
  459. }
  460. @mixin cool-border($width: 10px, $coolStyle: 'solid', $AwesomeColor: "black") {
  461. border: $width $coolStyle $AwesomeColor;
  462. }
  463. p {
  464. @include cool-border(1px, "solid", $fff);
  465. }
  466. p {
  467. @include cool-border($width: 1px, $coolStyle: 'solid', $AwesomeColor: #fff);
  468. }
  469. p {
  470. @include coolBorder();
  471. }
  472. @mixin coolBorder() {
  473. border: 10px solid #fff;
  474. }
  475. p {
  476. @include coolBorder(1px, "solid", $fff);
  477. }
  478. @mixin CoolBorder() {
  479. border: 10px solid #fff;
  480. }
  481. p {
  482. @include CoolBorder(1px, "solid", $fff);
  483. }
  484. @mixin box-shadow($shadows...) {
  485. -moz-box-shadow: $shadows;
  486. -webkit-box-shadow: $shadows;
  487. box-shadow: $shadows;
  488. }
  489. .shadows {
  490. @include box-shadow(0px 4px 5px #666, 2px 6px 10px #999);
  491. }
  492. @mixin apply-to-ie6-only {
  493. * html {
  494. @content;
  495. }
  496. }
  497. @include apply-to-ie6-only {
  498. #logo {
  499. background-image: url(/logo.gif);
  500. }
  501. }
  502. @mixin applyToIe6Only {
  503. * html {
  504. @content;
  505. }
  506. }
  507. @include applyToIe6Only {
  508. #logo {
  509. background-image: url(/logo.gif);
  510. }
  511. }
  512. @mixin ApplyToIe6Only {
  513. * html {
  514. @content;
  515. }
  516. }
  517. @include ApplyToIe6Only {
  518. #logo {
  519. background-image: url(/logo.gif);
  520. }
  521. }
  522. @mixin config-icon-colors($prefix, $colors...) {
  523. @each $i in $colors {
  524. .#{$prefix}#{nth($i, 1)} {
  525. color: nth($i, 2);
  526. }
  527. }
  528. }
  529. @include config-icon-colors(
  530. "icon-",
  531. "save" green,
  532. "cancel" gray,
  533. "delete" red,
  534. 'wait' blue
  535. );
  536. @function my-calculation-function($some-number, $anotherNumber, $BigNumber){
  537. @return $some-number + $anotherNumber + $BigNumber;
  538. }
  539. @function myCalculationFunction($some-number, $anotherNumber, $BigNumber){
  540. @return $some-number + $anotherNumber + $BigNumber;
  541. }
  542. @function AnotherMyCalculationFunction($some-number, $anotherNumber, $BigNumber: 100px){
  543. @return $some-number + $anotherNumber + $BigNumber;
  544. }
  545. @function border($borders...) {
  546. @return $borders;
  547. }
  548. .foo {
  549. padding: my-calculation-function(10px, 5px, 100px);
  550. margin: myCalculationFunction($some-number: 10px, $anotherNumber: 5px, $BigNumber: 100px);
  551. width: AnotherMyCalculationFunction(10px, 5px);
  552. border: border(25px, 35px);
  553. }
  554. $sm-only: '(min-width: 768px) and (max-width: 991px)';
  555. $lg-and-up: '(min-width: 1200px)';
  556. @media screen and #{$sm-only, $lg-and-up} {
  557. color: #000;
  558. }
  559. .class-#{$var} {
  560. #{$var}: #7b3d66;
  561. #{$attr}-color: blue;
  562. #{$prop}-#{$side}: $value;
  563. background-#{$var}: #7b3d66;
  564. animation-name: #{var};
  565. line-height: #{strip-unit($line-height)}em;
  566. height: 1#{$var};
  567. width: calc(100% - #{$sidebar-width});
  568. max-width: calc(#{$m*100}vw #{$sign} #{$b});
  569. font: #{$font-size}/#{$line-height};
  570. content: "I have #{8 + 2} books on SASS!";
  571. border: #{$var} #{$var} #{$var};
  572. filter: #{$var}#{$var}#{$var};
  573. prop: #{ $var + $var } #{ $var + $var } #{ $var + $var };
  574. prop2:
  575. #{
  576. $var
  577. +
  578. $var
  579. }
  580. #{
  581. $var
  582. +
  583. $var
  584. }
  585. #{
  586. $var
  587. +
  588. $var
  589. }
  590. ;
  591. prop3:
  592. #{
  593. $var
  594. +
  595. $var
  596. }
  597. #{
  598. $var
  599. +
  600. $var
  601. }
  602. #{
  603. $var
  604. +
  605. $var
  606. }
  607. ;
  608. prop4: -#{$loader-icon-duration};
  609. prop5: +#{$loader-icon-duration};
  610. prop6: calc(-#{$loader-icon-duration} + 10);
  611. prop7: calc(10 + -#{$loader-icon-duration});
  612. }
  613. /* Framework version for the generated CSS is #{$version}. */
  614. .selector {
  615. foo: bar;
  616. #{$active} {
  617. baz: qux;
  618. }
  619. }
  620. .el:nth-of-type(#{$i}) {}
  621. @media #{$value} {}
  622. @import url(#{$foundation-dir}/foundation/components/grid);
  623. @keyframes loader {
  624. 0% {
  625. transform: translate3d(0, 0, 0);
  626. }
  627. #{50% - $loader-icon-duration} {
  628. transform: translate3d(0, $bounce-height, 0);
  629. }
  630. 50% {
  631. transform: translate3d(0, $bounce-height, 0) scale($loader-bounce-horizontal-expansion, $loader-bounce-vertical-compression);
  632. }
  633. }
  634. $icons: wifi "\\600", wifi-hotspot "\\601", weather "\\602";
  635. @each $icon in $icons {
  636. .icon-#{nth($icon, 1)}, %icon-#{nth($icon, 1)} {
  637. content: "#{nth($icon, 2)}";
  638. }
  639. }
  640. .foo {
  641. prop: -($grid-gutter-width / 2);
  642. prop1: -( $grid-gutter-width / 2 );
  643. prop2: -$grid-gutter-width / 2;
  644. prop3: +($grid-gutter-width / 2);
  645. prop4: 10px/8px; /* Plain CSS, no division */
  646. prop5: $width / 2; /* Uses a variable, does division */
  647. prop6: round(1.5) / 2; /* Uses a function, does division */
  648. prop7: (500px / 2); /* Uses parentheses, does division */
  649. prop8: 5px + 8px / 2px; //* Uses +, does division */
  650. prop9: (italic bold 10px/8px); /* In a list, parentheses don't count */
  651. prop10: #010203 + #040506;
  652. prop11: #010203 * 2;
  653. prop12: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
  654. prop13: progid:DXImageTransform.Microsoft.gradient(enabled='false', startColorstr='#{ie-hex-str($green)}', endColorstr='#{ie-hex-str($translucent-red)}');
  655. prop14: e + -resize;
  656. prop15: sans- + "serif";
  657. prop16: 1em + (2em * 3);
  658. prop17: rotate(-2deg);
  659. prop18: rotate( -2deg ) ;
  660. _:_;
  661. prop19: 10 - ($grid-gutter-width / 2);
  662. prop20: 10 + -($grid-gutter-width / 2);
  663. prop21: 10 + - ( $grid-gutter-width / 2 ) ;
  664. prop22: - ( $grid-gutter-width / 2 ) ;
  665. prop23: - ( $grid-gutter-width / 2 ) ;
  666. prop24: -$grid-gutter-width;
  667. prop25: + ( $grid-gutter-width / 2 ) ;
  668. prop26: + ( $grid-gutter-width / 2 ) ;
  669. prop27: +$grid-gutter-width;
  670. prop28: --($grid-gutter-width / 2);
  671. prop28: ++($grid-gutter-width / 2);
  672. prop29: rotate( - 2deg ) ;
  673. }
  674. $last:nth($juggler,length($juggler));
  675. $x:if($last%2==0,1/2,3/2);
  676. $new:pow($last,$x);
  677. $sequence:1,1 1,2 1,1 2 1 1, 1 1 1 2 2 1;
  678. $new-entry:();
  679. $new-entry : ( ) ;
  680. $new-entry : ( ) ;
  681. $new-entry
  682. :
  683. (
  684. )
  685. ;
  686. body:before {
  687. content: quote(to-string(fibonacci(100), ' \\A '));
  688. white-space: pre-wrap;
  689. }
  690. width: ((100% - (($numPerRow - 1) * $margin)) / $numPerRow);
  691. width
  692. :
  693. (
  694. (
  695. 100%
  696. -
  697. (
  698. (
  699. $numPerRow
  700. -
  701. 1
  702. )
  703. *
  704. $margin
  705. )
  706. )
  707. /
  708. $numPerRow
  709. )
  710. ;
  711. a:nth-child(#{$numPerRow}n) {
  712. margin-right: 0;
  713. margin-bottom: 0;
  714. }
  715. @function em($pixels, $context: $browser-context) {
  716. @return #{ $pixels / $context }em
  717. }
  718. .navigation {
  719. @extend %updated-#{$flag};
  720. @extend .selected-#{$flag};
  721. @extend %#{$item};
  722. }
  723. .icon-#{$icon-name} {
  724. background-image: '/images/#{$icon-name}.svg';
  725. }
  726. $extmods:(eot:"?",svg:"#" + str-replace($name," ","_"));
  727. @mixin keyframes {@-moz-keyframes{@content;}@-webkit-keyframes{@content;}}
  728. @function gcd($a,$b){
  729. // From: http://rosettacode.org/wiki/Greatest_common_divisor#JavaScript
  730. @if ($b != 0) {
  731. @return gcd($b,$a % $b);
  732. }@else{
  733. @return abs($a);
  734. }
  735. }
  736. $colors: (
  737. primary: (
  738. base: #00abc9,
  739. light: #daf1f6,
  740. dark: #12799a
  741. ),
  742. secondary: (
  743. base: #424d55,
  744. light: #ccc,
  745. lightest: #efefef,
  746. dark: #404247
  747. ),
  748. success: (
  749. base: #bbd33e,
  750. light: #eaf0c6
  751. )
  752. );
  753. @function color($color, $tone: "base") {
  754. @return map-get(map-get($colors, $color), $tone);
  755. }
  756. @media only screen and (max-width: 767px) {
  757. @include widths(2 3 4, \\@small);
  758. }
  759. $widths-breakpoint-separator: \\@small;
  760. a {
  761. transition-timing-function: func1(
  762. func2(
  763. func3(
  764. "veryVeryVeryVeryVeryLongValue",
  765. "veryVeryVeryVeryVeryLongValue",
  766. "veryVeryVeryVeryVeryLongValue",
  767. "veryVeryVeryVeryVeryLongValue",
  768. ),
  769. "veryVeryVeryVeryVeryLongValue",
  770. "veryVeryVeryVeryVeryLongValue",
  771. "veryVeryVeryVeryVeryLongValue",
  772. ),
  773. "veryVeryVeryVeryVeryLongValue",
  774. "veryVeryVeryVeryVeryLongValue",
  775. func3(
  776. "veryVeryVeryVeryVeryLongValue",
  777. "veryVeryVeryVeryVeryLongValue",
  778. "veryVeryVeryVeryVeryLongValue",
  779. "veryVeryVeryVeryVeryLongValue"
  780. )
  781. );
  782. }
  783. $empty-map: ();
  784. $empty-nested-map: (
  785. nested-key: (empty-key: (color: red)),
  786. empty-key: (),
  787. empty-key: (),
  788. empty-key: ()
  789. );
  790. $o-grid-default-config: (
  791. columns: 12,
  792. gutter: 10px,
  793. min-width: 240px,
  794. max-width: 1330px,
  795. layouts: (
  796. S: 370px,
  797. M: 610px,
  798. L: 850px,
  799. XL: 1090px
  800. ),
  801. fluid: true,
  802. debug: false,
  803. fixed-layout: M,
  804. enhanced-experience: true
  805. );
  806. $a: ();
  807. $b: unquote('');
  808. $c: null;
  809. $d: (null);
  810. $threads-properties: map-merge($threads-properties, ($border-label: ()));
  811. $o-grid-default-config: (layouts: (S: 370px));
  812. $map: (
  813. key: (value),
  814. other-key: (key: other-other-value)
  815. );
  816. a {
  817. content: "#{".5"}";
  818. content: my-fn("_");
  819. content: "#{my-fn("_")}";
  820. content: my-fn("-");
  821. content: "#{my-fn("-")}";
  822. content: my-fn("-a");
  823. content: "#{my-fn("-a")}";
  824. content: my-fn("a-");
  825. content: "#{my-fn("a-")}";
  826. content: my-fn("foo");
  827. content: "#{my-fn("foo")}";
  828. content: 1 "#{my-fn("foo")}" 2;
  829. content: foo "#{my-fn("foo")}" bar;
  830. content: "foo #{$description} bar";
  831. content: "#{my-fn("foo","bar")}";
  832. content: "#{my-fn( "foo" , "bar" )}";
  833. content: "#{my-fn( "foo" , "bar" )}";
  834. content: '#{my-fn("foo")}';
  835. content: '#{my-fn('foo')}';
  836. content: "#{my-fn('foo')}";
  837. content: "#{my-fn("foo")}";
  838. }
  839. mixin theme($css-property, $css-value, $theme-classes: t) {
  840. @each $selector in & {
  841. @each $class in $theme-classes {
  842. @each $theme, $theme-properties in c(themes) {
  843. $value: $css-value;
  844. @each $theme-name, $theme-value in $theme-properties {
  845. $rgba-value: "rgba(#{red($theme-value)}, #{green($theme-value)}, #{blue($theme-value)}";
  846. $value: str-replace($value, "rgba(\${#{$theme-name}}", $rgba-value);
  847. $value: str-replace($value, "\${#{$theme-name}}", $theme-value);
  848. }
  849. @at-root .#{$class}-#{join($theme, $selector)} {
  850. #{$css-property}: unquote($value);
  851. }
  852. }
  853. }
  854. }
  855. }
  856. .foo,
  857. // Comment
  858. .bar {
  859. // Comment
  860. color: red; // Comment
  861. }
  862. $my-list:
  863. 'foo', // Comment
  864. 'bar'; // Comment
  865. $my-map: (
  866. 'foo': 1, // Comment
  867. 'bar': 2, // Comment
  868. );
  869. [href]:hover &, // Comment
  870. [href]:focus &, // Comment
  871. [href]:active & {
  872. .tooltip {
  873. opacity: 1;
  874. }
  875. }
  876. @import
  877. // Comment
  878. 'mixins',
  879. 'variables',
  880. // Comment
  881. 'reset',
  882. 'scaffolding',
  883. 'type',
  884. // Comment
  885. 'bar',
  886. 'tabs';
  887. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  888. @media #{$g-breakpoint-tiny} {
  889. }
  890. .#{$fa-css-prefix}-glass:before {
  891. content: $fa-var-glass;
  892. }
  893. a {
  894. height: calc(#{$foo} + 1);
  895. }
  896. div {
  897. background: {
  898. size: auto 60%;
  899. position: bottom 2px left;
  900. }
  901. }
  902. a {
  903. margin: 0 {
  904. left: 10px;
  905. }
  906. }
  907. $default: #111111 !default;
  908. $default: #111111 !default;
  909. $default: #111111 !default;
  910. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  911. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  912. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  913. $global: #111111 !global;
  914. $global: #111111 !global;
  915. $global: #111111 !global;
  916. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  917. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  918. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  919. $map: (
  920. key: value,
  921. other-key: other-value
  922. );
  923. $map: (
  924. key: value,
  925. other-key: other-value
  926. ) !default;
  927. $map: (
  928. key: value,
  929. other-key: other-value
  930. ) !default;
  931. $map: (
  932. key: value,
  933. other-key: other-value
  934. ) !default;
  935. $map: (
  936. key: value,
  937. other-key: other-value
  938. ) !default;
  939. $map: (
  940. key: value,
  941. other-key: other-value
  942. );
  943. $map: (
  944. key: value,
  945. other-key: other-value
  946. );
  947. $map: (
  948. key: value,
  949. other-key: other-value
  950. );
  951. $map: (
  952. key: value,
  953. other-key: other-value
  954. );
  955. $map: (
  956. key: value,
  957. other-key: other-value
  958. );
  959. $map: (
  960. key: value,
  961. other-key: other-value
  962. );
  963. $map: (
  964. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key:
  965. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  966. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key:
  967. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  968. );
  969. $map: (
  970. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key:
  971. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  972. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key:
  973. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  974. );
  975. $map: (
  976. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key:
  977. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  978. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key:
  979. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  980. );
  981. $map: (
  982. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key:
  983. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  984. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key:
  985. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  986. );
  987. $map: (
  988. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key:
  989. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  990. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key:
  991. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  992. );
  993. $map: (
  994. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key:
  995. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value,
  996. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key:
  997. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  998. );
  999. $map: (
  1000. key: (
  1001. #d82d2d,
  1002. #666
  1003. ),
  1004. other-key: (
  1005. #52bf4a,
  1006. #fff
  1007. ),
  1008. other-other-key: (
  1009. #c23435,
  1010. #fff
  1011. )
  1012. );
  1013. $map: (
  1014. key: (
  1015. #d82d2d,
  1016. #666
  1017. ),
  1018. other-key: (
  1019. #52bf4a,
  1020. #fff
  1021. ),
  1022. other-other-key: (
  1023. #c23435,
  1024. #fff
  1025. )
  1026. );
  1027. $map: (
  1028. key: (
  1029. #d82d2d,
  1030. #666
  1031. ),
  1032. other-key: (
  1033. #52bf4a,
  1034. #fff
  1035. ),
  1036. other-other-key: (
  1037. #c23435,
  1038. #fff
  1039. )
  1040. );
  1041. $map: (
  1042. key: (
  1043. #d82d2d,
  1044. #666
  1045. ),
  1046. other-key: (
  1047. #52bf4a,
  1048. #fff
  1049. ),
  1050. other-other-key: (
  1051. #c23435,
  1052. #fff
  1053. )
  1054. );
  1055. $map: (
  1056. key: (
  1057. #d82d2d,
  1058. #666
  1059. ),
  1060. other-key: (
  1061. #52bf4a,
  1062. #fff
  1063. ),
  1064. other-other-key: (
  1065. #c23435,
  1066. #fff
  1067. )
  1068. );
  1069. $map: map-merge(
  1070. $map,
  1071. (
  1072. $key: $value
  1073. )
  1074. );
  1075. $map: map-merge(
  1076. $map,
  1077. (
  1078. $key: $value
  1079. )
  1080. );
  1081. $map: map-merge(
  1082. $map,
  1083. (
  1084. $key: $value
  1085. )
  1086. );
  1087. $map: map-merge(
  1088. $map,
  1089. (
  1090. $key: $value
  1091. )
  1092. );
  1093. $map: map-merge(
  1094. $map,
  1095. (
  1096. $key: $value
  1097. )
  1098. );
  1099. $map: map-merge(
  1100. $map,
  1101. (
  1102. $key: $value
  1103. )
  1104. );
  1105. $longVariable: (
  1106. (mobile $mobile) (tablet $tablet) (desktop $desktop) (wide $wide)
  1107. );
  1108. $list-space: "item-1" "item-2" "item-3";
  1109. $list-space: "item-1" "item-2" "item-3";
  1110. $list-space: "item-1" "item-2" "item-3";
  1111. $list-space: "item-1" "item-2" "item-3";
  1112. $list-space: "item-1" "item-2" "item-3";
  1113. $list-space: "item-1" "item-2" "item-3";
  1114. $list-comma: "item-1", "item-2", "item-3";
  1115. $list-comma: "item-1", "item-2", "item-3";
  1116. $list-comma: "item-1", "item-2", "item-3";
  1117. $list-comma: "item-1", "item-2", "item-3";
  1118. $list-comma: "item-1", "item-2", "item-3";
  1119. $list-comma: "item-1", "item-2", "item-3";
  1120. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3",
  1121. "item-3.1" "item-3.2" "item-3.3";
  1122. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3",
  1123. "item-3.1" "item-3.2" "item-3.3";
  1124. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3",
  1125. "item-3.1" "item-3.2" "item-3.3";
  1126. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3",
  1127. "item-3.1" "item-3.2" "item-3.3";
  1128. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3",
  1129. "item-3.1" "item-3.2" "item-3.3";
  1130. $list: "item-1.1" "item-1.2" "item-1.3", "item-2.1" "item-2.2" "item-2.3",
  1131. "item-3.1" "item-3.2" "item-3.3";
  1132. $list: (
  1133. ("item-1.1", "item-1.2", "item-1.3"),
  1134. ("item-2.1", "item-2.2", "item-2.3"),
  1135. ("item-3.1", "item-3.2", "item-3.3")
  1136. );
  1137. $list: (
  1138. ("item-1.1", "item-1.2", "item-1.3"),
  1139. ("item-2.1", "item-2.2", "item-2.3"),
  1140. ("item-3.1", "item-3.2", "item-3.3")
  1141. );
  1142. $list: (
  1143. ("item-1.1", "item-1.2", "item-1.3"),
  1144. ("item-2.1", "item-2.2", "item-2.3"),
  1145. ("item-3.1", "item-3.2", "item-3.3")
  1146. );
  1147. $list: (
  1148. ("item-1.1", "item-1.2", "item-1.3"),
  1149. ("item-2.1", "item-2.2", "item-2.3"),
  1150. ("item-3.1", "item-3.2", "item-3.3")
  1151. );
  1152. $list: (
  1153. ("item-1.1", "item-1.2", "item-1.3"),
  1154. ("item-2.1", "item-2.2", "item-2.3"),
  1155. ("item-3.1", "item-3.2", "item-3.3")
  1156. );
  1157. $list: (
  1158. ("item-1.1", "item-1.2", "item-1.3"),
  1159. ("item-2.1", "item-2.2", "item-2.3"),
  1160. ("item-3.1", "item-3.2", "item-3.3")
  1161. );
  1162. $var: (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0) (0 0)
  1163. (0 0) (0 0);
  1164. $space-scale: (0, "0") (0.25, "0-25") (0.5, "0-5") (0.75, "0-75") (1, "1")
  1165. (1.25, "1-25") (1.5, "1-5") (1.75, "1-75") (2, "2") (2.25, "2-25")
  1166. (2.5, "2-5") (2.75, "2-75") (3, "3") (3.25, "3-25") (3.5, "3-5")
  1167. (3.75, "3-75") (4, "4");
  1168. .card-column-simple {
  1169. @include breakpoint(getBp(md)) {
  1170. padding: $spacing_content-sm $spacing_content-md;
  1171. }
  1172. @include breakpoint(getBp(md)) {
  1173. &:nth-child(2n + 3) {
  1174. clear: both;
  1175. }
  1176. }
  1177. @include breakpoint(getBp(xl)) {
  1178. &:nth-child(2n + 3) {
  1179. clear: none;
  1180. }
  1181. &:nth-child(3n + 4) {
  1182. clear: both;
  1183. }
  1184. }
  1185. }
  1186. @warn "Warn (#{$message}).";
  1187. @warn "Warn (#{$message}).";
  1188. @warn "Warn (#{$message}).";
  1189. @warn #{$message};
  1190. @warn "Very long long long long long long long long long long long long long line (#{$message}).";
  1191. @warn "Very long long long long long long long long long long long long long line (#{$message}).";
  1192. @error "Error (#{$message}).";
  1193. @error "Error (#{$message}).";
  1194. @error "Error (#{$message}).";
  1195. @error #{$message};
  1196. @error "Very long long long long long long long long long long long long long line Error (#{$message}).";
  1197. @error "Very long long long long long long long long long long long long long line Error (#{$message}).";
  1198. $buttonConfig: "save" 50px, "cancel" 50px, "help" 100px;
  1199. $locale: "en_us";
  1200. html[lang="#{$locale}"] {
  1201. font-size: 10px;
  1202. }
  1203. $alertClass: "error";
  1204. p.message-#{$alertClass} {
  1205. color: red;
  1206. }
  1207. $mediumBreakpoint: 768px;
  1208. @media (max-width: #{$mediumBreakpoint}) {
  1209. a {
  1210. font-size: 18px;
  1211. }
  1212. }
  1213. p {
  1214. @media (max-width: 768px) {
  1215. font-size: 150%;
  1216. @media (orientation: landscape) {
  1217. line-height: 75%;
  1218. }
  1219. }
  1220. }
  1221. .popularAnimal {
  1222. background: gray;
  1223. }
  1224. .GoodBoy {
  1225. color: green;
  1226. }
  1227. .dog {
  1228. @extend .popularAnimal;
  1229. @extend .GoodBoy;
  1230. color: white;
  1231. }
  1232. %animal {
  1233. background: gray;
  1234. }
  1235. .cat {
  1236. @extend %animal;
  1237. color: white;
  1238. }
  1239. .dog {
  1240. @extend %animal;
  1241. color: black;
  1242. }
  1243. %mfw-standing-out {
  1244. font-size: 150%;
  1245. font-style: italic;
  1246. padding: 25px;
  1247. }
  1248. %mfwSlightlyShadowed {
  1249. @include box-shadow(black 2px 2px 10px); // from Compass
  1250. }
  1251. %MFWRounded {
  1252. @include border-radius(25px); // from Compass
  1253. }
  1254. #join-button {
  1255. @extend %mfw-standing-out;
  1256. @extend %mfwSlightlyShadowed;
  1257. @extend %MFWRounded;
  1258. background: green;
  1259. color: white;
  1260. }
  1261. a {
  1262. &:hover {
  1263. color: red;
  1264. }
  1265. }
  1266. p {
  1267. body.no-touch & {
  1268. display: none;
  1269. }
  1270. }
  1271. .foo.bar .baz.bang,
  1272. .bip.qux {
  1273. $selector: &;
  1274. }
  1275. @mixin does-parent-exist {
  1276. @if & {
  1277. &:hover {
  1278. color: red;
  1279. }
  1280. } @else {
  1281. a {
  1282. color: red;
  1283. }
  1284. }
  1285. }
  1286. p {
  1287. @if 1 + 1 == 2 {
  1288. border: 1px solid;
  1289. }
  1290. @if 5 < 3 {
  1291. border: 2px dotted;
  1292. }
  1293. @if null {
  1294. border: 3px double;
  1295. }
  1296. }
  1297. $mosterType: monster;
  1298. p {
  1299. @if $mosterType == ocean {
  1300. color: blue;
  1301. } @else if $mosterType == matador {
  1302. color: red;
  1303. } @else if $mosterType == monster {
  1304. color: green;
  1305. } @else if $mosterType == nightKing {
  1306. color: green;
  1307. } @else if $mosterType == VeryWickedWolf {
  1308. color: green;
  1309. } @else {
  1310. color: black;
  1311. }
  1312. }
  1313. @for $i from 1 through 3 {
  1314. .item-#{$i} {
  1315. width: 2em * $i;
  1316. }
  1317. }
  1318. @each $animal in puma, sea-slug, cheerfulDog, BigSalamander, "string",
  1319. "another-string", "camelCaseString", "PascalCaseString"
  1320. {
  1321. .#{$animal}-icon {
  1322. background-image: url("/images/#{$animal}.png");
  1323. }
  1324. }
  1325. $i: 6;
  1326. @while $i > 0 {
  1327. .item-#{$i} {
  1328. width: 2em * $i;
  1329. }
  1330. $i: $i - 2;
  1331. }
  1332. @mixin cool-border($width: 10px, $coolStyle: "solid", $AwesomeColor: "black") {
  1333. border: $width $coolStyle $AwesomeColor;
  1334. }
  1335. p {
  1336. @include cool-border(1px, "solid", $fff);
  1337. }
  1338. p {
  1339. @include cool-border($width: 1px, $coolStyle: "solid", $AwesomeColor: #fff);
  1340. }
  1341. p {
  1342. @include coolBorder();
  1343. }
  1344. @mixin coolBorder() {
  1345. border: 10px solid #fff;
  1346. }
  1347. p {
  1348. @include coolBorder(1px, "solid", $fff);
  1349. }
  1350. @mixin CoolBorder() {
  1351. border: 10px solid #fff;
  1352. }
  1353. p {
  1354. @include CoolBorder(1px, "solid", $fff);
  1355. }
  1356. @mixin box-shadow($shadows...) {
  1357. -moz-box-shadow: $shadows;
  1358. -webkit-box-shadow: $shadows;
  1359. box-shadow: $shadows;
  1360. }
  1361. .shadows {
  1362. @include box-shadow(0px 4px 5px #666, 2px 6px 10px #999);
  1363. }
  1364. @mixin apply-to-ie6-only {
  1365. * html {
  1366. @content;
  1367. }
  1368. }
  1369. @include apply-to-ie6-only {
  1370. #logo {
  1371. background-image: url(/logo.gif);
  1372. }
  1373. }
  1374. @mixin applyToIe6Only {
  1375. * html {
  1376. @content;
  1377. }
  1378. }
  1379. @include applyToIe6Only {
  1380. #logo {
  1381. background-image: url(/logo.gif);
  1382. }
  1383. }
  1384. @mixin ApplyToIe6Only {
  1385. * html {
  1386. @content;
  1387. }
  1388. }
  1389. @include ApplyToIe6Only {
  1390. #logo {
  1391. background-image: url(/logo.gif);
  1392. }
  1393. }
  1394. @mixin config-icon-colors($prefix, $colors...) {
  1395. @each $i in $colors {
  1396. .#{$prefix}#{nth($i, 1)} {
  1397. color: nth($i, 2);
  1398. }
  1399. }
  1400. }
  1401. @include config-icon-colors(
  1402. "icon-",
  1403. "save" green,
  1404. "cancel" gray,
  1405. "delete" red,
  1406. "wait" blue
  1407. );
  1408. @function my-calculation-function($some-number, $anotherNumber, $BigNumber) {
  1409. @return $some-number + $anotherNumber + $BigNumber;
  1410. }
  1411. @function myCalculationFunction($some-number, $anotherNumber, $BigNumber) {
  1412. @return $some-number + $anotherNumber + $BigNumber;
  1413. }
  1414. @function AnotherMyCalculationFunction(
  1415. $some-number,
  1416. $anotherNumber,
  1417. $BigNumber: 100px
  1418. ) {
  1419. @return $some-number + $anotherNumber + $BigNumber;
  1420. }
  1421. @function border($borders...) {
  1422. @return $borders;
  1423. }
  1424. .foo {
  1425. padding: my-calculation-function(10px, 5px, 100px);
  1426. margin: myCalculationFunction(
  1427. $some-number: 10px,
  1428. $anotherNumber: 5px,
  1429. $BigNumber: 100px
  1430. );
  1431. width: AnotherMyCalculationFunction(10px, 5px);
  1432. border: border(25px, 35px);
  1433. }
  1434. $sm-only: "(min-width: 768px) and (max-width: 991px)";
  1435. $lg-and-up: "(min-width: 1200px)";
  1436. @media screen and #{$sm-only, $lg-and-up} {
  1437. color: #000;
  1438. }
  1439. .class-#{$var} {
  1440. #{$var}: #7b3d66;
  1441. #{$attr}-color: blue;
  1442. #{$prop}-#{$side}: $value;
  1443. background-#{$var}: #7b3d66;
  1444. animation-name: #{var};
  1445. line-height: #{strip-unit($line-height)}em;
  1446. height: 1#{$var};
  1447. width: calc(100% - #{$sidebar-width});
  1448. max-width: calc(#{$m * 100}vw #{$sign} #{$b});
  1449. font: #{$font-size}/#{$line-height};
  1450. content: "I have #{8 + 2} books on SASS!";
  1451. border: #{$var} #{$var} #{$var};
  1452. filter: #{$var}#{$var}#{$var};
  1453. prop: #{$var + $var} #{$var + $var} #{$var + $var};
  1454. prop2: #{$var + $var} #{$var + $var} #{$var + $var};
  1455. prop3: #{$var + $var} #{$var + $var} #{$var + $var};
  1456. prop4: -#{$loader-icon-duration};
  1457. prop5: +#{$loader-icon-duration};
  1458. prop6: calc(-#{$loader-icon-duration} + 10);
  1459. prop7: calc(10 + -#{$loader-icon-duration});
  1460. }
  1461. /* Framework version for the generated CSS is #{$version}. */
  1462. .selector {
  1463. foo: bar;
  1464. #{$active} {
  1465. baz: qux;
  1466. }
  1467. }
  1468. .el:nth-of-type(#{$i}) {
  1469. }
  1470. @media #{$value} {
  1471. }
  1472. @import url(#{$foundation-dir}/foundation/components/grid);
  1473. @keyframes loader {
  1474. 0% {
  1475. transform: translate3d(0, 0, 0);
  1476. }
  1477. #{50% - $loader-icon-duration} {
  1478. transform: translate3d(0, $bounce-height, 0);
  1479. }
  1480. 50% {
  1481. transform: translate3d(0, $bounce-height, 0)
  1482. scale(
  1483. $loader-bounce-horizontal-expansion,
  1484. $loader-bounce-vertical-compression
  1485. );
  1486. }
  1487. }
  1488. $icons: wifi "\\600", wifi-hotspot "\\601", weather "\\602";
  1489. @each $icon in $icons {
  1490. .icon-#{nth($icon, 1)},
  1491. %icon-#{nth($icon, 1)} {
  1492. content: "#{nth($icon, 2)}";
  1493. }
  1494. }
  1495. .foo {
  1496. prop: -($grid-gutter-width / 2);
  1497. prop1: -($grid-gutter-width / 2);
  1498. prop2: -$grid-gutter-width / 2;
  1499. prop3: +($grid-gutter-width / 2);
  1500. prop4: 10px/8px; /* Plain CSS, no division */
  1501. prop5: $width / 2; /* Uses a variable, does division */
  1502. prop6: round(1.5) / 2; /* Uses a function, does division */
  1503. prop7: (500px / 2); /* Uses parentheses, does division */
  1504. prop8: 5px + 8px / 2px; //* Uses +, does division */
  1505. prop9: (italic bold 10px/8px); /* In a list, parentheses don't count */
  1506. prop10: #010203 + #040506;
  1507. prop11: #010203 * 2;
  1508. prop12: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
  1509. prop13: progid:DXImageTransform.Microsoft.gradient(enabled='false', startColorstr='#{ie-hex-str($green)}', endColorstr='#{ie-hex-str($translucent-red)}');
  1510. prop14: e + -resize;
  1511. prop15: sans- + "serif";
  1512. prop16: 1em + (2em * 3);
  1513. prop17: rotate(-2deg);
  1514. prop18: rotate(-2deg);
  1515. _: _;
  1516. prop19: 10 - ($grid-gutter-width / 2);
  1517. prop20: 10 + -($grid-gutter-width / 2);
  1518. prop21: 10 + -($grid-gutter-width / 2);
  1519. prop22: -($grid-gutter-width / 2);
  1520. prop23: -($grid-gutter-width / 2);
  1521. prop24: -$grid-gutter-width;
  1522. prop25: +($grid-gutter-width / 2);
  1523. prop26: +($grid-gutter-width / 2);
  1524. prop27: +$grid-gutter-width;
  1525. prop28: --($grid-gutter-width / 2);
  1526. prop28: ++($grid-gutter-width / 2);
  1527. prop29: rotate(-2deg);
  1528. }
  1529. $last: nth($juggler, length($juggler));
  1530. $x: if($last%2==0, 1/2, 3/2);
  1531. $new: pow($last, $x);
  1532. $sequence: 1, 1 1, 2 1, 1 2 1 1, 1 1 1 2 2 1;
  1533. $new-entry: ();
  1534. $new-entry: ();
  1535. $new-entry: ();
  1536. $new-entry: ();
  1537. body:before {
  1538. content: quote(to-string(fibonacci(100), " \\A "));
  1539. white-space: pre-wrap;
  1540. }
  1541. width: ((100% - (($numPerRow - 1) * $margin)) / $numPerRow);
  1542. width: ((100% - (($numPerRow - 1) * $margin)) / $numPerRow);
  1543. a:nth-child(#{$numPerRow}n) {
  1544. margin-right: 0;
  1545. margin-bottom: 0;
  1546. }
  1547. @function em($pixels, $context: $browser-context) {
  1548. @return #{$pixels / $context}em;
  1549. }
  1550. .navigation {
  1551. @extend %updated-#{$flag};
  1552. @extend .selected-#{$flag};
  1553. @extend %#{$item};
  1554. }
  1555. .icon-#{$icon-name} {
  1556. background-image: "/images/#{$icon-name}.svg";
  1557. }
  1558. $extmods: (
  1559. eot: "?",
  1560. svg: "#" + str-replace($name, " ", "_")
  1561. );
  1562. @mixin keyframes {
  1563. @-moz-keyframes {
  1564. @content;
  1565. }
  1566. @-webkit-keyframes {
  1567. @content;
  1568. }
  1569. }
  1570. @function gcd($a, $b) {
  1571. // From: http://rosettacode.org/wiki/Greatest_common_divisor#JavaScript
  1572. @if ($b != 0) {
  1573. @return gcd($b, $a % $b);
  1574. } @else {
  1575. @return abs($a);
  1576. }
  1577. }
  1578. $colors: (
  1579. primary: (
  1580. base: #00abc9,
  1581. light: #daf1f6,
  1582. dark: #12799a
  1583. ),
  1584. secondary: (
  1585. base: #424d55,
  1586. light: #ccc,
  1587. lightest: #efefef,
  1588. dark: #404247
  1589. ),
  1590. success: (
  1591. base: #bbd33e,
  1592. light: #eaf0c6
  1593. )
  1594. );
  1595. @function color($color, $tone: "base") {
  1596. @return map-get(map-get($colors, $color), $tone);
  1597. }
  1598. @media only screen and (max-width: 767px) {
  1599. @include widths(2 3 4, \\@small);
  1600. }
  1601. $widths-breakpoint-separator: \\@small;
  1602. a {
  1603. transition-timing-function: func1(
  1604. func2(
  1605. func3(
  1606. "veryVeryVeryVeryVeryLongValue",
  1607. "veryVeryVeryVeryVeryLongValue",
  1608. "veryVeryVeryVeryVeryLongValue",
  1609. "veryVeryVeryVeryVeryLongValue"
  1610. ),
  1611. "veryVeryVeryVeryVeryLongValue",
  1612. "veryVeryVeryVeryVeryLongValue",
  1613. "veryVeryVeryVeryVeryLongValue"
  1614. ),
  1615. "veryVeryVeryVeryVeryLongValue",
  1616. "veryVeryVeryVeryVeryLongValue",
  1617. func3(
  1618. "veryVeryVeryVeryVeryLongValue",
  1619. "veryVeryVeryVeryVeryLongValue",
  1620. "veryVeryVeryVeryVeryLongValue",
  1621. "veryVeryVeryVeryVeryLongValue"
  1622. )
  1623. );
  1624. }
  1625. $empty-map: ();
  1626. $empty-nested-map: (
  1627. nested-key: (
  1628. empty-key: (
  1629. color: red
  1630. )
  1631. ),
  1632. empty-key: (),
  1633. empty-key: (),
  1634. empty-key: ()
  1635. );
  1636. $o-grid-default-config: (
  1637. columns: 12,
  1638. gutter: 10px,
  1639. min-width: 240px,
  1640. max-width: 1330px,
  1641. layouts: (
  1642. S: 370px,
  1643. M: 610px,
  1644. L: 850px,
  1645. XL: 1090px
  1646. ),
  1647. fluid: true,
  1648. debug: false,
  1649. fixed-layout: M,
  1650. enhanced-experience: true
  1651. );
  1652. $a: ();
  1653. $b: unquote("");
  1654. $c: null;
  1655. $d: (null);
  1656. $threads-properties: map-merge(
  1657. $threads-properties,
  1658. (
  1659. $border-label: ()
  1660. )
  1661. );
  1662. $o-grid-default-config: (
  1663. layouts: (
  1664. S: 370px
  1665. )
  1666. );
  1667. $map: (
  1668. key: (
  1669. value
  1670. ),
  1671. other-key: (
  1672. key: other-other-value
  1673. )
  1674. );
  1675. a {
  1676. content: "#{"0.5"}";
  1677. content: my-fn("_");
  1678. content: "#{my-fn("_")}";
  1679. content: my-fn("-");
  1680. content: "#{my-fn("-")}";
  1681. content: my-fn("-a");
  1682. content: "#{my-fn("-a")}";
  1683. content: my-fn("a-");
  1684. content: "#{my-fn("a-")}";
  1685. content: my-fn("foo");
  1686. content: "#{my-fn("foo")}";
  1687. content: 1 "#{my-fn("foo")}" 2;
  1688. content: foo "#{my-fn("foo")}" bar;
  1689. content: "foo #{$description} bar";
  1690. content: "#{my-fn("foo","bar")}";
  1691. content: "#{my-fn( "foo" , "bar" )}";
  1692. content: "#{my-fn( "foo" , "bar" )}";
  1693. content: '#{my-fn("foo")}';
  1694. content: "#{my-fn("foo")}";
  1695. content: "#{my-fn('foo')}";
  1696. content: "#{my-fn("foo")}";
  1697. }
  1698. mixin theme($css-property, $css-value, $theme-classes: t) {
  1699. @each $selector in & {
  1700. @each $class in $theme-classes {
  1701. @each $theme, $theme-properties in c(themes) {
  1702. $value: $css-value;
  1703. @each $theme-name, $theme-value in $theme-properties {
  1704. $rgba-value: "rgba(#{red($theme-value)}, #{green($theme-value)}, #{blue($theme-value)}";
  1705. $value: str-replace($value, "rgba(\${#{$theme-name}}", $rgba-value);
  1706. $value: str-replace($value, "\${#{$theme-name}}", $theme-value);
  1707. }
  1708. @at-root .#{$class}-#{join($theme, $selector)} {
  1709. #{$css-property}: unquote($value);
  1710. }
  1711. }
  1712. }
  1713. }
  1714. }
  1715. .foo,
  1716. // Comment
  1717. .bar {
  1718. // Comment
  1719. color: red; // Comment
  1720. }
  1721. $my-list: "foo",
  1722. // Comment
  1723. "bar"; // Comment
  1724. $my-map: (
  1725. "foo": 1,
  1726. // Comment
  1727. "bar": 2,
  1728. // Comment
  1729. );
  1730. [href]:hover &, // Comment
  1731. [href]:focus &, // Comment
  1732. [href]:active & {
  1733. .tooltip {
  1734. opacity: 1;
  1735. }
  1736. }
  1737. @import // Comment
  1738. "mixins",
  1739. "variables",
  1740. // Comment
  1741. "reset",
  1742. "scaffolding", "type",
  1743. // Comment
  1744. "bar",
  1745. "tabs";
  1746. `;