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,113 @@
1
+ /*
2
+
3
+ School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 15px 0.5em 0.5em 30px;
9
+ font-size: 11px !important;
10
+ line-height:16px !important;
11
+ }
12
+
13
+ pre{
14
+ background:#f6f6ae url(./school_book.png);
15
+ border-top: solid 2px #d2e8b9;
16
+ border-bottom: solid 1px #d2e8b9;
17
+ }
18
+
19
+ .hljs-keyword,
20
+ .hljs-literal,
21
+ .hljs-change,
22
+ .hljs-winutils,
23
+ .hljs-flow,
24
+ .lisp .hljs-title,
25
+ .clojure .hljs-built_in,
26
+ .nginx .hljs-title,
27
+ .tex .hljs-special {
28
+ color:#005599;
29
+ font-weight:bold;
30
+ }
31
+
32
+ .hljs,
33
+ .hljs-subst,
34
+ .hljs-tag .hljs-keyword {
35
+ color: #3E5915;
36
+ }
37
+
38
+ .hljs-string,
39
+ .hljs-title,
40
+ .haskell .hljs-type,
41
+ .hljs-tag .hljs-value,
42
+ .css .hljs-rules .hljs-value,
43
+ .hljs-preprocessor,
44
+ .hljs-pragma,
45
+ .ruby .hljs-symbol,
46
+ .ruby .hljs-symbol .hljs-string,
47
+ .ruby .hljs-class .hljs-parent,
48
+ .hljs-built_in,
49
+ .sql .hljs-aggregate,
50
+ .django .hljs-template_tag,
51
+ .django .hljs-variable,
52
+ .smalltalk .hljs-class,
53
+ .hljs-javadoc,
54
+ .ruby .hljs-string,
55
+ .django .hljs-filter .hljs-argument,
56
+ .smalltalk .hljs-localvars,
57
+ .smalltalk .hljs-array,
58
+ .hljs-attr_selector,
59
+ .hljs-pseudo,
60
+ .hljs-addition,
61
+ .hljs-stream,
62
+ .hljs-envvar,
63
+ .apache .hljs-tag,
64
+ .apache .hljs-cbracket,
65
+ .nginx .hljs-built_in,
66
+ .tex .hljs-command,
67
+ .coffeescript .hljs-attribute {
68
+ color: #2C009F;
69
+ }
70
+
71
+ .hljs-comment,
72
+ .java .hljs-annotation,
73
+ .python .hljs-decorator,
74
+ .hljs-template_comment,
75
+ .hljs-pi,
76
+ .hljs-doctype,
77
+ .hljs-deletion,
78
+ .hljs-shebang,
79
+ .apache .hljs-sqbracket {
80
+ color: #E60415;
81
+ }
82
+
83
+ .hljs-keyword,
84
+ .hljs-literal,
85
+ .css .hljs-id,
86
+ .hljs-phpdoc,
87
+ .hljs-title,
88
+ .haskell .hljs-type,
89
+ .vbscript .hljs-built_in,
90
+ .sql .hljs-aggregate,
91
+ .rsl .hljs-built_in,
92
+ .smalltalk .hljs-class,
93
+ .xml .hljs-tag .hljs-title,
94
+ .diff .hljs-header,
95
+ .hljs-chunk,
96
+ .hljs-winutils,
97
+ .bash .hljs-variable,
98
+ .apache .hljs-tag,
99
+ .tex .hljs-command,
100
+ .hljs-request,
101
+ .hljs-status {
102
+ font-weight: bold;
103
+ }
104
+
105
+ .coffeescript .javascript,
106
+ .javascript .xml,
107
+ .tex .hljs-formula,
108
+ .xml .javascript,
109
+ .xml .vbscript,
110
+ .xml .css,
111
+ .xml .hljs-cdata {
112
+ opacity: 0.5;
113
+ }
@@ -0,0 +1,107 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ padding: 0.5em;
10
+ background: #002b36;
11
+ color: #839496;
12
+ }
13
+
14
+ .hljs-comment,
15
+ .hljs-template_comment,
16
+ .diff .hljs-header,
17
+ .hljs-doctype,
18
+ .hljs-pi,
19
+ .lisp .hljs-string,
20
+ .hljs-javadoc {
21
+ color: #586e75;
22
+ }
23
+
24
+ /* Solarized Green */
25
+ .hljs-keyword,
26
+ .hljs-winutils,
27
+ .method,
28
+ .hljs-addition,
29
+ .css .hljs-tag,
30
+ .hljs-request,
31
+ .hljs-status,
32
+ .nginx .hljs-title {
33
+ color: #859900;
34
+ }
35
+
36
+ /* Solarized Cyan */
37
+ .hljs-number,
38
+ .hljs-command,
39
+ .hljs-string,
40
+ .hljs-tag .hljs-value,
41
+ .hljs-rules .hljs-value,
42
+ .hljs-phpdoc,
43
+ .tex .hljs-formula,
44
+ .hljs-regexp,
45
+ .hljs-hexcolor,
46
+ .hljs-link_url {
47
+ color: #2aa198;
48
+ }
49
+
50
+ /* Solarized Blue */
51
+ .hljs-title,
52
+ .hljs-localvars,
53
+ .hljs-chunk,
54
+ .hljs-decorator,
55
+ .hljs-built_in,
56
+ .hljs-identifier,
57
+ .vhdl .hljs-literal,
58
+ .hljs-id,
59
+ .css .hljs-function {
60
+ color: #268bd2;
61
+ }
62
+
63
+ /* Solarized Yellow */
64
+ .hljs-attribute,
65
+ .hljs-variable,
66
+ .lisp .hljs-body,
67
+ .smalltalk .hljs-number,
68
+ .hljs-constant,
69
+ .hljs-class .hljs-title,
70
+ .hljs-parent,
71
+ .haskell .hljs-type,
72
+ .hljs-link_reference {
73
+ color: #b58900;
74
+ }
75
+
76
+ /* Solarized Orange */
77
+ .hljs-preprocessor,
78
+ .hljs-preprocessor .hljs-keyword,
79
+ .hljs-pragma,
80
+ .hljs-shebang,
81
+ .hljs-symbol,
82
+ .hljs-symbol .hljs-string,
83
+ .diff .hljs-change,
84
+ .hljs-special,
85
+ .hljs-attr_selector,
86
+ .hljs-subst,
87
+ .hljs-cdata,
88
+ .clojure .hljs-title,
89
+ .css .hljs-pseudo,
90
+ .hljs-header {
91
+ color: #cb4b16;
92
+ }
93
+
94
+ /* Solarized Red */
95
+ .hljs-deletion,
96
+ .hljs-important {
97
+ color: #dc322f;
98
+ }
99
+
100
+ /* Solarized Violet */
101
+ .hljs-link_label {
102
+ color: #6c71c4;
103
+ }
104
+
105
+ .tex .hljs-formula {
106
+ background: #073642;
107
+ }
@@ -0,0 +1,107 @@
1
+ /*
2
+
3
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ padding: 0.5em;
10
+ background: #fdf6e3;
11
+ color: #657b83;
12
+ }
13
+
14
+ .hljs-comment,
15
+ .hljs-template_comment,
16
+ .diff .hljs-header,
17
+ .hljs-doctype,
18
+ .hljs-pi,
19
+ .lisp .hljs-string,
20
+ .hljs-javadoc {
21
+ color: #93a1a1;
22
+ }
23
+
24
+ /* Solarized Green */
25
+ .hljs-keyword,
26
+ .hljs-winutils,
27
+ .method,
28
+ .hljs-addition,
29
+ .css .hljs-tag,
30
+ .hljs-request,
31
+ .hljs-status,
32
+ .nginx .hljs-title {
33
+ color: #859900;
34
+ }
35
+
36
+ /* Solarized Cyan */
37
+ .hljs-number,
38
+ .hljs-command,
39
+ .hljs-string,
40
+ .hljs-tag .hljs-value,
41
+ .hljs-rules .hljs-value,
42
+ .hljs-phpdoc,
43
+ .tex .hljs-formula,
44
+ .hljs-regexp,
45
+ .hljs-hexcolor,
46
+ .hljs-link_url {
47
+ color: #2aa198;
48
+ }
49
+
50
+ /* Solarized Blue */
51
+ .hljs-title,
52
+ .hljs-localvars,
53
+ .hljs-chunk,
54
+ .hljs-decorator,
55
+ .hljs-built_in,
56
+ .hljs-identifier,
57
+ .vhdl .hljs-literal,
58
+ .hljs-id,
59
+ .css .hljs-function {
60
+ color: #268bd2;
61
+ }
62
+
63
+ /* Solarized Yellow */
64
+ .hljs-attribute,
65
+ .hljs-variable,
66
+ .lisp .hljs-body,
67
+ .smalltalk .hljs-number,
68
+ .hljs-constant,
69
+ .hljs-class .hljs-title,
70
+ .hljs-parent,
71
+ .haskell .hljs-type,
72
+ .hljs-link_reference {
73
+ color: #b58900;
74
+ }
75
+
76
+ /* Solarized Orange */
77
+ .hljs-preprocessor,
78
+ .hljs-preprocessor .hljs-keyword,
79
+ .hljs-pragma,
80
+ .hljs-shebang,
81
+ .hljs-symbol,
82
+ .hljs-symbol .hljs-string,
83
+ .diff .hljs-change,
84
+ .hljs-special,
85
+ .hljs-attr_selector,
86
+ .hljs-subst,
87
+ .hljs-cdata,
88
+ .clojure .hljs-title,
89
+ .css .hljs-pseudo,
90
+ .hljs-header {
91
+ color: #cb4b16;
92
+ }
93
+
94
+ /* Solarized Red */
95
+ .hljs-deletion,
96
+ .hljs-important {
97
+ color: #dc322f;
98
+ }
99
+
100
+ /* Solarized Violet */
101
+ .hljs-link_label {
102
+ color: #6c71c4;
103
+ }
104
+
105
+ .tex .hljs-formula {
106
+ background: #eee8d5;
107
+ }
@@ -0,0 +1,160 @@
1
+ /*
2
+
3
+ Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block; padding: 0.5em;
9
+ background: #000; color: #f8f8f8;
10
+ }
11
+
12
+ .hljs-comment,
13
+ .hljs-template_comment,
14
+ .hljs-javadoc {
15
+ color: #aeaeae;
16
+ font-style: italic;
17
+ }
18
+
19
+ .hljs-keyword,
20
+ .ruby .hljs-function .hljs-keyword,
21
+ .hljs-request,
22
+ .hljs-status,
23
+ .nginx .hljs-title {
24
+ color: #E28964;
25
+ }
26
+
27
+ .hljs-function .hljs-keyword,
28
+ .hljs-sub .hljs-keyword,
29
+ .method,
30
+ .hljs-list .hljs-title {
31
+ color: #99CF50;
32
+ }
33
+
34
+ .hljs-string,
35
+ .hljs-tag .hljs-value,
36
+ .hljs-cdata,
37
+ .hljs-filter .hljs-argument,
38
+ .hljs-attr_selector,
39
+ .apache .hljs-cbracket,
40
+ .hljs-date,
41
+ .tex .hljs-command,
42
+ .coffeescript .hljs-attribute {
43
+ color: #65B042;
44
+ }
45
+
46
+ .hljs-subst {
47
+ color: #DAEFA3;
48
+ }
49
+
50
+ .hljs-regexp {
51
+ color: #E9C062;
52
+ }
53
+
54
+ .hljs-title,
55
+ .hljs-sub .hljs-identifier,
56
+ .hljs-pi,
57
+ .hljs-tag,
58
+ .hljs-tag .hljs-keyword,
59
+ .hljs-decorator,
60
+ .hljs-shebang,
61
+ .hljs-prompt {
62
+ color: #89BDFF;
63
+ }
64
+
65
+ .hljs-class .hljs-title,
66
+ .haskell .hljs-type,
67
+ .smalltalk .hljs-class,
68
+ .hljs-javadoctag,
69
+ .hljs-yardoctag,
70
+ .hljs-phpdoc {
71
+ text-decoration: underline;
72
+ }
73
+
74
+ .hljs-symbol,
75
+ .ruby .hljs-symbol .hljs-string,
76
+ .hljs-number {
77
+ color: #3387CC;
78
+ }
79
+
80
+ .hljs-params,
81
+ .hljs-variable,
82
+ .clojure .hljs-attribute {
83
+ color: #3E87E3;
84
+ }
85
+
86
+ .css .hljs-tag,
87
+ .hljs-rules .hljs-property,
88
+ .hljs-pseudo,
89
+ .tex .hljs-special {
90
+ color: #CDA869;
91
+ }
92
+
93
+ .css .hljs-class {
94
+ color: #9B703F;
95
+ }
96
+
97
+ .hljs-rules .hljs-keyword {
98
+ color: #C5AF75;
99
+ }
100
+
101
+ .hljs-rules .hljs-value {
102
+ color: #CF6A4C;
103
+ }
104
+
105
+ .css .hljs-id {
106
+ color: #8B98AB;
107
+ }
108
+
109
+ .hljs-annotation,
110
+ .apache .hljs-sqbracket,
111
+ .nginx .hljs-built_in {
112
+ color: #9B859D;
113
+ }
114
+
115
+ .hljs-preprocessor,
116
+ .hljs-pragma {
117
+ color: #8996A8;
118
+ }
119
+
120
+ .hljs-hexcolor,
121
+ .css .hljs-value .hljs-number {
122
+ color: #DD7B3B;
123
+ }
124
+
125
+ .css .hljs-function {
126
+ color: #DAD085;
127
+ }
128
+
129
+ .diff .hljs-header,
130
+ .hljs-chunk,
131
+ .tex .hljs-formula {
132
+ background-color: #0E2231;
133
+ color: #F8F8F8;
134
+ font-style: italic;
135
+ }
136
+
137
+ .diff .hljs-change {
138
+ background-color: #4A410D;
139
+ color: #F8F8F8;
140
+ }
141
+
142
+ .hljs-addition {
143
+ background-color: #253B22;
144
+ color: #F8F8F8;
145
+ }
146
+
147
+ .hljs-deletion {
148
+ background-color: #420E09;
149
+ color: #F8F8F8;
150
+ }
151
+
152
+ .coffeescript .javascript,
153
+ .javascript .xml,
154
+ .tex .hljs-formula,
155
+ .xml .javascript,
156
+ .xml .vbscript,
157
+ .xml .css,
158
+ .xml .hljs-cdata {
159
+ opacity: 0.5;
160
+ }