rails_admin_content 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -11
  3. data/app/assets/images/common/backtop.png +0 -0
  4. data/app/assets/images/common/bg.gif +0 -0
  5. data/app/assets/images/common/bg_glow.png +0 -0
  6. data/app/assets/images/common/black_opacity12.png +0 -0
  7. data/app/assets/images/common/black_opacity20.png +0 -0
  8. data/app/assets/images/common/header_bg.png +0 -0
  9. data/app/assets/images/common/header_logo.png +0 -0
  10. data/app/assets/images/common/header_site.png +0 -0
  11. data/app/assets/images/common/home_center.png +0 -0
  12. data/app/assets/images/common/ra_backtop.png +0 -0
  13. data/app/assets/images/common/ra_tools.png +0 -0
  14. data/app/assets/images/common/sidebar_ie_bg.png +0 -0
  15. data/app/assets/images/common/sidebar_search.png +0 -0
  16. data/app/assets/javascripts/develop/manages.js.coffee +56 -18
  17. data/app/assets/javascripts/rails_admin_content.js +2 -1
  18. data/app/assets/stylesheets/develop/application/common.css.sass +780 -0
  19. data/app/assets/stylesheets/develop/application/forbidden.css.sass +24 -0
  20. data/app/assets/stylesheets/develop/application/login.css.sass +153 -0
  21. data/app/assets/stylesheets/develop/application.css.scss +6 -0
  22. data/app/assets/stylesheets/rails_admin_content.css +3 -5
  23. data/app/assets/stylesheets/site.css +2 -323
  24. data/app/controllers/rails_admin_content/develop/manages_controller.rb +1 -0
  25. data/app/views/layouts/rails_admin_content/admin.html.slim +42 -51
  26. data/app/views/rails_admin_content/develop/manages/_filter.html.slim +20 -22
  27. data/app/views/rails_admin_content/develop/manages/_header.html.slim +31 -0
  28. data/app/views/rails_admin_content/develop/manages/edit.html.slim +13 -15
  29. data/app/views/rails_admin_content/develop/manages/edit_column.html.slim +1 -1
  30. data/app/views/rails_admin_content/develop/manages/new.html.slim +10 -10
  31. data/app/views/rails_admin_content/develop/manages/query.html.slim +3 -2
  32. data/app/views/rails_admin_content/develop/manages/show.html.slim +24 -24
  33. data/lib/assets/javascripts/jquery/jquery.color.js +123 -0
  34. data/lib/assets/javascripts/jquery/jquery.cookie.js +96 -0
  35. data/lib/rails_admin_content/client.rb +4 -0
  36. data/lib/rails_admin_content/mysql/adapters/client.rb +2 -0
  37. data/lib/rails_admin_content/version.rb +1 -1
  38. metadata +64 -9
  39. data/app/views/rails_admin_content/develop/manages/_menv.html.slim +0 -8
  40. data/app/views/rails_admin_content/develop/manages/_navbar.html.slim +0 -27
  41. data/lib/assets/codemirror/charisma-app.css +0 -501
  42. data/lib/assets/codemirror/matchbrackets.js +0 -82
  43. data/lib/assets/codemirror/solarized.css +0 -207
  44. data/lib/assets/codemirror/twilight.css +0 -26
  45. data/lib/assets/javascripts/bootstrap/bootstrap-alert.js +0 -100
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4103f556cac609bbd974d482f1ffade527d6e69d
4
- data.tar.gz: 871320bb364970a9a9eae8ebbc55103a245afe8a
3
+ metadata.gz: b8869d0aa87725fba42c948c57fe9bc35b2bc967
4
+ data.tar.gz: 287943c0c1ddb7efb97ae12747505319d941f36d
5
5
  SHA512:
6
- metadata.gz: 83f17018b372dd42e8491bb81c2b2f86da99c54c8ba142c1039c96be2858c62e9049e62184b3b758a5be14711601edeac47e6f66ff809e02c7f395254d18a181
7
- data.tar.gz: f55104928888207b0cf1422a44f8412d5c48eab43bf2ddbd4bcaa21d4e0e322a3cedef434c8ff63171e12062fa25b6a9ed6daf13778e0bb028c39982bcbeabd9
6
+ metadata.gz: c023b6afd7faca991090ac91e089b103c80b76260dc314f2cc81c7f16ce4d07ae47ba1b8133587fd9719148f12a8f771d86dce9cef94b578308a49aeda5b0124
7
+ data.tar.gz: 79003a1b07225abf2d35ab9336287b239af5cb56d27036959374ec1517151514f7b59ca49130fe769625736e5123044424b307a9a8ddfd9953f00777fd629ce6
data/README.md CHANGED
@@ -14,13 +14,8 @@ add routes.rb
14
14
 
