lalala 4.0.0.dev.416 → 4.1.0.dev.299
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +1 -3
- data/Haraway.md +14 -0
- data/app/assets/javascripts/lalala/base.js +8 -0
- data/app/assets/javascripts/lalala/initializers/chosen.module.js +3 -0
- data/app/assets/javascripts/lalala/initializers/haraway.module.js +8 -0
- data/app/assets/javascripts/lalala/lib/overlay.js +335 -0
- data/app/assets/javascripts/lalala/modules/collapsible_pages_tree.module.js +26 -33
- data/app/assets/javascripts/lalala/modules/editor.module.js +37 -23
- data/app/assets/javascripts/lalala/modules/file-uploader-metadata.module.js +248 -0
- data/app/assets/javascripts/lalala/modules/file-uploader.module.js +376 -0
- data/app/assets/javascripts/lalala/modules/init.module.js +1 -5
- data/app/assets/javascripts/lalala/modules/media_selector.module.js +250 -0
- data/app/assets/javascripts/lalala/modules/overlay.module.js +33 -0
- data/app/assets/stylesheets/lalala/_base.css.scss +5 -2
- data/app/assets/stylesheets/lalala/components/_buttons.css.scss +11 -3
- data/app/assets/stylesheets/lalala/components/_forms.css.scss +14 -64
- data/app/assets/stylesheets/lalala/lib/_overlay.css.scss +66 -0
- data/app/assets/stylesheets/lalala/modules/_dashboard.css.scss +10 -51
- data/app/assets/stylesheets/lalala/modules/_editor-cheatsheet.css.scss +1 -17
- data/app/assets/stylesheets/lalala/modules/_file-uploader-metadata.css.scss +118 -0
- data/app/assets/stylesheets/lalala/modules/_file-uploader.css.scss +289 -0
- data/app/assets/stylesheets/lalala/modules/_media-selector.css.scss +113 -0
- data/app/assets/stylesheets/lalala/modules/_title-bar.css.scss +0 -17
- data/app/controllers/lalala/public/errors_controller.rb +7 -0
- data/app/models/lalala/page.rb +0 -1
- data/app/views/lalala/markdown/cheatsheet.html.erb +0 -2
- data/config/routes.rb +12 -1
- data/lalala-assets.gemspec +3 -3
- data/lalala-development.gemspec +1 -1
- data/lalala-test.gemspec +1 -1
- data/lalala.gemspec +4 -5
- data/lib/formtastic/form_builder_ext.rb +10 -0
- data/lib/formtastic/inputs/haraway_input.rb +151 -0
- data/lib/generators/lalala/assets/templates/bower.json.erb +1 -1
- data/lib/generators/lalala/install/install_generator.rb +0 -23
- data/lib/lalala/admin/pages.rb +1 -26
- data/lib/lalala/engine.rb +0 -7
- data/lib/lalala/ext_action_dispatch.rb +0 -1
- data/lib/lalala/ext_active_record/i18n_translations_writer.rb +0 -1
- data/lib/lalala/ext_active_record.rb +0 -1
- data/lib/lalala/ext_i18n/input_helper.rb +0 -1
- data/lib/lalala/ext_i18n/negotiation_adapter.rb +0 -4
- data/lib/lalala/ext_i18n/test_negotiation_adapter.rb +0 -4
- data/lib/lalala/ext_rack/i18n_negotiator.rb +7 -9
- data/lib/lalala/markdown/handlers/asset.rb +24 -0
- data/lib/lalala/markdown/handlers/youtube.rb +9 -13
- data/lib/lalala/markdown/html_renderer.rb +2 -2
- data/lib/lalala/markdown.rb +2 -3
- data/lib/lalala/utils/install_template.rb +3 -9
- data/lib/lalala/version.rb +2 -2
- data/lib/lalala.rb +6 -7
- data/script/ci +33 -30
- data/test/dummy/app/admin/articles.rb +26 -12
- data/test/dummy/app/admin/dashboard.rb +5 -8
- data/test/dummy/app/admin/tags.rb +1 -3
- data/test/dummy/app/assets/stylesheets/_normalize.css +423 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +2 -0
- data/test/dummy/app/assets/stylesheets/base/_base.css.scss +4 -0
- data/test/dummy/app/controllers/pages_controller.rb +4 -0
- data/test/dummy/app/models/article.rb +10 -4
- data/test/dummy/app/pages/application_page.rb +7 -2
- data/test/dummy/app/pages/basic_page.rb +5 -6
- data/test/dummy/app/pages/home_page.rb +10 -10
- data/test/dummy/app/pages/media_page.rb +23 -0
- data/test/dummy/app/views/admin/_stats.html.erb +7 -14
- data/test/dummy/app/views/layouts/application.html.erb +6 -2
- data/test/dummy/app/views/pages/media.html.erb +3 -0
- data/test/dummy/config/initializers/haraway.rb +29 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/dummy/db/migrate/20130528092721_create_articles.rb +1 -0
- data/test/dummy/db/migrate/20130729125648_create_home_page.rb +4 -0
- data/test/dummy/db/migrate/20131122144302_enable_haraway.rb +16 -0
- data/test/dummy/db/migrate/20140228141749_create_media_page.rb +8 -0
- data/test/dummy/db/schema.rb +2 -4
- data/test/integration/aricles_test.rb +0 -1
- metadata +59 -81
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -0
- data/app/assets/javascripts/lalala/lib/jquery-ui.js +0 -16617
- data/app/assets/javascripts/lalala/modules/grid.module.js +0 -284
- data/app/assets/javascripts/lalala/modules/input_group.module.js +0 -36
- data/app/assets/stylesheets/lalala/modules/_grid.css.scss +0 -197
- data/app/assets/stylesheets/lalala/modules/_index-as-sortable.css.scss +0 -89
- data/app/models/lalala/abstract_asset.rb +0 -24
- data/app/models/lalala/file_asset.rb +0 -3
- data/app/models/lalala/image_asset.rb +0 -3
- data/config/initializers/carrierwave.rb +0 -34
- data/lib/formtastic/inputs/grid_input.rb +0 -159
- data/lib/formtastic/inputs/single_file_input.rb +0 -44
- data/lib/generators/lalala/install/templates/application.html.erb +0 -64
- data/lib/generators/lalala/install/templates/helpers/application_helper.rb +0 -16
- data/lib/generators/lalala/install/templates/helpers/html_helper.rb +0 -60
- data/lib/generators/lalala/install/templates/helpers/open_graph_helper.rb.erb +0 -92
- data/lib/generators/lalala/install/templates/helpers/pages_helper.rb +0 -15
- data/lib/generators/lalala/install/templates/locales/en.yml +0 -6
- data/lib/generators/lalala/install/templates/uploaders/file_uploader.rb +0 -2
- data/lib/generators/lalala/install/templates/uploaders/image_uploader.rb +0 -11
- data/lib/lalala/ext_action_dispatch/multi_file_upload.rb +0 -55
- data/lib/lalala/ext_active_record/assets.rb +0 -25
- data/lib/lalala/markdown/handlers/soundcloud.rb +0 -36
- data/lib/lalala/markdown/handlers/vimeo.rb +0 -40
- data/lib/lalala/uploaders/file.rb +0 -50
- data/lib/lalala/uploaders/image.rb +0 -13
- data/lib/lalala/uploaders.rb +0 -6
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/models/file_asset.rb +0 -2
- data/test/dummy/app/models/image_asset.rb +0 -2
- data/test/dummy/app/uploaders/file_uploader.rb +0 -2
- data/test/dummy/app/uploaders/image_uploader.rb +0 -11
- data/test/dummy/db/migrate/20140926152646_add_pre_and_postpend_test_columns_to_articles.rb +0 -6
@@ -0,0 +1,250 @@
|
|
1
|
+
var Overlay = require("./overlay");
|
2
|
+
|
3
|
+
|
4
|
+
function MediaSelector() {
|
5
|
+
this.$el = $('<div class="mod-media-selector" />');
|
6
|
+
|
7
|
+
// settings
|
8
|
+
this.settings = {
|
9
|
+
selected_class: "selected",
|
10
|
+
selected_data: "SELF"
|
11
|
+
};
|
12
|
+
|
13
|
+
// data
|
14
|
+
this.selected_ids = [];
|
15
|
+
this.last_rendered_data = [];
|
16
|
+
|
17
|
+
// exec
|
18
|
+
this.collect_data_and_render();
|
19
|
+
this.bind_events();
|
20
|
+
}
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
//
|
25
|
+
// Data & Render
|
26
|
+
//
|
27
|
+
MediaSelector.prototype.collect_data_and_render = function() {
|
28
|
+
var data;
|
29
|
+
|
30
|
+
// fetch arguments
|
31
|
+
switch (this.settings.selected_data) {
|
32
|
+
case "SELF":
|
33
|
+
data = this.collect_data_from_self();
|
34
|
+
break;
|
35
|
+
|
36
|
+
case "ALL":
|
37
|
+
data = [];
|
38
|
+
break;
|
39
|
+
}
|
40
|
+
|
41
|
+
// render
|
42
|
+
this.render(data);
|
43
|
+
|
44
|
+
// versions
|
45
|
+
this.setup_version_option();
|
46
|
+
};
|
47
|
+
|
48
|
+
|
49
|
+
MediaSelector.prototype.collect_data_from_self = function() {
|
50
|
+
var data = [];
|
51
|
+
|
52
|
+
$("x-files[accept*=\"image\"]").each(function() {
|
53
|
+
var $xfiles = $(this);
|
54
|
+
var versions;
|
55
|
+
|
56
|
+
versions = $xfiles.find(".meta-versions .version").map(function() {
|
57
|
+
return $(this).attr("data-name");
|
58
|
+
}).toArray();
|
59
|
+
|
60
|
+
$xfiles.find("x-file").each(function() {
|
61
|
+
var $xfile = $(this);
|
62
|
+
|
63
|
+
data.push({
|
64
|
+
id: $xfile.find("[name$=\"[id]\"]").attr("value"),
|
65
|
+
thumb_url: $xfile.attr("data-src-original").replace(/original$/, "thumb"),
|
66
|
+
versions: versions
|
67
|
+
});
|
68
|
+
});
|
69
|
+
});
|
70
|
+
|
71
|
+
return data;
|
72
|
+
};
|
73
|
+
|
74
|
+
|
75
|
+
MediaSelector.prototype.render = function(data) {
|
76
|
+
var html, assets;
|
77
|
+
|
78
|
+
// store data
|
79
|
+
this.last_rendered_data = data;
|
80
|
+
|
81
|
+
// assets
|
82
|
+
assets = "";
|
83
|
+
|
84
|
+
for (var i=0, j=data.length; i<j; ++i) {
|
85
|
+
var asset = data[i];
|
86
|
+
assets = assets + '<div class="asset" rel="' + asset.id + '">' +
|
87
|
+
'<div class="image" style="background-image: url(\'' + asset.thumb_url + '\');"></div>' +
|
88
|
+
'</div>';
|
89
|
+
}
|
90
|
+
|
91
|
+
// compose
|
92
|
+
html = this.templates.main;
|
93
|
+
html = html.replace("{{ASSETS}}", assets);
|
94
|
+
|
95
|
+
// add to dom
|
96
|
+
this.$el.html(html);
|
97
|
+
};
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
//
|
102
|
+
// Templates
|
103
|
+
//
|
104
|
+
MediaSelector.prototype.templates = {
|
105
|
+
|
106
|
+
main: (function() {
|
107
|
+
return [
|
108
|
+
'<header>',
|
109
|
+
'<div class="data-selection">Insert image</div>',
|
110
|
+
'<a class="close">✕</a>',
|
111
|
+
'</header>',
|
112
|
+
|
113
|
+
'<section>',
|
114
|
+
'<div class="asset-container">{{ASSETS}}</div>',
|
115
|
+
'</section>',
|
116
|
+
|
117
|
+
'<aside>',
|
118
|
+
'<div class="actions">',
|
119
|
+
'<a class="button large commit">Add media to post</a>',
|
120
|
+
'<a class="button large cancel close">Cancel</a>',
|
121
|
+
'</div>',
|
122
|
+
|
123
|
+
'<div class="options">',
|
124
|
+
'<div class="options-title">Options</div>',
|
125
|
+
'<div class="version"></div>',
|
126
|
+
'</div>',
|
127
|
+
'</aside>'
|
128
|
+
].join('');
|
129
|
+
})()
|
130
|
+
|
131
|
+
};
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
//
|
136
|
+
// Events
|
137
|
+
//
|
138
|
+
MediaSelector.prototype.bind_events = function() {
|
139
|
+
this.$el.on("click", ".asset", $.proxy(this.asset_click_handler, this));
|
140
|
+
this.$el.on("click", ".actions .commit", $.proxy(this.commit_click_handler, this));
|
141
|
+
};
|
142
|
+
|
143
|
+
|
144
|
+
MediaSelector.prototype.asset_click_handler = function(e) {
|
145
|
+
var $asset = $(e.currentTarget);
|
146
|
+
|
147
|
+
if ($asset.hasClass(this.settings.selected_class)) {
|
148
|
+
this.unselect_asset($asset);
|
149
|
+
} else {
|
150
|
+
this.select_asset($asset);
|
151
|
+
}
|
152
|
+
};
|
153
|
+
|
154
|
+
|
155
|
+
MediaSelector.prototype.commit_click_handler = function(e) {
|
156
|
+
this.add_selected_to_editor_textarea();
|
157
|
+
};
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
//
|
162
|
+
// Selecting assets
|
163
|
+
//
|
164
|
+
MediaSelector.prototype.select_asset = function($asset) {
|
165
|
+
var id = $asset.attr("rel");
|
166
|
+
|
167
|
+
// add to 'selected' array
|
168
|
+
this.selected_ids.push(id);
|
169
|
+
|
170
|
+
// visual
|
171
|
+
$asset.addClass(this.settings.selected_class);
|
172
|
+
};
|
173
|
+
|
174
|
+
|
175
|
+
MediaSelector.prototype.unselect_asset = function($asset) {
|
176
|
+
var id = $asset.attr("rel");
|
177
|
+
var index = this.selected_ids.indexOf(id);
|
178
|
+
|
179
|
+
// remove from 'selected' array
|
180
|
+
if (index !== -1) {
|
181
|
+
this.selected_ids.splice(index, 1);
|
182
|
+
}
|
183
|
+
|
184
|
+
// visual
|
185
|
+
$asset.removeClass(this.settings.selected_class);
|
186
|
+
};
|
187
|
+
|
188
|
+
|
189
|
+
MediaSelector.prototype.add_selected_to_editor_textarea = function() {
|
190
|
+
var selected = this.selected_ids;
|
191
|
+
var version = this.$el.find(".options .version select option:selected").val() || "original";
|
192
|
+
var markdown = "";
|
193
|
+
var $textarea;
|
194
|
+
|
195
|
+
// build markdown text
|
196
|
+
for (var i=0, j=selected.length; i<j; ++i) {
|
197
|
+
markdown = markdown + "![](asset://" + selected[i] + "/" + version + ") \n";
|
198
|
+
}
|
199
|
+
|
200
|
+
// add to textarea
|
201
|
+
// TODO: save cursor position before opening overlay,
|
202
|
+
// then apply it again here
|
203
|
+
$textarea = this.$markitup_container.find("textarea");
|
204
|
+
$textarea.val($textarea.val() + markdown);
|
205
|
+
|
206
|
+
// hide overlay
|
207
|
+
Overlay.get_instance().hide();
|
208
|
+
};
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
//
|
213
|
+
// Options
|
214
|
+
//
|
215
|
+
MediaSelector.prototype.setup_version_option = function() {
|
216
|
+
var versions = [];
|
217
|
+
var select_element;
|
218
|
+
|
219
|
+
// collect all versions
|
220
|
+
for (var i=0, j=this.last_rendered_data.length; i<j; ++i) {
|
221
|
+
var data_piece = this.last_rendered_data[i];
|
222
|
+
|
223
|
+
for (var k=0, l=data_piece.versions.length; k<l; ++k) {
|
224
|
+
var version = data_piece.versions[k];
|
225
|
+
if (versions.indexOf(version) === -1) {
|
226
|
+
versions.push(version)
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// make option element
|
232
|
+
select_element = document.createElement("select");
|
233
|
+
select_element.innerHTML = $.map(["original"].concat(versions), function(v) {
|
234
|
+
return "<option value=\"" + v + "\">" + v + "</option>";
|
235
|
+
}).join("");
|
236
|
+
|
237
|
+
// add to dom & apply chosen
|
238
|
+
this.$el.find(".options .version")
|
239
|
+
.empty()
|
240
|
+
.append(select_element)
|
241
|
+
.children("select")
|
242
|
+
.chosen({ width: "100%" });
|
243
|
+
};
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
//
|
248
|
+
// -> EXPORT
|
249
|
+
//
|
250
|
+
module.exports = MediaSelector;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
var overlay, fn_template;
|
2
|
+
|
3
|
+
|
4
|
+
fn_template = function() {
|
5
|
+
return [
|
6
|
+
'<div class="overlay-outer-wrapper">',
|
7
|
+
'<div class="overlay-inner-wrapper"></div>',
|
8
|
+
'</div>'
|
9
|
+
].join('');
|
10
|
+
};
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
function create_new_instance() {
|
15
|
+
overlay = new Overlay(false, {
|
16
|
+
content_class_name: "overlay-inner-wrapper",
|
17
|
+
template_function: fn_template
|
18
|
+
});
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
//
|
24
|
+
// -> EXPORT
|
25
|
+
//
|
26
|
+
module.exports = {
|
27
|
+
|
28
|
+
get_instance: function() {
|
29
|
+
if (!overlay) create_new_instance();
|
30
|
+
return overlay;
|
31
|
+
}
|
32
|
+
|
33
|
+
};
|
@@ -10,6 +10,7 @@
|
|
10
10
|
@import "lalala/lib/jquery-ui";
|
11
11
|
@import "lalala/lib/chosen";
|
12
12
|
@import "lalala/lib/pikaday";
|
13
|
+
@import "lalala/lib/overlay";
|
13
14
|
|
14
15
|
@import "lalala/components/icons";
|
15
16
|
@import "lalala/components/forms";
|
@@ -30,12 +31,14 @@
|
|
30
31
|
@import "lalala/modules/dropdown-menu";
|
31
32
|
@import "lalala/modules/index-footer";
|
32
33
|
@import "lalala/modules/table-tools";
|
33
|
-
@import "lalala/modules/index-as-sortable";
|
34
34
|
@import "lalala/modules/index-as-table";
|
35
35
|
@import "lalala/modules/index-as-tree-table";
|
36
36
|
@import "lalala/modules/editor";
|
37
37
|
@import "lalala/modules/editor-cheatsheet";
|
38
|
-
@import "lalala/modules/grid";
|
39
38
|
@import "lalala/modules/scopes";
|
40
39
|
@import "lalala/modules/dashboard";
|
41
40
|
@import "lalala/modules/panel";
|
41
|
+
|
42
|
+
@import "lalala/modules/file-uploader";
|
43
|
+
@import "lalala/modules/file-uploader-metadata";
|
44
|
+
@import "lalala/modules/media-selector";
|
@@ -52,9 +52,12 @@
|
|
52
52
|
padding-left: 29px;
|
53
53
|
}
|
54
54
|
|
55
|
-
//
|
56
|
-
&.
|
57
|
-
|
55
|
+
// large button
|
56
|
+
&.large {
|
57
|
+
height: 40px;
|
58
|
+
line-height: 42px;
|
59
|
+
padding-bottom: 0;
|
60
|
+
padding-top: 0;
|
58
61
|
}
|
59
62
|
|
60
63
|
// green button
|
@@ -136,3 +139,8 @@ a.button.destroy {
|
|
136
139
|
@extend %btn.red;
|
137
140
|
@include icon('delete', 'button');
|
138
141
|
}
|
142
|
+
|
143
|
+
a.button.cancel {
|
144
|
+
@extend %btn;
|
145
|
+
@include icon("bullet_orange", "button");
|
146
|
+
}
|
@@ -108,7 +108,7 @@ select:focus {
|
|
108
108
|
// groups
|
109
109
|
.inputs,
|
110
110
|
.actions {
|
111
|
-
|
111
|
+
@extend .inner;
|
112
112
|
|
113
113
|
ul, ol {
|
114
114
|
list-style: none;
|
@@ -230,42 +230,26 @@ select:focus {
|
|
230
230
|
}
|
231
231
|
|
232
232
|
// single file
|
233
|
-
.input.single_file
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
width: 60px;
|
239
|
-
|
240
|
-
input {
|
241
|
-
width: auto;
|
242
|
-
padding: 0;
|
243
|
-
margin: 0 0 0 5px;
|
244
|
-
}
|
245
|
-
}
|
246
|
-
|
247
|
-
.file-description {
|
248
|
-
font-size: 12px;
|
249
|
-
margin-left: $label_width;
|
250
|
-
margin-top: 7px;
|
251
|
-
width: $input_width;
|
233
|
+
.input.single_file .file-description {
|
234
|
+
font-size: 12px;
|
235
|
+
margin-left: $label_width;
|
236
|
+
margin-top: 7px;
|
237
|
+
width: $input_width;
|
252
238
|
|
253
|
-
|
254
|
-
|
255
|
-
|
239
|
+
img {
|
240
|
+
display: inline-block;
|
241
|
+
}
|
256
242
|
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
}
|
243
|
+
span {
|
244
|
+
display: inline-block;
|
245
|
+
font-size: 13px;
|
246
|
+
margin-left: 8px;
|
247
|
+
vertical-align: top;
|
263
248
|
}
|
264
249
|
}
|
265
250
|
|
266
251
|
|
267
252
|
|
268
|
-
|
269
253
|
/*
|
270
254
|
|
271
255
|
FORMS / CHOSEN
|
@@ -276,37 +260,3 @@ select:focus {
|
|
276
260
|
.chosen-container {
|
277
261
|
margin-top: 4px;
|
278
262
|
}
|
279
|
-
|
280
|
-
.input-group {
|
281
|
-
display: inline-block;
|
282
|
-
position: relative;
|
283
|
-
width: $input_width;
|
284
|
-
|
285
|
-
input {
|
286
|
-
width: 100%;
|
287
|
-
}
|
288
|
-
|
289
|
-
.input-prepend,
|
290
|
-
.input-append {
|
291
|
-
background-color: rgb(220, 220, 220);
|
292
|
-
color: rgb(110, 110, 110);
|
293
|
-
bottom: 0;
|
294
|
-
line-height: 2.875;
|
295
|
-
padding: 0 15px;
|
296
|
-
position: absolute;
|
297
|
-
text-shadow: 0 1px 0 rgb(240, 240, 240);
|
298
|
-
top: 0;
|
299
|
-
}
|
300
|
-
|
301
|
-
.input-prepend {
|
302
|
-
border-top-left-radius: 5px;
|
303
|
-
border-bottom-left-radius: 5px;
|
304
|
-
left: 0;
|
305
|
-
}
|
306
|
-
|
307
|
-
.input-append {
|
308
|
-
border-top-right-radius: 5px;
|
309
|
-
border-bottom-right-radius: 5px;
|
310
|
-
right: 0;
|
311
|
-
}
|
312
|
-
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
.mod-overlay-background,
|
2
|
+
.mod-overlay {
|
3
|
+
bottom: 0;
|
4
|
+
display: none;
|
5
|
+
left: 0;
|
6
|
+
position: fixed;
|
7
|
+
right: 0;
|
8
|
+
top: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
/*
|
13
|
+
|
14
|
+
Background
|
15
|
+
|
16
|
+
*/
|
17
|
+
.mod-overlay-background {
|
18
|
+
@include single-transition(background-color, 750ms);
|
19
|
+
background-color: rgba($yellow, 0);
|
20
|
+
z-index: 1000;
|
21
|
+
|
22
|
+
&.visible {
|
23
|
+
background-color: rgba($yellow, 0.9);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
/*
|
29
|
+
|
30
|
+
Content
|
31
|
+
|
32
|
+
*/
|
33
|
+
.mod-overlay {
|
34
|
+
@include single-transition(opacity, 750ms);
|
35
|
+
opacity: 0;
|
36
|
+
overflow-x: hidden;
|
37
|
+
overflow-y: scroll;
|
38
|
+
z-index: 1010;
|
39
|
+
|
40
|
+
-webkit-overflow-scrolling: touch;
|
41
|
+
|
42
|
+
&.visible {
|
43
|
+
opacity: 1;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.mod-overlay .overlay-outer-wrapper {
|
48
|
+
display: table;
|
49
|
+
height: 100%;
|
50
|
+
width: 100%;
|
51
|
+
}
|
52
|
+
|
53
|
+
.mod-overlay .overlay-inner-wrapper {
|
54
|
+
display: table-cell;
|
55
|
+
height: 100%;
|
56
|
+
padding: 60px;
|
57
|
+
vertical-align: middle;
|
58
|
+
}
|
59
|
+
|
60
|
+
.mod-overlay .overlay-header {
|
61
|
+
left: 0;
|
62
|
+
position: absolute;
|
63
|
+
right: 0;
|
64
|
+
top: 0;
|
65
|
+
z-index: 1020;
|
66
|
+
}
|
@@ -21,49 +21,17 @@
|
|
21
21
|
float: left;
|
22
22
|
margin: 0;
|
23
23
|
padding: 20px 0;
|
24
|
-
position: relative;
|
25
24
|
text-align: center;
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
font-size: 30px;
|
32
|
-
font-weight: bold;
|
33
|
-
margin: 0 0 5px 0;
|
34
|
-
}
|
35
|
-
.title {
|
36
|
-
@include mono-font;
|
37
|
-
color: gray(200);
|
38
|
-
}
|
26
|
+
.val {
|
27
|
+
font-size: 30px;
|
28
|
+
font-weight: bold;
|
29
|
+
margin: 0 0 5px 0;
|
39
30
|
}
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
position: absolute;
|
44
|
-
height: 100%;
|
45
|
-
top: 0;
|
46
|
-
left: 0;
|
47
|
-
width: 100%;
|
48
|
-
|
49
|
-
a.button {
|
50
|
-
@include transition(all 150ms);
|
51
|
-
@include icon('add', 'button');
|
52
|
-
background-position: -20px center;
|
53
|
-
display: block;
|
54
|
-
height: 100%;
|
55
|
-
text-indent: -9999px;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
&:hover {
|
60
|
-
.hover {
|
61
|
-
a {
|
62
|
-
background-position: 30px center;
|
63
|
-
}
|
64
|
-
}
|
31
|
+
.title {
|
32
|
+
@include mono-font;
|
33
|
+
color: gray(200);
|
65
34
|
}
|
66
|
-
|
67
35
|
}
|
68
36
|
|
69
37
|
}
|
@@ -83,7 +51,7 @@
|
|
83
51
|
&.count_3 {
|
84
52
|
ul {
|
85
53
|
li {
|
86
|
-
width:
|
54
|
+
width: 32.333333%;
|
87
55
|
}
|
88
56
|
}
|
89
57
|
}
|
@@ -97,14 +65,14 @@
|
|
97
65
|
&.count_5 {
|
98
66
|
ul {
|
99
67
|
li {
|
100
|
-
width: 19.
|
68
|
+
width: 19.999999%;
|
101
69
|
}
|
102
70
|
}
|
103
71
|
}
|
104
72
|
&.count_6 {
|
105
73
|
ul {
|
106
74
|
li {
|
107
|
-
width:
|
75
|
+
width: 15.66666666%;
|
108
76
|
}
|
109
77
|
}
|
110
78
|
}
|
@@ -148,15 +116,6 @@ body.lalala_dashboard {
|
|
148
116
|
.panel {
|
149
117
|
@extend %pnl;
|
150
118
|
|
151
|
-
// overwrite default link behaviour on panel
|
152
|
-
a {
|
153
|
-
color: $blue !important;
|
154
|
-
|
155
|
-
&:hover {
|
156
|
-
color: $blue !important;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
|
160
119
|
}
|
161
120
|
|
162
121
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#markdown-cheatsheet {
|
2
2
|
@include box-shadow(0 0 10px gray(100));
|
3
|
-
background-color:
|
3
|
+
background-color: rgba(255,255,255, 0.95);
|
4
4
|
bottom: 0;
|
5
5
|
overflow: auto;
|
6
6
|
padding: 15px;
|
@@ -42,20 +42,4 @@
|
|
42
42
|
|
43
43
|
}
|
44
44
|
|
45
|
-
.markdown-cheatsheet-close {
|
46
|
-
@include transition(color 220ms ease-in-out);
|
47
|
-
font-size: 20px;
|
48
|
-
font-weight: 100;
|
49
|
-
text-decoration: none;
|
50
|
-
color: rgba(0, 0, 0, 0.45);
|
51
|
-
position: absolute;
|
52
|
-
right: 10px;
|
53
|
-
padding: 10px;
|
54
|
-
top: 10px;
|
55
|
-
|
56
|
-
&:hover {
|
57
|
-
color: rgba(0, 0, 0, 1);
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
45
|
}
|