stylin 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/Rakefile +21 -0
  3. data/app/assets/javascripts/stylin/application.js +4 -0
  4. data/app/assets/javascripts/stylin/highlight.pack.js +1 -0
  5. data/app/assets/javascripts/stylin/kss.js +54 -0
  6. data/app/assets/javascripts/stylin/styleguides.js +2 -0
  7. data/app/assets/stylesheets/stylin/_header.scss +12 -0
  8. data/app/assets/stylesheets/stylin/_navigation.css.scss +12 -0
  9. data/app/assets/stylesheets/stylin/application.css.scss +5 -0
  10. data/app/assets/stylesheets/stylin/highlight/arta.css +160 -0
  11. data/app/assets/stylesheets/stylin/highlight/ascetic.css +50 -0
  12. data/app/assets/stylesheets/stylin/highlight/brown_paper.css +105 -0
  13. data/app/assets/stylesheets/stylin/highlight/dark.css +105 -0
  14. data/app/assets/stylesheets/stylin/highlight/default.css +153 -0
  15. data/app/assets/stylesheets/stylin/highlight/docco.css +132 -0
  16. data/app/assets/stylesheets/stylin/highlight/far.css +113 -0
  17. data/app/assets/stylesheets/stylin/highlight/foundation.css +133 -0
  18. data/app/assets/stylesheets/stylin/highlight/github.css +125 -0
  19. data/app/assets/stylesheets/stylin/highlight/googlecode.css +147 -0
  20. data/app/assets/stylesheets/stylin/highlight/idea.css +122 -0
  21. data/app/assets/stylesheets/stylin/highlight/ir_black.css +105 -0
  22. data/app/assets/stylesheets/stylin/highlight/magula.css +123 -0
  23. data/app/assets/stylesheets/stylin/highlight/mono-blue.css +62 -0
  24. data/app/assets/stylesheets/stylin/highlight/monokai.css +127 -0
  25. data/app/assets/stylesheets/stylin/highlight/monokai_sublime.css +149 -0
  26. data/app/assets/stylesheets/stylin/highlight/obsidian.css +154 -0
  27. data/app/assets/stylesheets/stylin/highlight/pojoaque.css +106 -0
  28. data/app/assets/stylesheets/stylin/highlight/railscasts.css +182 -0
  29. data/app/assets/stylesheets/stylin/highlight/rainbow.css +112 -0
  30. data/app/assets/stylesheets/stylin/highlight/school_book.css +113 -0
  31. data/app/assets/stylesheets/stylin/highlight/solarized_dark.css +107 -0
  32. data/app/assets/stylesheets/stylin/highlight/solarized_light.css +107 -0
  33. data/app/assets/stylesheets/stylin/highlight/sunburst.css +160 -0
  34. data/app/assets/stylesheets/stylin/highlight/tomorrow-night-blue.css +93 -0
  35. data/app/assets/stylesheets/stylin/highlight/tomorrow-night-bright.css +92 -0
  36. data/app/assets/stylesheets/stylin/highlight/tomorrow-night-eighties.css +92 -0
  37. data/app/assets/stylesheets/stylin/highlight/tomorrow-night.css +93 -0
  38. data/app/assets/stylesheets/stylin/highlight/tomorrow.css +90 -0
  39. data/app/assets/stylesheets/stylin/highlight/vs.css +89 -0
  40. data/app/assets/stylesheets/stylin/highlight/xcode.css +158 -0
  41. data/app/assets/stylesheets/stylin/highlight/zenburn.css +117 -0
  42. data/app/assets/stylesheets/stylin/styleguides.css.scss +106 -0
  43. data/app/controllers/stylin/application_controller.rb +11 -0
  44. data/app/controllers/stylin/styleguides_controller.rb +13 -0
  45. data/app/helpers/stylin/application_helper.rb +4 -0
  46. data/app/helpers/stylin/navigation_helper.rb +50 -0
  47. data/app/helpers/stylin/styleguides_helper.rb +29 -0
  48. data/app/models/styleguide.rb +69 -0
  49. data/app/views/layouts/stylin/_navigation.html.erb +3 -0
  50. data/app/views/layouts/stylin/application.html.erb +26 -0
  51. data/app/views/stylin/styleguides/_section.html.erb +31 -0
  52. data/app/views/stylin/styleguides/index.html.erb +5 -0
  53. data/app/views/stylin/styleguides/show.html.erb +3 -0
  54. data/config/routes.rb +5 -0
  55. data/lib/generators/stylin/install_generator.rb +12 -0
  56. data/lib/generators/stylin/views_generator.rb +10 -0
  57. data/lib/generators/templates/stylin.yml +7 -0
  58. data/lib/generators/templates/views/layouts/stylin/_navigation.html.erb +3 -0
  59. data/lib/generators/templates/views/layouts/stylin/application.html.erb +23 -0
  60. data/lib/generators/templates/views/stylin/styleguides/_section.html.erb +30 -0
  61. data/lib/generators/templates/views/stylin/styleguides/index.html.erb +5 -0
  62. data/lib/generators/templates/views/stylin/styleguides/show.html.erb +3 -0
  63. data/lib/stylin.rb +8 -0
  64. data/lib/stylin/engine.rb +37 -0
  65. data/lib/stylin/version.rb +3 -0
  66. data/lib/tasks/stylin_tasks.rake +12 -0
  67. data/spec/dummy/README.rdoc +28 -0
  68. data/spec/dummy/Rakefile +6 -0
  69. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  70. data/spec/dummy/app/assets/stylesheets/application.css.scss +1 -0
  71. data/spec/dummy/app/assets/stylesheets/buttons.css +51 -0
  72. data/spec/dummy/app/assets/stylesheets/forms.css +51 -0
  73. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  74. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  75. data/spec/dummy/app/styleguides/buttons.html +1 -0
  76. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  77. data/spec/dummy/bin/bundle +3 -0
  78. data/spec/dummy/bin/rails +4 -0
  79. data/spec/dummy/bin/rake +4 -0
  80. data/spec/dummy/config.ru +4 -0
  81. data/spec/dummy/config/application.rb +23 -0
  82. data/spec/dummy/config/boot.rb +5 -0
  83. data/spec/dummy/config/database.yml +25 -0
  84. data/spec/dummy/config/environment.rb +5 -0
  85. data/spec/dummy/config/environments/development.rb +29 -0
  86. data/spec/dummy/config/environments/production.rb +80 -0
  87. data/spec/dummy/config/environments/test.rb +36 -0
  88. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  89. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  90. data/spec/dummy/config/initializers/inflections.rb +16 -0
  91. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  92. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  93. data/spec/dummy/config/initializers/session_store.rb +3 -0
  94. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  95. data/spec/dummy/config/locales/en.yml +23 -0
  96. data/spec/dummy/config/routes.rb +3 -0
  97. data/spec/dummy/config/stylin.yml +3 -0
  98. data/spec/dummy/db/development.sqlite3 +0 -0
  99. data/spec/dummy/db/production.sqlite3 +0 -0
  100. data/spec/dummy/db/schema.rb +16 -0
  101. data/spec/dummy/db/test.sqlite3 +0 -0
  102. data/spec/dummy/log/development.log +4143 -0
  103. data/spec/dummy/log/production.log +4 -0
  104. data/spec/dummy/log/test.log +380 -0
  105. data/spec/dummy/public/404.html +58 -0
  106. data/spec/dummy/public/422.html +58 -0
  107. data/spec/dummy/public/500.html +57 -0
  108. data/spec/dummy/public/favicon.ico +0 -0
  109. data/spec/models/styleguide_spec.rb +55 -0
  110. data/spec/spec_helper.rb +22 -0
  111. metadata +327 -0
