stylin 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,133 @@
1
+ /*
2
+ Description: Foundation 4 docs style for highlight.js
3
+ Author: Dan Allen <dan.j.allen@gmail.com>
4
+ Website: http://foundation.zurb.com/docs/
5
+ Version: 1.0
6
+ Date: 2013-04-02
7
+ */
8
+
9
+ .hljs {
10
+ display: block; padding: 0.5em;
11
+ background: #eee;
12
+ }
13
+
14
+ .hljs-header,
15
+ .hljs-decorator,
16
+ .hljs-annotation {
17
+ color: #000077;
18
+ }
19
+
20
+ .hljs-horizontal_rule,
21
+ .hljs-link_url,
22
+ .hljs-emphasis,
23
+ .hljs-attribute {
24
+ color: #070;
25
+ }
26
+
27
+ .hljs-emphasis {
28
+ font-style: italic;
29
+ }
30
+
31
+ .hljs-link_label,
32
+ .hljs-strong,
33
+ .hljs-value,
34
+ .hljs-string,
35
+ .scss .hljs-value .hljs-string {
36
+ color: #d14;
37
+ }
38
+
39
+ .hljs-strong {
40
+ font-weight: bold;
41
+ }
42
+
43
+ .hljs-blockquote,
44
+ .hljs-comment {
45
+ color: #998;
46
+ font-style: italic;
47
+ }
48
+
49
+ .asciidoc .hljs-title,
50
+ .hljs-function .hljs-title {
51
+ color: #900;
52
+ }
53
+
54
+ .hljs-class {
55
+ color: #458;
56
+ }
57
+
58
+ .hljs-id,
59
+ .hljs-pseudo,
60
+ .hljs-constant,
61
+ .hljs-hexcolor {
62
+ color: teal;
63
+ }
64
+
65
+ .hljs-variable {
66
+ color: #336699;
67
+ }
68
+
69
+ .hljs-bullet,
70
+ .hljs-javadoc {
71
+ color: #997700;
72
+ }
73
+
74
+ .hljs-pi,
75
+ .hljs-doctype {
76
+ color: #3344bb;
77
+ }
78
+
79
+ .hljs-code,
80
+ .hljs-number {
81
+ color: #099;
82
+ }
83
+
84
+ .hljs-important {
85
+ color: #f00;
86
+ }
87
+
88
+ .smartquote,
89
+ .hljs-label {
90
+ color: #970;
91
+ }
92
+
93
+ .hljs-preprocessor,
94
+ .hljs-pragma {
95
+ color: #579;
96
+ }
97
+
98
+ .hljs-reserved,
99
+ .hljs-keyword,
100
+ .scss .hljs-value {
101
+ color: #000;
102
+ }
103
+
104
+ .hljs-regexp {
105
+ background-color: #fff0ff;
106
+ color: #880088;
107
+ }
108
+
109
+ .hljs-symbol {
110
+ color: #990073;
111
+ }
112
+
113
+ .hljs-symbol .hljs-string {
114
+ color: #a60;
115
+ }
116
+
117
+ .hljs-tag {
118
+ color: #007700;
119
+ }
120
+
121
+ .hljs-at_rule,
122
+ .hljs-at_rule .hljs-keyword {
123
+ color: #088;
124
+ }
125
+
126
+ .hljs-at_rule .hljs-preprocessor {
127
+ color: #808;
128
+ }
129
+
130
+ .scss .hljs-tag,
131
+ .scss .hljs-attribute {
132
+ color: #339;
133
+ }
@@ -0,0 +1,125 @@
1
+ /*
2
+
3
+ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ color: #333;
10
+ background: #f8f8f8
11
+ }
12
+
13
+ .hljs-comment,
14
+ .hljs-template_comment,
15
+ .diff .hljs-header,
16
+ .hljs-javadoc {
17
+ color: #998;
18
+ font-style: italic
19
+ }
20
+
21
+ .hljs-keyword,
22
+ .css .rule .hljs-keyword,
23
+ .hljs-winutils,
24
+ .javascript .hljs-title,
25
+ .nginx .hljs-title,
26
+ .hljs-subst,
27
+ .hljs-request,
28
+ .hljs-status {
29
+ color: #333;
30
+ font-weight: bold
31
+ }
32
+
33
+ .hljs-number,
34
+ .hljs-hexcolor,
35
+ .ruby .hljs-constant {
36
+ color: #099;
37
+ }
38
+
39
+ .hljs-string,
40
+ .hljs-tag .hljs-value,
41
+ .hljs-phpdoc,
42
+ .tex .hljs-formula {
43
+ color: #d14
44
+ }
45
+
46
+ .hljs-title,
47
+ .hljs-id,
48
+ .coffeescript .hljs-params,
49
+ .scss .hljs-preprocessor {
50
+ color: #900;
51
+ font-weight: bold
52
+ }
53
+
54
+ .javascript .hljs-title,
55
+ .lisp .hljs-title,
56
+ .clojure .hljs-title,
57
+ .hljs-subst {
58
+ font-weight: normal
59
+ }
60
+
61
+ .hljs-class .hljs-title,
62
+ .haskell .hljs-type,
63
+ .vhdl .hljs-literal,
64
+ .tex .hljs-command {
65
+ color: #458;
66
+ font-weight: bold
67
+ }
68
+
69
+ .hljs-tag,
70
+ .hljs-tag .hljs-title,
71
+ .hljs-rules .hljs-property,
72
+ .django .hljs-tag .hljs-keyword {
73
+ color: #000080;
74
+ font-weight: normal
75
+ }
76
+
77
+ .hljs-attribute,
78
+ .hljs-variable,
79
+ .lisp .hljs-body {
80
+ color: #008080
81
+ }
82
+
83
+ .hljs-regexp {
84
+ color: #009926
85
+ }
86
+
87
+ .hljs-symbol,
88
+ .ruby .hljs-symbol .hljs-string,
89
+ .lisp .hljs-keyword,
90
+ .tex .hljs-special,
91
+ .hljs-prompt {
92
+ color: #990073
93
+ }
94
+
95
+ .hljs-built_in,
96
+ .lisp .hljs-title,
97
+ .clojure .hljs-built_in {
98
+ color: #0086b3
99
+ }
100
+
101
+ .hljs-preprocessor,
102
+ .hljs-pragma,
103
+ .hljs-pi,
104
+ .hljs-doctype,
105
+ .hljs-shebang,
106
+ .hljs-cdata {
107
+ color: #999;
108
+ font-weight: bold
109
+ }
110
+
111
+ .hljs-deletion {
112
+ background: #fdd
113
+ }
114
+
115
+ .hljs-addition {
116
+ background: #dfd
117
+ }
118
+
119
+ .diff .hljs-change {
120
+ background: #0086b3
121
+ }
122
+
123
+ .hljs-chunk {
124
+ color: #aaa
125
+ }
@@ -0,0 +1,147 @@
1
+ /*
2
+
3
+ Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ background: white; color: black;
10
+ }
11
+
12
+ .hljs-comment,
13
+ .hljs-template_comment,
14
+ .hljs-javadoc,
15
+ .hljs-comment * {
16
+ color: #800;
17
+ }
18
+
19
+ .hljs-keyword,
20
+ .method,
21
+ .hljs-list .hljs-title,
22
+ .clojure .hljs-built_in,
23
+ .nginx .hljs-title,
24
+ .hljs-tag .hljs-title,
25
+ .setting .hljs-value,
26
+ .hljs-winutils,
27
+ .tex .hljs-command,
28
+ .http .hljs-title,
29
+ .hljs-request,
30
+ .hljs-status {
31
+ color: #008;
32
+ }
33
+
34
+ .hljs-envvar,
35
+ .tex .hljs-special {
36
+ color: #660;
37
+ }
38
+
39
+ .hljs-string,
40
+ .hljs-tag .hljs-value,
41
+ .hljs-cdata,
42
+ .hljs-filter .hljs-argument,
43
+ .hljs-attr_selector,
44
+ .apache .hljs-cbracket,
45
+ .hljs-date,
46
+ .hljs-regexp,
47
+ .coffeescript .hljs-attribute {
48
+ color: #080;
49
+ }
50
+
51
+ .hljs-sub .hljs-identifier,
52
+ .hljs-pi,
53
+ .hljs-tag,
54
+ .hljs-tag .hljs-keyword,
55
+ .hljs-decorator,
56
+ .ini .hljs-title,
57
+ .hljs-shebang,
58
+ .hljs-prompt,
59
+ .hljs-hexcolor,
60
+ .hljs-rules .hljs-value,
61
+ .css .hljs-value .hljs-number,
62
+ .hljs-literal,
63
+ .hljs-symbol,
64
+ .ruby .hljs-symbol .hljs-string,
65
+ .hljs-number,
66
+ .css .hljs-function,
67
+ .clojure .hljs-attribute {
68
+ color: #066;
69
+ }
70
+
71
+ .hljs-class .hljs-title,
72
+ .haskell .hljs-type,
73
+ .smalltalk .hljs-class,
74
+ .hljs-javadoctag,
75
+ .hljs-yardoctag,
76
+ .hljs-phpdoc,
77
+ .hljs-typename,
78
+ .hljs-tag .hljs-attribute,
79
+ .hljs-doctype,
80
+ .hljs-class .hljs-id,
81
+ .hljs-built_in,
82
+ .setting,
83
+ .hljs-params,
84
+ .hljs-variable,
85
+ .clojure .hljs-title {
86
+ color: #606;
87
+ }
88
+
89
+ .css .hljs-tag,
90
+ .hljs-rules .hljs-property,
91
+ .hljs-pseudo,
92
+ .hljs-subst {
93
+ color: #000;
94
+ }
95
+
96
+ .css .hljs-class,
97
+ .css .hljs-id {
98
+ color: #9B703F;
99
+ }
100
+
101
+ .hljs-value .hljs-important {
102
+ color: #ff7700;
103
+ font-weight: bold;
104
+ }
105
+
106
+ .hljs-rules .hljs-keyword {
107
+ color: #C5AF75;
108
+ }
109
+
110
+ .hljs-annotation,
111
+ .apache .hljs-sqbracket,
112
+ .nginx .hljs-built_in {
113
+ color: #9B859D;
114
+ }
115
+
116
+ .hljs-preprocessor,
117
+ .hljs-preprocessor *,
118
+ .hljs-pragma {
119
+ color: #444;
120
+ }
121
+
122
+ .tex .hljs-formula {
123
+ background-color: #EEE;
124
+ font-style: italic;
125
+ }
126
+
127
+ .diff .hljs-header,
128
+ .hljs-chunk {
129
+ color: #808080;
130
+ font-weight: bold;
131
+ }
132
+
133
+ .diff .hljs-change {
134
+ background-color: #BCCFF9;
135
+ }
136
+
137
+ .hljs-addition {
138
+ background-color: #BAEEBA;
139
+ }
140
+
141
+ .hljs-deletion {
142
+ background-color: #FFC8BD;
143
+ }
144
+
145
+ .hljs-comment .hljs-yardoctag {
146
+ font-weight: bold;
147
+ }
@@ -0,0 +1,122 @@
1
+ /*
2
+
3
+ Intellij Idea-like styling (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ color: #000;
10
+ background: #fff;
11
+ }
12
+
13
+ .hljs-subst,
14
+ .hljs-title {
15
+ font-weight: normal;
16
+ color: #000;
17
+ }
18
+
19
+ .hljs-comment,
20
+ .hljs-template_comment,
21
+ .hljs-javadoc,
22
+ .diff .hljs-header {
23
+ color: #808080;
24
+ font-style: italic;
25
+ }
26
+
27
+ .hljs-annotation,
28
+ .hljs-decorator,
29
+ .hljs-preprocessor,
30
+ .hljs-pragma,
31
+ .hljs-doctype,
32
+ .hljs-pi,
33
+ .hljs-chunk,
34
+ .hljs-shebang,
35
+ .apache .hljs-cbracket,
36
+ .hljs-prompt,
37
+ .http .hljs-title {
38
+ color: #808000;
39
+ }
40
+
41
+ .hljs-tag,
42
+ .hljs-pi {
43
+ background: #efefef;
44
+ }
45
+
46
+ .hljs-tag .hljs-title,
47
+ .hljs-id,
48
+ .hljs-attr_selector,
49
+ .hljs-pseudo,
50
+ .hljs-literal,
51
+ .hljs-keyword,
52
+ .hljs-hexcolor,
53
+ .css .hljs-function,
54
+ .ini .hljs-title,
55
+ .css .hljs-class,
56
+ .hljs-list .hljs-title,
57
+ .clojure .hljs-title,
58
+ .nginx .hljs-title,
59
+ .tex .hljs-command,
60
+ .hljs-request,
61
+ .hljs-status {
62
+ font-weight: bold;
63
+ color: #000080;
64
+ }
65
+
66
+ .hljs-attribute,
67
+ .hljs-rules .hljs-keyword,
68
+ .hljs-number,
69
+ .hljs-date,
70
+ .hljs-regexp,
71
+ .tex .hljs-special {
72
+ font-weight: bold;
73
+ color: #0000ff;
74
+ }
75
+
76
+ .hljs-number,
77
+ .hljs-regexp {
78
+ font-weight: normal;
79
+ }
80
+
81
+ .hljs-string,
82
+ .hljs-value,
83
+ .hljs-filter .hljs-argument,
84
+ .css .hljs-function .hljs-params,
85
+ .apache .hljs-tag {
86
+ color: #008000;
87
+ font-weight: bold;
88
+ }
89
+
90
+ .hljs-symbol,
91
+ .ruby .hljs-symbol .hljs-string,
92
+ .hljs-char,
93
+ .tex .hljs-formula {
94
+ color: #000;
95
+ background: #d0eded;
96
+ font-style: italic;
97
+ }
98
+
99
+ .hljs-phpdoc,
100
+ .hljs-yardoctag,
101
+ .hljs-javadoctag {
102
+ text-decoration: underline;
103
+ }
104
+
105
+ .hljs-variable,
106
+ .hljs-envvar,
107
+ .apache .hljs-sqbracket,
108
+ .nginx .hljs-built_in {
109
+ color: #660e7a;
110
+ }
111
+
112
+ .hljs-addition {
113
+ background: #baeeba;
114
+ }
115
+
116
+ .hljs-deletion {
117
+ background: #ffc8bd;
118
+ }
119
+
120
+ .diff .hljs-change {
121
+ background: #bccff9;
122
+ }