slash_admin 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +95 -0
- data/app/assets/config/relax_admin_manifest.js +2 -0
- data/app/assets/images/slash_admin/en.png +0 -0
- data/app/assets/images/slash_admin/favicon.png +0 -0
- data/app/assets/images/slash_admin/fr.png +0 -0
- data/app/assets/javascripts/slash_admin/application.js +344 -0
- data/app/assets/javascripts/slash_admin/custom.js +0 -0
- data/app/assets/stylesheets/slash_admin/alert.scss +29 -0
- data/app/assets/stylesheets/slash_admin/application.scss +1469 -0
- data/app/assets/stylesheets/slash_admin/colors.scss +17 -0
- data/app/assets/stylesheets/slash_admin/custom.scss +0 -0
- data/app/controllers/slash_admin/application_controller.rb +17 -0
- data/app/controllers/slash_admin/base_controller.rb +45 -0
- data/app/controllers/slash_admin/batch_actions_controller.rb +17 -0
- data/app/controllers/slash_admin/dashboard_controller.rb +11 -0
- data/app/controllers/slash_admin/models_controller.rb +325 -0
- data/app/controllers/slash_admin/security/sessions_controller.rb +29 -0
- data/app/controllers/slash_admin/selectize_controller.rb +49 -0
- data/app/helpers/slash_admin/application_helper.rb +212 -0
- data/app/helpers/slash_admin/menu_helper.rb +14 -0
- data/app/helpers/slash_admin/widgets_helper.rb +7 -0
- data/app/jobs/slash_admin/application_job.rb +4 -0
- data/app/mailers/slash_admin/application_mailer.rb +6 -0
- data/app/models/slash_admin/admin.rb +46 -0
- data/app/models/slash_admin/admin_ability.rb +11 -0
- data/app/models/slash_admin/application_record.rb +5 -0
- data/app/views/layouts/slash_admin/admin_user.html.erb +16 -0
- data/app/views/layouts/slash_admin/application.html.erb +40 -0
- data/app/views/slash_admin/base/_data_belongs_to.html.erb +37 -0
- data/app/views/slash_admin/base/_data_list.html.erb +276 -0
- data/app/views/slash_admin/base/_data_nestable.html.erb +33 -0
- data/app/views/slash_admin/base/_data_new.html.erb +16 -0
- data/app/views/slash_admin/base/_data_show.html.erb +72 -0
- data/app/views/slash_admin/base/_filters.html.erb +60 -0
- data/app/views/slash_admin/base/_translatable_fields.html.erb +23 -0
- data/app/views/slash_admin/base/edit.html.erb +26 -0
- data/app/views/slash_admin/base/index.html.erb +47 -0
- data/app/views/slash_admin/base/index.xls.erb +27 -0
- data/app/views/slash_admin/base/nestable.html.erb +28 -0
- data/app/views/slash_admin/base/new.html.erb +26 -0
- data/app/views/slash_admin/base/show.html.erb +22 -0
- data/app/views/slash_admin/custom_fields/_color.html.erb +2 -0
- data/app/views/slash_admin/custom_fields/_email.html.erb +2 -0
- data/app/views/slash_admin/custom_fields/_google_map.html.erb +72 -0
- data/app/views/slash_admin/custom_fields/_nested_belongs_to.html.erb +55 -0
- data/app/views/slash_admin/custom_fields/_password.html.erb +2 -0
- data/app/views/slash_admin/custom_fields/_select.html.erb +2 -0
- data/app/views/slash_admin/custom_fields/_tags.html.erb +2 -0
- data/app/views/slash_admin/custom_fields/_wysiwyg.html.erb +2 -0
- data/app/views/slash_admin/dashboard/home.html.erb +5 -0
- data/app/views/slash_admin/dashboard/widgets/_statistic_chart.html.erb +0 -0
- data/app/views/slash_admin/dashboard/widgets/_statistic_progress_tile.html.erb +29 -0
- data/app/views/slash_admin/fields/_belongs_to.html.erb +9 -0
- data/app/views/slash_admin/fields/_boolean.html.erb +2 -0
- data/app/views/slash_admin/fields/_carrierwave.html.erb +15 -0
- data/app/views/slash_admin/fields/_date.html.erb +2 -0
- data/app/views/slash_admin/fields/_decimal.html.erb +2 -0
- data/app/views/slash_admin/fields/_form_group.html.erb +12 -0
- data/app/views/slash_admin/fields/_has_many.html.erb +12 -0
- data/app/views/slash_admin/fields/_has_many_row.html.erb +18 -0
- data/app/views/slash_admin/fields/_has_one.html.erb +24 -0
- data/app/views/slash_admin/fields/_integer.html.erb +2 -0
- data/app/views/slash_admin/fields/_json.html.erb +14 -0
- data/app/views/slash_admin/fields/_nested_has_many.html.erb +14 -0
- data/app/views/slash_admin/fields/_number.html.erb +2 -0
- data/app/views/slash_admin/fields/_string.html.erb +2 -0
- data/app/views/slash_admin/fields/_text.html.erb +2 -0
- data/app/views/slash_admin/security/sessions/new.html.erb +30 -0
- data/app/views/slash_admin/shared/_batch_actions.html.erb +21 -0
- data/app/views/slash_admin/shared/_better_paginate.html.erb +30 -0
- data/app/views/slash_admin/shared/_breadcrumb.html.erb +30 -0
- data/app/views/slash_admin/shared/_debug.html.erb +24 -0
- data/app/views/slash_admin/shared/_errors_data_new.html.erb +12 -0
- data/app/views/slash_admin/shared/_header.html.erb +38 -0
- data/app/views/slash_admin/shared/_menu.html.erb +57 -0
- data/app/views/slash_admin/shared/_new_form_buttons.html.erb +9 -0
- data/app/views/slash_admin/shared/_sub_header.html.erb +11 -0
- data/config/initializers/validators.rb +13 -0
- data/config/locales/slash_admin.en.yml +67 -0
- data/config/locales/slash_admin.fr.yml +72 -0
- data/config/routes.rb +16 -0
- data/db/migrate/20170512104248_create_slash_admin_admins.rb +19 -0
- data/lib/batch_translation.rb +19 -0
- data/lib/generators/slash_admin/controllers/controllers_generator.rb +16 -0
- data/lib/generators/slash_admin/controllers/templates/controllers.erb +9 -0
- data/lib/generators/slash_admin/install/install_generator.rb +13 -0
- data/lib/generators/slash_admin/install/templates/install.erb +14 -0
- data/lib/generators/slash_admin/override_admin/override_admin_generator.rb +13 -0
- data/lib/generators/slash_admin/override_admin/templates/admin.erb +46 -0
- data/lib/generators/slash_admin/override_session/override_session_generator.rb +13 -0
- data/lib/generators/slash_admin/override_session/templates/session.erb +27 -0
- data/lib/generators/slash_admin/permissions/permissions_generator.rb +13 -0
- data/lib/generators/slash_admin/permissions/templates/permissions.erb +11 -0
- data/lib/slash_admin.rb +29 -0
- data/lib/slash_admin/engine.rb +8 -0
- data/lib/slash_admin/version.rb +3 -0
- data/lib/tasks/slash_admin_tasks.rake +4 -0
- data/vendor/assets/javascripts/bootstrap-material-datetimepicker.js +1295 -0
- data/vendor/assets/javascripts/codemirror/codemirror.js +9657 -0
- data/vendor/assets/javascripts/codemirror/lint/json-lint.js +37 -0
- data/vendor/assets/javascripts/codemirror/lint/jsonlint.js +432 -0
- data/vendor/assets/javascripts/codemirror/lint/lint.js +252 -0
- data/vendor/assets/javascripts/codemirror/mode/javascript.js +865 -0
- data/vendor/assets/javascripts/jquery.nestable.js +910 -0
- data/vendor/assets/javascripts/jquery.tagsinput-revisited.min.js +5 -0
- data/vendor/assets/javascripts/toastr.js +6 -0
- data/vendor/assets/stylesheets/animate.css +1579 -0
- data/vendor/assets/stylesheets/bootstrap-material-datetimepicker.css +82 -0
- data/vendor/assets/stylesheets/codemirror/codemirror.css +346 -0
- data/vendor/assets/stylesheets/codemirror/lint/lint.css +73 -0
- data/vendor/assets/stylesheets/codemirror/theme/relax-seti.css +41 -0
- data/vendor/assets/stylesheets/jquery.nestable.css +121 -0
- data/vendor/assets/stylesheets/jquery.tagsinput-revisited.min.css +1 -0
- data/vendor/assets/stylesheets/sweetalert.css +935 -0
- data/vendor/assets/stylesheets/toastr.css +1 -0
- metadata +509 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
.dtp { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); z-index: 2000; font-size: 14px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
|
2
|
+
.dtp > .dtp-content { background: #fff; max-width: 300px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); max-height: 520px; position: relative; left: 50%; }
|
3
|
+
.dtp > .dtp-content > .dtp-date-view > header.dtp-header { background: #689F38; color: #fff; text-align: center; padding: 0.3em; }
|
4
|
+
|
5
|
+
.dtp div.dtp-date, .dtp div.dtp-time { background: #8BC34A; text-align: center; color: #fff; padding: 10px; }
|
6
|
+
.dtp div.dtp-date > div { padding: 0; margin: 0; }
|
7
|
+
.dtp div.dtp-actual-month { font-size: 1.5em; }
|
8
|
+
.dtp div.dtp-actual-num { font-size: 3em; line-height: 0.9; }
|
9
|
+
.dtp div.dtp-actual-maxtime { font-size: 3em; line-height: 0.9; }
|
10
|
+
.dtp div.dtp-actual-year { font-size: 1.5em; color: #DCEDC8; }
|
11
|
+
.dtp div.dtp-picker { padding: 1em; text-align: center; }
|
12
|
+
|
13
|
+
.dtp div.dtp-picker-month, .dtp div.dtp-actual-time { font-weight: 500; text-align: center; }
|
14
|
+
.dtp div.dtp-picker-month { padding-bottom:20px!important; text-transform: uppercase!important; }
|
15
|
+
|
16
|
+
.dtp .dtp-close { position: absolute; top: 0.5em; right: 1em; }
|
17
|
+
.dtp .dtp-close > a { color: #fff; }
|
18
|
+
.dtp .dtp-close > a > i { font-size: 1em; }
|
19
|
+
|
20
|
+
.dtp table.dtp-picker-days { margin: 0; min-height: 251px;}
|
21
|
+
.dtp table.dtp-picker-days, .dtp table.dtp-picker-days tr, .dtp table.dtp-picker-days tr > td { border: none; }
|
22
|
+
.dtp table.dtp-picker-days tr > td { font-weight: 700; font-size: 0.8em; text-align: center; padding: 0.5em 0.3em; }
|
23
|
+
.dtp table.dtp-picker-days tr > td > span.dtp-select-day { color: #BDBDBD!important; padding: 0.4em 0.6em 0.5em 0.6em;}
|
24
|
+
.dtp table.dtp-picker-days tr > td > a, .dtp .dtp-picker-time > a { color: #212121; text-decoration: none; padding: 0.4em 0.6em 0.5em 0.6em; border-radius: 50%!important; }
|
25
|
+
.dtp table.dtp-picker-days tr > td > a.selected{ background: #8BC34A; color: #fff; }
|
26
|
+
.dtp table.dtp-picker-days tr > th { color: #757575; text-align: center; font-weight: 700; padding: 0.4em 0.3em; }
|
27
|
+
|
28
|
+
.dtp .p10 > a { color: #689F38; text-decoration: none; }
|
29
|
+
.dtp .p10 { width: 10%; display: inline-block; }
|
30
|
+
.dtp .p20 { width: 20%; display: inline-block; }
|
31
|
+
.dtp .p60 { width: 60%; display: inline-block; }
|
32
|
+
.dtp .p80 { width: 80%; display: inline-block; }
|
33
|
+
|
34
|
+
.dtp a.dtp-meridien-am, .dtp a.dtp-meridien-pm { position: relative; top: 10px; color: #212121; font-weight: 500; padding: 0.7em 0.5em; border-radius: 50%!important;text-decoration: none; background: #eee; font-size:1em; }
|
35
|
+
.dtp .dtp-actual-meridien a.selected { background: #689F38; color: #fff; }
|
36
|
+
|
37
|
+
.dtp .dtp-picker-time > .dtp-select-hour { cursor: pointer; }
|
38
|
+
.dtp .dtp-picker-time > .dtp-select-minute { cursor: pointer; }
|
39
|
+
|
40
|
+
.dtp .dtp-buttons { padding: 0 1em 1em 1em; text-align: right; }
|
41
|
+
|
42
|
+
.dtp.hidden, .dtp .hidden { display: none; }
|
43
|
+
.dtp .invisible { visibility: hidden; }
|
44
|
+
|
45
|
+
.dtp .left { float: left; }
|
46
|
+
.dtp .right { float: right; }
|
47
|
+
.dtp .clearfix { clear: both; }
|
48
|
+
|
49
|
+
.dtp .center { text-align: center; }
|
50
|
+
|
51
|
+
.dtp-picker-year{
|
52
|
+
margin-bottom: 1px;
|
53
|
+
}
|
54
|
+
|
55
|
+
.year-picker-item{
|
56
|
+
text-align: center;
|
57
|
+
padding-top: 5px;
|
58
|
+
font-size: large;
|
59
|
+
cursor: pointer;
|
60
|
+
margin: 0 auto;
|
61
|
+
}
|
62
|
+
|
63
|
+
.dtp-actual-year:hover{
|
64
|
+
cursor: pointer;
|
65
|
+
}
|
66
|
+
.dtp-actual-year.disabled:hover{
|
67
|
+
cursor: inherit;
|
68
|
+
}
|
69
|
+
.year-picker-item:hover{
|
70
|
+
color:#689F38;
|
71
|
+
}
|
72
|
+
|
73
|
+
.year-picker-item.active{
|
74
|
+
color:#689F38;
|
75
|
+
font-weight: bold;
|
76
|
+
}
|
77
|
+
|
78
|
+
.dtp-select-year-range{
|
79
|
+
display: inline-block;
|
80
|
+
text-align: center;
|
81
|
+
width: 100%;
|
82
|
+
}
|
@@ -0,0 +1,346 @@
|
|
1
|
+
/* BASICS */
|
2
|
+
|
3
|
+
.CodeMirror {
|
4
|
+
/* Set height, width, borders, and global font properties here */
|
5
|
+
font-family: monospace;
|
6
|
+
height: 300px;
|
7
|
+
color: black;
|
8
|
+
direction: ltr;
|
9
|
+
}
|
10
|
+
|
11
|
+
/* PADDING */
|
12
|
+
|
13
|
+
.CodeMirror-lines {
|
14
|
+
padding: 4px 0; /* Vertical padding around content */
|
15
|
+
}
|
16
|
+
.CodeMirror pre {
|
17
|
+
padding: 0 4px; /* Horizontal padding of content */
|
18
|
+
}
|
19
|
+
|
20
|
+
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
21
|
+
background-color: white; /* The little square between H and V scrollbars */
|
22
|
+
}
|
23
|
+
|
24
|
+
/* GUTTER */
|
25
|
+
|
26
|
+
.CodeMirror-gutters {
|
27
|
+
border-right: 1px solid #ddd;
|
28
|
+
background-color: #f7f7f7;
|
29
|
+
white-space: nowrap;
|
30
|
+
}
|
31
|
+
.CodeMirror-linenumbers {}
|
32
|
+
.CodeMirror-linenumber {
|
33
|
+
padding: 0 3px 0 5px;
|
34
|
+
min-width: 20px;
|
35
|
+
text-align: right;
|
36
|
+
color: #999;
|
37
|
+
white-space: nowrap;
|
38
|
+
}
|
39
|
+
|
40
|
+
.CodeMirror-guttermarker { color: black; }
|
41
|
+
.CodeMirror-guttermarker-subtle { color: #999; }
|
42
|
+
|
43
|
+
/* CURSOR */
|
44
|
+
|
45
|
+
.CodeMirror-cursor {
|
46
|
+
border-left: 1px solid black;
|
47
|
+
border-right: none;
|
48
|
+
width: 0;
|
49
|
+
}
|
50
|
+
/* Shown when moving in bi-directional text */
|
51
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
52
|
+
border-left: 1px solid silver;
|
53
|
+
}
|
54
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
55
|
+
width: auto;
|
56
|
+
border: 0 !important;
|
57
|
+
background: #7e7;
|
58
|
+
}
|
59
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
60
|
+
z-index: 1;
|
61
|
+
}
|
62
|
+
.cm-fat-cursor-mark {
|
63
|
+
background-color: rgba(20, 255, 20, 0.5);
|
64
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
65
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
66
|
+
animation: blink 1.06s steps(1) infinite;
|
67
|
+
}
|
68
|
+
.cm-animate-fat-cursor {
|
69
|
+
width: auto;
|
70
|
+
border: 0;
|
71
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
72
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
73
|
+
animation: blink 1.06s steps(1) infinite;
|
74
|
+
background-color: #7e7;
|
75
|
+
}
|
76
|
+
@-moz-keyframes blink {
|
77
|
+
0% {}
|
78
|
+
50% { background-color: transparent; }
|
79
|
+
100% {}
|
80
|
+
}
|
81
|
+
@-webkit-keyframes blink {
|
82
|
+
0% {}
|
83
|
+
50% { background-color: transparent; }
|
84
|
+
100% {}
|
85
|
+
}
|
86
|
+
@keyframes blink {
|
87
|
+
0% {}
|
88
|
+
50% { background-color: transparent; }
|
89
|
+
100% {}
|
90
|
+
}
|
91
|
+
|
92
|
+
/* Can style cursor different in overwrite (non-insert) mode */
|
93
|
+
.CodeMirror-overwrite .CodeMirror-cursor {}
|
94
|
+
|
95
|
+
.cm-tab { display: inline-block; text-decoration: inherit; }
|
96
|
+
|
97
|
+
.CodeMirror-rulers {
|
98
|
+
position: absolute;
|
99
|
+
left: 0; right: 0; top: -50px; bottom: -20px;
|
100
|
+
overflow: hidden;
|
101
|
+
}
|
102
|
+
.CodeMirror-ruler {
|
103
|
+
border-left: 1px solid #ccc;
|
104
|
+
top: 0; bottom: 0;
|
105
|
+
position: absolute;
|
106
|
+
}
|
107
|
+
|
108
|
+
/* DEFAULT THEME */
|
109
|
+
|
110
|
+
.cm-s-default .cm-header {color: blue;}
|
111
|
+
.cm-s-default .cm-quote {color: #090;}
|
112
|
+
.cm-negative {color: #d44;}
|
113
|
+
.cm-positive {color: #292;}
|
114
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
115
|
+
.cm-em {font-style: italic;}
|
116
|
+
.cm-link {text-decoration: underline;}
|
117
|
+
.cm-strikethrough {text-decoration: line-through;}
|
118
|
+
|
119
|
+
.cm-s-default .cm-keyword {color: #708;}
|
120
|
+
.cm-s-default .cm-atom {color: #219;}
|
121
|
+
.cm-s-default .cm-number {color: #164;}
|
122
|
+
.cm-s-default .cm-def {color: #00f;}
|
123
|
+
.cm-s-default .cm-variable,
|
124
|
+
.cm-s-default .cm-punctuation,
|
125
|
+
.cm-s-default .cm-property,
|
126
|
+
.cm-s-default .cm-operator {}
|
127
|
+
.cm-s-default .cm-variable-2 {color: #05a;}
|
128
|
+
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
|
129
|
+
.cm-s-default .cm-comment {color: #a50;}
|
130
|
+
.cm-s-default .cm-string {color: #a11;}
|
131
|
+
.cm-s-default .cm-string-2 {color: #f50;}
|
132
|
+
.cm-s-default .cm-meta {color: #555;}
|
133
|
+
.cm-s-default .cm-qualifier {color: #555;}
|
134
|
+
.cm-s-default .cm-builtin {color: #30a;}
|
135
|
+
.cm-s-default .cm-bracket {color: #997;}
|
136
|
+
.cm-s-default .cm-tag {color: #170;}
|
137
|
+
.cm-s-default .cm-attribute {color: #00c;}
|
138
|
+
.cm-s-default .cm-hr {color: #999;}
|
139
|
+
.cm-s-default .cm-link {color: #00c;}
|
140
|
+
|
141
|
+
.cm-s-default .cm-error {color: #f00;}
|
142
|
+
.cm-invalidchar {color: #f00;}
|
143
|
+
|
144
|
+
.CodeMirror-composing { border-bottom: 2px solid; }
|
145
|
+
|
146
|
+
/* Default styles for common addons */
|
147
|
+
|
148
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
|
149
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
|
150
|
+
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
151
|
+
.CodeMirror-activeline-background {background: #e8f2ff;}
|
152
|
+
|
153
|
+
/* STOP */
|
154
|
+
|
155
|
+
/* The rest of this file contains styles related to the mechanics of
|
156
|
+
the editor. You probably shouldn't touch them. */
|
157
|
+
|
158
|
+
.CodeMirror {
|
159
|
+
position: relative;
|
160
|
+
overflow: hidden;
|
161
|
+
background: white;
|
162
|
+
}
|
163
|
+
|
164
|
+
.CodeMirror-scroll {
|
165
|
+
overflow: scroll !important; /* Things will break if this is overridden */
|
166
|
+
/* 30px is the magic margin used to hide the element's real scrollbars */
|
167
|
+
/* See overflow: hidden in .CodeMirror */
|
168
|
+
margin-bottom: -30px; margin-right: -30px;
|
169
|
+
padding-bottom: 30px;
|
170
|
+
height: 100%;
|
171
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
172
|
+
position: relative;
|
173
|
+
}
|
174
|
+
.CodeMirror-sizer {
|
175
|
+
position: relative;
|
176
|
+
border-right: 30px solid transparent;
|
177
|
+
}
|
178
|
+
|
179
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
180
|
+
before actual scrolling happens, thus preventing shaking and
|
181
|
+
flickering artifacts. */
|
182
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
183
|
+
position: absolute;
|
184
|
+
z-index: 6;
|
185
|
+
display: none;
|
186
|
+
}
|
187
|
+
.CodeMirror-vscrollbar {
|
188
|
+
right: 0; top: 0;
|
189
|
+
overflow-x: hidden;
|
190
|
+
overflow-y: scroll;
|
191
|
+
}
|
192
|
+
.CodeMirror-hscrollbar {
|
193
|
+
bottom: 0; left: 0;
|
194
|
+
overflow-y: hidden;
|
195
|
+
overflow-x: scroll;
|
196
|
+
}
|
197
|
+
.CodeMirror-scrollbar-filler {
|
198
|
+
right: 0; bottom: 0;
|
199
|
+
}
|
200
|
+
.CodeMirror-gutter-filler {
|
201
|
+
left: 0; bottom: 0;
|
202
|
+
}
|
203
|
+
|
204
|
+
.CodeMirror-gutters {
|
205
|
+
position: absolute; left: 0; top: 0;
|
206
|
+
min-height: 100%;
|
207
|
+
z-index: 3;
|
208
|
+
}
|
209
|
+
.CodeMirror-gutter {
|
210
|
+
white-space: normal;
|
211
|
+
height: 100%;
|
212
|
+
display: inline-block;
|
213
|
+
vertical-align: top;
|
214
|
+
margin-bottom: -30px;
|
215
|
+
}
|
216
|
+
.CodeMirror-gutter-wrapper {
|
217
|
+
position: absolute;
|
218
|
+
z-index: 4;
|
219
|
+
background: none !important;
|
220
|
+
border: none !important;
|
221
|
+
}
|
222
|
+
.CodeMirror-gutter-background {
|
223
|
+
position: absolute;
|
224
|
+
top: 0; bottom: 0;
|
225
|
+
z-index: 4;
|
226
|
+
}
|
227
|
+
.CodeMirror-gutter-elt {
|
228
|
+
position: absolute;
|
229
|
+
cursor: default;
|
230
|
+
z-index: 4;
|
231
|
+
}
|
232
|
+
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
|
233
|
+
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
|
234
|
+
|
235
|
+
.CodeMirror-lines {
|
236
|
+
cursor: text;
|
237
|
+
min-height: 1px; /* prevents collapsing before first draw */
|
238
|
+
}
|
239
|
+
.CodeMirror pre {
|
240
|
+
/* Reset some styles that the rest of the page might have set */
|
241
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
242
|
+
border-width: 0;
|
243
|
+
background: transparent;
|
244
|
+
font-family: inherit;
|
245
|
+
font-size: inherit;
|
246
|
+
margin: 0;
|
247
|
+
white-space: pre;
|
248
|
+
word-wrap: normal;
|
249
|
+
line-height: inherit;
|
250
|
+
color: inherit;
|
251
|
+
z-index: 2;
|
252
|
+
position: relative;
|
253
|
+
overflow: visible;
|
254
|
+
-webkit-tap-highlight-color: transparent;
|
255
|
+
-webkit-font-variant-ligatures: contextual;
|
256
|
+
font-variant-ligatures: contextual;
|
257
|
+
}
|
258
|
+
.CodeMirror-wrap pre {
|
259
|
+
word-wrap: break-word;
|
260
|
+
white-space: pre-wrap;
|
261
|
+
word-break: normal;
|
262
|
+
}
|
263
|
+
|
264
|
+
.CodeMirror-linebackground {
|
265
|
+
position: absolute;
|
266
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
267
|
+
z-index: 0;
|
268
|
+
}
|
269
|
+
|
270
|
+
.CodeMirror-linewidget {
|
271
|
+
position: relative;
|
272
|
+
z-index: 2;
|
273
|
+
padding: 0.1px; /* Force widget margins to stay inside of the container */
|
274
|
+
}
|
275
|
+
|
276
|
+
.CodeMirror-widget {}
|
277
|
+
|
278
|
+
.CodeMirror-rtl pre { direction: rtl; }
|
279
|
+
|
280
|
+
.CodeMirror-code {
|
281
|
+
outline: none;
|
282
|
+
}
|
283
|
+
|
284
|
+
/* Force content-box sizing for the elements where we expect it */
|
285
|
+
.CodeMirror-scroll,
|
286
|
+
.CodeMirror-sizer,
|
287
|
+
.CodeMirror-gutter,
|
288
|
+
.CodeMirror-gutters,
|
289
|
+
.CodeMirror-linenumber {
|
290
|
+
-moz-box-sizing: content-box;
|
291
|
+
box-sizing: content-box;
|
292
|
+
}
|
293
|
+
|
294
|
+
.CodeMirror-measure {
|
295
|
+
position: absolute;
|
296
|
+
width: 100%;
|
297
|
+
height: 0;
|
298
|
+
overflow: hidden;
|
299
|
+
visibility: hidden;
|
300
|
+
}
|
301
|
+
|
302
|
+
.CodeMirror-cursor {
|
303
|
+
position: absolute;
|
304
|
+
pointer-events: none;
|
305
|
+
}
|
306
|
+
.CodeMirror-measure pre { position: static; }
|
307
|
+
|
308
|
+
div.CodeMirror-cursors {
|
309
|
+
visibility: hidden;
|
310
|
+
position: relative;
|
311
|
+
z-index: 3;
|
312
|
+
}
|
313
|
+
div.CodeMirror-dragcursors {
|
314
|
+
visibility: visible;
|
315
|
+
}
|
316
|
+
|
317
|
+
.CodeMirror-focused div.CodeMirror-cursors {
|
318
|
+
visibility: visible;
|
319
|
+
}
|
320
|
+
|
321
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
322
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
323
|
+
.CodeMirror-crosshair { cursor: crosshair; }
|
324
|
+
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
|
325
|
+
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
326
|
+
|
327
|
+
.cm-searching {
|
328
|
+
background-color: #ffa;
|
329
|
+
background-color: rgba(255, 255, 0, .4);
|
330
|
+
}
|
331
|
+
|
332
|
+
/* Used to force a border model for a node */
|
333
|
+
.cm-force-border { padding-right: .1px; }
|
334
|
+
|
335
|
+
@media print {
|
336
|
+
/* Hide the cursor when printing */
|
337
|
+
.CodeMirror div.CodeMirror-cursors {
|
338
|
+
visibility: hidden;
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
/* See issue #2901 */
|
343
|
+
.cm-tab-wrap-hack:after { content: ''; }
|
344
|
+
|
345
|
+
/* Help users use markselection to safely style text background */
|
346
|
+
span.CodeMirror-selectedtext { background: none; }
|
@@ -0,0 +1,73 @@
|
|
1
|
+
/* The lint marker gutter */
|
2
|
+
.CodeMirror-lint-markers {
|
3
|
+
width: 16px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.CodeMirror-lint-tooltip {
|
7
|
+
background-color: #ffd;
|
8
|
+
border: 1px solid black;
|
9
|
+
border-radius: 4px 4px 4px 4px;
|
10
|
+
color: black;
|
11
|
+
font-family: monospace;
|
12
|
+
font-size: 10pt;
|
13
|
+
overflow: hidden;
|
14
|
+
padding: 2px 5px;
|
15
|
+
position: fixed;
|
16
|
+
white-space: pre;
|
17
|
+
white-space: pre-wrap;
|
18
|
+
z-index: 100;
|
19
|
+
max-width: 600px;
|
20
|
+
opacity: 0;
|
21
|
+
transition: opacity .4s;
|
22
|
+
-moz-transition: opacity .4s;
|
23
|
+
-webkit-transition: opacity .4s;
|
24
|
+
-o-transition: opacity .4s;
|
25
|
+
-ms-transition: opacity .4s;
|
26
|
+
}
|
27
|
+
|
28
|
+
.CodeMirror-lint-mark-error, .CodeMirror-lint-mark-warning {
|
29
|
+
background-position: left bottom;
|
30
|
+
background-repeat: repeat-x;
|
31
|
+
}
|
32
|
+
|
33
|
+
.CodeMirror-lint-mark-error {
|
34
|
+
background-image:
|
35
|
+
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")
|
36
|
+
;
|
37
|
+
}
|
38
|
+
|
39
|
+
.CodeMirror-lint-mark-warning {
|
40
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=");
|
41
|
+
}
|
42
|
+
|
43
|
+
.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {
|
44
|
+
background-position: center center;
|
45
|
+
background-repeat: no-repeat;
|
46
|
+
cursor: pointer;
|
47
|
+
display: inline-block;
|
48
|
+
height: 16px;
|
49
|
+
width: 16px;
|
50
|
+
vertical-align: middle;
|
51
|
+
position: relative;
|
52
|
+
}
|
53
|
+
|
54
|
+
.CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {
|
55
|
+
padding-left: 18px;
|
56
|
+
background-position: top left;
|
57
|
+
background-repeat: no-repeat;
|
58
|
+
}
|
59
|
+
|
60
|
+
.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
|
61
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=");
|
62
|
+
}
|
63
|
+
|
64
|
+
.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
|
65
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=");
|
66
|
+
}
|
67
|
+
|
68
|
+
.CodeMirror-lint-marker-multiple {
|
69
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");
|
70
|
+
background-repeat: no-repeat;
|
71
|
+
background-position: right bottom;
|
72
|
+
width: 100%; height: 100%;
|
73
|
+
}
|