friendly 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/.document +5 -0
  2. data/.gitignore +23 -0
  3. data/APACHE-LICENSE +202 -0
  4. data/LICENSE +20 -0
  5. data/README.md +173 -0
  6. data/Rakefile +67 -0
  7. data/VERSION +1 -0
  8. data/examples/friendly.yml +7 -0
  9. data/friendly.gemspec +201 -0
  10. data/lib/friendly/attribute.rb +65 -0
  11. data/lib/friendly/boolean.rb +6 -0
  12. data/lib/friendly/cache/by_id.rb +33 -0
  13. data/lib/friendly/cache.rb +24 -0
  14. data/lib/friendly/config.rb +5 -0
  15. data/lib/friendly/data_store.rb +72 -0
  16. data/lib/friendly/document.rb +165 -0
  17. data/lib/friendly/document_table.rb +56 -0
  18. data/lib/friendly/index.rb +73 -0
  19. data/lib/friendly/memcached.rb +48 -0
  20. data/lib/friendly/newrelic.rb +6 -0
  21. data/lib/friendly/query.rb +42 -0
  22. data/lib/friendly/sequel_monkey_patches.rb +35 -0
  23. data/lib/friendly/storage.rb +31 -0
  24. data/lib/friendly/storage_factory.rb +24 -0
  25. data/lib/friendly/storage_proxy.rb +103 -0
  26. data/lib/friendly/table.rb +15 -0
  27. data/lib/friendly/table_creator.rb +43 -0
  28. data/lib/friendly/time.rb +14 -0
  29. data/lib/friendly/translator.rb +32 -0
  30. data/lib/friendly/uuid.rb +143 -0
  31. data/lib/friendly.rb +49 -0
  32. data/rails/init.rb +3 -0
  33. data/spec/fakes/data_store_fake.rb +29 -0
  34. data/spec/fakes/database_fake.rb +12 -0
  35. data/spec/fakes/dataset_fake.rb +28 -0
  36. data/spec/fakes/document.rb +18 -0
  37. data/spec/fakes/serializer_fake.rb +12 -0
  38. data/spec/fakes/time_fake.rb +12 -0
  39. data/spec/integration/basic_object_lifecycle_spec.rb +114 -0
  40. data/spec/integration/batch_insertion_spec.rb +29 -0
  41. data/spec/integration/convenience_api_spec.rb +25 -0
  42. data/spec/integration/count_spec.rb +12 -0
  43. data/spec/integration/default_value_spec.rb +15 -0
  44. data/spec/integration/find_via_cache_spec.rb +101 -0
  45. data/spec/integration/finder_spec.rb +64 -0
  46. data/spec/integration/index_spec.rb +57 -0
  47. data/spec/integration/pagination_spec.rb +63 -0
  48. data/spec/integration/table_creator_spec.rb +52 -0
  49. data/spec/integration/write_through_cache_spec.rb +53 -0
  50. data/spec/spec.opts +1 -0
  51. data/spec/spec_helper.rb +90 -0
  52. data/spec/unit/attribute_spec.rb +64 -0
  53. data/spec/unit/cache_by_id_spec.rb +102 -0
  54. data/spec/unit/cache_spec.rb +21 -0
  55. data/spec/unit/config_spec.rb +4 -0
  56. data/spec/unit/data_store_spec.rb +188 -0
  57. data/spec/unit/document_spec.rb +311 -0
  58. data/spec/unit/document_table_spec.rb +126 -0
  59. data/spec/unit/friendly_spec.rb +25 -0
  60. data/spec/unit/index_spec.rb +196 -0
  61. data/spec/unit/memcached_spec.rb +114 -0
  62. data/spec/unit/query_spec.rb +104 -0
  63. data/spec/unit/storage_factory_spec.rb +59 -0
  64. data/spec/unit/storage_proxy_spec.rb +218 -0
  65. data/spec/unit/translator_spec.rb +96 -0
  66. data/website/index.html +210 -0
  67. data/website/scripts/clipboard.swf +0 -0
  68. data/website/scripts/shBrushAS3.js +61 -0
  69. data/website/scripts/shBrushBash.js +66 -0
  70. data/website/scripts/shBrushCSharp.js +67 -0
  71. data/website/scripts/shBrushColdFusion.js +102 -0
  72. data/website/scripts/shBrushCpp.js +99 -0
  73. data/website/scripts/shBrushCss.js +93 -0
  74. data/website/scripts/shBrushDelphi.js +57 -0
  75. data/website/scripts/shBrushDiff.js +43 -0
  76. data/website/scripts/shBrushErlang.js +54 -0
  77. data/website/scripts/shBrushGroovy.js +69 -0
  78. data/website/scripts/shBrushJScript.js +52 -0
  79. data/website/scripts/shBrushJava.js +59 -0
  80. data/website/scripts/shBrushJavaFX.js +60 -0
  81. data/website/scripts/shBrushPerl.js +74 -0
  82. data/website/scripts/shBrushPhp.js +91 -0
  83. data/website/scripts/shBrushPlain.js +35 -0
  84. data/website/scripts/shBrushPowerShell.js +76 -0
  85. data/website/scripts/shBrushPython.js +66 -0
  86. data/website/scripts/shBrushRuby.js +57 -0
  87. data/website/scripts/shBrushScala.js +53 -0
  88. data/website/scripts/shBrushSql.js +68 -0
  89. data/website/scripts/shBrushVb.js +58 -0
  90. data/website/scripts/shBrushXml.js +71 -0
  91. data/website/scripts/shCore.js +30 -0
  92. data/website/scripts/shLegacy.js +30 -0
  93. data/website/styles/friendly.css +103 -0
  94. data/website/styles/help.png +0 -0
  95. data/website/styles/ie.css +35 -0
  96. data/website/styles/magnifier.png +0 -0
  97. data/website/styles/page_white_code.png +0 -0
  98. data/website/styles/page_white_copy.png +0 -0
  99. data/website/styles/print.css +29 -0
  100. data/website/styles/printer.png +0 -0
  101. data/website/styles/screen.css +257 -0
  102. data/website/styles/shCore.css +330 -0
  103. data/website/styles/shThemeDefault.css +173 -0
  104. data/website/styles/shThemeDjango.css +176 -0
  105. data/website/styles/shThemeEclipse.css +190 -0
  106. data/website/styles/shThemeEmacs.css +175 -0
  107. data/website/styles/shThemeFadeToGrey.css +177 -0
  108. data/website/styles/shThemeMidnight.css +175 -0
  109. data/website/styles/shThemeRDark.css +175 -0
  110. metadata +264 -0
