rails_admin_content 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 +38 -0
- data/Rakefile +7 -0
- data/app/assets/javascripts/develop/manages.js.coffee +96 -0
- data/app/assets/javascripts/rails_admin_content.js +22 -0
- data/app/assets/stylesheets/develop/manages.css.scss +38 -0
- data/app/assets/stylesheets/rails_admin_content.css +19 -0
- data/app/assets/stylesheets/site.css +479 -0
- data/app/controllers/application_controller.rb +3 -0
- data/app/controllers/rails_admin_content/develop/application_controller.rb +5 -0
- data/app/controllers/rails_admin_content/develop/manages_controller.rb +77 -0
- data/app/views/layouts/rails_admin_content/admin.html.slim +58 -0
- data/app/views/rails_admin_content/develop/manages/_content.html.slim +21 -0
- data/app/views/rails_admin_content/develop/manages/_filter.html.slim +25 -0
- data/app/views/rails_admin_content/develop/manages/_form.html.slim +5 -0
- data/app/views/rails_admin_content/develop/manages/_menv.html.slim +8 -0
- data/app/views/rails_admin_content/develop/manages/_navbar.html.slim +34 -0
- data/app/views/rails_admin_content/develop/manages/details.html.slim +18 -0
- data/app/views/rails_admin_content/develop/manages/edit.html.slim +16 -0
- data/app/views/rails_admin_content/develop/manages/edit_column.html.slim +30 -0
- data/app/views/rails_admin_content/develop/manages/index.html.slim +2 -0
- data/app/views/rails_admin_content/develop/manages/new.html.slim +10 -0
- data/app/views/rails_admin_content/develop/manages/query.html.slim +24 -0
- data/app/views/rails_admin_content/develop/manages/show.html.slim +27 -0
- data/config/routes.rb +12 -0
- data/lib/assets/codemirror/charisma-app.css +501 -0
- data/lib/assets/codemirror/codemirror.css +249 -0
- data/lib/assets/codemirror/codemirror.js +5637 -0
- data/lib/assets/codemirror/javascript.js +471 -0
- data/lib/assets/codemirror/matchbrackets.js +82 -0
- data/lib/assets/codemirror/midnight.css +52 -0
- data/lib/assets/codemirror/solarized.css +207 -0
- data/lib/assets/codemirror/sql.js +267 -0
- data/lib/assets/codemirror/twilight.css +26 -0
- data/lib/assets/images/add.png +0 -0
- data/lib/assets/images/column.png +0 -0
- data/lib/assets/images/content.png +0 -0
- data/lib/assets/images/details.png +0 -0
- data/lib/assets/images/file.png +0 -0
- data/lib/assets/images/home.png +0 -0
- data/lib/assets/images/search.png +0 -0
- data/lib/assets/images/setting.png +0 -0
- data/lib/assets/images/user.png +0 -0
- data/lib/assets/javascripts/bootstrap/bootstrap-alert.js +100 -0
- data/lib/assets/javascripts/jquery/dyndatetime/calendar_zh.js +128 -0
- data/lib/assets/javascripts/jquery/dyndatetime/dynDateTime.js +2011 -0
- data/lib/assets/javascripts/jquery/editable.js +31 -0
- data/lib/assets/javascripts/jquery/jquery.jeditable.js +543 -0
- data/lib/assets/stylesheets/bootstrap/bootstrap-app.css +5255 -0
- data/lib/assets/stylesheets/dyndatetime/calendar-system.css +251 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/active-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/dark-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/hover-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/menuarrow.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/normal-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/rowhover-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/status-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/theme.css +236 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/title-bg.gif +0 -0
- data/lib/assets/stylesheets/dyndatetime/skins/aqua/today-bg.gif +0 -0
- data/lib/rails_admin_content/client.rb +93 -0
- data/lib/rails_admin_content/engine.rb +12 -0
- data/lib/rails_admin_content/helper.rb +65 -0
- data/lib/rails_admin_content/mysql/adapters/client.rb +18 -0
- data/lib/rails_admin_content/paginate.rb +53 -0
- data/lib/rails_admin_content/version.rb +3 -0
- data/lib/rails_admin_content.rb +5 -0
- metadata +180 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: dd5da41878d445edfa1dca71df19647f3ee68fc3
|
4
|
+
data.tar.gz: 90dd29e9c819f02119a55685672eadaaae24e128
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 83c74d83130dc0b873b7db55a051014c61f10efee5d6d322dd5609a90735bc3ed5ed4d5b98f055747cd6c5c87bcb1232f9e227bce057dcc82b5d4ed5638c9cac
|
7
|
+
data.tar.gz: 2c0ae6cc151ca57e77163f2cb8917c9947c4d653c6823a893d69b7ae7cd33cc2f15c17f9af620daaee1d4cf23b346b694e180b9c466947739e7458ce8bc13695
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
## Rails Admin Content
|
2
|
+
|
3
|
+
## Getting started
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
gem 'rails-admin-content'
|
7
|
+
|
8
|
+
```
|
9
|
+
|
10
|
+
Run bundle install command
|
11
|
+
|
12
|
+
|
13
|
+
add routes.rb
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
|
17
|
+
mount RailsAdminContent::Engine => "/rails_admin_content"
|
18
|
+
|
19
|
+
or
|
20
|
+
|
21
|
+
namespace :admin do
|
22
|
+
mount RailsAdminContent::Engine => "/rails_admin_content"
|
23
|
+
end
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
|
28
|
+
Connect rails_admin_content configuration file
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
|
32
|
+
http://localhost:3000/rails_admn/
|
33
|
+
|
34
|
+
or
|
35
|
+
|
36
|
+
http://localhost:3000/admin/rails_admn/
|
37
|
+
|
38
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
RailsAdminContent::Application.load_tasks
|
@@ -0,0 +1,96 @@
|
|
1
|
+
option_select = (value) ->
|
2
|
+
'<option vlaue="'+value+'" >'+value+'</option>'
|
3
|
+
|
4
|
+
remove_tr = (id) ->
|
5
|
+
$('.tr_'+id).fadeToggle("slow", "linear");
|
6
|
+
$('#edit_tables .edit_checkbox:checked').attr('checked', false)
|
7
|
+
checked_status()
|
8
|
+
|
9
|
+
|
10
|
+
checked_status = ->
|
11
|
+
$('#btn_delete').attr('disabled', !$('#edit_tables .edit_checkbox:checked').length > 0)
|
12
|
+
$('#select_num').html $('#edit_tables .edit_checkbox:checked').length || 0
|
13
|
+
|
14
|
+
hidden_input_select_with_name = ->
|
15
|
+
$('.check_edit[style!=""] .span3 input, .check_edit[style!=""] .span3 select').attr('name', '')
|
16
|
+
|
17
|
+
$(document).ready ->
|
18
|
+
if document.getElementById("search-textarea")
|
19
|
+
editor = CodeMirror.fromTextArea(document.getElementById("search-textarea"), {
|
20
|
+
mode: "text/x-sql",
|
21
|
+
tabMode: "indent",
|
22
|
+
lineNumbers: true,
|
23
|
+
matchBrackets: true,
|
24
|
+
indentUnit: 2
|
25
|
+
});
|
26
|
+
editor.setOption("theme", 'twillght');
|
27
|
+
|
28
|
+
$('span.edit_datepicker').on 'click', 'textarea', -> $(this).dynDateTime()
|
29
|
+
$('.row-fluid .datetime').on 'click', -> $(this).dynDateTime()
|
30
|
+
|
31
|
+
height = Math.floor($('#main .content').height()/40)+18
|
32
|
+
if ($('.main-menu-span .well ul li').size() > height)
|
33
|
+
$('.main-menu-span .well ul li:gt('+height+')').slideToggle();
|
34
|
+
$('.main-menu-span .well ul li:eq('+height+')').after('<li> <a href="#" id="more">查看更多....</a></li>');
|
35
|
+
$('.main-menu-span .well ul li a#more').on 'click', ->
|
36
|
+
$('.main-menu-span .well ul li:gt('+height+')').slideToggle()
|
37
|
+
false
|
38
|
+
false
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
$('#edit_tables').on 'click', '.edit_checkbox', ->
|
43
|
+
$(this).parents('tr').toggleClass('active')
|
44
|
+
checked_status()
|
45
|
+
|
46
|
+
$('#edit_tools').on 'click', '.deselect', ->
|
47
|
+
$('#edit_tables .edit_checkbox:checked').attr('checked', false)
|
48
|
+
checked_status()
|
49
|
+
for input_check in $('#edit_tables .edit_checkbox')
|
50
|
+
do (input_check) -> $(input_check).parents('tr').removeClass("active")
|
51
|
+
false
|
52
|
+
|
53
|
+
$('#btn_delete').on 'click', ->
|
54
|
+
return false if $(this).attr('disabled')
|
55
|
+
if(window.confirm("确定要删除么?"))
|
56
|
+
$.ajax
|
57
|
+
url: $('#details_form').attr("action"), data: $('#details_form').serialize(), type: 'delete', dataType: 'json',
|
58
|
+
success: (data) -> remove_tr id for id in data
|
59
|
+
false
|
60
|
+
|
61
|
+
$('div.check_edit').on 'click', '.check_box_edit', ->
|
62
|
+
parent = $(this).parents('div.check_edit')
|
63
|
+
$('.span3', parent).toggle()
|
64
|
+
$('input,select', parent).each -> $(this).attr('name', if $('.span3', parent).is(":hidden") then "" else $(this).attr('data-field'))
|
65
|
+
|
66
|
+
|
67
|
+
$('#select_field').on 'click', 'option', ->
|
68
|
+
$('div.' + $(this).val()).slideToggle()
|
69
|
+
$('#calc_'+ $(this).val()).attr('name', $('#calc_'+ $(this).val()).attr('data-field'))
|
70
|
+
$('#field_'+ $(this).val()).attr('name', $('#field_'+ $(this).val()).attr('data-field'))
|
71
|
+
$(this).attr('disabled', 'disabled')
|
72
|
+
|
73
|
+
|
74
|
+
$('.span8 .clear').on 'click', ->
|
75
|
+
$('.check_edit').hide()
|
76
|
+
$('#select_field option').each -> $(this).attr('disabled', false)
|
77
|
+
hidden_input_select_with_name()
|
78
|
+
|
79
|
+
|
80
|
+
for input_check in $('#edit_tables .edit_checkbox:checked')
|
81
|
+
do (input_check) -> $(input_check).parents('tr').addClass("active")
|
82
|
+
|
83
|
+
|
84
|
+
# 检查选择状态
|
85
|
+
checked_status()
|
86
|
+
#
|
87
|
+
hidden_input_select_with_name()
|
88
|
+
|
89
|
+
|
90
|
+
# 已经显示的条件 在下拉框里不可点击
|
91
|
+
$('#select_field option').each -> $(this).attr('disabled', 'disabled') if $('#current_condition').val().split(',').indexOf($(this).val()) >= 0
|
92
|
+
|
93
|
+
# 刷新后没有选中的复选框 隐藏后台的查询条件框
|
94
|
+
$('.check_edit[style=""] .check_box_edit').each -> $('.span3', $(this).parents('div.check_edit')).hide() if !$(this).is(":checked")
|
95
|
+
|
96
|
+
false
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require codemirror
|
16
|
+
//= require sql
|
17
|
+
//= require develop/manages
|
18
|
+
//= require jquery/jquery.jeditable
|
19
|
+
//= require jquery/editable
|
20
|
+
//= require jquery/dyndatetime/dynDateTime
|
21
|
+
//= require jquery/dyndatetime/calendar_zh
|
22
|
+
//= require bootstrap/bootstrap-alert
|
@@ -0,0 +1,38 @@
|
|
1
|
+
#search_area
|
2
|
+
.CodeMirror{
|
3
|
+
height: 130px;
|
4
|
+
}
|
5
|
+
|
6
|
+
#content
|
7
|
+
.details{
|
8
|
+
overflow: scroll;
|
9
|
+
}
|
10
|
+
|
11
|
+
#main{
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
|
15
|
+
#main .pagination{
|
16
|
+
text-align: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
.pagination span.current{
|
20
|
+
|
21
|
+
}
|
22
|
+
.pagination span a{
|
23
|
+
padding: 4px;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
#grid_search
|
28
|
+
table{
|
29
|
+
width: 100%;
|
30
|
+
}
|
31
|
+
|
32
|
+
.editable { border-bottom:1px dotted #333; }
|
33
|
+
.editable input, .editable textarea { font-size:11px; border:1px solid #C6D9E9; }
|
34
|
+
.editable button { border:0; border-radius:99px; cursor:pointer; padding:0; margin:1px; width:22px; height:22px; display:inline-block; color:white; font-size:12px; -moz-transition-duration: 1s; -webkit-transition-duration: 1s; -ms-transition-duration: 1s; }
|
35
|
+
.editable button[type=submit] { background-color:lightgreen; }
|
36
|
+
.editable button[type=submit]:hover { background-color:darkgreen; }
|
37
|
+
.editable button[type=cancel] { background-color:silver; }
|
38
|
+
.editable button[type=cancel]:hover { background-color:#333; }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require develop/manages
|
13
|
+
*= require dyndatetime/calendar-system
|
14
|
+
*= require bootstrap/bootstrap-app
|
15
|
+
*= require solarized
|
16
|
+
*= require codemirror
|
17
|
+
*= require site
|
18
|
+
*/
|
19
|
+
|
@@ -0,0 +1,479 @@
|
|
1
|
+
html {overflow-y:scroll;}
|
2
|
+
|
3
|
+
body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; margin-bottom: 30px; padding: 0; min-width: 900px; }
|
4
|
+
a{text-decoration:none;}
|
5
|
+
h1, h2, h3, h4 {font-family: "Trebuchet MS", Verdana, sans-serif;padding: 2px 10px 1px 0px;margin: 0 0 10px 0;}
|
6
|
+
#content h1, h2, h3, h4 {color: #555;}
|
7
|
+
h2, .wiki h1 {font-size: 20px;}
|
8
|
+
h3, .wiki h2 {font-size: 16px;}
|
9
|
+
h4, .wiki h3 {font-size: 13px;}
|
10
|
+
h4 {border-bottom: 1px dotted #bbb;}
|
11
|
+
|
12
|
+
/***** Layout *****/
|
13
|
+
|
14
|
+
body {
|
15
|
+
background-color: #FFFFFF;
|
16
|
+
color: #555555;
|
17
|
+
font-family: "Ubuntu",Helvetica,Arial,sans-serif;
|
18
|
+
font-size: 13px;
|
19
|
+
line-height: 18px;
|
20
|
+
text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2);
|
21
|
+
}
|
22
|
+
|
23
|
+
.container-fluid .content{
|
24
|
+
background-color: #FFF;
|
25
|
+
margin: 10px 0;
|
26
|
+
padding: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
#account {float:right;}
|
33
|
+
|
34
|
+
#header {min-height:5.3em;margin:0;background-color:#628DB6;color:#f8f8f8; padding: 4px 8px 20px 6px; position:relative;}
|
35
|
+
#header a {color:#f8f8f8;}
|
36
|
+
#header h1 a.ancestor { font-size: 80%; }
|
37
|
+
|
38
|
+
/*#main .content { width: 75%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; float: right; }*/
|
39
|
+
/** html #content{ width: 75%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}*/
|
40
|
+
|
41
|
+
/*html>body #content { min-height: 600px; }*/
|
42
|
+
#main{display: block; position: relative; }
|
43
|
+
/*#wrapper3 #main .content{
|
44
|
+
float: right;
|
45
|
+
width: 79%;
|
46
|
+
padding: 0px;
|
47
|
+
margin: 10px 0;
|
48
|
+
}*/
|
49
|
+
#sidebar{ float: left; padding: 0; margin: 0; width: 19%;}
|
50
|
+
* html body .content { height: 600px; min-height: 600px; } /* IE */
|
51
|
+
|
52
|
+
#main.nosidebar #sidebar{ display: none; }
|
53
|
+
#main.nosidebar .content{ width: auto; border-right: 0; }
|
54
|
+
|
55
|
+
#footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
|
56
|
+
|
57
|
+
|
58
|
+
/***** Tables *****/
|
59
|
+
table {font-size: 11px}
|
60
|
+
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
|
61
|
+
table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
|
62
|
+
table.list td { vertical-align: top; padding-right:10px; text-align: center; }
|
63
|
+
table.list td.id { width: 2%; text-align: center;}
|
64
|
+
table.list td.checkbox { width: 15px; padding: 2px 0 0 0; }
|
65
|
+
table.list td.checkbox input {padding:0px;}
|
66
|
+
table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; }
|
67
|
+
table.list td.buttons a { padding-right: 0.6em; }
|
68
|
+
table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
|
69
|
+
|
70
|
+
tr.version.closed, tr.version.closed a { color: #999; }
|
71
|
+
tr.version td.name { padding-left: 20px; }
|
72
|
+
tr.version.shared td.name { background: url(file_icon/link.png) no-repeat 0% 70%; }
|
73
|
+
tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; }
|
74
|
+
|
75
|
+
tr.user td { width:13%; }
|
76
|
+
tr.user td.email { width:18%; }
|
77
|
+
tr.user td { white-space: nowrap; }
|
78
|
+
tr.user.locked, tr.user.registered { color: #aaa; }
|
79
|
+
tr.user.locked a, tr.user.registered a { color: #aaa; }
|
80
|
+
|
81
|
+
table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;}
|
82
|
+
|
83
|
+
tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
|
84
|
+
|
85
|
+
tr.time-entry { text-align: center; white-space: nowrap; }
|
86
|
+
tr.time-entry td.issue, tr.time-entry td.comments { text-align: left; white-space: normal; }
|
87
|
+
td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
|
88
|
+
td.hours .hours-dec { font-size: 0.9em; }
|
89
|
+
|
90
|
+
|
91
|
+
table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; }
|
92
|
+
table.list tbody tr.group span.count {position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
|
93
|
+
tr.group a.toggle-all { color: #aaa; font-size: 80%; font-weight: normal; display:none;}
|
94
|
+
tr.group:hover a.toggle-all { display:inline;}
|
95
|
+
a.toggle-all:hover {text-decoration:none;}
|
96
|
+
|
97
|
+
table.list tbody tr:hover { background-color:#ffffdd; }
|
98
|
+
table.list tbody tr.group:hover { background-color:inherit; }
|
99
|
+
table td {padding:2px;}
|
100
|
+
table p {margin:0;}
|
101
|
+
.odd {background-color:#f6f7f8;}
|
102
|
+
.even {background-color: #fff;}
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
#sidebar h3{
|
107
|
+
padding: 20px;
|
108
|
+
}
|
109
|
+
|
110
|
+
#sidebar a{
|
111
|
+
padding: 5px 0 5px 20px;
|
112
|
+
line-height: 24px;
|
113
|
+
|
114
|
+
}
|
115
|
+
|
116
|
+
th {
|
117
|
+
font-weight: bold;
|
118
|
+
color: #000;
|
119
|
+
background: #f3f3f3;
|
120
|
+
background-image: url(./themes/svg_gradient.php?from=ffffff&to=cccccc);
|
121
|
+
background-size: 100% 100%;
|
122
|
+
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc));
|
123
|
+
background: -webkit-linear-gradient(top, #ffffff, #cccccc);
|
124
|
+
background: -moz-linear-gradient(top, #ffffff, #cccccc);
|
125
|
+
background: -ms-linear-gradient(top, #ffffff, #cccccc);
|
126
|
+
background: -o-linear-gradient(top, #ffffff, #cccccc);}
|
127
|
+
|
128
|
+
form {
|
129
|
+
padding: 0;
|
130
|
+
margin: 0;
|
131
|
+
display: inline;
|
132
|
+
}
|
133
|
+
|
134
|
+
/* The rest of this file contains styles related to the mechanics of
|
135
|
+
the editor. You probably shouldn't touch them. */
|
136
|
+
|
137
|
+
.CodeMirror {
|
138
|
+
line-height: 1;
|
139
|
+
position: relative;
|
140
|
+
overflow: hidden;
|
141
|
+
background: white;
|
142
|
+
color: black;
|
143
|
+
font-family: monospace;
|
144
|
+
height: 18em;
|
145
|
+
}
|
146
|
+
|
147
|
+
.CodeMirror-scroll {
|
148
|
+
/* 30px is the magic margin used to hide the element's real scrollbars */
|
149
|
+
/* See overflow: hidden in .CodeMirror */
|
150
|
+
margin-bottom: -30px; margin-right: -30px;
|
151
|
+
padding-bottom: 30px; padding-right: 30px;
|
152
|
+
height: 100%;
|
153
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
154
|
+
position: relative;
|
155
|
+
}
|
156
|
+
.CodeMirror-sizer {
|
157
|
+
position: relative;
|
158
|
+
}
|
159
|
+
|
160
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
161
|
+
before actuall scrolling happens, thus preventing shaking and
|
162
|
+
flickering artifacts. */
|
163
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
164
|
+
position: absolute;
|
165
|
+
z-index: 6;
|
166
|
+
display: none;
|
167
|
+
}
|
168
|
+
.CodeMirror-vscrollbar {
|
169
|
+
right: 0; top: 0;
|
170
|
+
overflow-x: hidden;
|
171
|
+
overflow-y: scroll;
|
172
|
+
}
|
173
|
+
.CodeMirror-hscrollbar {
|
174
|
+
bottom: 0; left: 0;
|
175
|
+
overflow-y: hidden;
|
176
|
+
overflow-x: scroll;
|
177
|
+
}
|
178
|
+
.CodeMirror-scrollbar-filler {
|
179
|
+
right: 0; bottom: 0;
|
180
|
+
}
|
181
|
+
.CodeMirror-gutter-filler {
|
182
|
+
left: 0; bottom: 0;
|
183
|
+
}
|
184
|
+
|
185
|
+
.CodeMirror-gutters {
|
186
|
+
position: absolute; left: 0; top: 0;
|
187
|
+
padding-bottom: 30px;
|
188
|
+
z-index: 3;
|
189
|
+
}
|
190
|
+
.CodeMirror-gutter {
|
191
|
+
white-space: normal;
|
192
|
+
height: 100%;
|
193
|
+
padding-bottom: 30px;
|
194
|
+
margin-bottom: -32px;
|
195
|
+
display: inline-block;
|
196
|
+
/* Hack to make IE7 behave */
|
197
|
+
*zoom:1;
|
198
|
+
*display:inline;
|
199
|
+
}
|
200
|
+
.CodeMirror-gutter-elt {
|
201
|
+
position: absolute;
|
202
|
+
cursor: default;
|
203
|
+
z-index: 4;
|
204
|
+
}
|
205
|
+
|
206
|
+
.CodeMirror-lines {
|
207
|
+
cursor: text;
|
208
|
+
}
|
209
|
+
.CodeMirror pre {
|
210
|
+
/* Reset some styles that the rest of the page might have set */
|
211
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
212
|
+
border-width: 0;
|
213
|
+
background: transparent;
|
214
|
+
font-family: inherit;
|
215
|
+
font-size: inherit;
|
216
|
+
margin: 0;
|
217
|
+
white-space: pre;
|
218
|
+
word-wrap: normal;
|
219
|
+
line-height: inherit;
|
220
|
+
color: inherit;
|
221
|
+
z-index: 2;
|
222
|
+
position: relative;
|
223
|
+
overflow: visible;
|
224
|
+
}
|
225
|
+
.CodeMirror-wrap pre {
|
226
|
+
word-wrap: break-word;
|
227
|
+
white-space: pre-wrap;
|
228
|
+
word-break: normal;
|
229
|
+
}
|
230
|
+
.CodeMirror-linebackground {
|
231
|
+
position: absolute;
|
232
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
233
|
+
z-index: 0;
|
234
|
+
}
|
235
|
+
|
236
|
+
.CodeMirror-linewidget {
|
237
|
+
position: relative;
|
238
|
+
z-index: 2;
|
239
|
+
overflow: auto;
|
240
|
+
}
|
241
|
+
|
242
|
+
.CodeMirror-widget {
|
243
|
+
display: inline-block;
|
244
|
+
}
|
245
|
+
|
246
|
+
.CodeMirror-wrap .CodeMirror-scroll {
|
247
|
+
overflow-x: hidden;
|
248
|
+
}
|
249
|
+
|
250
|
+
.CodeMirror-measure {
|
251
|
+
position: absolute;
|
252
|
+
width: 100%; height: 0px;
|
253
|
+
overflow: hidden;
|
254
|
+
visibility: hidden;
|
255
|
+
}
|
256
|
+
.CodeMirror-measure pre { position: static; }
|
257
|
+
|
258
|
+
.CodeMirror div.CodeMirror-cursor {
|
259
|
+
position: absolute;
|
260
|
+
visibility: hidden;
|
261
|
+
border-right: none;
|
262
|
+
width: 0;
|
263
|
+
}
|
264
|
+
.CodeMirror-focused div.CodeMirror-cursor {
|
265
|
+
visibility: visible;
|
266
|
+
}
|
267
|
+
|
268
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
269
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
270
|
+
|
271
|
+
.cm-searching {
|
272
|
+
background: #ffa;
|
273
|
+
background: rgba(255, 255, 0, .4);
|
274
|
+
}
|
275
|
+
|
276
|
+
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
|
277
|
+
.CodeMirror span { *vertical-align: text-bottom; }
|
278
|
+
|
279
|
+
@media print {
|
280
|
+
/* Hide the cursor when printing */
|
281
|
+
.CodeMirror div.CodeMirror-cursor {
|
282
|
+
visibility: hidden;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
span.cm-keyword, span.cm-statement-verb {
|
287
|
+
color: #909;
|
288
|
+
}
|
289
|
+
span.cm-variable {
|
290
|
+
color: black;
|
291
|
+
}
|
292
|
+
span.cm-comment {
|
293
|
+
color: #808000;
|
294
|
+
}
|
295
|
+
span.cm-mysql-string {
|
296
|
+
color: #008000;
|
297
|
+
}
|
298
|
+
span.cm-operator {
|
299
|
+
color: fuchsia;
|
300
|
+
}
|
301
|
+
span.cm-mysql-word {
|
302
|
+
color: black;
|
303
|
+
}
|
304
|
+
span.cm-builtin {
|
305
|
+
color: #f00;
|
306
|
+
}
|
307
|
+
span.cm-variable-2 {
|
308
|
+
color: #f90;
|
309
|
+
}
|
310
|
+
span.cm-variable-3 {
|
311
|
+
color: #00f;
|
312
|
+
}
|
313
|
+
span.cm-separator {
|
314
|
+
color: fuchsia;
|
315
|
+
}
|
316
|
+
span.cm-number {
|
317
|
+
color: teal;
|
318
|
+
}
|
319
|
+
|
320
|
+
/* nav */
|
321
|
+
div.nav{
|
322
|
+
background-image: linear-gradient(to bottom, #ffffff, #f2f2f2) ;
|
323
|
+
padding: 5px;
|
324
|
+
margin: 10px 0px 10px 0px;
|
325
|
+
font-size: 18px;
|
326
|
+
}
|
327
|
+
div.nav a{
|
328
|
+
margin-left: 3px;
|
329
|
+
}
|
330
|
+
|
331
|
+
.content h5{
|
332
|
+
padding: 3px;
|
333
|
+
width: 160px;
|
334
|
+
text-align: center;
|
335
|
+
background-color: #D2E9FF;
|
336
|
+
}
|
337
|
+
span.author-name{
|
338
|
+
padding: 2px 4px 2px 4px;
|
339
|
+
margin: 3px;
|
340
|
+
background-color: #d0d0d0;
|
341
|
+
}
|
342
|
+
|
343
|
+
#main-menu li a.selected {
|
344
|
+
background: none repeat scroll 0 0 #FFFFFF;
|
345
|
+
color: #555555;
|
346
|
+
}
|
347
|
+
|
348
|
+
#header {
|
349
|
+
background-color: #507AAA;
|
350
|
+
color: #F8F8F8;
|
351
|
+
height: 6.2em;
|
352
|
+
margin: 0;
|
353
|
+
padding: 4px 8px 0 6px;
|
354
|
+
position: relative;
|
355
|
+
}
|
356
|
+
#header h1 {
|
357
|
+
margin-left: 0;
|
358
|
+
margin-top: 0.3em;
|
359
|
+
}
|
360
|
+
|
361
|
+
#main-menu {
|
362
|
+
bottom: 3px;
|
363
|
+
left: 26px;
|
364
|
+
margin-right: -500px;
|
365
|
+
position: absolute;
|
366
|
+
}
|
367
|
+
|
368
|
+
#wrapper {
|
369
|
+
background: none repeat scroll 0 0 #F1EFE2;
|
370
|
+
}
|
371
|
+
#wrapper3 {
|
372
|
+
background: none repeat scroll 0 0 #FFFFFF;
|
373
|
+
box-shadow: 1px 1px 5px #999999;
|
374
|
+
margin: 0 10px;
|
375
|
+
}
|
376
|
+
|
377
|
+
#main-menu ul {
|
378
|
+
margin: 0;
|
379
|
+
padding: 0;
|
380
|
+
}
|
381
|
+
|
382
|
+
|
383
|
+
#main-menu li {
|
384
|
+
float: left;
|
385
|
+
list-style-type: none;
|
386
|
+
margin: 0 2px 0 0;
|
387
|
+
padding: 0;
|
388
|
+
white-space: nowrap;
|
389
|
+
}
|
390
|
+
#main-menu li a {
|
391
|
+
background: none repeat scroll 0 0 #507AAA;
|
392
|
+
font-weight: bold;
|
393
|
+
padding: 4px 10px;
|
394
|
+
}
|
395
|
+
#main-menu li a:hover {
|
396
|
+
background: none repeat scroll 0 0 #759FCF;
|
397
|
+
}
|
398
|
+
#main-menu li a.selected {
|
399
|
+
background: none repeat scroll 0 0 #FFFFFF;
|
400
|
+
color: #555555;
|
401
|
+
}
|
402
|
+
|
403
|
+
|
404
|
+
#edit_tools{
|
405
|
+
width: 100%;
|
406
|
+
bottom: 0;
|
407
|
+
position: fixed;
|
408
|
+
border-spacing: 0;
|
409
|
+
background-color: #DDD;
|
410
|
+
text-align: center;
|
411
|
+
border: 1px solid #d4d4d4;
|
412
|
+
}
|
413
|
+
|
414
|
+
|
415
|
+
#edit_tools span{
|
416
|
+
width: 300px;
|
417
|
+
margin-left: 100px;
|
418
|
+
}
|
419
|
+
|
420
|
+
.content ul{
|
421
|
+
margin: 10px 10px;
|
422
|
+
}
|
423
|
+
|
424
|
+
|
425
|
+
.pagination {
|
426
|
+
display: inline;
|
427
|
+
margin: 20px 0;
|
428
|
+
margin-left: 20px;
|
429
|
+
vertical-align: top;
|
430
|
+
}
|
431
|
+
|
432
|
+
.table tr.active{
|
433
|
+
background-color: #F0F0F0;
|
434
|
+
font-weight: bold;
|
435
|
+
}
|
436
|
+
|
437
|
+
#edit_tools span label{
|
438
|
+
float: right;
|
439
|
+
display: inline;
|
440
|
+
margin-right: 200px;
|
441
|
+
vertical-align: top;
|
442
|
+
margin-top: 10px;
|
443
|
+
}
|
444
|
+
|
445
|
+
#edit_tools label #select_num{
|
446
|
+
width: 0px;
|
447
|
+
margin: 0px;
|
448
|
+
font-weight: bold;
|
449
|
+
}
|
450
|
+
|
451
|
+
.content .search{
|
452
|
+
padding: 12px;
|
453
|
+
margin: 2px;
|
454
|
+
}
|
455
|
+
|
456
|
+
.content .navbar ul li{
|
457
|
+
display: inline;
|
458
|
+
padding: 5px;
|
459
|
+
width: 70px;
|
460
|
+
float: left;
|
461
|
+
}
|
462
|
+
|
463
|
+
.content .details{
|
464
|
+
overflow: auto;
|
465
|
+
}
|
466
|
+
|
467
|
+
.table tr{
|
468
|
+
background-color: #FFF;
|
469
|
+
}
|
470
|
+
|
471
|
+
.navbar a.btn-icon img{
|
472
|
+
width: 54px;
|
473
|
+
height: 50px;
|
474
|
+
overflow: hidden;
|
475
|
+
}
|
476
|
+
|
477
|
+
.navbar li{
|
478
|
+
text-align: center;
|
479
|
+
}
|