cassandra-web 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,170 @@
1
+ /*
2
+ Solarized theme for code-mirror
3
+ http://ethanschoonover.com/solarized
4
+ */
5
+
6
+ /*
7
+ Solarized color pallet
8
+ http://ethanschoonover.com/solarized/img/solarized-palette.png
9
+ */
10
+
11
+ .solarized.base03 { color: #002b36; }
12
+ .solarized.base02 { color: #073642; }
13
+ .solarized.base01 { color: #586e75; }
14
+ .solarized.base00 { color: #657b83; }
15
+ .solarized.base0 { color: #839496; }
16
+ .solarized.base1 { color: #93a1a1; }
17
+ .solarized.base2 { color: #eee8d5; }
18
+ .solarized.base3 { color: #fdf6e3; }
19
+ .solarized.solar-yellow { color: #b58900; }
20
+ .solarized.solar-orange { color: #cb4b16; }
21
+ .solarized.solar-red { color: #dc322f; }
22
+ .solarized.solar-magenta { color: #d33682; }
23
+ .solarized.solar-violet { color: #6c71c4; }
24
+ .solarized.solar-blue { color: #268bd2; }
25
+ .solarized.solar-cyan { color: #2aa198; }
26
+ .solarized.solar-green { color: #859900; }
27
+
28
+ /* Color scheme for code-mirror */
29
+
30
+ .cm-s-solarized {
31
+ line-height: 1.45em;
32
+ color-profile: sRGB;
33
+ rendering-intent: auto;
34
+ }
35
+ .cm-s-solarized.cm-s-dark {
36
+ color: #839496;
37
+ background-color: #002b36;
38
+ text-shadow: #002b36 0 1px;
39
+ }
40
+ .cm-s-solarized.cm-s-light {
41
+ background-color: #fdf6e3;
42
+ color: #657b83;
43
+ text-shadow: #eee8d5 0 1px;
44
+ }
45
+
46
+ .cm-s-solarized .CodeMirror-widget {
47
+ text-shadow: none;
48
+ }
49
+
50
+
51
+ .cm-s-solarized .cm-keyword { color: #cb4b16 }
52
+ .cm-s-solarized .cm-atom { color: #d33682; }
53
+ .cm-s-solarized .cm-number { color: #d33682; }
54
+ .cm-s-solarized .cm-def { color: #2aa198; }
55
+
56
+ .cm-s-solarized .cm-variable { color: #268bd2; }
57
+ .cm-s-solarized .cm-variable-2 { color: #b58900; }
58
+ .cm-s-solarized .cm-variable-3 { color: #6c71c4; }
59
+
60
+ .cm-s-solarized .cm-property { color: #2aa198; }
61
+ .cm-s-solarized .cm-operator {color: #6c71c4;}
62
+
63
+ .cm-s-solarized .cm-comment { color: #586e75; font-style:italic; }
64
+
65
+ .cm-s-solarized .cm-string { color: #859900; }
66
+ .cm-s-solarized .cm-string-2 { color: #b58900; }
67
+
68
+ .cm-s-solarized .cm-meta { color: #859900; }
69
+ .cm-s-solarized .cm-qualifier { color: #b58900; }
70
+ .cm-s-solarized .cm-builtin { color: #d33682; }
71
+ .cm-s-solarized .cm-bracket { color: #cb4b16; }
72
+ .cm-s-solarized .CodeMirror-matchingbracket { color: #859900; }
73
+ .cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; }
74
+ .cm-s-solarized .cm-tag { color: #93a1a1 }
75
+ .cm-s-solarized .cm-attribute { color: #2aa198; }
76
+ .cm-s-solarized .cm-header { color: #586e75; }
77
+ .cm-s-solarized .cm-quote { color: #93a1a1; }
78
+ .cm-s-solarized .cm-hr {
79
+ color: transparent;
80
+ border-top: 1px solid #586e75;
81
+ display: block;
82
+ }
83
+ .cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; }
84
+ .cm-s-solarized .cm-special { color: #6c71c4; }
85
+ .cm-s-solarized .cm-em {
86
+ color: #999;
87
+ text-decoration: underline;
88
+ text-decoration-style: dotted;
89
+ }
90
+ .cm-s-solarized .cm-strong { color: #eee; }
91
+ .cm-s-solarized .cm-tab:before {
92
+ content: "➤"; /*visualize tab character*/
93
+ color: #586e75;
94
+ position:absolute;
95
+ }
96
+ .cm-s-solarized .cm-error,
97
+ .cm-s-solarized .cm-invalidchar {
98
+ color: #586e75;
99
+ border-bottom: 1px dotted #dc322f;
100
+ }
101
+
102
+ .cm-s-solarized.cm-s-dark .CodeMirror-selected {
103
+ background: #073642;
104
+ }
105
+
106
+ .cm-s-solarized.cm-s-light .CodeMirror-selected {
107
+ background: #eee8d5;
108
+ }
109
+
110
+ /* Editor styling */
111
+
112
+
113
+
114
+ /* Little shadow on the view-port of the buffer view */
115
+ .cm-s-solarized.CodeMirror {
116
+ -moz-box-shadow: inset 7px 0 12px -6px #000;
117
+ -webkit-box-shadow: inset 7px 0 12px -6px #000;
118
+ box-shadow: inset 7px 0 12px -6px #000;
119
+ }
120
+
121
+ /* Gutter border and some shadow from it */
122
+ .cm-s-solarized .CodeMirror-gutters {
123
+ border-right: 1px solid;
124
+ }
125
+
126
+ /* Gutter colors and line number styling based of color scheme (dark / light) */
127
+
128
+ /* Dark */
129
+ .cm-s-solarized.cm-s-dark .CodeMirror-gutters {
130
+ background-color: #002b36;
131
+ border-color: #00232c;
132
+ }
133
+
134
+ .cm-s-solarized.cm-s-dark .CodeMirror-linenumber {
135
+ text-shadow: #021014 0 -1px;
136
+ }
137
+
138
+ /* Light */
139
+ .cm-s-solarized.cm-s-light .CodeMirror-gutters {
140
+ background-color: #fdf6e3;
141
+ border-color: #eee8d5;
142
+ }
143
+
144
+ /* Common */
145
+ .cm-s-solarized .CodeMirror-linenumber {
146
+ color: #586e75;
147
+ padding: 0 5px;
148
+ }
149
+ .cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; }
150
+ .cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; }
151
+ .cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; }
152
+
153
+ .cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text {
154
+ color: #586e75;
155
+ }
156
+
157
+ .cm-s-solarized .CodeMirror-lines .CodeMirror-cursor {
158
+ border-left: 1px solid #819090;
159
+ }
160
+
161
+ /*
162
+ Active line. Negative margin compensates left padding of the text in the
163
+ view-port
164
+ */
165
+ .cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {
166
+ background: rgba(255, 255, 255, 0.10);
167
+ }
168
+ .cm-s-solarized.cm-s-light .CodeMirror-activeline-background {
169
+ background: rgba(0, 0, 0, 0.10);
170
+ }
@@ -0,0 +1,301 @@
1
+ /* BASICS */
2
+
3
+ .CodeMirror {
4
+ /* Set height, width, borders, and global font properties here */
5
+ font-family: monospace;
6
+ height: 300px;
7
+ }
8
+ .CodeMirror-scroll {
9
+ /* Set scrolling behaviour here */
10
+ overflow: auto;
11
+ }
12
+
13
+ /* PADDING */
14
+
15
+ .CodeMirror-lines {
16
+ padding: 4px 0; /* Vertical padding around content */
17
+ }
18
+ .CodeMirror pre {
19
+ padding: 0 4px; /* Horizontal padding of content */
20
+ }
21
+
22
+ .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
23
+ background-color: white; /* The little square between H and V scrollbars */
24
+ }
25
+
26
+ /* GUTTER */
27
+
28
+ .CodeMirror-gutters {
29
+ border-right: 1px solid #ddd;
30
+ background-color: #f7f7f7;
31
+ white-space: nowrap;
32
+ }
33
+ .CodeMirror-linenumbers {}
34
+ .CodeMirror-linenumber {
35
+ padding: 0 3px 0 5px;
36
+ min-width: 20px;
37
+ text-align: right;
38
+ color: #999;
39
+ -moz-box-sizing: content-box;
40
+ box-sizing: content-box;
41
+ }
42
+
43
+ .CodeMirror-guttermarker { color: black; }
44
+ .CodeMirror-guttermarker-subtle { color: #999; }
45
+
46
+ /* CURSOR */
47
+
48
+ .CodeMirror div.CodeMirror-cursor {
49
+ border-left: 1px solid black;
50
+ }
51
+ /* Shown when moving in bi-directional text */
52
+ .CodeMirror div.CodeMirror-secondarycursor {
53
+ border-left: 1px solid silver;
54
+ }
55
+ .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
56
+ width: auto;
57
+ border: 0;
58
+ background: #7e7;
59
+ }
60
+ .cm-animate-fat-cursor {
61
+ width: auto;
62
+ border: 0;
63
+ -webkit-animation: blink 1.06s steps(1) infinite;
64
+ -moz-animation: blink 1.06s steps(1) infinite;
65
+ animation: blink 1.06s steps(1) infinite;
66
+ }
67
+ @-moz-keyframes blink {
68
+ 0% { background: #7e7; }
69
+ 50% { background: none; }
70
+ 100% { background: #7e7; }
71
+ }
72
+ @-webkit-keyframes blink {
73
+ 0% { background: #7e7; }
74
+ 50% { background: none; }
75
+ 100% { background: #7e7; }
76
+ }
77
+ @keyframes blink {
78
+ 0% { background: #7e7; }
79
+ 50% { background: none; }
80
+ 100% { background: #7e7; }
81
+ }
82
+
83
+ /* Can style cursor different in overwrite (non-insert) mode */
84
+ div.CodeMirror-overwrite div.CodeMirror-cursor {}
85
+
86
+ .cm-tab { display: inline-block; }
87
+
88
+ .CodeMirror-ruler {
89
+ border-left: 1px solid #ccc;
90
+ position: absolute;
91
+ }
92
+
93
+ /* DEFAULT THEME */
94
+
95
+ .cm-s-default .cm-keyword {color: #708;}
96
+ .cm-s-default .cm-atom {color: #219;}
97
+ .cm-s-default .cm-number {color: #164;}
98
+ .cm-s-default .cm-def {color: #00f;}
99
+ .cm-s-default .cm-variable,
100
+ .cm-s-default .cm-punctuation,
101
+ .cm-s-default .cm-property,
102
+ .cm-s-default .cm-operator {}
103
+ .cm-s-default .cm-variable-2 {color: #05a;}
104
+ .cm-s-default .cm-variable-3 {color: #085;}
105
+ .cm-s-default .cm-comment {color: #a50;}
106
+ .cm-s-default .cm-string {color: #a11;}
107
+ .cm-s-default .cm-string-2 {color: #f50;}
108
+ .cm-s-default .cm-meta {color: #555;}
109
+ .cm-s-default .cm-qualifier {color: #555;}
110
+ .cm-s-default .cm-builtin {color: #30a;}
111
+ .cm-s-default .cm-bracket {color: #997;}
112
+ .cm-s-default .cm-tag {color: #170;}
113
+ .cm-s-default .cm-attribute {color: #00c;}
114
+ .cm-s-default .cm-header {color: blue;}
115
+ .cm-s-default .cm-quote {color: #090;}
116
+ .cm-s-default .cm-hr {color: #999;}
117
+ .cm-s-default .cm-link {color: #00c;}
118
+
119
+ .cm-negative {color: #d44;}
120
+ .cm-positive {color: #292;}
121
+ .cm-header, .cm-strong {font-weight: bold;}
122
+ .cm-em {font-style: italic;}
123
+ .cm-link {text-decoration: underline;}
124
+
125
+ .cm-s-default .cm-error {color: #f00;}
126
+ .cm-invalidchar {color: #f00;}
127
+
128
+ /* Default styles for common addons */
129
+
130
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
131
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
132
+ .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
133
+ .CodeMirror-activeline-background {background: #e8f2ff;}
134
+
135
+ /* STOP */
136
+
137
+ /* The rest of this file contains styles related to the mechanics of
138
+ the editor. You probably shouldn't touch them. */
139
+
140
+ .CodeMirror {
141
+ line-height: 1;
142
+ position: relative;
143
+ overflow: hidden;
144
+ background: white;
145
+ color: black;
146
+ }
147
+
148
+ .CodeMirror-scroll {
149
+ /* 30px is the magic margin used to hide the element's real scrollbars */
150
+ /* See overflow: hidden in .CodeMirror */
151
+ margin-bottom: -30px; margin-right: -30px;
152
+ padding-bottom: 30px;
153
+ height: 100%;
154
+ outline: none; /* Prevent dragging from highlighting the element */
155
+ position: relative;
156
+ -moz-box-sizing: content-box;
157
+ box-sizing: content-box;
158
+ }
159
+ .CodeMirror-sizer {
160
+ position: relative;
161
+ border-right: 30px solid transparent;
162
+ -moz-box-sizing: content-box;
163
+ box-sizing: content-box;
164
+ }
165
+
166
+ /* The fake, visible scrollbars. Used to force redraw during scrolling
167
+ before actuall scrolling happens, thus preventing shaking and
168
+ flickering artifacts. */
169
+ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
170
+ position: absolute;
171
+ z-index: 6;
172
+ display: none;
173
+ }
174
+ .CodeMirror-vscrollbar {
175
+ right: 0; top: 0;
176
+ overflow-x: hidden;
177
+ overflow-y: scroll;
178
+ }
179
+ .CodeMirror-hscrollbar {
180
+ bottom: 0; left: 0;
181
+ overflow-y: hidden;
182
+ overflow-x: scroll;
183
+ }
184
+ .CodeMirror-scrollbar-filler {
185
+ right: 0; bottom: 0;
186
+ }
187
+ .CodeMirror-gutter-filler {
188
+ left: 0; bottom: 0;
189
+ }
190
+
191
+ .CodeMirror-gutters {
192
+ position: absolute; left: 0; top: 0;
193
+ padding-bottom: 30px;
194
+ z-index: 3;
195
+ }
196
+ .CodeMirror-gutter {
197
+ white-space: normal;
198
+ height: 100%;
199
+ -moz-box-sizing: content-box;
200
+ box-sizing: content-box;
201
+ padding-bottom: 30px;
202
+ margin-bottom: -32px;
203
+ display: inline-block;
204
+ /* Hack to make IE7 behave */
205
+ *zoom:1;
206
+ *display:inline;
207
+ }
208
+ .CodeMirror-gutter-elt {
209
+ position: absolute;
210
+ cursor: default;
211
+ z-index: 4;
212
+ }
213
+
214
+ .CodeMirror-lines {
215
+ cursor: text;
216
+ }
217
+ .CodeMirror pre {
218
+ /* Reset some styles that the rest of the page might have set */
219
+ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
220
+ border-width: 0;
221
+ background: transparent;
222
+ font-family: inherit;
223
+ font-size: inherit;
224
+ margin: 0;
225
+ white-space: pre;
226
+ word-wrap: normal;
227
+ line-height: inherit;
228
+ color: inherit;
229
+ z-index: 2;
230
+ position: relative;
231
+ overflow: visible;
232
+ }
233
+ .CodeMirror-wrap pre {
234
+ word-wrap: break-word;
235
+ white-space: pre-wrap;
236
+ word-break: normal;
237
+ }
238
+
239
+ .CodeMirror-linebackground {
240
+ position: absolute;
241
+ left: 0; right: 0; top: 0; bottom: 0;
242
+ z-index: 0;
243
+ }
244
+
245
+ .CodeMirror-linewidget {
246
+ position: relative;
247
+ z-index: 2;
248
+ overflow: auto;
249
+ }
250
+
251
+ .CodeMirror-widget {}
252
+
253
+ .CodeMirror-wrap .CodeMirror-scroll {
254
+ overflow-x: hidden;
255
+ }
256
+
257
+ .CodeMirror-measure {
258
+ position: absolute;
259
+ width: 100%;
260
+ height: 0;
261
+ overflow: hidden;
262
+ visibility: hidden;
263
+ }
264
+ .CodeMirror-measure pre { position: static; }
265
+
266
+ .CodeMirror div.CodeMirror-cursor {
267
+ position: absolute;
268
+ border-right: none;
269
+ width: 0;
270
+ }
271
+
272
+ div.CodeMirror-cursors {
273
+ visibility: hidden;
274
+ position: relative;
275
+ z-index: 1;
276
+ }
277
+ .CodeMirror-focused div.CodeMirror-cursors {
278
+ visibility: visible;
279
+ }
280
+
281
+ .CodeMirror-selected { background: #d9d9d9; }
282
+ .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
283
+ .CodeMirror-crosshair { cursor: crosshair; }
284
+
285
+ .cm-searching {
286
+ background: #ffa;
287
+ background: rgba(255, 255, 0, .4);
288
+ }
289
+
290
+ /* IE7 hack to prevent it from returning funny offsetTops on the spans */
291
+ .CodeMirror span { *vertical-align: text-bottom; }
292
+
293
+ /* Used to force a border model for a node */
294
+ .cm-force-border { padding-right: .1px; }
295
+
296
+ @media print {
297
+ /* Hide the cursor when printing */
298
+ .CodeMirror div.CodeMirror-cursors {
299
+ visibility: hidden;
300
+ }
301
+ }