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,105 @@
1
+ /*
2
+
3
+ Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ background: #444;
10
+ }
11
+
12
+ .hljs-keyword,
13
+ .hljs-literal,
14
+ .hljs-change,
15
+ .hljs-winutils,
16
+ .hljs-flow,
17
+ .lisp .hljs-title,
18
+ .clojure .hljs-built_in,
19
+ .nginx .hljs-title,
20
+ .tex .hljs-special {
21
+ color: white;
22
+ }
23
+
24
+ .hljs,
25
+ .hljs-subst {
26
+ color: #DDD;
27
+ }
28
+
29
+ .hljs-string,
30
+ .hljs-title,
31
+ .haskell .hljs-type,
32
+ .ini .hljs-title,
33
+ .hljs-tag .hljs-value,
34
+ .css .hljs-rules .hljs-value,
35
+ .hljs-preprocessor,
36
+ .hljs-pragma,
37
+ .ruby .hljs-symbol,
38
+ .ruby .hljs-symbol .hljs-string,
39
+ .ruby .hljs-class .hljs-parent,
40
+ .hljs-built_in,
41
+ .sql .hljs-aggregate,
42
+ .django .hljs-template_tag,
43
+ .django .hljs-variable,
44
+ .smalltalk .hljs-class,
45
+ .hljs-javadoc,
46
+ .ruby .hljs-string,
47
+ .django .hljs-filter .hljs-argument,
48
+ .smalltalk .hljs-localvars,
49
+ .smalltalk .hljs-array,
50
+ .hljs-attr_selector,
51
+ .hljs-pseudo,
52
+ .hljs-addition,
53
+ .hljs-stream,
54
+ .hljs-envvar,
55
+ .apache .hljs-tag,
56
+ .apache .hljs-cbracket,
57
+ .tex .hljs-command,
58
+ .hljs-prompt,
59
+ .coffeescript .hljs-attribute {
60
+ color: #D88;
61
+ }
62
+
63
+ .hljs-comment,
64
+ .java .hljs-annotation,
65
+ .python .hljs-decorator,
66
+ .hljs-template_comment,
67
+ .hljs-pi,
68
+ .hljs-doctype,
69
+ .hljs-deletion,
70
+ .hljs-shebang,
71
+ .apache .hljs-sqbracket,
72
+ .tex .hljs-formula {
73
+ color: #777;
74
+ }
75
+
76
+ .hljs-keyword,
77
+ .hljs-literal,
78
+ .hljs-title,
79
+ .css .hljs-id,
80
+ .hljs-phpdoc,
81
+ .haskell .hljs-type,
82
+ .vbscript .hljs-built_in,
83
+ .sql .hljs-aggregate,
84
+ .rsl .hljs-built_in,
85
+ .smalltalk .hljs-class,
86
+ .diff .hljs-header,
87
+ .hljs-chunk,
88
+ .hljs-winutils,
89
+ .bash .hljs-variable,
90
+ .apache .hljs-tag,
91
+ .tex .hljs-special,
92
+ .hljs-request,
93
+ .hljs-status {
94
+ font-weight: bold;
95
+ }
96
+
97
+ .coffeescript .javascript,
98
+ .javascript .xml,
99
+ .tex .hljs-formula,
100
+ .xml .javascript,
101
+ .xml .vbscript,
102
+ .xml .css,
103
+ .xml .hljs-cdata {
104
+ opacity: 0.5;
105
+ }
@@ -0,0 +1,153 @@
1
+ /*
2
+
3
+ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ background: #F0F0F0;
10
+ }
11
+
12
+ .hljs,
13
+ .hljs-subst,
14
+ .hljs-tag .hljs-title,
15
+ .lisp .hljs-title,
16
+ .clojure .hljs-built_in,
17
+ .nginx .hljs-title {
18
+ color: black;
19
+ }
20
+
21
+ .hljs-string,
22
+ .hljs-title,
23
+ .hljs-constant,
24
+ .hljs-parent,
25
+ .hljs-tag .hljs-value,
26
+ .hljs-rules .hljs-value,
27
+ .hljs-rules .hljs-value .hljs-number,
28
+ .hljs-preprocessor,
29
+ .hljs-pragma,
30
+ .haml .hljs-symbol,
31
+ .ruby .hljs-symbol,
32
+ .ruby .hljs-symbol .hljs-string,
33
+ .hljs-aggregate,
34
+ .hljs-template_tag,
35
+ .django .hljs-variable,
36
+ .smalltalk .hljs-class,
37
+ .hljs-addition,
38
+ .hljs-flow,
39
+ .hljs-stream,
40
+ .bash .hljs-variable,
41
+ .apache .hljs-tag,
42
+ .apache .hljs-cbracket,
43
+ .tex .hljs-command,
44
+ .tex .hljs-special,
45
+ .erlang_repl .hljs-function_or_atom,
46
+ .asciidoc .hljs-header,
47
+ .markdown .hljs-header,
48
+ .coffeescript .hljs-attribute {
49
+ color: #800;
50
+ }
51
+
52
+ .smartquote,
53
+ .hljs-comment,
54
+ .hljs-annotation,
55
+ .hljs-template_comment,
56
+ .diff .hljs-header,
57
+ .hljs-chunk,
58
+ .asciidoc .hljs-blockquote,
59
+ .markdown .hljs-blockquote {
60
+ color: #888;
61
+ }
62
+
63
+ .hljs-number,
64
+ .hljs-date,
65
+ .hljs-regexp,
66
+ .hljs-literal,
67
+ .hljs-hexcolor,
68
+ .smalltalk .hljs-symbol,
69
+ .smalltalk .hljs-char,
70
+ .go .hljs-constant,
71
+ .hljs-change,
72
+ .lasso .hljs-variable,
73
+ .makefile .hljs-variable,
74
+ .asciidoc .hljs-bullet,
75
+ .markdown .hljs-bullet,
76
+ .asciidoc .hljs-link_url,
77
+ .markdown .hljs-link_url {
78
+ color: #080;
79
+ }
80
+
81
+ .hljs-label,
82
+ .hljs-javadoc,
83
+ .ruby .hljs-string,
84
+ .hljs-decorator,
85
+ .hljs-filter .hljs-argument,
86
+ .hljs-localvars,
87
+ .hljs-array,
88
+ .hljs-attr_selector,
89
+ .hljs-important,
90
+ .hljs-pseudo,
91
+ .hljs-pi,
92
+ .haml .hljs-bullet,
93
+ .hljs-doctype,
94
+ .hljs-deletion,
95
+ .hljs-envvar,
96
+ .hljs-shebang,
97
+ .apache .hljs-sqbracket,
98
+ .nginx .hljs-built_in,
99
+ .tex .hljs-formula,
100
+ .erlang_repl .hljs-reserved,
101
+ .hljs-prompt,
102
+ .asciidoc .hljs-link_label,
103
+ .markdown .hljs-link_label,
104
+ .vhdl .hljs-attribute,
105
+ .clojure .hljs-attribute,
106
+ .asciidoc .hljs-attribute,
107
+ .lasso .hljs-attribute,
108
+ .coffeescript .hljs-property,
109
+ .hljs-phony {
110
+ color: #88F
111
+ }
112
+
113
+ .hljs-keyword,
114
+ .hljs-id,
115
+ .hljs-title,
116
+ .hljs-built_in,
117
+ .hljs-aggregate,
118
+ .css .hljs-tag,
119
+ .hljs-javadoctag,
120
+ .hljs-phpdoc,
121
+ .hljs-yardoctag,
122
+ .smalltalk .hljs-class,
123
+ .hljs-winutils,
124
+ .bash .hljs-variable,
125
+ .apache .hljs-tag,
126
+ .go .hljs-typename,
127
+ .tex .hljs-command,
128
+ .asciidoc .hljs-strong,
129
+ .markdown .hljs-strong,
130
+ .hljs-request,
131
+ .hljs-status {
132
+ font-weight: bold;
133
+ }
134
+
135
+ .asciidoc .hljs-emphasis,
136
+ .markdown .hljs-emphasis {
137
+ font-style: italic;
138
+ }
139
+
140
+ .nginx .hljs-built_in {
141
+ font-weight: normal;
142
+ }
143
+
144
+ .coffeescript .javascript,
145
+ .javascript .xml,
146
+ .lasso .markup,
147
+ .tex .hljs-formula,
148
+ .xml .javascript,
149
+ .xml .vbscript,
150
+ .xml .css,
151
+ .xml .hljs-cdata {
152
+ opacity: 0.5;
153
+ }
@@ -0,0 +1,132 @@
1
+ /*
2
+ Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
3
+ */
4
+
5
+ .hljs {
6
+ display: block; padding: 0.5em;
7
+ color: #000;
8
+ background: #f8f8ff
9
+ }
10
+
11
+ .hljs-comment,
12
+ .hljs-template_comment,
13
+ .diff .hljs-header,
14
+ .hljs-javadoc {
15
+ color: #408080;
16
+ font-style: italic
17
+ }
18
+
19
+ .hljs-keyword,
20
+ .assignment,
21
+ .hljs-literal,
22
+ .css .rule .hljs-keyword,
23
+ .hljs-winutils,
24
+ .javascript .hljs-title,
25
+ .lisp .hljs-title,
26
+ .hljs-subst {
27
+ color: #954121;
28
+ }
29
+
30
+ .hljs-number,
31
+ .hljs-hexcolor {
32
+ color: #40a070
33
+ }
34
+
35
+ .hljs-string,
36
+ .hljs-tag .hljs-value,
37
+ .hljs-phpdoc,
38
+ .tex .hljs-formula {
39
+ color: #219161;
40
+ }
41
+
42
+ .hljs-title,
43
+ .hljs-id {
44
+ color: #19469D;
45
+ }
46
+ .hljs-params {
47
+ color: #00F;
48
+ }
49
+
50
+ .javascript .hljs-title,
51
+ .lisp .hljs-title,
52
+ .hljs-subst {
53
+ font-weight: normal
54
+ }
55
+
56
+ .hljs-class .hljs-title,
57
+ .haskell .hljs-label,
58
+ .tex .hljs-command {
59
+ color: #458;
60
+ font-weight: bold
61
+ }
62
+
63
+ .hljs-tag,
64
+ .hljs-tag .hljs-title,
65
+ .hljs-rules .hljs-property,
66
+ .django .hljs-tag .hljs-keyword {
67
+ color: #000080;
68
+ font-weight: normal
69
+ }
70
+
71
+ .hljs-attribute,
72
+ .hljs-variable,
73
+ .instancevar,
74
+ .lisp .hljs-body {
75
+ color: #008080
76
+ }
77
+
78
+ .hljs-regexp {
79
+ color: #B68
80
+ }
81
+
82
+ .hljs-class {
83
+ color: #458;
84
+ font-weight: bold
85
+ }
86
+
87
+ .hljs-symbol,
88
+ .ruby .hljs-symbol .hljs-string,
89
+ .ruby .hljs-symbol .hljs-keyword,
90
+ .ruby .hljs-symbol .keymethods,
91
+ .lisp .hljs-keyword,
92
+ .tex .hljs-special,
93
+ .input_number {
94
+ color: #990073
95
+ }
96
+
97
+ .builtin,
98
+ .constructor,
99
+ .hljs-built_in,
100
+ .lisp .hljs-title {
101
+ color: #0086b3
102
+ }
103
+
104
+ .hljs-preprocessor,
105
+ .hljs-pragma,
106
+ .hljs-pi,
107
+ .hljs-doctype,
108
+ .hljs-shebang,
109
+ .hljs-cdata {
110
+ color: #999;
111
+ font-weight: bold
112
+ }
113
+
114
+ .hljs-deletion {
115
+ background: #fdd
116
+ }
117
+
118
+ .hljs-addition {
119
+ background: #dfd
120
+ }
121
+
122
+ .diff .hljs-change {
123
+ background: #0086b3
124
+ }
125
+
126
+ .hljs-chunk {
127
+ color: #aaa
128
+ }
129
+
130
+ .tex .hljs-formula {
131
+ opacity: 0.5;
132
+ }
@@ -0,0 +1,113 @@
1
+ /*
2
+
3
+ FAR Style (c) MajestiC <majestic2k@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ background: #000080;
10
+ }
11
+
12
+ .hljs,
13
+ .hljs-subst {
14
+ color: #0FF;
15
+ }
16
+
17
+ .hljs-string,
18
+ .ruby .hljs-string,
19
+ .haskell .hljs-type,
20
+ .hljs-tag .hljs-value,
21
+ .css .hljs-rules .hljs-value,
22
+ .css .hljs-rules .hljs-value .hljs-number,
23
+ .hljs-preprocessor,
24
+ .hljs-pragma,
25
+ .ruby .hljs-symbol,
26
+ .ruby .hljs-symbol .hljs-string,
27
+ .hljs-built_in,
28
+ .sql .hljs-aggregate,
29
+ .django .hljs-template_tag,
30
+ .django .hljs-variable,
31
+ .smalltalk .hljs-class,
32
+ .hljs-addition,
33
+ .apache .hljs-tag,
34
+ .apache .hljs-cbracket,
35
+ .tex .hljs-command,
36
+ .clojure .hljs-title,
37
+ .coffeescript .hljs-attribute {
38
+ color: #FF0;
39
+ }
40
+
41
+ .hljs-keyword,
42
+ .css .hljs-id,
43
+ .hljs-title,
44
+ .haskell .hljs-type,
45
+ .vbscript .hljs-built_in,
46
+ .sql .hljs-aggregate,
47
+ .rsl .hljs-built_in,
48
+ .smalltalk .hljs-class,
49
+ .xml .hljs-tag .hljs-title,
50
+ .hljs-winutils,
51
+ .hljs-flow,
52
+ .hljs-change,
53
+ .hljs-envvar,
54
+ .bash .hljs-variable,
55
+ .tex .hljs-special,
56
+ .clojure .hljs-built_in {
57
+ color: #FFF;
58
+ }
59
+
60
+ .hljs-comment,
61
+ .hljs-phpdoc,
62
+ .hljs-javadoc,
63
+ .java .hljs-annotation,
64
+ .hljs-template_comment,
65
+ .hljs-deletion,
66
+ .apache .hljs-sqbracket,
67
+ .tex .hljs-formula {
68
+ color: #888;
69
+ }
70
+
71
+ .hljs-number,
72
+ .hljs-date,
73
+ .hljs-regexp,
74
+ .hljs-literal,
75
+ .smalltalk .hljs-symbol,
76
+ .smalltalk .hljs-char,
77
+ .clojure .hljs-attribute {
78
+ color: #0F0;
79
+ }
80
+
81
+ .python .hljs-decorator,
82
+ .django .hljs-filter .hljs-argument,
83
+ .smalltalk .hljs-localvars,
84
+ .smalltalk .hljs-array,
85
+ .hljs-attr_selector,
86
+ .hljs-pseudo,
87
+ .xml .hljs-pi,
88
+ .diff .hljs-header,
89
+ .hljs-chunk,
90
+ .hljs-shebang,
91
+ .nginx .hljs-built_in,
92
+ .hljs-prompt {
93
+ color: #008080;
94
+ }
95
+
96
+ .hljs-keyword,
97
+ .css .hljs-id,
98
+ .hljs-title,
99
+ .haskell .hljs-type,
100
+ .vbscript .hljs-built_in,
101
+ .sql .hljs-aggregate,
102
+ .rsl .hljs-built_in,
103
+ .smalltalk .hljs-class,
104
+ .hljs-winutils,
105
+ .hljs-flow,
106
+ .apache .hljs-tag,
107
+ .nginx .hljs-built_in,
108
+ .tex .hljs-command,
109
+ .tex .hljs-special,
110
+ .hljs-request,
111
+ .hljs-status {
112
+ font-weight: bold;
113
+ }