@@ -0,0 +1,190 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Eclipse IDE SyntaxHighlighter color theme
32
+ * (C) Code-House
33
+ * http://blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/
34
+ */
35
+
36
+ .syntaxhighlighter
37
+ {
38
+ background-color: #fff !important;
39
+ }
40
+
41
+ /* Highlighed line number */
42
+ .syntaxhighlighter .line.highlighted .number
43
+ {
44
+ background-color: #c3defe !important;
45
+ }
46
+
47
+ /* Highlighed line */
48
+ .syntaxhighlighter .line.highlighted.alt1,
49
+ .syntaxhighlighter .line.highlighted.alt2
50
+ {
51
+ background-color: #c3defe !important;
52
+ }
53
+
54
+ /* Gutter line numbers */
55
+ .syntaxhighlighter .line .number
56
+ {
57
+ color: #787878 !important;
58
+ background-color: #fff !important;
59
+ }
60
+
61
+ /* Add border to the lines */
62
+ .syntaxhighlighter .line .content
63
+ {
64
+ border-left: 1px solid #d4d0c8 !important;
65
+ color: #000 !important;
66
+ }
67
+
68
+ .syntaxhighlighter.printing .line .content
69
+ {
70
+ border: 0 !important;
71
+ }
72
+
73
+ /* First line */
74
+ .syntaxhighlighter .line.alt1
75
+ {
76
+ background-color: #fff !important;
77
+ }
78
+
79
+ /* Second line */
80
+ .syntaxhighlighter .line.alt2
81
+ {
82
+ background-color: #fff !important;
83
+ }
84
+
85
+ .syntaxhighlighter .toolbar
86
+ {
87
+ background-color: #F8F8F8 !important;
88
+ border: #E7E5DC solid 1px !important;
89
+ }
90
+
91
+ .syntaxhighlighter .toolbar a
92
+ {
93
+ color: #a0a0a0 !important;
94
+ }
95
+
96
+ .syntaxhighlighter .toolbar a:hover
97
+ {
98
+ color: red !important;
99
+ }
100
+
101
+ /************************************
102
+ * Actual syntax highlighter colors.
103
+ ************************************/
104
+ .syntaxhighlighter .plain,
105
+ .syntaxhighlighter .plain a
106
+ {
107
+ color: #000 !important;
108
+ }
109
+
110
+ .syntaxhighlighter .comments,
111
+ .syntaxhighlighter .comments a
112
+ {
113
+ color: #3f5fbf !important;
114
+ }
115
+
116
+ .syntaxhighlighter .string,
117
+ .syntaxhighlighter .string a
118
+ {
119
+ color: #2a00ff !important;
120
+ }
121
+
122
+ .syntaxhighlighter .keyword
123
+ {
124
+ color: #7f0055 !important;
125
+ font-weight: bold !important;
126
+ }
127
+
128
+ .syntaxhighlighter .preprocessor
129
+ {
130
+ color: #646464 !important;
131
+ }
132
+
133
+ .syntaxhighlighter .variable
134
+ {
135
+ color: #a70 !important;
136
+ }
137
+
138
+ .syntaxhighlighter .value
139
+ {
140
+ color: #090 !important;
141
+ }
142
+
143
+ .syntaxhighlighter .functions
144
+ {
145
+ color: #ff1493 !important;
146
+ }
147
+
148
+ .syntaxhighlighter .constants
149
+ {
150
+ color: #0066CC !important;
151
+ }
152
+
153
+ .syntaxhighlighter .script
154
+ {
155
+ background-color: yellow !important;
156
+ }
157
+
158
+ .syntaxhighlighter .color1,
159
+ .syntaxhighlighter .color1 a
160
+ {
161
+ color: #808080 !important;
162
+ }
163
+
164
+ .syntaxhighlighter .color2,
165
+ .syntaxhighlighter .color2 a
166
+ {
167
+ color: #ff1493 !important;
168
+ }
169
+
170
+ .syntaxhighlighter .color3,
171
+ .syntaxhighlighter .color3 a
172
+ {
173
+ color: red !important;
174
+ }
175
+
176
+
177
+ .xml .keyword {
178
+ color: #3f7f7f !important;
179
+ font-weight: normal !important;
180
+ }
181
+
182
+ .xml .color1,
183
+ .xml .color1 a{
184
+ color: #7f007f !important;
185
+ }
186
+
187
+ .xml .string {
188
+ font-style: italic !important;
189
+ color: #2a00ff !important;
190
+ }
@@ -0,0 +1,175 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
32
+ * http://www.skia.net/
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #000000 !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #D3D3D3 !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #990000 !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ }
66
+
67
+ /* Second line */
68
+ .syntaxhighlighter .line.alt2
69
+ {
70
+ background-color: #0f0f0f !important;
71
+ }
72
+
73
+ /* Highlighed line number */
74
+ .syntaxhighlighter .line.highlighted .number
75
+ {
76
+ background-color: #435A5F !important;
77
+ color: #fff !important;
78
+ }
79
+
80
+ /* Highlighed line */
81
+ .syntaxhighlighter .line.highlighted.alt1,
82
+ .syntaxhighlighter .line.highlighted.alt2
83
+ {
84
+ background-color: #435A5F !important;
85
+ }
86
+
87
+ .syntaxhighlighter .toolbar
88
+ {
89
+ background-color: #000000 !important;
90
+ border: #000000 solid 1px !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #646763 !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #9CCFF4 !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #D3D3D3 !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #FF7D27 !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #FF9E7B !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #00FFFF !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #AEC4DE !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #FFAA3E !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #090 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #81CEF9 !important;
147
+ }
148
+
149
+ .syntaxhighlighter .constants
150
+ {
151
+ color: #FF9E7B !important;
152
+ }
153
+
154
+ .syntaxhighlighter .script
155
+ {
156
+ background-color: #990000 !important;
157
+ }
158
+
159
+ .syntaxhighlighter .color1,
160
+ .syntaxhighlighter .color1 a
161
+ {
162
+ color: #EBDB8D !important;
163
+ }
164
+
165
+ .syntaxhighlighter .color2,
166
+ .syntaxhighlighter .color2 a
167
+ {
168
+ color: #FF7D27 !important;
169
+ }
170
+
171
+ .syntaxhighlighter .color3,
172
+ .syntaxhighlighter .color3 a
173
+ {
174
+ color: #AEC4DE !important;
175
+ }
@@ -0,0 +1,177 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
32
+ * http://www.ibrasten.com/
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #121212 !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #C3C3C3 !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #3185B9 !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ }
66
+
67
+ /* Second line */
68
+ .syntaxhighlighter .line.alt2
69
+ {
70
+ background-color: #000000 !important;
71
+ }
72
+
73
+ /* Highlighed line number */
74
+ .syntaxhighlighter .line.highlighted .number
75
+ {
76
+ background-color: #3A3A00 !important;
77
+ color: #fff !important;
78
+ }
79
+
80
+ /* Highlighed line */
81
+ .syntaxhighlighter .line.highlighted.alt1,
82
+ .syntaxhighlighter .line.highlighted.alt2
83
+ {
84
+ background-color: #3A3A00 !important;
85
+ }
86
+
87
+ .syntaxhighlighter .toolbar
88
+ {
89
+ background-color: #000000 !important;
90
+ border: #000000 solid 1px !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #808080 !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #96DAFF !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #FFFFFF !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #696854 !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #E3E658 !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #D01D33 !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #435A5F !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #898989 !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #090 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #AAAAAA !important;
147
+ font-weight: bold !important;
148
+ }
149
+
150
+ .syntaxhighlighter .constants
151
+ {
152
+ color: #96DAFF !important;
153
+ }
154
+
155
+ .syntaxhighlighter .script
156
+ {
157
+ background-color: #C3C3C3 !important;
158
+ color: #000 !important;
159
+ }
160
+
161
+ .syntaxhighlighter .color1,
162
+ .syntaxhighlighter .color1 a
163
+ {
164
+ color: #FFC074 !important;
165
+ }
166
+
167
+ .syntaxhighlighter .color2,
168
+ .syntaxhighlighter .color2 a
169
+ {
170
+ color: #4A8CDB !important;
171
+ }
172
+
173
+ .syntaxhighlighter .color3,
174
+ .syntaxhighlighter .color3 a
175
+ {
176
+ color: #96DAFF !important;
177
+ }
@@ -0,0 +1,175 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Midnight SyntaxHighlighter theme based on theme by J.D. Myers
32
+ * http://webdesign.lsnjd.com/
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #0F192A !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #38566F !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #435A5F !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ background-color: #0F192A !important;
66
+ }
67
+
68
+ /* Second line */
69
+ .syntaxhighlighter .line.alt2
70
+ {
71
+ background-color: #0F192A !important;
72
+ }
73
+
74
+ /* Highlighed line number */
75
+ .syntaxhighlighter .line.highlighted .number
76
+ {
77
+ background-color: #253E5A !important;
78
+ color: #fff !important;
79
+ }
80
+
81
+ /* Highlighed line */
82
+ .syntaxhighlighter .line.highlighted.alt1,
83
+ .syntaxhighlighter .line.highlighted.alt2
84
+ {
85
+ background-color: #253E5A !important;
86
+ }
87
+
88
+ .syntaxhighlighter .toolbar
89
+ {
90
+ background-color: #0F192A !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #38566F !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #8AA6C1 !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #D1EDFF !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #428BDD !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #1DC116 !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #B43D3D !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #8AA6C1 !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #FFAA3E !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #F7E741 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #FFAA3E !important;
147
+ }
148
+
149
+ .syntaxhighlighter .constants
150
+ {
151
+ color: #E0E8FF !important;
152
+ }
153
+
154
+ .syntaxhighlighter .script
155
+ {
156
+ background-color: #404040 !important;
157
+ }
158
+
159
+ .syntaxhighlighter .color1,
160
+ .syntaxhighlighter .color1 a
161
+ {
162
+ color: #F8BB00 !important;
163
+ }
164
+
165
+ .syntaxhighlighter .color2,
166
+ .syntaxhighlighter .color2 a
167
+ {
168
+ color: #FFFFFF !important;
169
+ }
170
+
171
+ .syntaxhighlighter .color3,
172
+ .syntaxhighlighter .color3 a
173
+ {
174
+ color: #FFAA3E !important;
175
+ }