15
15
  ```ruby
16
16
 
17
- mount RailsAdminContent::Engine => "/rails_admin_content"
17
+ mount RailsAdminContent::Engine => "/rails_admin"
18
18
 
19
- or
20
-
21
- namespace :admin do
22
- mount RailsAdminContent::Engine => "/rails_admin_content"
23
- end
24
19
 
25
20
  ```
26
21
 
@@ -29,10 +24,6 @@ Connect rails_admin_content configuration file
29
24
 
30
25
  ```ruby
31
26
 
32
- http://localhost:3000/rails_admn_content/
33
-
34
- or
35
-
36
- http://localhost:3000/admin/rails_admn_content/
27
+ http://localhost:3000/rails_admn/
37
28
 
38
29
  ```
Binary file
@@ -3,30 +3,36 @@ option_select = (value) ->
3
3
 
4
4
  remove_tr = (id) ->
5
5
  $('.tr_'+id).fadeToggle("slow", "linear");
6
- $('#edit_tables .edit_checkbox:checked').attr('checked', false)
6
+ $('.tablescroll .edit_checkbox:checked').prop('checked', false)
7
7
  checked_status()
8
8
 
9
9
 
10
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
11
+ if $('.tablescroll .edit_checkbox:checked').length > 0 then $('#btn_del').show() else $('#btn_del').hide()
12
+
13
13
 
14
14
  hidden_input_select_with_name = ->
15
15
  $('.check_edit[style!=""] .span3 input, .check_edit[style!=""] .span3 select').attr('name', '')
16
16
 
17
+ search_input_change = ->
18
+ for li in $('.link_list li')
19
+ do (li) ->
20
+ return $(li).show() if $.trim($('#seaerch-T').val()).length == 0
21
+ if RegExp($('#seaerch-T').val().toLocaleLowerCase()).test($(li).attr('data-field')) then $(li).show() else $(li).hide()
22
+
17
23
  $(document).ready ->
18
24
  if document.getElementById("search-textarea")
19
25
  editor = CodeMirror.fromTextArea(document.getElementById("search-textarea"), {
20
26
  mode: "text/x-sql",
21
27
  tabMode: "indent",
28
+ smartIndent: true,
22
29
  lineNumbers: true,
23
30
  matchBrackets: true,
24
31
  indentUnit: 2
25
32
  });
26
- editor.setOption("theme", 'twillght');
27
33
 
28
34
  $('span.edit_datepicker').on 'click', 'textarea', -> $(this).dynDateTime()
29
- $('.row-fluid .datetime').on 'click', -> $(this).dynDateTime()
35
+ $('.formitem .datetime').on 'click', -> $(this).dynDateTime()
30
36
 
31
37
  height = Math.floor($('#main .content').height()/40)+18
32
38
  if ($('.main-menu-span .well ul li').size() > height)
@@ -37,22 +43,20 @@ $(document).ready ->
37
43
  false
38
44
  false
39
45
 
40
-
41
-
42
- $('#edit_tables').on 'click', '.edit_checkbox', ->
43
- $(this).parents('tr').toggleClass('active')
46
+ $('.tablescroll').on 'click', '.edit_checkbox', ->
47
+ $(this).parents('tr').toggleClass('selection')
44
48
  checked_status()
45
49
 
46
- $('#edit_tools').on 'click', '.deselect', ->
47
- $('#edit_tables .edit_checkbox:checked').attr('checked', false)
50
+ $('.tablescroll').on 'click', '.deselect', ->
51
+ $('.tablescroll .edit_checkbox:checked').attr('checked', false)
48
52
  checked_status()
49
- for input_check in $('#edit_tables .edit_checkbox')
50
- do (input_check) -> $(input_check).parents('tr').removeClass("active")
53
+ for input_check in $('.tablescroll .edit_checkbox')
54
+ do (input_check) -> $(input_check).parents('tr').removeClass("selection")
51
55
  false
52
56
 
53
- $('#btn_delete').on 'click', ->
57
+ $('.tools_box .tool_02').on 'click', ->
54
58
  return false if $(this).attr('disabled')
55
- if(window.confirm("确定要删除么?"))
59
+ if($('.tablescroll .edit_checkbox:checked').length > 0 && window.confirm("确定要删除么?"))
56
60
  $.ajax
