Permalink
Browse files

refactoring, reorganized a ton, adding example content for accordions

  • Loading branch information...
1 parent b9707c6 commit f1f54d89b2c5d96ea87fa03c1f2ff3ab2550f4f5 @jonschlinkert jonschlinkert committed Mar 12, 2013
Showing with 5,045 additions and 0 deletions.
  1. +19 −0 .npmignore
  2. 0 { → docs}/assets/css/bootstrap.css
  3. 0 { → docs}/assets/css/cheatsheet.css
  4. BIN { → docs}/assets/fonts/glyphiconshalflings-regular.eot
  5. BIN { → docs}/assets/fonts/glyphiconshalflings-regular.otf
  6. 0 { → docs}/assets/fonts/glyphiconshalflings-regular.svg
  7. BIN { → docs}/assets/fonts/glyphiconshalflings-regular.ttf
  8. BIN { → docs}/assets/fonts/glyphiconshalflings-regular.woff
  9. 0 { → docs}/assets/js/bootstrap-collapse.js
  10. 0 { → docs}/assets/js/jquery.js
  11. 0 { → docs}/assets/js/prettify/lang-config.js
  12. 0 { → docs}/assets/js/prettify/lang-css.js
  13. 0 { → docs}/assets/js/prettify/lang-less.js
  14. 0 { → docs}/assets/js/prettify/prettify.css
  15. 0 { → docs}/assets/js/prettify/prettify.js
  16. 0 { → docs}/cheatsheet.html
  17. 0 { → src}/config.json
  18. +5 −0 src/content/charsets.md
  19. +94 −0 src/content/colors.md
  20. +80 −0 src/content/comments.md
  21. +35 −0 src/content/css-escapes.md
  22. +105 −0 src/content/css.md
  23. +116 −0 src/content/css3.md
  24. +11 −0 src/content/example-css.md
  25. +12 −0 src/content/example-json.md
  26. +23 −0 src/content/example-less.md
  27. +19 −0 src/content/extend-clearfix.md
  28. +22 −0 src/content/extend-nest.md
  29. +53 −0 src/content/extend-selector.md
  30. +37 −0 src/content/extend.md
  31. +140 −0 src/content/functions.md
  32. +15 −0 src/content/ie-filters.md
  33. +8 −0 src/content/import-interpolation.md
  34. +4 −0 src/content/import-once.md
  35. +15 −0 src/content/import.md
  36. +29 −0 src/content/javascript.md
  37. +6 −0 src/content/lazy-eval.md
  38. +210 −0 src/content/media.md
  39. +186 −0 src/content/mixins-args.md
  40. +26 −0 src/content/mixins-closure.md
  41. +124 −0 src/content/mixins-guards.md
  42. +22 −0 src/content/mixins-important.md
  43. +36 −0 src/content/mixins-named-args.md
  44. +22 −0 src/content/mixins-nested.md
  45. +99 −0 src/content/mixins-pattern.md
  46. +114 −0 src/content/mixins.md
  47. +62 −0 src/content/operations.md
  48. +41 −0 src/content/parens.md
  49. +30 −0 src/content/rulesets.md
  50. +79 −0 src/content/scope.md
  51. +132 −0 src/content/selectors.md
  52. +51 −0 src/content/strings.md
  53. +57 −0 src/content/urls.md
  54. +81 −0 src/content/variables.md
  55. +44 −0 src/content/whitespace.md
  56. +63 −0 src/content/yaml.yml
  57. +197 −0 src/data/example-data.yml
  58. +83 −0 src/data/examples/comments.json
  59. +103 −0 src/data/examples/comments.yml
  60. +124 −0 src/data/examples/delimiters.json
  61. +158 −0 src/data/examples/delimiters.yml
  62. +308 −0 src/data/examples/interpolation.json
  63. +230 −0 src/data/examples/interpolation.yml
  64. +214 −0 src/data/examples/inverted.json
  65. +193 −0 src/data/examples/inverted.yml
  66. +130 −0 src/data/examples/partials.json
  67. +109 −0 src/data/examples/partials.yml
  68. +282 −0 src/data/examples/sections.json
  69. +256 −0 src/data/examples/sections.yml
  70. +182 −0 src/data/examples/~lambdas.json
  71. +149 −0 src/data/examples/~lambdas.yml
