feather_cms 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +46 -0
- data/Rakefile +1 -0
- data/feather_cms.gemspec +24 -0
- data/lib/feather_cms/config.rb +54 -0
- data/lib/feather_cms/model.rb +59 -0
- data/lib/feather_cms/railtie.rb +13 -0
- data/lib/feather_cms/template_cache.rb +52 -0
- data/lib/feather_cms/version.rb +3 -0
- data/lib/feather_cms/view_helper.rb +20 -0
- data/lib/feather_cms.rb +19 -0
- data/lib/generators/feather_cms/USAGE +10 -0
- data/lib/generators/feather_cms/feather_cms_generator.rb +63 -0
- data/lib/generators/feather_cms/templates/bootstrap.css +3992 -0
- data/lib/generators/feather_cms/templates/codemirror/codemirror.css +117 -0
- data/lib/generators/feather_cms/templates/codemirror/codemirror.js +2909 -0
- data/lib/generators/feather_cms/templates/codemirror/feather_cms.js +13 -0
- data/lib/generators/feather_cms/templates/codemirror/modes/css.js +124 -0
- data/lib/generators/feather_cms/templates/codemirror/modes/htmlmixed.js +83 -0
- data/lib/generators/feather_cms/templates/codemirror/modes/javascript.js +360 -0
- data/lib/generators/feather_cms/templates/codemirror/modes/xml.js +267 -0
- data/lib/generators/feather_cms/templates/codemirror/util/dialog.css +23 -0
- data/lib/generators/feather_cms/templates/codemirror/util/dialog.js +63 -0
- data/lib/generators/feather_cms/templates/codemirror/util/foldcode.js +186 -0
- data/lib/generators/feather_cms/templates/codemirror/util/formatting.js +294 -0
- data/lib/generators/feather_cms/templates/codemirror/util/javascript-hint.js +134 -0
- data/lib/generators/feather_cms/templates/codemirror/util/match-highlighter.js +44 -0
- data/lib/generators/feather_cms/templates/codemirror/util/overlay.js +51 -0
- data/lib/generators/feather_cms/templates/codemirror/util/runmode.js +49 -0
- data/lib/generators/feather_cms/templates/codemirror/util/search.js +114 -0
- data/lib/generators/feather_cms/templates/codemirror/util/searchcursor.js +117 -0
- data/lib/generators/feather_cms/templates/codemirror/util/simple-hint.css +16 -0
- data/lib/generators/feather_cms/templates/codemirror/util/simple-hint.js +68 -0
- data/lib/generators/feather_cms/templates/controller.rb +34 -0
- data/lib/generators/feather_cms/templates/form.html.erb +40 -0
- data/lib/generators/feather_cms/templates/index.html.erb +11 -0
- data/lib/generators/feather_cms/templates/initializer.rb +5 -0
- data/lib/generators/feather_cms/templates/layout.html.erb +52 -0
- data/lib/generators/feather_cms/templates/migration.rb +13 -0
- data/lib/generators/feather_cms/templates/model.rb +3 -0
- metadata +98 -0
@@ -0,0 +1,117 @@
|
|
1
|
+
.CodeMirror {
|
2
|
+
line-height: 1em;
|
3
|
+
font-family: monospace;
|
4
|
+
}
|
5
|
+
|
6
|
+
.CodeMirror-scroll {
|
7
|
+
overflow: auto;
|
8
|
+
height: 300px;
|
9
|
+
/* This is needed to prevent an IE[67] bug where the scrolled content
|
10
|
+
is visible outside of the scrolling box. */
|
11
|
+
position: relative;
|
12
|
+
outline: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
.CodeMirror-gutter {
|
16
|
+
position: absolute; left: 0; top: 0;
|
17
|
+
z-index: 10;
|
18
|
+
background-color: #f7f7f7;
|
19
|
+
border-right: 1px solid #eee;
|
20
|
+
min-width: 2em;
|
21
|
+
height: 100%;
|
22
|
+
}
|
23
|
+
.CodeMirror-gutter-text {
|
24
|
+
color: #aaa;
|
25
|
+
text-align: right;
|
26
|
+
padding: .4em .2em .4em .4em;
|
27
|
+
white-space: pre !important;
|
28
|
+
}
|
29
|
+
.CodeMirror-lines {
|
30
|
+
padding: .4em;
|
31
|
+
white-space: pre;
|
32
|
+
}
|
33
|
+
|
34
|
+
.CodeMirror pre {
|
35
|
+
-moz-border-radius: 0;
|
36
|
+
-webkit-border-radius: 0;
|
37
|
+
-o-border-radius: 0;
|
38
|
+
border-radius: 0;
|
39
|
+
border-width: 0; margin: 0; padding: 0; background: transparent;
|
40
|
+
font-family: inherit;
|
41
|
+
font-size: inherit;
|
42
|
+
padding: 0; margin: 0;
|
43
|
+
white-space: pre;
|
44
|
+
word-wrap: normal;
|
45
|
+
}
|
46
|
+
|
47
|
+
.CodeMirror-wrap pre {
|
48
|
+
word-wrap: break-word;
|
49
|
+
white-space: pre-wrap;
|
50
|
+
}
|
51
|
+
.CodeMirror-wrap .CodeMirror-scroll {
|
52
|
+
overflow-x: hidden;
|
53
|
+
}
|
54
|
+
|
55
|
+
.CodeMirror textarea {
|
56
|
+
outline: none !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
.CodeMirror pre.CodeMirror-cursor {
|
60
|
+
z-index: 10;
|
61
|
+
position: absolute;
|
62
|
+
visibility: hidden;
|
63
|
+
border-left: 1px solid black;
|
64
|
+
border-right:none;
|
65
|
+
width:0;
|
66
|
+
}
|
67
|
+
.CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
|
68
|
+
.CodeMirror-focused pre.CodeMirror-cursor {
|
69
|
+
visibility: visible;
|
70
|
+
}
|
71
|
+
|
72
|
+
div.CodeMirror-selected { background: #d9d9d9; }
|
73
|
+
.CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
|
74
|
+
|
75
|
+
.CodeMirror-searching {
|
76
|
+
background: #ffa;
|
77
|
+
background: rgba(255, 255, 0, .4);
|
78
|
+
}
|
79
|
+
|
80
|
+
/* Default theme */
|
81
|
+
|
82
|
+
.cm-s-default span.cm-keyword {color: #708;}
|
83
|
+
.cm-s-default span.cm-atom {color: #219;}
|
84
|
+
.cm-s-default span.cm-number {color: #164;}
|
85
|
+
.cm-s-default span.cm-def {color: #00f;}
|
86
|
+
.cm-s-default span.cm-variable {color: black;}
|
87
|
+
.cm-s-default span.cm-variable-2 {color: #05a;}
|
88
|
+
.cm-s-default span.cm-variable-3 {color: #085;}
|
89
|
+
.cm-s-default span.cm-property {color: black;}
|
90
|
+
.cm-s-default span.cm-operator {color: black;}
|
91
|
+
.cm-s-default span.cm-comment {color: #a50;}
|
92
|
+
.cm-s-default span.cm-string {color: #a11;}
|
93
|
+
.cm-s-default span.cm-string-2 {color: #f50;}
|
94
|
+
.cm-s-default span.cm-meta {color: #555;}
|
95
|
+
.cm-s-default span.cm-error {color: #f00;}
|
96
|
+
.cm-s-default span.cm-qualifier {color: #555;}
|
97
|
+
.cm-s-default span.cm-builtin {color: #30a;}
|
98
|
+
.cm-s-default span.cm-bracket {color: #cc7;}
|
99
|
+
.cm-s-default span.cm-tag {color: #170;}
|
100
|
+
.cm-s-default span.cm-attribute {color: #00c;}
|
101
|
+
.cm-s-default span.cm-header {color: #a0a;}
|
102
|
+
.cm-s-default span.cm-quote {color: #090;}
|
103
|
+
.cm-s-default span.cm-hr {color: #999;}
|
104
|
+
.cm-s-default span.cm-link {color: #00c;}
|
105
|
+
|
106
|
+
span.cm-header, span.cm-strong {font-weight: bold;}
|
107
|
+
span.cm-em {font-style: italic;}
|
108
|
+
span.cm-emstrong {font-style: italic; font-weight: bold;}
|
109
|
+
span.cm-link {text-decoration: underline;}
|
110
|
+
|
111
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
112
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
113
|
+
|
114
|
+
div.CodeMirror{ border: 1px solid black; }
|
115
|
+
|
116
|
+
|
117
|
+
|