@@ -0,0 +1,93 @@
1
+ /* Tomorrow Night Blue Theme */
2
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
3
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
4
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
5
+
6
+ /* Tomorrow Comment */
7
+ .hljs-comment,
8
+ .hljs-title {
9
+ color: #7285b7;
10
+ }
11
+
12
+ /* Tomorrow Red */
13
+ .hljs-variable,
14
+ .hljs-attribute,
15
+ .hljs-tag,
16
+ .hljs-regexp,
17
+ .ruby .hljs-constant,
18
+ .xml .hljs-tag .hljs-title,
19
+ .xml .hljs-pi,
20
+ .xml .hljs-doctype,
21
+ .html .hljs-doctype,
22
+ .css .hljs-id,
23
+ .css .hljs-class,
24
+ .css .hljs-pseudo {
25
+ color: #ff9da4;
26
+ }
27
+
28
+ /* Tomorrow Orange */
29
+ .hljs-number,
30
+ .hljs-preprocessor,
31
+ .hljs-pragma,
32
+ .hljs-built_in,
33
+ .hljs-literal,
34
+ .hljs-params,
35
+ .hljs-constant {
36
+ color: #ffc58f;
37
+ }
38
+
39
+ /* Tomorrow Yellow */
40
+ .ruby .hljs-class .hljs-title,
41
+ .css .hljs-rules .hljs-attribute {
42
+ color: #ffeead;
43
+ }
44
+
45
+ /* Tomorrow Green */
46
+ .hljs-string,
47
+ .hljs-value,
48
+ .hljs-inheritance,
49
+ .hljs-header,
50
+ .ruby .hljs-symbol,
51
+ .xml .hljs-cdata {
52
+ color: #d1f1a9;
53
+ }
54
+
55
+ /* Tomorrow Aqua */
56
+ .css .hljs-hexcolor {
57
+ color: #99ffff;
58
+ }
59
+
60
+ /* Tomorrow Blue */
61
+ .hljs-function,
62
+ .python .hljs-decorator,
63
+ .python .hljs-title,
64
+ .ruby .hljs-function .hljs-title,
65
+ .ruby .hljs-title .hljs-keyword,
66
+ .perl .hljs-sub,
67
+ .javascript .hljs-title,
68
+ .coffeescript .hljs-title {
69
+ color: #bbdaff;
70
+ }
71
+
72
+ /* Tomorrow Purple */
73
+ .hljs-keyword,
74
+ .javascript .hljs-function {
75
+ color: #ebbbff;
76
+ }
77
+
78
+ .hljs {
79
+ display: block;
80
+ background: #002451;
81
+ color: white;
82
+ padding: 0.5em;
83
+ }
84
+
85
+ .coffeescript .javascript,
86
+ .javascript .xml,
87
+ .tex .hljs-formula,
88
+ .xml .javascript,
89
+ .xml .vbscript,
90
+ .xml .css,
91
+ .xml .hljs-cdata {
92
+ opacity: 0.5;
93
+ }
@@ -0,0 +1,92 @@
1
+ /* Tomorrow Night Bright Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
4
+
5
+ /* Tomorrow Comment */
6
+ .hljs-comment,
7
+ .hljs-title {
8
+ color: #969896;
9
+ }
10
+
11
+ /* Tomorrow Red */
12
+ .hljs-variable,
13
+ .hljs-attribute,
14
+ .hljs-tag,
15
+ .hljs-regexp,
16
+ .ruby .hljs-constant,
17
+ .xml .hljs-tag .hljs-title,
18
+ .xml .hljs-pi,
19
+ .xml .hljs-doctype,
20
+ .html .hljs-doctype,
21
+ .css .hljs-id,
22
+ .css .hljs-class,
23
+ .css .hljs-pseudo {
24
+ color: #d54e53;
25
+ }
26
+
27
+ /* Tomorrow Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-pragma,
31
+ .hljs-built_in,
32
+ .hljs-literal,
33
+ .hljs-params,
34
+ .hljs-constant {
35
+ color: #e78c45;
36
+ }
37
+
38
+ /* Tomorrow Yellow */
39
+ .ruby .hljs-class .hljs-title,
40
+ .css .hljs-rules .hljs-attribute {
41
+ color: #e7c547;
42
+ }
43
+
44
+ /* Tomorrow Green */
45
+ .hljs-string,
46
+ .hljs-value,
47
+ .hljs-inheritance,
48
+ .hljs-header,
49
+ .ruby .hljs-symbol,
50
+ .xml .hljs-cdata {
51
+ color: #b9ca4a;
52
+ }
53
+
54
+ /* Tomorrow Aqua */
55
+ .css .hljs-hexcolor {
56
+ color: #70c0b1;
57
+ }
58
+
59
+ /* Tomorrow Blue */
60
+ .hljs-function,
61
+ .python .hljs-decorator,
62
+ .python .hljs-title,
63
+ .ruby .hljs-function .hljs-title,
64
+ .ruby .hljs-title .hljs-keyword,
65
+ .perl .hljs-sub,
66
+ .javascript .hljs-title,
67
+ .coffeescript .hljs-title {
68
+ color: #7aa6da;
69
+ }
70
+
71
+ /* Tomorrow Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #c397d8;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ background: black;
80
+ color: #eaeaea;
81
+ padding: 0.5em;
82
+ }
83
+
84
+ .coffeescript .javascript,
85
+ .javascript .xml,
86
+ .tex .hljs-formula,
87
+ .xml .javascript,
88
+ .xml .vbscript,
89
+ .xml .css,
90
+ .xml .hljs-cdata {
91
+ opacity: 0.5;
92
+ }
@@ -0,0 +1,92 @@
1
+ /* Tomorrow Night Eighties Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
4
+
5
+ /* Tomorrow Comment */
6
+ .hljs-comment,
7
+ .hljs-title {
8
+ color: #999999;
9
+ }
10
+
11
+ /* Tomorrow Red */
12
+ .hljs-variable,
13
+ .hljs-attribute,
14
+ .hljs-tag,
15
+ .hljs-regexp,
16
+ .ruby .hljs-constant,
17
+ .xml .hljs-tag .hljs-title,
18
+ .xml .hljs-pi,
19
+ .xml .hljs-doctype,
20
+ .html .hljs-doctype,
21
+ .css .hljs-id,
22
+ .css .hljs-class,
23
+ .css .hljs-pseudo {
24
+ color: #f2777a;
25
+ }
26
+
27
+ /* Tomorrow Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-pragma,
31
+ .hljs-built_in,
32
+ .hljs-literal,
33
+ .hljs-params,
34
+ .hljs-constant {
35
+ color: #f99157;
36
+ }
37
+
38
+ /* Tomorrow Yellow */
39
+ .ruby .hljs-class .hljs-title,
40
+ .css .hljs-rules .hljs-attribute {
41
+ color: #ffcc66;
42
+ }
43
+
44
+ /* Tomorrow Green */
45
+ .hljs-string,
46
+ .hljs-value,
47
+ .hljs-inheritance,
48
+ .hljs-header,
49
+ .ruby .hljs-symbol,
50
+ .xml .hljs-cdata {
51
+ color: #99cc99;
52
+ }
53
+
54
+ /* Tomorrow Aqua */
55
+ .css .hljs-hexcolor {
56
+ color: #66cccc;
57
+ }
58
+
59
+ /* Tomorrow Blue */
60
+ .hljs-function,
61
+ .python .hljs-decorator,
62
+ .python .hljs-title,
63
+ .ruby .hljs-function .hljs-title,
64
+ .ruby .hljs-title .hljs-keyword,
65
+ .perl .hljs-sub,
66
+ .javascript .hljs-title,
67
+ .coffeescript .hljs-title {
68
+ color: #6699cc;
69
+ }
70
+
71
+ /* Tomorrow Purple */
72
+ .hljs-keyword,
73
+ .javascript .hljs-function {
74
+ color: #cc99cc;
75
+ }
76
+
77
+ .hljs {
78
+ display: block;
79
+ background: #2d2d2d;
80
+ color: #cccccc;
81
+ padding: 0.5em;
82
+ }
83
+
84
+ .coffeescript .javascript,
85
+ .javascript .xml,
86
+ .tex .hljs-formula,
87
+ .xml .javascript,
88
+ .xml .vbscript,
89
+ .xml .css,
90
+ .xml .hljs-cdata {
91
+ opacity: 0.5;
92
+ }
@@ -0,0 +1,93 @@
1
+ /* Tomorrow Night Theme */
2
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
3
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
4
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
5
+
6
+ /* Tomorrow Comment */
7
+ .hljs-comment,
8
+ .hljs-title {
9
+ color: #969896;
10
+ }
11
+
12
+ /* Tomorrow Red */
13
+ .hljs-variable,
14
+ .hljs-attribute,
15
+ .hljs-tag,
16
+ .hljs-regexp,
17
+ .ruby .hljs-constant,
18
+ .xml .hljs-tag .hljs-title,
19
+ .xml .hljs-pi,
20
+ .xml .hljs-doctype,
21
+ .html .hljs-doctype,
22
+ .css .hljs-id,
23
+ .css .hljs-class,
24
+ .css .hljs-pseudo {
25
+ color: #cc6666;
26
+ }
27
+
28
+ /* Tomorrow Orange */
29
+ .hljs-number,
30
+ .hljs-preprocessor,
31
+ .hljs-pragma,
32
+ .hljs-built_in,
33
+ .hljs-literal,
34
+ .hljs-params,
35
+ .hljs-constant {
36
+ color: #de935f;
37
+ }
38
+
39
+ /* Tomorrow Yellow */
40
+ .ruby .hljs-class .hljs-title,
41
+ .css .hljs-rules .hljs-attribute {
42
+ color: #f0c674;
43
+ }
44
+
45
+ /* Tomorrow Green */
46
+ .hljs-string,
47
+ .hljs-value,
48
+ .hljs-inheritance,
49
+ .hljs-header,
50
+ .ruby .hljs-symbol,
51
+ .xml .hljs-cdata {
52
+ color: #b5bd68;
53
+ }
54
+
55
+ /* Tomorrow Aqua */
56
+ .css .hljs-hexcolor {
57
+ color: #8abeb7;
58
+ }
59
+
60
+ /* Tomorrow Blue */
61
+ .hljs-function,
62
+ .python .hljs-decorator,
63
+ .python .hljs-title,
64
+ .ruby .hljs-function .hljs-title,
65
+ .ruby .hljs-title .hljs-keyword,
66
+ .perl .hljs-sub,
67
+ .javascript .hljs-title,
68
+ .coffeescript .hljs-title {
69
+ color: #81a2be;
70
+ }
71
+
72
+ /* Tomorrow Purple */
73
+ .hljs-keyword,
74
+ .javascript .hljs-function {
75
+ color: #b294bb;
76
+ }
77
+
78
+ .hljs {
79
+ display: block;
80
+ background: #1d1f21;
81
+ color: #c5c8c6;
82
+ padding: 0.5em;
83
+ }
84
+
85
+ .coffeescript .javascript,
86
+ .javascript .xml,
87
+ .tex .hljs-formula,
88
+ .xml .javascript,
89
+ .xml .vbscript,
90
+ .xml .css,
91
+ .xml .hljs-cdata {
92
+ opacity: 0.5;
93
+ }
@@ -0,0 +1,90 @@
1
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
2
+
3
+ /* Tomorrow Comment */
4
+ .hljs-comment,
5
+ .hljs-title {
6
+ color: #8e908c;
7
+ }
8
+
9
+ /* Tomorrow Red */
10
+ .hljs-variable,
11
+ .hljs-attribute,
12
+ .hljs-tag,
13
+ .hljs-regexp,
14
+ .ruby .hljs-constant,
15
+ .xml .hljs-tag .hljs-title,
16
+ .xml .hljs-pi,
17
+ .xml .hljs-doctype,
18
+ .html .hljs-doctype,
19
+ .css .hljs-id,
20
+ .css .hljs-class,
21
+ .css .hljs-pseudo {
22
+ color: #c82829;
23
+ }
24
+
25
+ /* Tomorrow Orange */
26
+ .hljs-number,
27
+ .hljs-preprocessor,
28
+ .hljs-pragma,
29
+ .hljs-built_in,
30
+ .hljs-literal,
31
+ .hljs-params,
32
+ .hljs-constant {
33
+ color: #f5871f;
34
+ }
35
+
36
+ /* Tomorrow Yellow */
37
+ .ruby .hljs-class .hljs-title,
38
+ .css .hljs-rules .hljs-attribute {
39
+ color: #eab700;
40
+ }
41
+
42
+ /* Tomorrow Green */
43
+ .hljs-string,
44
+ .hljs-value,
45
+ .hljs-inheritance,
46
+ .hljs-header,
47
+ .ruby .hljs-symbol,
48
+ .xml .hljs-cdata {
49
+ color: #718c00;
50
+ }
51
+
52
+ /* Tomorrow Aqua */
53
+ .css .hljs-hexcolor {
54
+ color: #3e999f;
55
+ }
56
+
57
+ /* Tomorrow Blue */
58
+ .hljs-function,
59
+ .python .hljs-decorator,
60
+ .python .hljs-title,
61
+ .ruby .hljs-function .hljs-title,
62
+ .ruby .hljs-title .hljs-keyword,
63
+ .perl .hljs-sub,
64
+ .javascript .hljs-title,
65
+ .coffeescript .hljs-title {
66
+ color: #4271ae;
67
+ }
68
+
69
+ /* Tomorrow Purple */
70
+ .hljs-keyword,
71
+ .javascript .hljs-function {
72
+ color: #8959a8;
73
+ }
74
+
75
+ .hljs {
76
+ display: block;
77
+ background: white;
78
+ color: #4d4d4c;
79
+ padding: 0.5em;
80
+ }
81
+
82
+ .coffeescript .javascript,
83
+ .javascript .xml,
84
+ .tex .hljs-formula,
85
+ .xml .javascript,
86
+ .xml .vbscript,
87
+ .xml .css,
88
+ .xml .hljs-cdata {
89
+ opacity: 0.5;
90
+ }