View
@@ -0,0 +1,19 @@
+lib-cov
+*.seed
+*.log
+*.csv
+*.dat
+*.out
+*.pid
+*.gz
+
+pids
+logs
+results
+
+src/content/less-tests/
+
+npm-debug.log
+/node_modules/
+*.sublime-project
+*.sublime-workspace
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,5 @@
+``` less
+@charset "UTF-8";
+
+@import "import/import-charset-test";
+```
View
@@ -0,0 +1,94 @@
+``` less
+#yelow {
+ #short {
+ color: #fea;
+ }
+ #long {
+ color: #ffeeaa;
+ }
+ #rgba {
+ color: rgba(255, 238, 170, 0.1);
+ }
+ #argb {
+ color: argb(rgba(255, 238, 170, 0.1));
+ }
+}
+
+#blue {
+ #short {
+ color: #00f;
+ }
+ #long {
+ color: #0000ff;
+ }
+ #rgba {
+ color: rgba(0, 0, 255, 0.1);
+ }
+ #argb {
+ color: argb(rgba(0, 0, 255, 0.1));
+ }
+}
+
+#alpha #hsla {
+ color: hsla(11, 20%, 20%, 0.6);
+}
+
+#overflow {
+ .a { color: (#111111 - #444444); } // #000000
+ .b { color: (#eee + #fff); } // #ffffff
+ .c { color: (#aaa * 3); } // #ffffff
+ .d { color: (#00ee00 + #009900); } // #00ff00
+}
+
+#grey {
+ color: rgb(200, 200, 200);
+}
+
+#333333 {
+ color: rgb(20%, 20%, 20%);
+}
+
+#808080 {
+ color: hsl(50, 0%, 50%);
+}
+
+#00ff00 {
+ color: hsl(120, 100%, 50%);
+}
+
+.lightenblue {
+ color: lighten(blue, 10%);
+}
+
+.darkenblue {
+ color: darken(blue, 10%);
+}
+
+.unknowncolors {
+ color: blue2;
+ border: 2px solid superred;
+}
+
+.transparent {
+ color: transparent;
+ background-color: rgba(0, 0, 0, 0);
+}
+#alpha {
+ @colorvar: rgba(150, 200, 150, 0.7);
+ #fromvar {
+ opacity: alpha(@colorvar);
+ }
+ #short {
+ opacity: alpha(#aaa);
+ }
+ #long {
+ opacity: alpha(#bababa);
+ }
+ #rgba {
+ opacity: alpha(rgba(50, 120, 95, 0.2));
+ }
+ #hsl {
+ opacity: alpha(hsl(120, 100%, 50%));
+ }
+}
+```
View
@@ -0,0 +1,80 @@
+``` less
+/******************\
+* *
+* Comment Header *
+* *
+\******************/
+
+/*
+
+ Comment
+
+*/
+
+/*
+ * Comment Test
+ *
+ * - cloudhead (http://cloudhead.net)
+ *
+ */
+
+////////////////
+@var: "content";
+////////////////
+
+/* Colors
+ * ------
+ * #EDF8FC (background blue)
+ * #166C89 (darkest blue)
+ *
+ * Text:
+ * #333 (standard text) // A comment within a comment!
+ * #1F9EC9 (standard link)
+ *
+ */
+
+/* @group Variables
+------------------- */
+#comments /* boo */ {
+ /**/ // An empty comment
+ color: red; /* A C-style comment */
+ background-color: orange; // A little comment
+ font-size: 12px;
+
+ /* lost comment */ content: @var;
+
+ border: 1px solid black;
+
+ // padding & margin //
+ padding: 0; // }{ '"
+ margin: 2em;
+} //
+
+/* commented out
+ #more-comments {
+ color: grey;
+ }
+*/
+
+.selector /* .with */, .lots, /* of */ .comments {
+ color: grey, /* blue */ orange;
+ -webkit-border-radius: 2px /* webkit only */;
+ -moz-border-radius: (2px * 4) /* moz only with operation */;
+}
+
+.mixin_def_with_colors(@a: white, // in
+ @b: 1px //put in @b - causes problems! --->
+ ) // the
+ when (@a = white) {
+ .test {
+ color: @b;
+ }
+}
+.mixin_def_with_colors();
+
+#last { color: blue }
+//
+
+/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */
+
+```
View
@@ -0,0 +1,35 @@
+``` less
+@ugly: fuchsia;
+
+.escape\|random\|char {
+ color: red;
+}
+
+.mixin\!tUp {
+ font-weight: bold;
+}
+
+// class="404"
+.\34 04 {
+ background: red;
+
+ strong {
+ color: @ugly;
+ .mixin\!tUp;
+ }
+}
+
+.trailingTest\+ {
+ color: red;
+}
+
+/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */
+\62\6c\6f \63 \6B \0071 \000075o\74 e {
+ color: silver;
+}
+
+[ng\:cloak],
+ng\:form {
+ display: none;
+}
+```
View
@@ -0,0 +1,105 @@
+``` less
+@charset "utf-8";
+div { color: black; }
+div { width: 99%; }
+
+* {
+ min-width: 45em;
+}
+
+h1, h2 > a > p, h3 {
+ color: none;
+}
+
+div.class {
+ color: blue;
+}
+
+div#id {
+ color: green;
+}
+
+.class#id {
+ color: purple;
+}
+
+.one.two.three {
+ color: grey;
+}
+
+@media print {
+ font-size: 3em;
+}
+
+@media screen {
+ font-size: 10px;
+}
+
+@font-face {
+ font-family: 'Garamond Pro';
+}
+
+a:hover, a:link {
+ color: #999;
+}
+
+p, p:first-child {
+ text-transform: none;
+}
+
+q:lang(no) {
+ quotes: none;
+}
+
+p + h1 {
+ font-size: +2.2em;
+}
+
+#shorthands {
+ border: 1px solid #000;
+ font: 12px/16px Arial;
+ font: 100%/16px Arial;
+ margin: 1px 0;
+ padding: 0 auto;
+}
+
+#more-shorthands {
+ margin: 0;
+ padding: 1px 0 2px 0;
+ font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
+ font: 0/0 a;
+ border-radius: 5px / 10px;
+}
+
+.misc {
+ -moz-border-radius: 2px;
+ display: -moz-inline-stack;
+ width: .1em;
+ background-color: #009998;
+ background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
+ margin: ;
+ .nested-multiple {
+ multiple-semi-colons: yes;;;;;;
+ };
+ filter: alpha(opacity=100);
+}
+
+#important {
+ color: red !important;
+ width: 100%!important;
+ height: 20px ! important;
+}
+
+.def-font(@name) {
+ @font-face {
+ font-family: @name
+ }
+}
+
+.def-font(font-a);
+.def-font(font-b);
+
+.æøå {
+ margin: 0;
+}
+```
Oops, something went wrong.

0 comments on commit f1f54d8

Please sign in to comment.