57
61
  url: $('#details_form').attr("action"), data: $('#details_form').serialize(), type: 'delete', dataType: 'json',
58
62
  success: (data) -> remove_tr id for id in data
@@ -77,10 +81,34 @@ $(document).ready ->
77
81
  hidden_input_select_with_name()
78
82
 
79
83
 
80
- for input_check in $('#edit_tables .edit_checkbox:checked')
81
- do (input_check) -> $(input_check).parents('tr').addClass("active")
84
+ $('#seaerch-T').on
85
+ change: ->
86
+ search_input_change()
87
+ keyup: ->
88
+ search_input_change()
89
+
90
+ search_input_change()
91
+
92
+
93
+
94
+ for input_check in $('.tablescroll .edit_checkbox:checked')
95
+ do (input_check) -> $(input_check).parents('tr').addClass("selection")
82
96
 
83
97
 
98
+
99
+ $('#toggle_check').on 'click', ->
100
+ $('input.edit_checkbox').prop('checked', $(this).is(":checked"))
101
+ if ($(this).is(":checked"))
102
+ $('input.edit_checkbox').parents('tr').addClass('selection')
103
+ else
104
+ $('input.edit_checkbox').parents('tr').removeClass('selection')
105
+ checked_status()
106
+
107
+ # back top
108
+ $('#layout_scrolltop').on 'click', -> $("html, body").animate({ scrollTop: 0 }, 120);
109
+
110
+ # $(window).on 'scroll', -> $('#layout_scrolltop').css('visibility', $(window).scrollTop() > 500 ? 'visible' : 'hidden');
111
+
84
112
  # 检查选择状态
85
113
  checked_status()
86
114
  #
@@ -93,4 +121,14 @@ $(document).ready ->
93
121
  # 刷新后没有选中的复选框 隐藏后台的查询条件框
94
122
  $('.check_edit[style=""] .check_box_edit').each -> $('.span3', $(this).parents('div.check_edit')).hide() if !$(this).is(":checked")
95
123
 
96
- false
124
+ false
125
+
126
+ $ ->
127
+ $(document).on 'mousedown', '.color', ->
128
+ $('body').removeClass('bgcolor1 bgcolor2 bgcolor3 bgcolor4 bgcolor5 bgcolor6 bgcolor7 bgcolor8 bgcolor9 bgcolor10 bgcolor11 bgcolor12 bgcolor13 bgcolor14 bgcolor15 bgcolor16 bgcolor17 bgcolor18 bgcolor19 bgcolor20').addClass($(this).text().toLowerCase())
129
+ $.cookie 'document_color', $(this).text().toLowerCase(),
130
+ expires: 30
131
+ path: '/'
132
+ if color = $.cookie('document_color')
133
+ $('body').removeClass('bgcolor1 bgcolor2 bgcolor3 bgcolor4 bgcolor5 bgcolor6 bgcolor7 bgcolor8 bgcolor9 bgcolor10 bgcolor11 bgcolor12 bgcolor13 bgcolor14 bgcolor15 bgcolor16 bgcolor17 bgcolor18 bgcolor19 bgcolor20').addClass(color)
134
+
@@ -17,6 +17,7 @@
17
17
  //= require develop/manages
18
18
  //= require jquery/jquery.jeditable
19
19
  //= require jquery/editable
20
+ //= require jquery/jquery.cookie
21
+ //= require jquery/jquery.color
20
22
  //= require jquery/dyndatetime/dynDateTime
21
23
  //= require jquery/dyndatetime/calendar_zh
