rbbt-views 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbbt/workflow/rest.rb +365 -95
- data/lib/rbbt/workflow/rest/client.rb +2 -0
- data/lib/rbbt/workflow/rest/entity.rb +82 -76
- data/lib/rbbt/workflow/rest/finder.rb +78 -0
- data/lib/rbbt/workflow/rest/helpers.rb +288 -47
- data/lib/rbbt/workflow/rest/notes.rb +125 -0
- data/lib/rbbt/workflow/rest/render.rb +280 -240
- data/lib/rbbt/workflow/rest/util.rb +47 -31
- data/share/views/compass/_base.sass +0 -8
- data/share/views/compass/colors.sass +10 -0
- data/share/views/compass/colors/ventana_azul.sass +5 -0
- data/share/views/compass/compass.config +2 -1
- data/share/views/compass/details.sass +50 -0
- data/share/views/compass/dom.sass +64 -0
- data/share/views/compass/embedded.sass +111 -0
- data/share/views/compass/entities.sass +8 -0
- data/share/views/compass/error.sass +13 -0
- data/share/views/compass/finder.sass +42 -0
- data/share/views/compass/fonts.sass +8 -0
- data/share/views/compass/form.sass +49 -1
- data/share/views/compass/header.sass +68 -0
- data/share/views/compass/{main.sass → helpers.sass} +53 -21
- data/share/views/compass/layout.sass +31 -199
- data/share/views/compass/lists.sass +128 -0
- data/share/views/compass/menu.sass +35 -0
- data/share/views/compass/notes.sass +52 -0
- data/share/views/compass/sizes.sass +8 -0
- data/share/views/compass/tables.sass +22 -0
- data/share/views/compass/wait.sass +9 -0
- data/share/views/edit_list.haml +41 -30
- data/share/views/entity/GOTerm.haml +4 -3
- data/share/views/entity/Gene.haml +8 -1
- data/share/views/entity/GenomicMutation.haml +4 -1
- data/share/views/entity/KeggPathway.haml +1 -1
- data/share/views/entity/MutatedIsoform.haml +68 -11
- data/share/views/entity/NCIBioCartaPathway.haml +2 -3
- data/share/views/entity/NCINaturePathway.haml +3 -3
- data/share/views/entity/NCIReactomePathway.haml +2 -3
- data/share/views/entity/PfamDomain.haml +2 -0
- data/share/views/entity/Transcript.haml +10 -0
- data/share/views/entity_list/Default.haml +4 -0
- data/share/views/entity_list/Default/compare_to_other_lists.haml +41 -0
- data/share/views/entity_list/Default/entity_links.haml +6 -0
- data/share/views/entity_list/Default/find_in_other_lists.haml +36 -0
- data/share/views/error.haml +6 -1
- data/share/views/find.haml +10 -0
- data/share/views/form.haml +1 -1
- data/share/views/info.haml +1 -1
- data/share/views/js/_action_setup.js +250 -0
- data/share/views/js/_basic.js +269 -0
- data/share/views/js/_cytoscape.js +44 -0
- data/share/views/js/_details.js +239 -0
- data/share/views/js/_dom_updates.js +384 -0
- data/share/views/js/_embedded.js +95 -0
- data/share/views/js/_images.js +20 -0
- data/share/views/js/_layout.js +21 -0
- data/share/views/js/_lists.js +224 -0
- data/share/views/js/_table.js +36 -0
- data/share/views/js/_workflow.js +42 -0
- data/share/views/js/app.js +0 -570
- data/share/views/js/fix_tablesorter_scientific.js +25 -0
- data/share/views/js/json2.js +487 -0
- data/share/views/layout.haml +8 -98
- data/share/views/notes.haml +15 -0
- data/share/views/partials/_form.haml +22 -7
- data/share/views/partials/_job_control.haml +8 -8
- data/share/views/partials/_list_control.haml +32 -0
- data/share/views/partials/_list_header.haml +6 -0
- data/share/views/partials/_note_list.haml +64 -0
- data/share/views/partials/_result_table.haml +12 -7
- data/share/views/partials/_result_table_controls.haml +11 -5
- data/share/views/partials/_table.haml +24 -6
- data/share/views/partials/layout/_coda.haml +10 -0
- data/share/views/partials/layout/_details.haml +25 -0
- data/share/views/partials/layout/_head.haml +22 -0
- data/share/views/partials/layout/_header.haml +29 -0
- data/share/views/partials/layout/_menu.haml +20 -0
- data/share/views/partials/layout/_resources.haml +41 -0
- data/share/views/public/background.png +0 -0
- data/share/views/public/plugins/cytoscape-web/LICENSE.txt +504 -0
- data/share/views/public/plugins/cytoscape-web/README.txt +213 -0
- data/share/views/public/plugins/cytoscape-web/js/AC_OETags.js +1 -0
- data/share/views/public/plugins/cytoscape-web/js/cytoscapeweb.js +1 -0
- data/share/views/public/plugins/cytoscape-web/js/json2.js +1 -0
- data/share/views/public/plugins/cytoscape-web/swf/CytoscapeWeb.swf +0 -0
- data/share/views/public/plugins/cytoscape-web/swf/playerProductInstall.swf +0 -0
- data/share/views/public/plugins/fancybox/CHANGELOG.md +68 -0
- data/share/views/public/plugins/fancybox/README.md +220 -0
- data/share/views/public/plugins/fancybox/css/blank.gif +0 -0
- data/share/views/public/plugins/fancybox/css/fancybox_loading.gif +0 -0
- data/share/views/public/plugins/fancybox/css/fancybox_sprite.png +0 -0
- data/share/views/public/plugins/fancybox/css/jquery.fancybox.css +234 -0
- data/share/views/public/plugins/fancybox/helpers/fancybox_buttons.png +0 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-buttons.css +85 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-media.js +85 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
- data/share/views/public/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
- data/share/views/public/plugins/fancybox/js/jquery.fancybox.js +1463 -0
- data/share/views/public/plugins/fancybox/js/jquery.mousewheel-3.0.6.pack.js +13 -0
- data/share/views/public/plugins/fancybox/lib/jquery-1.7.2.min.js +4 -0
- data/share/views/public/plugins/featuredimagezoomer/css/featuredimagezoomer.css +8 -0
- data/share/views/public/plugins/featuredimagezoomer/images/spinningred.gif +0 -0
- data/share/views/public/plugins/featuredimagezoomer/js/featuredimagezoomer.js +245 -0
- data/share/views/public/plugins/jquery-ui.hitarea.js +173 -0
- data/share/views/public/plugins/jquery/js/jquery-1.8.0.min.js +2 -0
- data/share/views/public/plugins/tablesorter/addons/pager/jquery.tablesorter.pager.css +25 -0
- data/share/views/public/plugins/tablesorter/addons/pager/jquery.tablesorter.pager.js +184 -0
- data/share/views/public/plugins/tablesorter/build.xml +26 -0
- data/share/views/public/plugins/tablesorter/build/ParseMaster.js +106 -0
- data/share/views/public/plugins/tablesorter/build/js.jar +0 -0
- data/share/views/public/plugins/tablesorter/build/jsmin.js +316 -0
- data/share/views/public/plugins/tablesorter/build/min.js +5 -0
- data/share/views/public/plugins/tablesorter/build/pack.js +5 -0
- data/share/views/public/plugins/tablesorter/build/packer.js +316 -0
- data/share/views/public/plugins/tablesorter/build/writeFile.js +19 -0
- data/share/views/public/plugins/tablesorter/changelog +41 -0
- data/share/views/public/plugins/tablesorter/docs/assets/ajax-content.html +43 -0
- data/share/views/public/plugins/tablesorter/docs/css/jq.css +29 -0
- data/share/views/public/plugins/tablesorter/docs/example-ajax.html +119 -0
- data/share/views/public/plugins/tablesorter/docs/example-empty-table.html +75 -0
- data/share/views/public/plugins/tablesorter/docs/example-extending-defaults.html +109 -0
- data/share/views/public/plugins/tablesorter/docs/example-meta-headers.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-meta-parsers.html +105 -0
- data/share/views/public/plugins/tablesorter/docs/example-meta-sort-list.html +107 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-debug.html +116 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-digits.html +106 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-force.html +107 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-key.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-list.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-sort-order.html +108 -0
- data/share/views/public/plugins/tablesorter/docs/example-option-text-extraction.html +85 -0
- data/share/views/public/plugins/tablesorter/docs/example-options-headers.html +118 -0
- data/share/views/public/plugins/tablesorter/docs/example-pager.html +329 -0
- data/share/views/public/plugins/tablesorter/docs/example-parsers.html +112 -0
- data/share/views/public/plugins/tablesorter/docs/example-trigger-sort.html +113 -0
- data/share/views/public/plugins/tablesorter/docs/example-triggers.html +336 -0
- data/share/views/public/plugins/tablesorter/docs/example-update-cell.html +118 -0
- data/share/views/public/plugins/tablesorter/docs/example-widgets.html +383 -0
- data/share/views/public/plugins/tablesorter/docs/img/external.png +0 -0
- data/share/views/public/plugins/tablesorter/docs/index.html +576 -0
- data/share/views/public/plugins/tablesorter/docs/js/docs.js +23 -0
- data/share/views/public/plugins/tablesorter/docs/js/examples.js +29 -0
- data/share/views/public/plugins/tablesorter/jquery-latest.js +154 -0
- data/share/views/public/plugins/tablesorter/jquery.metadata.js +122 -0
- data/share/views/public/plugins/tablesorter/jquery.tablesorter.js +1031 -0
- data/share/views/public/plugins/tablesorter/jquery.tablesorter.min.js +4 -0
- data/share/views/public/plugins/tablesorter/tests/assets/ajax-content.html +28 -0
- data/share/views/public/plugins/tablesorter/tests/cell.metadata.html +112 -0
- data/share/views/public/plugins/tablesorter/tests/checkbox.html +117 -0
- data/share/views/public/plugins/tablesorter/tests/colspan.html +149 -0
- data/share/views/public/plugins/tablesorter/tests/demo.html +353 -0
- data/share/views/public/plugins/tablesorter/tests/index.html +22 -0
- data/share/views/public/plugins/tablesorter/tests/large.html +30 -0
- data/share/views/public/plugins/tablesorter/tests/lockedOrder.html +355 -0
- data/share/views/public/plugins/tablesorter/tests/metadata.html +320 -0
- data/share/views/public/plugins/tablesorter/tests/multiple-headers.html +67 -0
- data/share/views/public/plugins/tablesorter/tests/pager.html +553 -0
- data/share/views/public/plugins/tablesorter/themes/blue/asc.gif +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/bg.gif +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/blue.zip +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/desc.gif +0 -0
- data/share/views/public/plugins/tablesorter/themes/blue/style.css +39 -0
- data/share/views/public/plugins/tablesorter/themes/green/asc.png +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/bg.png +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/desc.png +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/green.zip +0 -0
- data/share/views/public/plugins/tablesorter/themes/green/style.css +39 -0
- data/share/views/public/plugins/wz_jsgraphics.js +1108 -0
- data/share/views/public/tmp/foo +0 -0
- data/share/views/result.haml +6 -1
- data/share/views/step_error.haml +5 -0
- data/share/views/user_lists.haml +8 -7
- data/share/views/wait.haml +40 -2
- metadata +302 -106
- data/share/views/compass/screen.sass +0 -8
- data/share/views/public/plugins/jquery/js/jquery-1.6.2.min.js +0 -18
@@ -2,6 +2,7 @@ require 'rbbt/resource/path'
|
|
2
2
|
require 'rbbt/tsv/manipulate'
|
3
3
|
|
4
4
|
module Sinatra
|
5
|
+
class Retry < StandardError; end
|
5
6
|
module SinatraRbbt
|
6
7
|
|
7
8
|
def production?
|
@@ -20,13 +21,11 @@ module Sinatra
|
|
20
21
|
|
21
22
|
check = [check] if not check.nil? and not Array === check
|
22
23
|
|
23
|
-
|
24
|
+
params = options
|
25
|
+
params[:visualization_params].delete :_xhr if params.include? :visualization_params
|
26
|
+
name = type + ":" + Misc.hash2md5(params)
|
24
27
|
|
25
|
-
|
26
|
-
cache_type ||= :memory
|
27
|
-
else
|
28
|
-
cache_type = :none
|
29
|
-
end
|
28
|
+
cache_type ||= :memory
|
30
29
|
|
31
30
|
case cache_type.to_sym
|
32
31
|
when :sync, :synchronous
|
@@ -56,7 +55,7 @@ module Sinatra
|
|
56
55
|
messages = step.messages || []
|
57
56
|
backtrace = step.info[:backtrace] || []
|
58
57
|
step.clean
|
59
|
-
"<span class='
|
58
|
+
"<span class='status'>" << status.to_s << "</span> " << "\n" <<
|
60
59
|
"<span class='cache_message'>" << messages.last << "</span> " << "\n" <<
|
61
60
|
"<ul class='backtrace'>" + backtrace.collect{|line| "<li>" << line << "</li>"} * "\n"
|
62
61
|
when step.done?
|
@@ -64,24 +63,34 @@ module Sinatra
|
|
64
63
|
else
|
65
64
|
if request.xhr?
|
66
65
|
status 202
|
67
|
-
"<span class='
|
66
|
+
"<span class='status'>" << (step.status || "starting").to_s << "</span>"
|
68
67
|
else
|
69
|
-
|
68
|
+
raise Retry unless step.done? and not step.error?
|
70
69
|
step.load
|
71
70
|
end
|
72
71
|
end
|
72
|
+
rescue Retry
|
73
|
+
retry
|
73
74
|
end
|
74
75
|
|
75
76
|
|
76
|
-
when :async
|
77
|
-
|
77
|
+
when :async, :asynchronous
|
78
78
|
path = File.join(settings.cache_dir, "sinatra", name)
|
79
79
|
task = Task.setup(:result_type => :string, &block)
|
80
80
|
step = Step.new(path, task, nil, nil, self)
|
81
81
|
|
82
82
|
step.clean if old_cache(path, check)
|
83
83
|
|
84
|
+
Step.log_relay_step = step
|
84
85
|
case
|
86
|
+
when (step.started? and update == 'delete')
|
87
|
+
step.abort unless step.done?
|
88
|
+
sleep 1
|
89
|
+
step.clean
|
90
|
+
sleep 1
|
91
|
+
when (step.started? and update == 'abort')
|
92
|
+
step.abort
|
93
|
+
sleep 1
|
85
94
|
when (not step.started? and not update == 'check')
|
86
95
|
step.fork
|
87
96
|
sleep 0.5
|
@@ -92,45 +101,54 @@ module Sinatra
|
|
92
101
|
sleep 0.5
|
93
102
|
sleep 2 unless step.done?
|
94
103
|
end
|
104
|
+
Step.log_relay_step = nil
|
95
105
|
|
96
106
|
begin
|
97
107
|
case
|
108
|
+
when step.aborted?
|
109
|
+
status 299
|
110
|
+
step.clean
|
111
|
+
"<span class='status'>" << "aborted" << "</span>"
|
112
|
+
|
98
113
|
when (not step.started?)
|
99
114
|
status 202
|
100
|
-
"<span class='
|
115
|
+
"<span class='status'>" << "not started" << "</span>"
|
116
|
+
|
101
117
|
when step.error?
|
102
118
|
status 500
|
103
119
|
status = step.status || "error"
|
104
120
|
messages = step.messages || []
|
105
121
|
backtrace = step.info[:backtrace] || []
|
106
122
|
step.clean
|
107
|
-
|
108
|
-
|
109
|
-
|
123
|
+
if request.xhr?
|
124
|
+
workflow_render('error', :message => (messages[-2] || messages * ", "), :backtrace => backtrace)
|
125
|
+
else
|
126
|
+
workflow_render('error', :message => (messages[-2] || messages * ", "), :backtrace => backtrace, :_layout => false)
|
127
|
+
end
|
110
128
|
|
111
|
-
|
129
|
+
when step.done?
|
112
130
|
step.load
|
113
131
|
else
|
132
|
+
status 202
|
114
133
|
if request.xhr?
|
115
|
-
|
116
|
-
"<span class='cache_status'>" << (step.status || "starting").to_s << "</span>"
|
134
|
+
workflow_render('wait', :step => step, :_layout => false)
|
117
135
|
else
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
retry
|
122
|
-
when step.done?
|
136
|
+
sleep 3
|
137
|
+
if step.done?
|
138
|
+
status 200
|
123
139
|
step.load
|
124
140
|
else
|
125
|
-
|
141
|
+
workflow_render('wait', :step => step)
|
126
142
|
end
|
127
143
|
end
|
128
144
|
end
|
145
|
+
rescue Retry
|
146
|
+
retry
|
129
147
|
end
|
130
148
|
|
131
149
|
when :memory
|
132
150
|
@@cache ||= {}
|
133
|
-
@@cache.delete name if not check.nil?
|
151
|
+
@@cache.delete name if update == "reload" or not check.nil?
|
134
152
|
@@cache[name] ||= yield
|
135
153
|
else
|
136
154
|
yield
|
@@ -273,7 +291,7 @@ module Sinatra
|
|
273
291
|
|
274
292
|
layout = params.delete :_layout
|
275
293
|
|
276
|
-
layout
|
294
|
+
layout ||= "false" if request.xhr?
|
277
295
|
layout = "true" if layout.nil?
|
278
296
|
layout = layout == "true"
|
279
297
|
|
@@ -294,7 +312,7 @@ module Sinatra
|
|
294
312
|
|
295
313
|
def fix_input(type, value, param_file = nil)
|
296
314
|
case type
|
297
|
-
when nil, :string
|
315
|
+
when nil, :string, :select
|
298
316
|
value
|
299
317
|
when :integer
|
300
318
|
value.to_i
|
@@ -306,7 +324,7 @@ module Sinatra
|
|
306
324
|
when :text
|
307
325
|
case
|
308
326
|
when (param_file.nil? and not (value.nil? or value.empty?))
|
309
|
-
value
|
327
|
+
value.gsub(/\r\n/, "\n")
|
310
328
|
when (not param_file.nil?)
|
311
329
|
value[:tempfile].read
|
312
330
|
end
|
@@ -336,8 +354,6 @@ module Sinatra
|
|
336
354
|
TSV.open(StringIO.new(text))
|
337
355
|
end
|
338
356
|
end
|
339
|
-
|
340
|
-
|
341
357
|
end
|
342
358
|
|
343
359
|
def get_inputs(workflow, name, params)
|
@@ -413,7 +429,7 @@ module Sinatra
|
|
413
429
|
end
|
414
430
|
|
415
431
|
[new_job, result]
|
416
|
-
|
417
432
|
end
|
433
|
+
|
418
434
|
end
|
419
435
|
end
|
@@ -1,15 +1,7 @@
|
|
1
|
-
$blueprint_grid_columns: 16
|
2
|
-
$blueprint_grid_width: 40px
|
3
|
-
$blueprint_grid_margin: 10px
|
4
|
-
|
5
|
-
$font_color: #333
|
6
|
-
$blueprint-font-size: 14px
|
7
|
-
|
8
1
|
@import "compass/css3/inline-block"
|
9
2
|
@import "blueprint/form"
|
10
3
|
@import "blueprint/grid"
|
11
4
|
@import "blueprint/typography"
|
12
5
|
@import "compass/utilities/general/clearfix"
|
13
|
-
@import "compass/css3/border-radius"
|
14
6
|
|
15
7
|
+blueprint-typography
|
@@ -14,7 +14,8 @@ end
|
|
14
14
|
Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
|
15
15
|
load_paths << Rbbt.views.compass.find(:lib, Sinatra::Application.root).to_s
|
16
16
|
Workflow.workflows.each do |workflow|
|
17
|
-
|
17
|
+
workflow_compass = Rbbt.www.views.compass.find(:lib, workflow.libdir).to_s
|
18
|
+
load_paths << workflow_compass if File.exists? workflow_compass
|
18
19
|
end
|
19
20
|
load_paths << Rbbt.share.views.compass.find(:lib).to_s
|
20
21
|
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#details_controls
|
2
|
+
background-color: $not_quite_white
|
3
|
+
width: $content_size
|
4
|
+
margin: auto
|
5
|
+
padding-left: 24px
|
6
|
+
padding-right: 24px
|
7
|
+
padding-bottom: 3px
|
8
|
+
display: none
|
9
|
+
span.entity_type
|
10
|
+
font-size: 1.2em
|
11
|
+
font-weight: bold
|
12
|
+
ul
|
13
|
+
+clean_list
|
14
|
+
display: inline
|
15
|
+
margin-left: $indent * 2
|
16
|
+
li
|
17
|
+
vertical-align: baseline
|
18
|
+
margin: 0px
|
19
|
+
padding: 0px
|
20
|
+
&.save, &.select
|
21
|
+
margin-left: $indent * 2
|
22
|
+
|
23
|
+
span.list_id
|
24
|
+
display: inline-block
|
25
|
+
margin-left: $indent * 2
|
26
|
+
overflow: hidden
|
27
|
+
text-overflow: ellipsis
|
28
|
+
-o-text-overflow: ellipsis
|
29
|
+
width: 300px
|
30
|
+
white-space: nowrap
|
31
|
+
|
32
|
+
|
33
|
+
#details
|
34
|
+
+border_radius(4px, 4px)
|
35
|
+
display: none
|
36
|
+
position: relative
|
37
|
+
width: $content_size
|
38
|
+
padding: $vspace * 2 $indent * 2
|
39
|
+
background-color: $bit_lighter
|
40
|
+
margin: auto
|
41
|
+
margin-bottom: $vspace / 2
|
42
|
+
height: 200px
|
43
|
+
border: solid 1px gray
|
44
|
+
overflow: auto
|
45
|
+
z-index: 1
|
46
|
+
&.expanded
|
47
|
+
height: auto
|
48
|
+
overflow: none
|
49
|
+
|
50
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
h1
|
2
|
+
line-height: 2
|
3
|
+
table
|
4
|
+
width: 100%
|
5
|
+
|
6
|
+
table td
|
7
|
+
word-spacing: 5px
|
8
|
+
height: 50px
|
9
|
+
overflow: hidden
|
10
|
+
text-overflow: ellipsis
|
11
|
+
max-width: 250px
|
12
|
+
|
13
|
+
thead th
|
14
|
+
color: white
|
15
|
+
background: black
|
16
|
+
|
17
|
+
span.short_task_description
|
18
|
+
display: block
|
19
|
+
color: gray
|
20
|
+
|
21
|
+
a.button
|
22
|
+
+button_link()
|
23
|
+
|
24
|
+
dl.toggle dt:before
|
25
|
+
content: "[+] "
|
26
|
+
|
27
|
+
dl.toggle dt.opened:before
|
28
|
+
content: "[-] "
|
29
|
+
|
30
|
+
dl.toggle dt
|
31
|
+
cursor: pointer
|
32
|
+
|
33
|
+
dl
|
34
|
+
dd
|
35
|
+
margin-bottom: 10px
|
36
|
+
|
37
|
+
p, dd
|
38
|
+
text-align: justify
|
39
|
+
a.entity, a.entity_list, a.entity_action, a.entity_list_action
|
40
|
+
white-space: normal
|
41
|
+
|
42
|
+
dd
|
43
|
+
margin: auto
|
44
|
+
|
45
|
+
.clear_floats, .clear_both
|
46
|
+
+clear_floats()
|
47
|
+
|
48
|
+
span.note
|
49
|
+
color: gray
|
50
|
+
|
51
|
+
img
|
52
|
+
border: black 1px solid
|
53
|
+
|
54
|
+
.mapped_image
|
55
|
+
border: 1px solid gray
|
56
|
+
width: 100%
|
57
|
+
height: 400px
|
58
|
+
overflow: scroll
|
59
|
+
overflow-x: scroll
|
60
|
+
overflow-y: scroll
|
61
|
+
|
62
|
+
dl.info
|
63
|
+
dd
|
64
|
+
margin-left: $indent
|
@@ -0,0 +1,111 @@
|
|
1
|
+
$header_font_size: 1.5em
|
2
|
+
$main_header_font_size: 2 * $header_font_size
|
3
|
+
|
4
|
+
$header_top_margin_scale: 1.3
|
5
|
+
$header_bottom_margin_scale: 0.5
|
6
|
+
$header_padded_height: $header_font_size * ($header_top_margin_scale + $header_bottom_margin_scale + 1)
|
7
|
+
|
8
|
+
a.replace, a.check_replace, a.closed_replace
|
9
|
+
position: relative
|
10
|
+
display: inline-block
|
11
|
+
width: 95%
|
12
|
+
margin-top: $header_top_margin_scale * 1em
|
13
|
+
font-style: italic
|
14
|
+
font-size: $header_font_size
|
15
|
+
|
16
|
+
header
|
17
|
+
font-size: $header_font_size
|
18
|
+
font-weight: bold
|
19
|
+
width: 80%
|
20
|
+
|
21
|
+
#main > header:first-of-type
|
22
|
+
font-size: $main_header_font_size
|
23
|
+
|
24
|
+
|
25
|
+
.embedded
|
26
|
+
&:not(.contracted_embedded)
|
27
|
+
+shadowed_box()
|
28
|
+
+border_radius(4px, 4px)
|
29
|
+
margin-bottom: 10px
|
30
|
+
margin-top: $header_padded_height
|
31
|
+
|
32
|
+
padding: 10px 25px
|
33
|
+
position: relative
|
34
|
+
&.reloading
|
35
|
+
span.status
|
36
|
+
font-size: 2em
|
37
|
+
|
38
|
+
& > span.status
|
39
|
+
position: absolute
|
40
|
+
top: 0px
|
41
|
+
right: 0px
|
42
|
+
color: red
|
43
|
+
|
44
|
+
.embedded_control
|
45
|
+
visibility: hidden
|
46
|
+
|
47
|
+
&.active_controls > header > .embedded_control, &.active_controls > .embedded_control
|
48
|
+
visibility: visible
|
49
|
+
|
50
|
+
header
|
51
|
+
position: absolute
|
52
|
+
top: - 1em * (0.95 + $header_bottom_margin_scale)
|
53
|
+
left: - 2px
|
54
|
+
padding-right: 20%
|
55
|
+
height: 1.3em
|
56
|
+
line-height: 1.3em
|
57
|
+
overflow: hidden
|
58
|
+
text-overflow: ellipsis
|
59
|
+
-o-text-overflow: ellipsis
|
60
|
+
white-space: nowrap
|
61
|
+
&:hover
|
62
|
+
cursor: pointer
|
63
|
+
|
64
|
+
.contracted_embedded
|
65
|
+
font-size: $header_font_size
|
66
|
+
margin: 0
|
67
|
+
padding: 0
|
68
|
+
font-weight: bold
|
69
|
+
border: none
|
70
|
+
margin-top: 1em * ($header_top_margin_scale)
|
71
|
+
//padding-bottom: 1em * ($header_bottom_margin_scale)
|
72
|
+
padding-right: 20%
|
73
|
+
width: 80%
|
74
|
+
ul.embedded_control
|
75
|
+
top: 7px
|
76
|
+
right: 3px
|
77
|
+
|
78
|
+
|
79
|
+
ul.embedded_control
|
80
|
+
position: absolute
|
81
|
+
top: 0px
|
82
|
+
right: 0px
|
83
|
+
font-size: 12px
|
84
|
+
font-weight: normal
|
85
|
+
+clean_list()
|
86
|
+
li > a
|
87
|
+
+button_link()
|
88
|
+
margin-left: 3px
|
89
|
+
|
90
|
+
a.retry_error, a.abort_embedded, a.start_checked
|
91
|
+
+button_link()
|
92
|
+
font-size: 12px
|
93
|
+
//margin-top: 16 / 12 * $header_font_size * $header_top_margin_scale
|
94
|
+
//vertical-align: text-bottom
|
95
|
+
position: relative
|
96
|
+
bottom: 0
|
97
|
+
|
98
|
+
.embedded + a.abort_embedded, .embedded + a.retry_error
|
99
|
+
position: relative
|
100
|
+
left: 0
|
101
|
+
display: block
|
102
|
+
width: auto
|
103
|
+
text-align: center
|
104
|
+
margin-top: $vspace / 2
|
105
|
+
|
106
|
+
|
107
|
+
span.status
|
108
|
+
margin: 0px 12px
|
109
|
+
color: $bit_darker
|
110
|
+
text-decoration: none
|
111
|
+
|