scss.scss 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  1. @media #{$g-breakpoint-tiny} {}
  2. .#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }
  3. a {height: calc(#{$foo} + 1);}
  4. div {
  5. background: {
  6. size: auto 60%;
  7. position: bottom 2px left;
  8. }
  9. }
  10. a { margin: 0 { left: 10px; } }
  11. $default: #111111 !default;
  12. $default: #111111 !default;
  13. $default: #111111
  14. !default;
  15. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  16. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value" !default;
  17. $default: "very-long-long-long-long-long-long-long-long-long-long-long-value"
  18. !default;
  19. $global: #111111 !global;
  20. $global: #111111 !global;
  21. $global: #111111
  22. !global;
  23. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  24. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value" !global;
  25. $global: "very-long-long-long-long-long-long-long-long-long-long-long-value"
  26. !global;
  27. $map: (key: value, other-key: other-value);
  28. $map: (key: value, other-key: other-value) !default;
  29. $map: (key: value, other-key: other-value) !default;
  30. $map: (key: value, other-key: other-value)
  31. !default;
  32. $map:
  33. (key: value, other-key: other-value)
  34. !default;
  35. $map: ( key : value , other-key : other-value);
  36. $map: ( key : value , other-key : other-value );
  37. $map: (
  38. key: value,
  39. other-key: other-value
  40. );
  41. $map: (
  42. key: value,
  43. other-key: other-value
  44. );
  45. $map: (
  46. key
  47. :
  48. value,
  49. other-key
  50. :
  51. other-value
  52. );
  53. $map: (
  54. key
  55. :
  56. value
  57. ,
  58. other-key
  59. :
  60. other-value
  61. );
  62. $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);
  63. $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 );
  64. $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 );
  65. $map: (
  66. 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,
  67. 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
  68. );
  69. $map: (
  70. 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,
  71. 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. );
  73. $map:
  74. (
  75. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-key
  76. :
  77. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-value
  78. ,
  79. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-key
  80. :
  81. very-very-very-very-very-very-very-very-very-very-very-very-very-very-very-verylong-other-value
  82. );
  83. $map: (
  84. key: (#d82d2d, #666),
  85. other-key: (#52bf4a, #fff),
  86. other-other-key: (#c23435, #fff)
  87. );
  88. $map: (
  89. key: (#d82d2d, #666),
  90. other-key: (#52bf4a, #fff),
  91. other-other-key: (#c23435, #fff)
  92. );
  93. $map: (
  94. key : ( #d82d2d , #666 ),
  95. other-key : ( #52bf4a , #fff ),
  96. other-other-key : ( #c23435 , #fff )
  97. );
  98. $map: (
  99. key : ( #d82d2d , #666 ) ,
  100. other-key : ( #52bf4a , #fff ),
  101. other-other-key : ( #c23435 , #fff )
  102. );
  103. $map: (
  104. key
  105. :
  106. (
  107. #d82d2d,
  108. #666
  109. )
  110. ,
  111. other-key
  112. :
  113. (
  114. #52bf4a,
  115. #fff
  116. )
  117. ,
  118. other-other-key
  119. :
  120. (
  121. #c23435
  122. ,
  123. #fff
  124. )
  125. );
  126. $map: map-merge($map, ($key: $value));
  127. $map: map-merge( $map , ( $key : $value ) );
  128. $map: map-merge( $map , ( $key : $value ) );
  129. $map: map-merge(
  130. $map,
  131. ($key: $value)
  132. );
  133. $map: map-merge(
  134. $map,
  135. ($key: $value)
  136. );
  137. $map:
  138. map-merge(
  139. $map
  140. ,
  141. (
  142. $key
  143. :
  144. $value
  145. )
  146. );
  147. $longVariable: (
  148. (mobile $mobile) (tablet $tablet) (desktop $desktop) (wide $wide)
  149. );
  150. $list-space: "item-1" "item-2" "item-3";
  151. $list-space:"item-1""item-2""item-3";
  152. $list-space: "item-1" "item-2" "item-3" ;
  153. $list-space: "item-1"
  154. "item-2"
  155. "item-3";
  156. $list-space
  157. :
  158. "item-1"
  159. "item-2"
  160. "item-3"
  161. ;
  162. $list-space
  163. :
  164. "item-1"
  165. "item-2"
  166. "item-3"
  167. ;
  168. $list-comma: "item-1", "item-2", "item-3";
  169. $list-comma:"item-1","item-2","item-3";
  170. $list-comma: "item-1" , "item-2" , "item-3" ;
  171. $list-comma: "item-1",
  172. "item-2",
  173. "item-3";
  174. $list-comma
  175. :
  176. "item-1"
  177. ,
  178. "item-2"
  179. ,
  180. "item-3"
  181. ;
  182. $list-comma
  183. :
  184. "item-1"
  185. ,
  186. "item-2"
  187. ,
  188. "item-3"
  189. ;
  190. $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";
  191. $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";
  192. $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" ;
  193. $list: "item-1.1" "item-1.2" "item-1.3",
  194. "item-2.1" "item-2.2" "item-2.3",
  195. "item-3.1" "item-3.2" "item-3.3";
  196. $list
  197. :
  198. "item-1.1"
  199. "item-1.2"
  200. "item-1.3"
  201. ,
  202. "item-2.1"
  203. "item-2.2"
  204. "item-2.3"
  205. ,
  206. "item-3.1"
  207. "item-3.2"
  208. "item-3.3"
  209. ;
  210. $list
  211. :
  212. "item-1.1"
  213. "item-1.2"
  214. "item-1.3"
  215. ,
  216. "item-2.1"
  217. "item-2.2"
  218. "item-2.3"
  219. ,
  220. "item-3.1"
  221. "item-3.2"
  222. "item-3.3"
  223. ;
  224. $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"));
  225. $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"));
  226. $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" ) ) ;
  227. $list: (
  228. ("item-1.1", "item-1.2", "item-1.3"),
  229. ("item-2.1", "item-2.2", "item-2.3"),
  230. ("item-3.1", "item-3.2", "item-3.3")
  231. );
  232. $list
  233. :
  234. (
  235. (
  236. "item-1.1"
  237. ,
  238. "item-1.2"
  239. ,
  240. "item-1.3"
  241. )
  242. ,
  243. (
  244. "item-2.1"
  245. ,
  246. "item-2.2"
  247. ,
  248. "item-2.3"
  249. )
  250. ,
  251. (
  252. "item-3.1"
  253. ,
  254. "item-3.2"
  255. ,
  256. "item-3.3"
  257. )
  258. )
  259. ;
  260. $list
  261. :
  262. (
  263. (
  264. "item-1.1"
  265. ,
  266. "item-1.2"
  267. ,
  268. "item-1.3"
  269. )
  270. ,
  271. (
  272. "item-2.1"
  273. ,
  274. "item-2.2"
  275. ,
  276. "item-2.3"
  277. )
  278. ,
  279. (
  280. "item-3.1"
  281. ,
  282. "item-3.2"
  283. ,
  284. "item-3.3"
  285. )
  286. )
  287. ;
  288. $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);
  289. $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");
  290. .card-column-simple {
  291. @include breakpoint( getBp( md ) ) {
  292. padding: $spacing_content-sm $spacing_content-md;
  293. }
  294. @include breakpoint (getBp(md)) {
  295. &:nth-child(2n + 3) {
  296. clear: both;
  297. }
  298. }
  299. @include breakpoint (getBp(xl)) {
  300. &:nth-child(2n + 3) {
  301. clear: none;
  302. }
  303. &:nth-child(3n + 4) {
  304. clear: both;
  305. }
  306. }
  307. }
  308. @warn "Warn (#{$message}).";
  309. @warn "Warn (#{$message}).";
  310. @warn "Warn (#{$message}).";
  311. @warn #{$message};
  312. @warn "Very long long long long long long long long long long long long long line (#{$message}).";
  313. @warn
  314. "Very long long long long long long long long long long long long long line (#{$message}).";
  315. @error "Error (#{$message}).";
  316. @error "Error (#{$message}).";
  317. @error "Error (#{$message}).";
  318. @error #{$message};
  319. @error "Very long long long long long long long long long long long long long line Error (#{$message}).";
  320. @error
  321. "Very long long long long long long long long long long long long long line Error (#{$message}).";
  322. $buttonConfig: "save" 50px, 'cancel' 50px, "help" 100PX;
  323. $locale: "en_us";
  324. html[lang=#{$locale}] {
  325. font-size: 10px;
  326. }
  327. $alertClass: "error";
  328. p.message-#{$alertClass} {
  329. color: red;
  330. }
  331. $mediumBreakpoint: 768px;
  332. @media (max-width: #{$mediumBreakpoint}) {
  333. a {
  334. font-size: 18px;
  335. }
  336. }
  337. p {
  338. @media (max-width: 768px) {
  339. font-size: 150%;
  340. @media (orientation: landscape) {
  341. line-height: 75%;
  342. }
  343. }
  344. }
  345. .popularAnimal {
  346. background: gray;
  347. }
  348. .GoodBoy {
  349. color: green;
  350. }
  351. .dog {
  352. @extend .popularAnimal;
  353. @extend .GoodBoy;
  354. color: white;
  355. }
  356. %animal {
  357. background: gray;
  358. }
  359. .cat {
  360. @extend %animal;
  361. color: white;
  362. }
  363. .dog {
  364. @extend %animal;
  365. color: black;
  366. }
  367. %mfw-standing-out {
  368. font-size: 150%;
  369. font-style: italic;
  370. padding: 25px;
  371. }
  372. %mfwSlightlyShadowed {
  373. @include box-shadow(black 2px 2px 10px); // from Compass
  374. }
  375. %MFWRounded {
  376. @include border-radius(25px); // from Compass
  377. }
  378. #join-button {
  379. @extend %mfw-standing-out;
  380. @extend %mfwSlightlyShadowed;
  381. @extend %MFWRounded;
  382. background: green;
  383. color: white;
  384. }
  385. a {
  386. &:hover {
  387. color: red;
  388. }
  389. }
  390. p {
  391. body.no-touch & {
  392. display: none;
  393. }
  394. }
  395. .foo.bar .baz.bang, .bip.qux {
  396. $selector: &;
  397. }
  398. @mixin does-parent-exist {
  399. @if & {
  400. &:hover {
  401. color: red;
  402. }
  403. } @else {
  404. a {
  405. color: red;
  406. }
  407. }
  408. }
  409. p {
  410. @if 1 + 1 == 2 {
  411. border: 1px solid;
  412. }
  413. @if 5 < 3 {
  414. border: 2px dotted;
  415. }
  416. @if null {
  417. border: 3px double;
  418. }
  419. }
  420. $mosterType: monster;
  421. p {
  422. @if $mosterType == ocean {
  423. color: blue;
  424. } @else if $mosterType == matador {
  425. color: red;
  426. } @else if $mosterType == monster {
  427. color: green;
  428. } @else if $mosterType == nightKing {
  429. color: green;
  430. } @else if $mosterType == VeryWickedWolf {
  431. color: green;
  432. } @else {
  433. color: black;
  434. }
  435. }
  436. @for $i from 1 through 3 {
  437. .item-#{$i} {
  438. width: 2em * $i;
  439. }
  440. }
  441. @each $animal in puma, sea-slug, cheerfulDog, BigSalamander, "string", 'another-string', "camelCaseString", "PascalCaseString" {
  442. .#{$animal}-icon {
  443. background-image: url('/images/#{$animal}.png');
  444. }
  445. }
  446. $i: 6;
  447. @while $i > 0 {
  448. .item-#{$i} {
  449. width: 2em * $i;
  450. }
  451. $i: $i - 2;
  452. }
  453. @mixin cool-border($width: 10px, $coolStyle: 'solid', $AwesomeColor: "black") {
  454. border: $width $coolStyle $AwesomeColor;
  455. }
  456. p {
  457. @include cool-border(1px, "solid", $fff);
  458. }
  459. p {
  460. @include cool-border($width: 1px, $coolStyle: 'solid', $AwesomeColor: #fff);
  461. }
  462. p {
  463. @include coolBorder();
  464. }
  465. @mixin coolBorder() {
  466. border: 10px solid #fff;
  467. }
  468. p {
  469. @include coolBorder(1px, "solid", $fff);
  470. }
  471. @mixin CoolBorder() {
  472. border: 10px solid #fff;
  473. }
  474. p {
  475. @include CoolBorder(1px, "solid", $fff);
  476. }
  477. @mixin box-shadow($shadows...) {
  478. -moz-box-shadow: $shadows;
  479. -webkit-box-shadow: $shadows;
  480. box-shadow: $shadows;
  481. }
  482. .shadows {
  483. @include box-shadow(0px 4px 5px #666, 2px 6px 10px #999);
  484. }
  485. @mixin apply-to-ie6-only {
  486. * html {
  487. @content;
  488. }
  489. }
  490. @include apply-to-ie6-only {
  491. #logo {
  492. background-image: url(/logo.gif);
  493. }
  494. }
  495. @mixin applyToIe6Only {
  496. * html {
  497. @content;
  498. }
  499. }
  500. @include applyToIe6Only {
  501. #logo {
  502. background-image: url(/logo.gif);
  503. }
  504. }
  505. @mixin ApplyToIe6Only {
  506. * html {
  507. @content;
  508. }
  509. }
  510. @include ApplyToIe6Only {
  511. #logo {
  512. background-image: url(/logo.gif);
  513. }
  514. }
  515. @mixin config-icon-colors($prefix, $colors...) {
  516. @each $i in $colors {
  517. .#{$prefix}#{nth($i, 1)} {
  518. color: nth($i, 2);
  519. }
  520. }
  521. }
  522. @include config-icon-colors(
  523. "icon-",
  524. "save" green,
  525. "cancel" gray,
  526. "delete" red,
  527. 'wait' blue
  528. );
  529. @function my-calculation-function($some-number, $anotherNumber, $BigNumber){
  530. @return $some-number + $anotherNumber + $BigNumber;
  531. }
  532. @function myCalculationFunction($some-number, $anotherNumber, $BigNumber){
  533. @return $some-number + $anotherNumber + $BigNumber;
  534. }
  535. @function AnotherMyCalculationFunction($some-number, $anotherNumber, $BigNumber: 100px){
  536. @return $some-number + $anotherNumber + $BigNumber;
  537. }
  538. @function border($borders...) {
  539. @return $borders;
  540. }
  541. .foo {
  542. padding: my-calculation-function(10px, 5px, 100px);
  543. margin: myCalculationFunction($some-number: 10px, $anotherNumber: 5px, $BigNumber: 100px);
  544. width: AnotherMyCalculationFunction(10px, 5px);
  545. border: border(25px, 35px);
  546. }
  547. $sm-only: '(min-width: 768px) and (max-width: 991px)';
  548. $lg-and-up: '(min-width: 1200px)';
  549. @media screen and #{$sm-only, $lg-and-up} {
  550. color: #000;
  551. }
  552. .class-#{$var} {
  553. #{$var}: #7b3d66;
  554. #{$attr}-color: blue;
  555. #{$prop}-#{$side}: $value;
  556. background-#{$var}: #7b3d66;
  557. animation-name: #{var};
  558. line-height: #{strip-unit($line-height)}em;
  559. height: 1#{$var};
  560. width: calc(100% - #{$sidebar-width});
  561. max-width: calc(#{$m*100}vw #{$sign} #{$b});
  562. font: #{$font-size}/#{$line-height};
  563. content: "I have #{8 + 2} books on SASS!";
  564. border: #{$var} #{$var} #{$var};
  565. filter: #{$var}#{$var}#{$var};
  566. prop: #{ $var + $var } #{ $var + $var } #{ $var + $var };
  567. prop2:
  568. #{
  569. $var
  570. +
  571. $var
  572. }
  573. #{
  574. $var
  575. +
  576. $var
  577. }
  578. #{
  579. $var
  580. +
  581. $var
  582. }
  583. ;
  584. prop3:
  585. #{
  586. $var
  587. +
  588. $var
  589. }
  590. #{
  591. $var
  592. +
  593. $var
  594. }
  595. #{
  596. $var
  597. +
  598. $var
  599. }
  600. ;
  601. prop4: -#{$loader-icon-duration};
  602. prop5: +#{$loader-icon-duration};
  603. prop6: calc(-#{$loader-icon-duration} + 10);
  604. prop7: calc(10 + -#{$loader-icon-duration});
  605. }
  606. /* Framework version for the generated CSS is #{$version}. */
  607. .selector {
  608. foo: bar;
  609. #{$active} {
  610. baz: qux;
  611. }
  612. }
  613. .el:nth-of-type(#{$i}) {}
  614. @media #{$value} {}
  615. @import url(#{$foundation-dir}/foundation/components/grid);
  616. @keyframes loader {
  617. 0% {
  618. transform: translate3d(0, 0, 0);
  619. }
  620. #{50% - $loader-icon-duration} {
  621. transform: translate3d(0, $bounce-height, 0);
  622. }
  623. 50% {
  624. transform: translate3d(0, $bounce-height, 0) scale($loader-bounce-horizontal-expansion, $loader-bounce-vertical-compression);
  625. }
  626. }
  627. $icons: wifi "\600", wifi-hotspot "\601", weather "\602";
  628. @each $icon in $icons {
  629. .icon-#{nth($icon, 1)}, %icon-#{nth($icon, 1)} {
  630. content: "#{nth($icon, 2)}";
  631. }
  632. }
  633. .foo {
  634. prop: -($grid-gutter-width / 2);
  635. prop1: -( $grid-gutter-width / 2 );
  636. prop2: -$grid-gutter-width / 2;
  637. prop3: +($grid-gutter-width / 2);
  638. prop4: 10px/8px; /* Plain CSS, no division */
  639. prop5: $width / 2; /* Uses a variable, does division */
  640. prop6: round(1.5) / 2; /* Uses a function, does division */
  641. prop7: (500px / 2); /* Uses parentheses, does division */
  642. prop8: 5px + 8px / 2px; //* Uses +, does division */
  643. prop9: (italic bold 10px/8px); /* In a list, parentheses don't count */
  644. prop10: #010203 + #040506;
  645. prop11: #010203 * 2;
  646. prop12: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
  647. prop13: progid:DXImageTransform.Microsoft.gradient(enabled='false', startColorstr='#{ie-hex-str($green)}', endColorstr='#{ie-hex-str($translucent-red)}');
  648. prop14: e + -resize;
  649. prop15: sans- + "serif";
  650. prop16: 1em + (2em * 3);
  651. prop17: rotate(-2deg);
  652. prop18: rotate( -2deg ) ;
  653. _:_;
  654. prop19: 10 - ($grid-gutter-width / 2);
  655. prop20: 10 + -($grid-gutter-width / 2);
  656. prop21: 10 + - ( $grid-gutter-width / 2 ) ;
  657. prop22: - ( $grid-gutter-width / 2 ) ;
  658. prop23: - ( $grid-gutter-width / 2 ) ;
  659. prop24: -$grid-gutter-width;
  660. prop25: + ( $grid-gutter-width / 2 ) ;
  661. prop26: + ( $grid-gutter-width / 2 ) ;
  662. prop27: +$grid-gutter-width;
  663. prop28: --($grid-gutter-width / 2);
  664. prop28: ++($grid-gutter-width / 2);
  665. prop29: rotate( - 2deg ) ;
  666. }
  667. $last:nth($juggler,length($juggler));
  668. $x:if($last%2==0,1/2,3/2);
  669. $new:pow($last,$x);
  670. $sequence:1,1 1,2 1,1 2 1 1, 1 1 1 2 2 1;
  671. $new-entry:();
  672. $new-entry : ( ) ;
  673. $new-entry : ( ) ;
  674. $new-entry
  675. :
  676. (
  677. )
  678. ;
  679. body:before {
  680. content: quote(to-string(fibonacci(100), ' \A '));
  681. white-space: pre-wrap;
  682. }
  683. width: ((100% - (($numPerRow - 1) * $margin)) / $numPerRow);
  684. width
  685. :
  686. (
  687. (
  688. 100%
  689. -
  690. (
  691. (
  692. $numPerRow
  693. -
  694. 1
  695. )
  696. *
  697. $margin
  698. )
  699. )
  700. /
  701. $numPerRow
  702. )
  703. ;
  704. a:nth-child(#{$numPerRow}n) {
  705. margin-right: 0;
  706. margin-bottom: 0;
  707. }
  708. @function em($pixels, $context: $browser-context) {
  709. @return #{ $pixels / $context }em
  710. }
  711. .navigation {
  712. @extend %updated-#{$flag};
  713. @extend .selected-#{$flag};
  714. @extend %#{$item};
  715. }
  716. .icon-#{$icon-name} {
  717. background-image: '/images/#{$icon-name}.svg';
  718. }
  719. $extmods:(eot:"?",svg:"#" + str-replace($name," ","_"));
  720. @mixin keyframes {@-moz-keyframes{@content;}@-webkit-keyframes{@content;}}
  721. @function gcd($a,$b){
  722. // From: http://rosettacode.org/wiki/Greatest_common_divisor#JavaScript
  723. @if ($b != 0) {
  724. @return gcd($b,$a % $b);
  725. }@else{
  726. @return abs($a);
  727. }
  728. }
  729. $colors: (
  730. primary: (
  731. base: #00abc9,
  732. light: #daf1f6,
  733. dark: #12799a
  734. ),
  735. secondary: (
  736. base: #424d55,
  737. light: #ccc,
  738. lightest: #efefef,
  739. dark: #404247
  740. ),
  741. success: (
  742. base: #bbd33e,
  743. light: #eaf0c6
  744. )
  745. );
  746. @function color($color, $tone: "base") {
  747. @return map-get(map-get($colors, $color), $tone);
  748. }
  749. @media only screen and (max-width: 767px) {
  750. @include widths(2 3 4, \@small);
  751. }
  752. $widths-breakpoint-separator: \@small;
  753. a {
  754. transition-timing-function: func1(
  755. func2(
  756. func3(
  757. "veryVeryVeryVeryVeryLongValue",
  758. "veryVeryVeryVeryVeryLongValue",
  759. "veryVeryVeryVeryVeryLongValue",
  760. "veryVeryVeryVeryVeryLongValue",
  761. ),
  762. "veryVeryVeryVeryVeryLongValue",
  763. "veryVeryVeryVeryVeryLongValue",
  764. "veryVeryVeryVeryVeryLongValue",
  765. ),
  766. "veryVeryVeryVeryVeryLongValue",
  767. "veryVeryVeryVeryVeryLongValue",
  768. func3(
  769. "veryVeryVeryVeryVeryLongValue",
  770. "veryVeryVeryVeryVeryLongValue",
  771. "veryVeryVeryVeryVeryLongValue",
  772. "veryVeryVeryVeryVeryLongValue"
  773. )
  774. );
  775. }
  776. $empty-map: ();
  777. $empty-nested-map: (
  778. nested-key: (empty-key: (color: red)),
  779. empty-key: (),
  780. empty-key: (),
  781. empty-key: ()
  782. );
  783. $o-grid-default-config: (
  784. columns: 12,
  785. gutter: 10px,
  786. min-width: 240px,
  787. max-width: 1330px,
  788. layouts: (
  789. S: 370px,
  790. M: 610px,
  791. L: 850px,
  792. XL: 1090px
  793. ),
  794. fluid: true,
  795. debug: false,
  796. fixed-layout: M,
  797. enhanced-experience: true
  798. );
  799. $a: ();
  800. $b: unquote('');
  801. $c: null;
  802. $d: (null);
  803. $threads-properties: map-merge($threads-properties, ($border-label: ()));
  804. $o-grid-default-config: (layouts: (S: 370px));
  805. $map: (
  806. key: (value),
  807. other-key: (key: other-other-value)
  808. );
  809. a {
  810. content: "#{".5"}";
  811. content: my-fn("_");
  812. content: "#{my-fn("_")}";
  813. content: my-fn("-");
  814. content: "#{my-fn("-")}";
  815. content: my-fn("-a");
  816. content: "#{my-fn("-a")}";
  817. content: my-fn("a-");
  818. content: "#{my-fn("a-")}";
  819. content: my-fn("foo");
  820. content: "#{my-fn("foo")}";
  821. content: 1 "#{my-fn("foo")}" 2;
  822. content: foo "#{my-fn("foo")}" bar;
  823. content: "foo #{$description} bar";
  824. content: "#{my-fn("foo","bar")}";
  825. content: "#{my-fn( "foo" , "bar" )}";
  826. content: "#{my-fn( "foo" , "bar" )}";
  827. content: '#{my-fn("foo")}';
  828. content: '#{my-fn('foo')}';
  829. content: "#{my-fn('foo')}";
  830. content: "#{my-fn("foo")}";
  831. }
  832. mixin theme($css-property, $css-value, $theme-classes: t) {
  833. @each $selector in & {
  834. @each $class in $theme-classes {
  835. @each $theme, $theme-properties in c(themes) {
  836. $value: $css-value;
  837. @each $theme-name, $theme-value in $theme-properties {
  838. $rgba-value: "rgba(#{red($theme-value)}, #{green($theme-value)}, #{blue($theme-value)}";
  839. $value: str-replace($value, "rgba(${#{$theme-name}}", $rgba-value);
  840. $value: str-replace($value, "${#{$theme-name}}", $theme-value);
  841. }
  842. @at-root .#{$class}-#{join($theme, $selector)} {
  843. #{$css-property}: unquote($value);
  844. }
  845. }
  846. }
  847. }
  848. }
  849. .foo,
  850. // Comment
  851. .bar {
  852. // Comment
  853. color: red; // Comment
  854. }
  855. $my-list:
  856. 'foo', // Comment
  857. 'bar'; // Comment
  858. $my-map: (
  859. 'foo': 1, // Comment
  860. 'bar': 2, // Comment
  861. );
  862. [href]:hover &, // Comment
  863. [href]:focus &, // Comment
  864. [href]:active & {
  865. .tooltip {
  866. opacity: 1;
  867. }
  868. }
  869. @import
  870. // Comment
  871. 'mixins',
  872. 'variables',
  873. // Comment
  874. 'reset',
  875. 'scaffolding',
  876. 'type',
  877. // Comment
  878. 'bar',
  879. 'tabs';