22
- //= require bootstrap/bootstrap-alert
@@ -0,0 +1,780 @@
1
+ html
2
+ color: #000
3
+ height: 100%
4
+ min-height: 100%
5
+ //background: url("/assets/common/bg.gif") repeat fixed 0 0
6
+ body
7
+ font-size: 14px
8
+ height: 100%
9
+ min-height: 100%
10
+ min-width: 900px
11
+ background: url('/assets/common/sidebar_ie_bg.png') repeat-y 0 0
12
+ &.loading *
13
+ cursor: wait
14
+ body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td
15
+ margin: 0
16
+ padding: 0
17
+ body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, p, blockquote, th, td, span
18
+ cursor: default
19
+ a
20
+ text-decoration: none
21
+ cursor: pointer
22
+ span
23
+ cursor: pointer
24
+ a:hover
25
+ text-decoration: none
26
+ input:focus,
27
+ select:focus,
28
+ a:focus
29
+ outline: none
30
+ img, a img
31
+ border: none
32
+ ul, li
33
+ margin: 0
34
+ padding: 0
35
+ hr
36
+ height: 1px
37
+ background: #aaa
38
+ border: 0px
39
+ padding: 0
40
+ margin: 1em 0
41
+ .clear
42
+ clear: both
43
+ div
44
+ display: block
45
+ margin: 0
46
+ padding: 0
47
+ p
48
+ margin: 0
49
+ padding: 0
50
+ h1,h2,h3,h4,h5,h6
51
+ display: block
52
+ font-weight: normal
53
+ .text,
54
+ input[type=text],
55
+ input[type=password],
56
+ textarea,
57
+ select
58
+ box-sizing: border-box
59
+ -moz-box-sizing: border-box
60
+ -webkit-box-sizing: border-box
61
+ fieldset
62
+ border: 0px
63
+ margin: 0
64
+ padding: 0
65
+ display: block
66
+ .ff-item-bottom
67
+ margin-bottom: 20px
68
+ .ff-item-top
69
+ margin-top: 20px
70
+
71
+ @mixin bgcolor($bgcolor, $index)
72
+ a
73
+ color: $bgcolor
74
+ .bgcolor#{$index}
75
+ a
76
+ color: $bgcolor
77
+ &:hover
78
+ color: darken($bgcolor, 9%)
79
+ .table th
80
+ background-color: lighten($bgcolor, 2%)
81
+ .formbox
82
+ .submit,
83
+ input[type=submit]
84
+ background-color: $bgcolor
85
+ &:hover
86
+ background-color: darken($bgcolor, 9%)
87
+ &[disabled],
88
+ &.disabled
89
+ background: #999
90
+ cursor: default
91
+ .text:focus,
92
+ input[type=text]:focus,
93
+ input[type=password]:focus,
94
+ textarea:focus,
95
+ select:focus
96
+ border-color: $bgcolor
97
+ .layout_scrolltop,
98
+ .layout_sidebar
99
+ background-color: $bgcolor !important
100
+ .HeaderContainer
101
+ background-color: $bgcolor
102
+ .userinfo ul li.site .sitebox
103
+ border-color: #{$bgcolor} !important
104
+ .login_warp .login_center .lg_main
105
+ .left_product ul li
106
+ background: $bgcolor
107
+ .loginBox .send .loginBtn
108
+ background: $bgcolor
109
+ .syntaxhighlighter .gutter .line
110
+ border-color: #{$bgcolor} !important
111
+ .railsadmin
112
+ .manipulate
113
+ a
114
+ &:hover
115
+ background-color: lighten($bgcolor, 2%)
116
+ .HeaderContainer .userinfo ul li.site .sitebox .list .bgcolor#{$index}
117
+ background-color: $bgcolor !important
118
+
119
+ @include bgcolor(#800000, 1)
120
+ @include bgcolor(#DC143C, 2)
121
+ @include bgcolor(#C71585, 3)
122
+ @include bgcolor(#FF4500, 4)
123
+ @include bgcolor(#CD853F, 5)
124
+ @include bgcolor(#B8860B, 6)
125
+ @include bgcolor(#8B4513, 7)
126
+ @include bgcolor(#5C1F3E, 8)
127
+ @include bgcolor(#6A5ACD, 9)
128
+ @include bgcolor(#4B0082, 10)
129
+ @include bgcolor(#0072C6, 11)
130
+ @include bgcolor(#0066FF, 12)
131
+ @include bgcolor(#006400, 13)
132
+ @include bgcolor(#008A17, 14)
133
+ @include bgcolor(#008299, 15)
134
+ @include bgcolor(#008080, 16)
135
+ @include bgcolor(#2F4F4F, 17)
136
+ @include bgcolor(#708090, 18)
137
+ @include bgcolor(#333333, 19)
138
+ @include bgcolor(#000000, 20)
139
+
140
+
141
+
142
+ #body
143
+ display: block
144
+ height: 100%
145
+ position: relative
146
+ width: 100%
147
+ min-width: 900px
148
+
149
+ .HeaderContainer
150
+ display: block
151
+ height: 40px
152
+ width: 100%
153
+ min-width: 900px
154
+ //min-width: 768px
155
+ //position: relative
156
+ background-color: #fff
157
+ position: fixed
158
+ z-index: 1000
159
+ .logo
160
+ display: block
161
+ height: 40px
162
+ width: 150px
163
+ float: left
164
+ margin-left: 10px
165
+ margin-right: 30px
166
+ background: url('/assets/common/header_logo.png') no-repeat 0 0
167
+ overflow: hidden
168
+ text-indent: -999px
169
+ &:hover
170
+ background-color: rgba(0,0,0,0.2)
171
+ .topbar
172
+ list-style: none
173
+ li
174
+ float: left
175
+ height: 40px
176
+ list-style: none
177
+ a
178
+ display: inline-block
179
+ *display: inline
180
+ zoom: 1
181
+ padding: 0 20px
182
+ height: 40px
183
+ font-size: 100%
184
+ line-height: 38px
185
+ color: #FFF
186
+ &.current,&.current:hover
187
+ background-color: rgba(0,0,0,0.2)
188
+ background: url('/assets/common/black_opacity20.png') repeat 0 0\9
189
+ &:hover
190
+ background-color: rgba(0,0,0,0.12)
191
+ background: url('/assets/common/black_opacity12.png') repeat 0 0\9
192
+ .userinfo
193
+ float: right
194
+ ul
195
+ list-style: none
196
+ li
197
+ float: left
198
+ span.user
199
+ float: left
200
+ display: block
201
+ padding: 0 10px
202
+ height: 40px
203
+ font-size: 100%
204
+ line-height: 38px
205
+ color: #FFF
206
+ li.site
207
+ position: relative
208
+ a.set
209
+ float: left
210
+ display: block
211
+ width: 30px
212
+ height: 40px
213
+ background: url('/assets/common/header_site.png') no-repeat center center
214
+ //margin-right: 10px
215
+ &:hover,&.current,&.current:hover
216
+ background-color: rgba(0,0,0,0.2)
217
+ &:hover a.set
218
+ background-color: rgba(0,0,0,0.2)
219
+
220
+ &:hover .sitebox,&.current .sitebox
221
+ display: block
222
+ .sitebox
223
+ display: none
224
+ position: absolute
225
+ top: 40px
226
+ right: 0px
227
+ z-index: 55
228
+ width: 136px
229
+ background-color: #fff
230
+ border-right: 2px solid #fff
231
+ border-bottom: 2px solid #fff
232
+ border-left: 2px solid #fff
233
+ .list
234
+ font-size: 0px
235
+ padding: 17px 0 0 16px
236
+ overflow: hidden
237
+ zoom: 1
238
+ .color
239
+ display: inline-block
240
+ *display: inline
241
+ zoom: 1
242
+ width: 20px
243
+ height: 20px
244
+ background: #ccc
245
+ margin: 0 8px 8px 0
246
+ *margin: 0 7px 8px 0
247
+ overflow: hidden
248
+ text-indent: -55px
249
+ *float: left
250
+ &:hover
251
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.2)
252
+ .hr
253
+ border-bottom: 1px solid #666
254
+ display: block
255
+ width: 104px
256
+ margin: 5px auto
257
+ height: 0px
258
+ font-size: 0px
259
+ .sitesignout
260
+ display: block
261
+ padding: 5px 0
262
+ a
263
+ //border-top: 1px solid #666
264
+ display: block
265
+ padding: 7px 16px
266
+ &:hover
267
+ background: #f3f3f3
268
+ //text-decoration: underline
269
+ &:active
270
+ background: #f3f3f3
271
+ .layout_scrolltop
272
+ background: #333 url('/assets/common/backtop.png') no-repeat 0 0
273
+ opacity: 1
274
+ position: fixed
275
+ right: 10px
276
+ bottom: 10px
277
+ visibility: hidden
278
+ display: block
279
+ width: 50px
280
+ height: 50px
281
+ z-index: 99
282
+ cursor: pointer
283
+ transition: 0.5s
284
+ &:hover
285
+ opacity: 0.8
286
+
287
+ .Container
288
+ display: table-cell
289
+ width: auto
290
+ overflow: hidden
291
+ // background: url('/assets/common/sidebar_ie_bg.png') repeat-y 0 0
292
+ .sidebar
293
+ background-color: #F3F3F3
294
+ position: relative
295
+ min-height: 100%
296
+ width: 274px
297
+ z-index: 5
298
+ display: table-cell
299
+ vertical-align: top
300
+ float: left
301
+ .searchbox
302
+ height: 50px
303
+ width: 274px
304
+ position: relative
305
+ margin-top: 40px
306
+ form
307
+ .search
308
+ position: absolute
309
+ right: 15px
310
+ top: 10px
311
+ bottom: 10px
312
+ left: 15px
313
+ background-color: #FFF
314
+ border: 1px solid #BABABA
315
+ height: 30px
316
+ padding-right: 35px
317
+ white-space: nowrap
318
+ .text
319
+ background: none
320
+ border: 0 none
321
+ color: #666
322
+ height: 2em
323
+ line-height: 32px
324
+ font-size: 14px
325
+ width: 100%
326
+ //padding-left: 10px
327
+ vertical-align: baseline
328
+ padding: 6px 10px 5px
329
+ *padding-top: 3px
330
+ &:-moz-placeholder
331
+ color: silver !important
332
+ &::-webkit-input-placeholder
333
+ color: silver
334
+ .submit
335
+ background: #FFF
336
+ border: 0 none
337
+ cursor: pointer
338
+ height: 16px
339
+ min-width: 0
340
+ overflow: hidden
341
+ padding: 0
342
+ position: absolute
343
+ right: 9px
344
+ top: 0.6em
345
+ width: 15px
346
+ background: url('/assets/common/sidebar_search.png') no-repeat 0 0
347
+ .section
348
+ width: 274px
349
+ h3
350
+ color: #666
351
+ display: block
352
+ overflow: hidden
353
+ padding: 10px 20px
354
+ .link_list
355
+ list-style: none
356
+ li
357
+ display: block
358
+ overflow: hidden
359
+ list-style: none
360
+ a
361
+ color: #666
362
+ display: block
363
+ padding: 8px 20px
364
+ white-space: pre
365
+ height: 16px
366
+ font:
367
+ size: 12px
368
+ // &::after
369
+ // position: absolute
370
+ // right: 0
371
+ // top: 0
372
+ // width: 20px
373
+ // height: 33px
374
+ // background: #000
375
+ // display: block
376
+ // z-index: 5
377
+ &.current,&.current:hover
378
+ background-color: #D4D4D4
379
+ color: #000
380
+ &:hover
381
+ background-color: #E7E7E7
382
+ color: #333
383
+ span
384
+ display: block
385
+ width: 235px
386
+ white-space: pre
387
+ text-overflow: ellipsis
388
+ -o-text-overflow: ellipsis
389
+ overflow: hidden
390
+ .main
391
+ display: table-cell
392
+ width: auto
393
+ min-width: 600px
394
+ padding-top: 40px
395
+ position: absolute
396
+ *position: relative
397
+ left: 274px
398
+ *left: 0px
399
+ right: 0
400
+ top: 0
401
+ overflow: hidden
402
+ &::after
403
+ content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
404
+ visibility: hidden
405
+ clear: both
406
+ height: 0 !important
407
+ display: block
408
+ line-height: 0
409
+ font-size: 36px
410
+ .dochome
411
+ background: url('/assets/common/home_center.png') no-repeat center center
412
+ bottom: 0
413
+ display: block
414
+ left: 274px
415
+ position: fixed
416
+ right: 0
417
+ top: 40px
418
+ .description
419
+ padding: 2em 3em 5em
420
+ //background: #FFF
421
+ a
422
+ &:hover
423
+ text-decoration: underline
424
+ h1, .h1
425
+ font-size: 300%
426
+ font-style: normal
427
+ color: #000
428
+ h2, .h2
429
+ font-size: 200%
430
+ font-style: normal
431
+ h3, .h3
432
+ font-size: 167%
433
+ font-style: normal
434
+ h4, .h4
435
+ font-size: 140%
436
+ font-style: normal
437
+ h5, .h5
438
+ font-size: 120%
439
+ font-style: normal
440
+ h6, .h6
441
+ font-size: 120%
442
+ font-style: italic
443
+ .methods .method h1,
444
+ .methods .method .h1
445
+ margin-top: 1em
446
+ h2,h3,h4,h5,h6
447
+ margin-top: 1.5em
448
+ .name-list
449
+ a
450
+ display: inline-block
451
+ *display: inline
452
+ zoom: 1
453
+ padding: 10px
454
+ pre
455
+ background: #ddd
456
+ padding: 0.5em 0
457
+ display: block
458
+ white-space: pre-wrap
459
+ p
460
+ margin: 1em 0.4em
461
+ line-height: 1.5
462
+ word-wrap: break-word
463
+ word-break: break-all //强制英文单词断行
464
+ // word-break: normal
465
+ text-align: justify
466
+ text-justify: distribute
467
+ dt,dd
468
+ display: inline-block
469
+ *display: inline
470
+ zoom: 1
471
+ vertical-align: middle
472
+ word-wrap: break-word
473
+ break-word: break-all
474
+ padding: 5px 10px
475
+ p
476
+ margin: 0
477
+ dl
478
+ margin: 8px 0
479
+ dt
480
+ font-weight: bold
481
+ font-weight: normal
482
+ width: 40%
483
+ overflow: hidden
484
+ dd
485
+ padding: 0 12px
486
+ width: 52%
487
+ ul
488
+ margin: 1em
489
+ list-style-type: disc
490
+ li
491
+ //display: block
492
+ list-style-type: disc
493
+ ol
494
+ margin: 1em 1.5em
495
+ list-style-type: decimal
496
+ li
497
+ list-style-type: decimal
498
+ pre, code
499
+ font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace
500
+ font-size: 1em
501
+ pre
502
+ // background: #262626
503
+ background: #EDEDED
504
+ border: 0px dashed #999
505
+ // color: white
506
+ // color: #333
507
+ // overflow: auto
508
+ padding: 0.8em
509
+ margin: 1em 0
510
+ // font-family: monospace
511
+ line-height: 24px
512
+ span,p
513
+ font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace
514
+ .syntaxhighlighter
515
+ background: #EDEDED !important
516
+ padding: 10px 0 !important
517
+ .syntaxhighlighter .gutter
518
+ color: #333 !important
519
+ .syntaxhighlighter .string, .syntaxhighlighter .string a
520
+ color: #0A76D7 !important
521
+ .syntaxhighlighter .plain, .syntaxhighlighter .plain a
522
+ color: #333 !important
523
+ .syntaxhighlighter,
524
+ .syntaxhighlighter .line.alt1,
525
+ .syntaxhighlighter .line.alt2
526
+ background-color: #EDEDED !important
527
+ // .syntaxhighlighter .gutter
528
+ // color: #afafaf
529
+
530
+ .formbox
531
+ fieldset
532
+ vertical-align: top
533
+ .submit,
534
+ input[type=submit]
535
+ padding: 6px 8px
536
+ // background: red
537
+ border: 0 none
538
+ color: #FFF
539
+ display: inline-block
540
+ font-size: 14px
541
+ font-weight: normal
542
+ margin-right: 10px
543
+ transition: all 0.5s ease 0s
544
+ cursor: pointer
545
+ outline: none
546
+ label
547
+ font-size: 14px
548
+ margin-right: 10px
549
+ cursor: pointer
550
+ vertical-align: top
551
+ .text,
552
+ input[type=text],
553
+ input[type=password],
554
+ textarea,
555
+ select
556
+ background-color: #FFF
557
+ border: 1px solid #CCC
558
+ font-size: 14px
559
+ color: #333
560
+ margin-bottom: 10px
561
+ margin-right: 10px
562
+ padding: 4px 6px
563
+ transition: all 0.5s ease 0s
564
+ outline: none
565
+ &[disabled],
566
+ &.disabled
567
+ border-color: #e9e9e9
568
+ color: #999
569
+ select
570
+ padding: 3px 6px
571
+ &.formitem
572
+ width: 600px
573
+ label
574
+ display: block
575
+ margin-bottom: 6px
576
+ .text,
577
+ input[type=text],
578
+ input[type=password],
579
+ textarea,
580
+ select
581
+ width: 100%
582
+ textarea
583
+ height: 200px
584
+ width: 100%
585
+ max-width: 100%
586
+ min-width: 100%
587
+
588
+ .table
589
+ width: 100%
590
+ border-collapse: collapse
591
+ margin-bottom: 15px
592
+ font-size: 12px
593
+ th
594
+ padding: 10px
595
+ font-weight: bold
596
+ text-align: left
597
+ // background: #576C82
598
+ color: #FFF
599
+ font-weight: normal
600
+ padding: 3px 10px
601
+ a.toggle
602
+ display: block
603
+ width: 12px
604
+ height: 12px
605
+ text-indent: -9999px
606
+ &.first,
607
+ &:first-child
608
+ width: 30px
609
+ text-align: left
610
+ &.last
611
+ width: 200px
612
+ .checkbox
613
+ margin-left: 10px
614
+ tr
615
+ &:hover td
616
+ background: #ececec
617
+ &.selection td,
618
+ &.selection:hover td
619
+ background: #ffc
620
+ td
621
+ padding: 5px 10px
622
+ border-bottom: 1px solid #cfcfcf
623
+ color: #333
624
+ min-width: 80px
625
+ &.first,
626
+ &:first-child
627
+ min-width: 30px
628
+ width: 30px
629
+ &.last
630
+ text-align: right
631
+ a
632
+ padding: 0 5px
633
+ .railsadmin
634
+ .layout_scrolltop
635
+ bottom: 7px
636
+ right: 15px
637
+ width: 25px
638
+ height: 25px
639
+ background-image: url('/assets/common/ra_backtop.png')
640
+ .span4
641
+ width: 150px
642
+ .span3
643
+ width: 200px
644
+ .tablescroll
645
+ max-width: 100%
646
+ overflow-x: auto
647
+ .check_edit
648
+ margin-bottom: 5px
649
+ vertical-align: top
650
+ input[type=text],select
651
+ width: 90%
652
+ & > div
653
+ display: inline-block
654
+ vertical-align: top
655
+ .main .section
656
+ padding: 0px 20px 100px
657
+ h1
658
+ margin: 20px 0
659
+ .pagination
660
+ display: block
661
+ font-size: 12px
662
+ ul
663
+ li
664
+ display: block
665
+ list-style: none
666
+ float: left
667
+ a
668
+ display: block
669
+ padding: 0 5px
670
+ &:hover
671
+ text-decoration: underline
672
+ color: #000
673
+ &.active a
674
+ color: #000
675
+ background: #ececec
676
+ .ra_tools
677
+ position: fixed
678
+ left: 274px
679
+ right: 0
680
+ bottom: 0
681
+ height: 40px
682
+ min-width: 600px
683
+ background-color: #fff
684
+ // border-top: 1px solid #ccc
685
+ // box-shadow: 0 0 5px #000000
686
+ z-index: 99
687
+ .pagination
688
+ display: block
689
+ position: absolute
690
+ top: 11px
691
+ right: 36px
692
+ .fadeout
693
+ z-index: 99
694
+ display: block
695
+ display: none\9
696
+ position: fixed
697
+ left: 274px
698
+ right: 0
699
+ bottom: 40px
700
+ height: 40px
701
+ pointer-events: none
702
+ background: -moz-linear-gradient(center top , rgba(255, 255, 255, 0), #FFFFFF) repeat 0 0
703
+ background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255,1)))
704
+ .tools_box
705
+ border-top: 1px solid #ccc
706
+ height: 40px
707
+ margin: 0 15px
708
+ position: relative
709
+ text-align: left
710
+ .mlRange
711
+ display: inline-block
712
+ padding-top: 10px
713
+ white-space: nowrap
714
+ text-overflow: ellipsis
715
+ -o-text-overflow: ellipsis
716
+ overflow: hidden
717
+ text-align: left
718
+ max-width: 200px
719
+ font-size: 12px
720
+ color: #333
721
+ position: absolute
722
+ left: 125px
723
+ span
724
+ display: inline-block
725
+ padding: 2px 10px 2px 2px
726
+ font-size: 12px
727
+ color: #333
728
+ white-space: nowrap
729
+ text-overflow: ellipsis
730
+ -o-text-overflow: ellipsis
731
+ overflow: hidden
732
+ max-width: 200px
733
+ em
734
+ font-size: 12px
735
+ font-style: normal
736
+ padding: 0px 3px
737
+ color: #000
738
+ .manipulate
739
+ display: block
740
+ position: absolute
741
+ left: 0
742
+ *left: 100px
743
+ top: 5px
744
+ font-size: 0
745
+ z-index: 5
746
+ // background-color: #EFEFEF
747
+ a
748
+ display: inline-block
749
+ // padding: 2px 5px
750
+ // background: #333
751
+ // color: #333
752
+ margin-right: 1px
753
+ text-align: center
754
+ height: 25px
755
+ width: 26px
756
+ font-size: 0
757
+ text-indent: -99px
758
+ overflow: hidden
759
+ background-repeat: no-repeat
760
+ // background-color: rgba(0,0,0,0.2)
761
+ background-image: url('/assets/common/ra_tools.png')
762
+ &.tool_01
763
+ background-position: 3px 7px
764
+ &:hover
765
+ background-position: 3px -29px
766
+ &.tool_02
767
+ background-position: -24px 7px
768
+ &:hover
769
+ background-position: -24px -29px
770
+ &.tool_03
771
+ background-position: -50px 7px
772
+ &:hover
773
+ background-position: -50px -29px
774
+ &.tool_04
775
+ background-position: -77px 7px
776
+ &:hover
777
+ background-position: -77px -29px
778
+
779
+
780
+