bhf 0.4.2.2 → 0.4.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/app/controllers/bhf/application_controller.rb +2 -2
  2. data/app/controllers/bhf/embed_entries_controller.rb +8 -8
  3. data/app/controllers/bhf/entries_controller.rb +10 -10
  4. data/app/controllers/bhf/pages_controller.rb +2 -2
  5. data/app/helpers/bhf/application_helper.rb +3 -3
  6. data/app/helpers/bhf/entries_helper.rb +4 -4
  7. data/app/views/bhf/_user.haml +2 -2
  8. data/app/views/bhf/application/index.haml +1 -1
  9. data/app/views/bhf/entries/_form.haml +5 -5
  10. data/app/views/bhf/entries/_validation_errors.haml +1 -1
  11. data/app/views/bhf/entries/form/belongs_to/_account_scope.haml +1 -1
  12. data/app/views/bhf/entries/form/belongs_to/_radio.haml +1 -1
  13. data/app/views/bhf/entries/form/belongs_to/_select.haml +2 -2
  14. data/app/views/bhf/entries/form/belongs_to/_static.haml +1 -1
  15. data/app/views/bhf/entries/form/column/_array.haml +2 -2
  16. data/app/views/bhf/entries/form/column/_date.haml +1 -1
  17. data/app/views/bhf/entries/form/column/_file.haml +2 -2
  18. data/app/views/bhf/entries/form/column/_markdown.haml +2 -2
  19. data/app/views/bhf/entries/form/column/_multiple_fields.haml +1 -1
  20. data/app/views/bhf/entries/form/column/_number.haml +1 -1
  21. data/app/views/bhf/entries/form/column/_static.haml +1 -1
  22. data/app/views/bhf/entries/form/column/_wysiwyg.haml +1 -1
  23. data/app/views/bhf/entries/form/embeds_many/_static.haml +5 -5
  24. data/app/views/bhf/entries/form/embeds_one/_static.haml +5 -5
  25. data/app/views/bhf/entries/form/has_and_belongs_to_many/_account_scope.haml +1 -1
  26. data/app/views/bhf/entries/form/has_and_belongs_to_many/_static.haml +1 -1
  27. data/app/views/bhf/entries/form/has_many/_static.haml +4 -4
  28. data/app/views/bhf/entries/form/has_one/_account_scope.haml +1 -1
  29. data/app/views/bhf/entries/form/has_one/_static.haml +4 -4
  30. data/app/views/bhf/helper/_flash.haml +1 -1
  31. data/app/views/bhf/helper/_frontend_edit.haml +1 -1
  32. data/app/views/bhf/helper/_node.haml +3 -3
  33. data/app/views/bhf/helper/_reflection_node.haml +2 -2
  34. data/app/views/bhf/pages/_platform.haml +15 -15
  35. data/app/views/bhf/pages/_search.haml +7 -7
  36. data/app/views/bhf/pages/macro/belongs_to/_default.haml +1 -1
  37. data/app/views/bhf/pages/macro/column/_date.haml +1 -1
  38. data/app/views/bhf/pages/macro/column/_text.haml +1 -1
  39. data/app/views/bhf/pages/macro/embeds_many/_default.haml +1 -1
  40. data/app/views/bhf/pages/macro/embeds_one/_default.haml +1 -1
  41. data/app/views/bhf/pages/macro/has_and_belongs_to_many/_default.haml +1 -1
  42. data/app/views/bhf/pages/macro/has_many/_default.haml +1 -1
  43. data/app/views/bhf/pages/macro/has_one/_default.haml +1 -1
  44. data/app/views/bhf/pages/show.haml +1 -1
  45. data/app/views/kaminari/bhf/_next_page.html.haml +1 -1
  46. data/app/views/kaminari/bhf/_page.html.haml +1 -1
  47. data/app/views/kaminari/bhf/_prev_page.html.haml +1 -1
  48. data/app/views/layouts/bhf/application.haml +10 -11
  49. data/app/views/layouts/bhf/quick_edit.haml +2 -2
  50. data/config/routes.rb +6 -6
  51. data/lib/bhf/active_record/upload.rb +1 -1
  52. data/lib/bhf/form.rb +1 -1
  53. data/lib/bhf/i18n.rb +3 -3
  54. data/lib/bhf/mongoid/document.rb +2 -2
  55. data/lib/bhf/pagination.rb +14 -14
  56. data/lib/bhf/platform.rb +17 -17
  57. data/lib/bhf/view_helpers.rb +1 -1
  58. data/vendor/assets/images/bhf/ajax_loader.gif +0 -0
  59. data/vendor/assets/images/bhf/bg.png +0 -0
  60. data/vendor/assets/images/bhf/mooeditable-toolbarbuttons-tango.png +0 -0
  61. data/vendor/assets/images/bhf/pictos.png +0 -0
  62. data/vendor/assets/images/bhf/small_ajax_loader.gif +0 -0
  63. data/vendor/assets/images/bhf/small_ajax_loader_h.gif +0 -0
  64. data/vendor/assets/images/bhf/wmd-buttons.png +0 -0
  65. data/vendor/assets/images/logo_bhf.png +0 -0
  66. data/vendor/assets/javascripts/bhf/application.js +280 -0
  67. data/vendor/assets/javascripts/bhf/classes/AjaxEdit.js +104 -0
  68. data/vendor/assets/javascripts/bhf/classes/Ajaxify.js +63 -0
  69. data/vendor/assets/javascripts/bhf/classes/ArrayFields.js +25 -0
  70. data/vendor/assets/javascripts/bhf/classes/BrowserUpdate.js +185 -0
  71. data/vendor/assets/javascripts/bhf/classes/Datepicker.js +38 -0
  72. data/vendor/assets/javascripts/bhf/classes/MooEditable.js +1549 -0
  73. data/vendor/assets/javascripts/bhf/classes/MultipleFields.js +50 -0
  74. data/vendor/assets/javascripts/bhf_includes/wmd.js +1 -1
  75. data/vendor/assets/stylesheets/bhf/MooEditable.css.scss +176 -0
  76. data/vendor/assets/stylesheets/bhf/application.css.sass +1067 -0
  77. data/vendor/assets/stylesheets/bhf/functions.css.sass +137 -0
  78. data/vendor/assets/stylesheets/bhf/reset.css.sass +32 -0
  79. data/vendor/assets/stylesheets/bhf/typo.css.scss +62 -0
  80. metadata +24 -3
@@ -0,0 +1,50 @@
1
+ var MultipleFields = new Class({
2
+ version: 0.1,
3
+
4
+ options: {
5
+ spliter: ';'
6
+ },
7
+
8
+ // Implements: [Options, Events],
9
+
10
+ initialize: function(_object, _options) {
11
+ if ( ! _object) { return; }
12
+ // this.setOptions(_options);
13
+ if (_object.get('data-spliter')) {
14
+ this.options.spliter = _object.get('data-spliter');
15
+ }
16
+
17
+ var elem = _object;
18
+ var template = elem.clone()
19
+ .erase('name').erase('id').erase('data-spliter').erase('value')
20
+ .addClass('template');
21
+
22
+ elem.set('type', 'hidden');
23
+
24
+ new Element('span.add_field', {text: '+'})
25
+ .inject(elem, 'after')
26
+ .addEvent('click', function(e){
27
+ this.addField(elem, template);
28
+ }.bind(this));
29
+
30
+ elem.get('value').toString().split(this.options.spliter).each(function(data){
31
+ this.addField(elem, template, data);
32
+ }.bind(this));
33
+ },
34
+
35
+ addField: function(elem, template, data){
36
+ template
37
+ .clone()
38
+ .set('value', data)
39
+ .addEvent('change', function(e){
40
+ var values = [];
41
+ e.target.getParent('.input').getElements('.template').each(function(template){
42
+ if (template.value.trim()) {
43
+ values.push(template.value.trim());
44
+ }
45
+ });
46
+ elem.set('value', values.join(this.options.spliter));
47
+ }.bind(this))
48
+ .inject(elem.getParent('.input').getElement('.add_field'), 'before');
49
+ }
50
+ });
@@ -37,7 +37,7 @@ Attacklab.wmdBase = function(){
37
37
 
38
38
  // The text that appears on the upper part of the dialog box when
39
39
  // entering links.
40
- var imageDialogText = "<p style='margin-top: 0px'><b>Enter the image URL.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/images/cloud1.jpg \"Optional title\"</p>";
40
+ var imageDialogText = "<p style='margin-top: 0px'><b>Enter the image URL.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.comcloud1.jpg \"Optional title\"</p>";
41
41
  var linkDialogText = "<p style='margin-top: 0px'><b>Enter the web address.</b></p><p>You can also add a title, which will be displayed as a tool tip.</p><p>Example:<br />http://wmd-editor.com/ \"Optional title\"</p>";
42
42
 
43
43
  // The default text that appears in the dialog input box when entering
@@ -0,0 +1,176 @@
1
+ .mooeditable-container{
2
+ position: relative;
3
+ border: 2px solid #ddd;
4
+ }
5
+
6
+ .mooeditable-ui-toolbar{
7
+ color: inherit;
8
+ background-color: #eee;
9
+ padding: 2px;
10
+ }
11
+
12
+ .mooeditable-ui-toolbar:after{
13
+ content: ".";
14
+ display: block;
15
+ height: 0;
16
+ clear: both;
17
+ visibility: hidden;
18
+ }
19
+
20
+ .mooeditable-ui-toolbar .toolbar-item,
21
+ .mooeditable-ui-toolbar .toolbar-separator{
22
+ display: -moz-inline-box;
23
+ display: inline-block;
24
+ vertical-align: middle;
25
+ }
26
+
27
+ .mooeditable-ui-toolbar .mooeditable-ui-button{
28
+ cursor: pointer;
29
+ border: 0;
30
+ width: auto;
31
+ height: auto;
32
+ margin: 2px;
33
+ padding: 2px;
34
+ vertical-align: middle;
35
+ color: inherit;
36
+ background-color: transparent;
37
+ }
38
+ * html .mooeditable-ui-toolbar .mooeditable-ui-button{ /* IE6 */
39
+ width: 24px;
40
+ overflow: visible;
41
+ padding: 2px 4px;
42
+ }
43
+
44
+ .mooeditable-ui-toolbar .mooeditable-ui-button.active,
45
+ .mooeditable-ui-toolbar .mooeditable-ui-button.onActive{
46
+ color: inherit;
47
+ background-color: #ddd;
48
+ }
49
+
50
+ .mooeditable-ui-toolbar .mooeditable-ui-button:hover,
51
+ .mooeditable-ui-toolbar .mooeditable-ui-button.hover{
52
+ color: inherit;
53
+ background-color: #fff;
54
+ }
55
+
56
+ .mooeditable-ui-toolbar .mooeditable-ui-button.disabled{
57
+ cursor: default;
58
+ }
59
+
60
+ .mooeditable-ui-toolbar .mooeditable-ui-button.disabled:hover{
61
+ color: inherit;
62
+ background-color: transparent;
63
+ }
64
+
65
+ .mooeditable-ui-toolbar .mooeditable-ui-button .button-icon{
66
+ display: -moz-inline-box;
67
+ display: inline-block;
68
+ width: 16px;
69
+ height: 16px;
70
+ vertical-align: middle;
71
+ color: inherit;
72
+ background: transparent url(mooeditable-toolbarbuttons-tango.png) no-repeat 0 -8px;
73
+ }
74
+
75
+ .mooeditable-ui-toolbar .mooeditable-ui-button .button-text{
76
+ display: none;
77
+ font-size: 13px;
78
+ vertical-align: middle;
79
+ }
80
+
81
+ .mooeditable-ui-toolbar .mooeditable-ui-button-text .button-icon{
82
+ display: none;
83
+ }
84
+ .mooeditable-ui-toolbar .mooeditable-ui-button-text .button-text{
85
+ display: inline;
86
+ }
87
+
88
+ .mooeditable-ui-toolbar .mooeditable-ui-button-icon-text{
89
+ width: auto;
90
+ }
91
+ .mooeditable-ui-toolbar .mooeditable-ui-button-icon-text .button-text{
92
+ display: inline;
93
+ margin-left: 4px;
94
+ }
95
+
96
+ .mooeditable-ui-toolbar .toolbar-separator{
97
+ width: 1px;
98
+ height: 24px;
99
+ margin: 2px;
100
+ text-indent: -999em;
101
+ color: inherit;
102
+ background-color: #fafafa;
103
+ }
104
+
105
+ .mooeditable-ui-toolbar .bold-item .button-icon{ background-position: 0 0; }
106
+ .mooeditable-ui-toolbar .createlink-item .button-icon{ background-position: 0 -16px; }
107
+ .mooeditable-ui-toolbar .indent-item .button-icon{ background-position: 0 -32px; }
108
+ .mooeditable-ui-toolbar .insertorderedlist-item .button-icon{ background-position: 0 -48px; }
109
+ .mooeditable-ui-toolbar .insertunorderedlist-item .button-icon{ background-position: 0 -64px; }
110
+ .mooeditable-ui-toolbar .italic-item .button-icon{ background-position: 0 -80px; }
111
+ .mooeditable-ui-toolbar .outdent-item .button-icon{ background-position: 0 -96px; }
112
+ .mooeditable-ui-toolbar .redo-item .button-icon{ background-position: 0 -112px; }
113
+ .mooeditable-ui-toolbar .strikethrough-item .button-icon{ background-position: 0 -128px; }
114
+ .mooeditable-ui-toolbar .toggleview-item .button-icon{ background-position: 0 -144px; }
115
+ .mooeditable-ui-toolbar .underline-item .button-icon{ background-position: 0 -160px; }
116
+ .mooeditable-ui-toolbar .undo-item .button-icon{ background-position: 0 -176px; }
117
+ .mooeditable-ui-toolbar .unlink-item .button-icon{ background-position: 0 -192px; }
118
+ .mooeditable-ui-toolbar .urlimage-item .button-icon{ background-position: 0 -208px; }
119
+
120
+ .mooeditable-iframe{
121
+ margin: 0;
122
+ padding: 0;
123
+ border: 0;
124
+ width: 100%;
125
+ vertical-align: top;
126
+ }
127
+
128
+ .mooeditable-textarea{
129
+ margin: 0 !important;
130
+ padding: 0 !important;
131
+ border: 0 !important;
132
+ width: 100% !important;
133
+ resize: none !important; /* disable resizable textareas in Webkit */
134
+ outline: 0 !important; /* disable focus ring in Safari */
135
+ }
136
+
137
+ .mooeditable-ui-dialog{
138
+ color: inherit;
139
+ background-color: #ddd;
140
+ position: absolute;
141
+ display: block;
142
+ cursor: default;
143
+ font-size: 12px;
144
+ z-index: 100;
145
+ width: 100%;
146
+ }
147
+
148
+ .mooeditable-ui-dialog .dialog-content{
149
+ padding: 4px 10px;
150
+ }
151
+
152
+ .mooeditable-ui-dialog .dialog-content *{
153
+ vertical-align: middle;
154
+ }
155
+
156
+ .mooeditable-ui-dialog input{
157
+ margin: 0 8px;
158
+ }
159
+
160
+ .mooeditable-ui-dialog input.text{
161
+ width: 300px;
162
+ }
163
+
164
+ .mooeditable-ui-button-overlay{
165
+ color: inherit;
166
+ background-color: #ddd;
167
+ font-size: 12px;
168
+ z-index: 100;
169
+ outline: 0;
170
+ -moz-outline: 0;
171
+ -webkit-outline: 0;
172
+ }
173
+
174
+ .mooeditable-ui-button-overlay .overlay-content{
175
+ padding: 10px;
176
+ }
@@ -0,0 +1,1067 @@
1
+ // sass --watch public/stylesheets/sass/bhf.sass:public/stylesheets/bhf.css --style compressed
2
+
3
+ @import reset
4
+ @import typo
5
+ @import functions
6
+
7
+ $w1: #fff
8
+ $w2: #F1F1F1
9
+ $k1: #000
10
+ $b1: #38A5E9
11
+ $b2: #0F8FDD
12
+ $g1: #7F7F7F
13
+ $g2: #ccc
14
+ $g3: #424242
15
+
16
+ html
17
+ min-width: 700px
18
+ height: 100%
19
+ overflow-y: scroll
20
+ background: url(bhf/small_ajax_loader.gif) no-repeat -300px -300px, url(bhf/small_ajax_loader_h.gif) no-repeat -300px -300px, #303030 url(bhf/bg.png)
21
+
22
+
23
+ body
24
+ min-width: 960px
25
+ min-height: 100%
26
+ +box-inner-shadow(0, 0, 8,#000)
27
+
28
+ a
29
+ text-decoration: none
30
+ color: inherit
31
+ &:focus,
32
+ &:active
33
+ outline: 0
34
+
35
+ header
36
+ display: block
37
+ overflow: hidden
38
+ clear: both
39
+ padding: 0 20px
40
+ h1
41
+ float: right
42
+ height: 83px
43
+ overflow: hidden
44
+ nav
45
+ padding-top: 25px
46
+ li
47
+ float: left
48
+ font-weight: bold
49
+ margin-right: 20px
50
+ &.active
51
+ a
52
+ +text-shadow(#fff, -1)
53
+ +bg-gradient(#D5D5D5, #FFFFFF)
54
+ +box-shadow(0, 1, 4)
55
+ color: #414756
56
+ &:hover
57
+ +bg-gradient(#FFFFFF, #D5D5D5)
58
+ border-color: #FFFFFF
59
+ +text-shadow(#fff)
60
+ color: #414756
61
+ +box-inner-shadow(0, 0, 3, #fff)
62
+ a
63
+ text-decoration: none
64
+ display: block
65
+ padding: 5px 23px
66
+ border: 1px solid transparent
67
+ color: #EAEAEA
68
+ +text-shadow(#000, -1)
69
+ &:hover
70
+ +bg-gradient($b1, $b2)
71
+ color: $w1
72
+ border-color: $b1
73
+ +box-shadow(0, 1, 4)
74
+ +text-shadow(#0068B3)
75
+ &:active
76
+ +bg-gradient($b2, $b1)
77
+ +text-shadow(#0068B3, -1)
78
+
79
+
80
+ #content
81
+ display: table
82
+ width: 100%
83
+ box-sizing: border-box
84
+ margin-top: -20px
85
+ border-spacing: 20px
86
+ h2,
87
+ h3
88
+ +text-shadow(#fff)
89
+ h6
90
+ color: $g3
91
+ +text-shadow(#fff)
92
+
93
+ .quick_edit_holder,
94
+ #main
95
+ display: table-cell
96
+ overflow: hidden
97
+ background: #EAEAEA
98
+ border: 3px solid #FFFFFF
99
+ box-sizing: border-box
100
+ padding: 10px 20px
101
+ +box-shadow(0, 1, 4, rgba($k1, 0.5))
102
+
103
+ #main_form
104
+ // TODO: wtf css?
105
+ margin-left: -20px
106
+
107
+
108
+
109
+ #content
110
+ .quick_edit_holder
111
+ +transition-duration(0.3)
112
+ +transition-delay(0.2)
113
+ overflow-x: auto
114
+ position: relative
115
+ max-width: 400px
116
+ width: 400px
117
+ vertical-align: top
118
+ form
119
+ margin-left: 0
120
+ padding-bottom: 10px
121
+ .node,
122
+ .input,
123
+ .label
124
+ display: block
125
+ .input
126
+ padding-top: 0
127
+ min-height: 31px
128
+
129
+ textarea
130
+ width: 300px
131
+ height: 100px
132
+
133
+ .group
134
+ padding: 0
135
+ &:active
136
+ .save
137
+ border-right: 1px solid rgba(#fff, 0.4)
138
+ .save_and_next
139
+ border-left: 1px solid $b2
140
+
141
+ button
142
+ border: none
143
+ background: none
144
+ color: inherit
145
+ font: inherit
146
+ text-shadow: inherit
147
+ margin: 0
148
+ float: left
149
+ cursor: pointer
150
+ padding: 6px 20px
151
+ &:focus
152
+ outline: 0
153
+ &.save
154
+ border-right: 1px solid $b2
155
+ &.create
156
+ border-right: none
157
+ &:focus
158
+ color: $b2
159
+ text-shadow: 0 0px 3px #fff
160
+ &.save_and_next
161
+ border-left: 1px solid rgba(#fff, 0.3)
162
+ text-indent: -9999px
163
+ background: url(bhf/pictos.png) no-repeat -140px -40px
164
+ width: 40px
165
+ &:focus,
166
+ &:hover
167
+ background-position: -140px -90px
168
+
169
+
170
+ > button
171
+ //
172
+ &.save,
173
+ &.save_and_next
174
+ margin-left: -6px
175
+ padding: 6px 25px
176
+ font-size: 13px
177
+
178
+ &.cancel,
179
+ &.open
180
+ float: right
181
+ margin-top: 0
182
+ &.cancel
183
+ margin-right: -10px
184
+ &.open
185
+ margin-right: 10px
186
+ &.save
187
+ margin-right: 16px
188
+
189
+ table
190
+ margin-top: 20px
191
+ margin-bottom: 40px
192
+ width: 100%
193
+ caption
194
+ overflow: hidden
195
+ height: 28px
196
+ -moz-box-sizing: content-box
197
+ padding: 10px 10px 10px 20px
198
+ +border-top-radius(4)
199
+ +box-shadow(0, 1, 4, #ccc)
200
+ background: -webkit-gradient(linear, left top, left bottom, from(#CCCCCC), color-stop(50%, #CCCCCC), color-stop(51%, #DCDCDC), to(#DCDCDC))
201
+ background-size: 0 2px
202
+ text-align: left
203
+ h4,
204
+ .info
205
+ display: inline-block
206
+ +text-shadow(#fff)
207
+ padding-bottom: 20px
208
+ h4
209
+ color: #3E3E3E
210
+ .info
211
+ margin: 0 20px 0 10px
212
+ width: 290px
213
+ text-transform: uppercase
214
+ font-size: 12px
215
+ color: $g1
216
+ white-space: nowrap
217
+ form
218
+ display: inline-block
219
+ .create
220
+ float: right
221
+
222
+ td:first-child
223
+ padding-left: 17px
224
+ th:first-child
225
+ padding-left: 20px
226
+
227
+ td,
228
+ th
229
+ &:first-child
230
+ +border-left-radius(4)
231
+ &:last-child
232
+ +border-right-radius(4)
233
+ thead
234
+ th
235
+ padding: 4px 0
236
+ padding-left: 3px
237
+ text-align: left
238
+ border-top: 1px solid #C6C6C6
239
+ border-bottom: 1px solid #1B1B1B
240
+ white-space: nowrap
241
+ background: #3E3E3E
242
+ +text-shadow(#000, -1)
243
+ color: #C2C2C2
244
+ &.primary_key
245
+ text-transform: uppercase
246
+ &.sorted
247
+ +box-inner-shadow(0, -15, 50, #000)
248
+ & a:after,
249
+ &.desc:hover a:after
250
+ content: ' ▼'
251
+ &:hover a:after,
252
+ &.desc a:after
253
+ content: ' ▲'
254
+ a
255
+ color: #FFFFFF
256
+ +text-shadow
257
+
258
+ th,
259
+ td
260
+ &.drag
261
+ padding-left: 0px
262
+
263
+ tbody
264
+ td
265
+ border-top: 1px solid #FFFFFF
266
+ border-bottom: 1px solid #C6C6C6
267
+ &.has_many,
268
+ &.has_and_belongs_to_many,
269
+ &.text
270
+ max-width: 200px
271
+ white-space: nowrap
272
+ overflow: hidden
273
+ a
274
+ -webkit-mask-image: -webkit-gradient(linear, left top, right top, color-stop(70%,rgba($k1,1)), color-stop(95%,rgba($w1,0)))
275
+
276
+ &.no_entries
277
+ text-align: center
278
+ text-transform: uppercase
279
+ padding: 10px 0
280
+ color: $g1
281
+ a
282
+ font-weight: bold
283
+ display: inline
284
+
285
+ a
286
+ display: block
287
+ padding: 5px 3px
288
+ &.edit,
289
+ &.delete
290
+ padding: 0
291
+ margin-right: 5px
292
+ display: inline-block
293
+ text-indent: -9999px
294
+ width: 20px
295
+ height: 20px
296
+ background: url(bhf/pictos.png) no-repeat
297
+ &.clicked
298
+ background: url(bhf/small_ajax_loader.gif) no-repeat center center
299
+ &.edit
300
+ &:active
301
+ background-position: 0 -101px
302
+ &.delete
303
+ background-position: -50px 0
304
+ &:active
305
+ background-position: -50px -101px
306
+
307
+ .handle
308
+ background: url(bhf/pictos.png) no-repeat -94px 0
309
+ cursor: move
310
+ display: block
311
+
312
+
313
+ tr
314
+ &:hover td,
315
+ &.live_edit td
316
+ +bg-gradient($b1, $b2)
317
+ color: $w1
318
+ box-shadow: inset 0 1px 0 $b2, inset 0 2px 0 rgba(#fff, 0.4)
319
+ border-color: #EAEAEA
320
+ .edit
321
+ background-position: 0 -50px
322
+ &:hover
323
+ background-position: 0 -100px
324
+ .delete
325
+ background-position: -50px -50px
326
+ &:hover
327
+ background-position: -50px -100px
328
+ .handle
329
+ background-position: -94px -50px
330
+ &:hover
331
+ background-position: -94px -100px
332
+ .edit,
333
+ .delete
334
+ &.clicked
335
+ background: url(bhf/small_ajax_loader_h.gif) no-repeat center center
336
+ &.live_edit td
337
+ +bg-gradient($b2, $b1)
338
+ box-shadow: inset 0 -1px 0 $b2, inset 0 -2px 0 rgba(#fff, 0.4)
339
+ &.dragged
340
+ td
341
+ opacity: 0.4
342
+ background-color: gray
343
+
344
+ thead
345
+ th.drag
346
+ width: 24px
347
+
348
+ tfoot
349
+ td
350
+ padding-top: 10px
351
+ border-top: 1px solid #FFFFFF
352
+
353
+ thead,
354
+ tbody
355
+ .primary_key,
356
+ .number
357
+ padding-right: 10px
358
+ text-align: right
359
+ .primary_key
360
+ padding-left: 10px
361
+ width: 30px
362
+ .action
363
+ width: 54px
364
+
365
+
366
+ .default_input
367
+ border: 1px solid #BBB
368
+ background: #FFF
369
+ +border-radius(2)
370
+ +box-shadow(0, 1, 0, #FFFFFF)
371
+ padding: 5px 5px 4px 5px
372
+ width: 300px
373
+ line-height: 10px
374
+ &:focus
375
+ outline: 0
376
+ +transition-duration(1)
377
+ box-shadow: 0 1px 12px $b2
378
+ -moz-box-shadow: 0 1px 12px $b2
379
+ border-color: $b2
380
+
381
+ .search
382
+ input[type="text"]
383
+ @extend .default_input
384
+ width: 200px
385
+
386
+ form
387
+ .node
388
+ display: table-row
389
+ &.string,
390
+ &.number,
391
+ &.text,
392
+ &.password
393
+ .input,
394
+ .label
395
+ padding-top: 0
396
+ .label
397
+ label
398
+ padding-top: 5px
399
+ .label
400
+ p,
401
+ label
402
+ display: block
403
+ color: $g3
404
+ +text-shadow(#fff)
405
+ width: 200px
406
+ .field_with_errors
407
+ color: red
408
+ &.primary_key
409
+ .label
410
+ text-transform: uppercase
411
+ .input,
412
+ .label
413
+ padding-top: 5px
414
+ vertical-align: top
415
+ display: table-cell
416
+ .input
417
+ input[type="password"],
418
+ input[type="text"],
419
+ .uploaded_image,
420
+ .uploaded_file,
421
+ textarea
422
+ @extend .default_input
423
+ textarea
424
+ width: 500px
425
+ height: 200px
426
+ line-height: 20px
427
+ &.wysiwyg
428
+ height: 400px
429
+ .errors
430
+ color: red
431
+ .field_with_errors
432
+ input
433
+ border-color: red
434
+ [disabled]
435
+ background: $g2 !important
436
+ input[type="submit"],
437
+ input[type="password"],
438
+ input[type="text"],
439
+ select,
440
+ textarea,
441
+ .uploaded_image,
442
+ .uploaded_file,
443
+ .mooeditable-container
444
+ margin-left: -6px
445
+ input[type="file"]
446
+ margin-left: -5px
447
+ select
448
+ font-size: 16px
449
+ .multiple_fields.template,
450
+ .array_fields
451
+ display: block
452
+ .add_field
453
+ display: block
454
+ font-size: 20px
455
+ font-weight: bold
456
+ width: 30px
457
+ margin-left: -8px
458
+ cursor: pointer
459
+ text-align: center
460
+ color: $k1 !important
461
+ text-decoration: none !important
462
+ &:hover
463
+ color: $b1 !important
464
+ .uploaded_file,
465
+ .uploaded_image
466
+ padding: 2px
467
+ width: auto
468
+ max-width: 400px
469
+ max-height: 200px
470
+ margin-bottom: 5px
471
+ display: block
472
+ .warning
473
+ font-weight: bold
474
+ .quick_edit
475
+ text-decoration: underline
476
+ color: $b2
477
+
478
+ .uploaded_file
479
+ padding: 7px 5px 8px 7px
480
+ background: #999
481
+ color: #fff
482
+ &:hover
483
+ background: #fff
484
+ color: $b1
485
+ .relation
486
+ li
487
+ &:hover
488
+ .delete
489
+ opacity: 1
490
+ +transition-duration(0.5)
491
+ .delete
492
+ opacity: 0
493
+ &:hover
494
+ color: $b1
495
+
496
+ .cancel
497
+ margin-left: 20px
498
+ color: $g1
499
+ &:hover
500
+ color: $g3
501
+ text-decoration: underline
502
+ .info
503
+ font-style: italic
504
+ font-size: 12px
505
+ color: $g3
506
+ +text-shadow(#fff)
507
+
508
+ .error_explanation
509
+ margin-left: 20px
510
+ label
511
+ color: red
512
+ cursor: pointer
513
+ display: block
514
+ &:hover
515
+ color: #ff9900
516
+
517
+
518
+ footer
519
+ padding-bottom: 20px
520
+ +text-shadow(#000, -1)
521
+ text-align: center
522
+ color: gray
523
+ font-size: 12px
524
+ line-height: 20px
525
+ a
526
+ text-decoration: none
527
+ &:hover
528
+ text-decoration: underline
529
+
530
+
531
+ input[type="submit"],
532
+ .button
533
+ cursor: pointer
534
+ display: inline-block
535
+ padding: 6px 20px
536
+ border: 1px solid $b2
537
+ margin: 20px 0 0
538
+ background: $b1
539
+ color: #fff
540
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4)
541
+ font-weight: bold
542
+ font-size: 18px
543
+ text-decoration: none
544
+ +border-radius(5)
545
+ -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.5), inset 0 12px rgba(255, 255, 255, 0.2), inset 0 10px 20px rgba(255, 255, 255, 0.25), inset 0 -12px 25px rgba(0, 0, 0, 0.3)
546
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.5), inset 0 18px 5px rgba(255, 255, 255, 0.2), inset 0 10px 10px rgba(255, 255, 255, 0.25), inset 0 -12px 25px rgba(0, 0, 0, 0.3)
547
+ +transition-duration(0.3)
548
+ +transition-property(background)
549
+ &:hover
550
+ background: $b2
551
+ &:focus,
552
+ &:active
553
+ outline: 0
554
+ background: $b2
555
+ text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4)
556
+ box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.4), inset 0 -1px rgba(255, 255, 255, 0.5), inset 0 -18px rgba(255, 255, 255, 0.1), inset 0 -10px 10px rgba(255, 255, 255, 0.25), inset 0 -12px 25px rgba(0, 0, 0, 0.3)
557
+
558
+
559
+
560
+ input[type="submit"].alt_button,
561
+ .alt_button
562
+ display: inline-block
563
+ padding: 12px 50px
564
+ +border-radius(4)
565
+ text-decoration: none
566
+ border: 1px solid gray
567
+ font-size: 13px
568
+ cursor: pointer
569
+ background: #666
570
+ padding: 5px 10px
571
+ box-shadow: inset 0 1px 0 rgba(#AAABAA, 0.7), inset 0 -10px 20px rgba(#333, 0.6)
572
+ color: $w1
573
+ +text-shadow(#444, -1)
574
+ &:hover
575
+ border-color: $b2
576
+ box-shadow: inset 0 1px 0 rgba(#fff, 0.4), inset 0 -10px 20px rgba(#333, 0.4)
577
+ background: $b1
578
+ &:active
579
+ box-shadow: inset 0 -1px 0 rgba(#fff, 0.4), inset 0 10px 20px rgba(#333, 0.4)
580
+ +text-shadow(#444)
581
+ &:focus
582
+ outline: 0
583
+ +transition-duration(1)
584
+ +transition-property(box-shadow)
585
+ box-shadow: 0 1px 12px $b2
586
+
587
+ #flash_massages
588
+ display: block
589
+ padding: 5px 20px
590
+ margin: -45px 0 10px 0
591
+ border: 1px solid $b1
592
+ +bg-gradient($b1, $b2)
593
+ color: $w1
594
+ +text-shadow(#0068B3)
595
+ overflow: hidden
596
+ height: 100%
597
+ +transition-duration(0.6)
598
+ +transition-delay
599
+ opacity: 0
600
+ &.show
601
+ opacity: 1
602
+ margin-top: 0px
603
+
604
+
605
+ .pagination
606
+ a, span, em
607
+ @extend .alt_button
608
+
609
+ span
610
+ color: gray
611
+ cursor: default
612
+ &:hover
613
+ background: #666
614
+ border-color: #999
615
+
616
+ .page_number
617
+ background: transparent
618
+ color: #3E3E3E
619
+ border-color: #B7B7B7
620
+ +text-shadow(#fff)
621
+ box-shadow: inset 0 1px 0 rgba(#fff, 0.4), inset 0 -10px 10px rgba(#333, 0.1)
622
+ &:hover
623
+ color: #fff
624
+ +text-shadow(#999)
625
+
626
+ em
627
+ font-style: normal
628
+ font-weight: bold
629
+ cursor: default
630
+ background: #B1B1B1
631
+
632
+ .basic_info_list
633
+ font-size: 20px
634
+ font-weight: bold
635
+ line-height: 40px
636
+ color: $g3
637
+ +text-shadow(#fff)
638
+ li
639
+ padding-left: 10px
640
+ border-top: 1px solid $g2
641
+ +transition-duration
642
+ &:first-child
643
+ border: none
644
+ &:hover
645
+ +transition-duration(0)
646
+ color: $b2
647
+ a
648
+ +transition-duration(0)
649
+ &:hover,
650
+ &:hover + li
651
+ border-color: $b1
652
+ a
653
+ +transition-duration
654
+ display: block
655
+
656
+ @media (max-width: 800px)
657
+
658
+
659
+ @media (max-width: 960px)
660
+ .default_columns
661
+ thead th:nth-last-child(2),
662
+ tbody td:nth-last-child(2),
663
+ thead th:nth-last-child(3),
664
+ tbody td:nth-last-child(3)
665
+ display: none
666
+
667
+
668
+ // MooEditable
669
+
670
+ @import MooEditable
671
+
672
+ .mooeditable-container
673
+ @extend .default_input
674
+ background: white
675
+ border: 1px solid #BBB
676
+ .toolbar-separator
677
+ background: $g2
678
+ .mooeditable-ui-toolbar
679
+ +border-radius(2)
680
+ margin-top: 2px
681
+ button
682
+ background: white !important
683
+ padding: 2px 4px 4px 4px !important
684
+ box-shadow: none
685
+ &:hover
686
+ background: $g2 !important
687
+
688
+
689
+ // Datepicker TODO: style div.datepicker
690
+
691
+ .datepicker
692
+ position: absolute
693
+ width: 172px
694
+ padding: 5px 10px
695
+ background: #E5E5E5
696
+ border: 1px solid #C1C2DC
697
+ +box-inner-shadow(0, 1, 0, #fff)
698
+ +border-radius(2)
699
+ +text-shadow(#fff)
700
+ color: #535b6f
701
+ .header
702
+ position: relative
703
+ margin-bottom: 5px
704
+ padding-bottom: 5px
705
+ border-bottom: 1px solid #C1C2DC
706
+ +box-shadow(0, 1, 0, #fff)
707
+ .title
708
+ padding-top: 3px
709
+ text-align: center
710
+ margin: 0 18px 0 18px
711
+ .previous, .next, .closeButton
712
+ position: absolute
713
+ cursor: pointer
714
+ overflow: hidden
715
+ width: 12px
716
+ top: 2px
717
+ font-weight: bold
718
+ &:hover
719
+ color: #2F4D7B
720
+ .previous
721
+ left: 4px
722
+ .next
723
+ right: 4px
724
+ .closeButton
725
+ display: none
726
+ right: 0px
727
+ top: 0px
728
+ .titles
729
+ font-weight: bold
730
+ font-size: 12px
731
+ .title.day
732
+ color: #535b6f
733
+ .body
734
+ position: relative
735
+ top: 0px
736
+ width: 170px
737
+ height: 156px
738
+ overflow: hidden
739
+ > div
740
+ margin-top: 2px
741
+ margin-left: 2px
742
+
743
+ .time
744
+ position: relative
745
+ width: 100%
746
+ height: 100%
747
+ .hour, .separator, .minutes
748
+ color: #535B6F
749
+ background: #fff
750
+ width: 50px
751
+ font-size: 32px
752
+ position: absolute
753
+ top: 10px
754
+ text-align: center
755
+ padding: 2px
756
+ .hour,
757
+ .minutes
758
+ +box-shadow(0, 0, 1, #2F4D7B)
759
+ +text-shadow(#ccc)
760
+ margin-top: 8px
761
+ border: none
762
+ left: 15px
763
+ .separator
764
+ background: transparent
765
+ border: 0px
766
+ width: 10px
767
+ left: 76px
768
+ .minutes
769
+ left: 95px
770
+ .ok
771
+ +box-shadow(0, 0, 1, #2F4D7B)
772
+ +text-shadow(#ccc)
773
+ color: #535B6F
774
+ background: #fff
775
+ position: absolute
776
+ border: none
777
+ cursor: pointer
778
+ top: 73px
779
+ left: 15px
780
+ width: 134px
781
+ padding: 4px 0
782
+ font-size: 16px
783
+ &:hover,
784
+ &:focus,
785
+ &:active
786
+ background-color: #2F4D7B
787
+ color: #fff
788
+ +text-shadow(#000)
789
+ +box-shadow(0, 0, 1, #fff)
790
+ .days
791
+ .day
792
+ float: left
793
+ text-align: center
794
+ overflow: hidden
795
+ width: 23px
796
+ margin: 0 1px 1px 0
797
+ color: #262626
798
+ .day0
799
+ margin-right: 0
800
+ .week5 .day
801
+ margin-bottom: 0
802
+ .week .day
803
+ cursor: pointer
804
+ &:hover
805
+ +box-shadow(0, 0, 1, #2F4D7B)
806
+ background-color: #fff
807
+ color: #2F4D7B
808
+ +text-shadow(#ccc)
809
+
810
+ .otherMonth
811
+ color: #aaa
812
+ .selected
813
+ background-color: #2F4D7B
814
+ color: #fff
815
+ +text-shadow(#000)
816
+ +box-shadow(0, 0, 1, #fff)
817
+ .months
818
+ .month
819
+ float: left
820
+ cursor: pointer
821
+ text-align: center
822
+ margin-top: 2px
823
+ padding-top: 3px
824
+ padding-bottom: 3px
825
+ width: 55px
826
+ overflow: hidden
827
+ margin: 0 1px 1px 0
828
+ .month3, .month6, .month9, .month12
829
+ margin-right: 0
830
+ .month10, .month11, .month12
831
+ margin-bottom: 0
832
+ .month:hover
833
+ +box-shadow(0, 0, 1, #2F4D7B)
834
+ background-color: #fff
835
+ color: #2F4D7B
836
+ +text-shadow(#ccc)
837
+ .selected
838
+ background-color: #2F4D7B
839
+ color: #fff
840
+ +text-shadow(#000)
841
+ +box-shadow(0, 0, 1, #fff)
842
+ .years
843
+ .year
844
+ float: left
845
+ cursor: pointer
846
+ text-align: center
847
+ margin-top: 2px
848
+ padding-top: 3px
849
+ padding-bottom: 3px
850
+ width: 32px
851
+ font-size: 12px
852
+ overflow: hidden
853
+ margin: 0 1px 1px 0
854
+ .year4, .year9, .year14, .year19
855
+ margin-right: 0
856
+ .year15, .year16, .year17, .year18, .year19
857
+ margin-bottom: 0
858
+ .year:hover
859
+ +box-shadow(0, 0, 1, #2F4D7B)
860
+ background-color: #fff
861
+ color: #2F4D7B
862
+ +text-shadow(#ccc)
863
+ .selected
864
+ background-color: #2F4D7B
865
+ color: #fff
866
+ +text-shadow(#000)
867
+ +box-shadow(0, 0, 1, #fff)
868
+ .unavailable
869
+ background: none !important
870
+ color: #fbb !important
871
+ cursor: default !important
872
+
873
+ .hide
874
+ display: none !important
875
+
876
+
877
+ #ajax_holder
878
+ text-indent: -9999px
879
+ height: 60px
880
+ opacity: 0
881
+ width: 120px
882
+ margin-left: -60px
883
+ position: fixed
884
+ top: -50px
885
+ left: 50%
886
+ z-index: 4000
887
+ +border-bottom-radius(4)
888
+ background: url(bhf/ajax_loader.gif) no-repeat center 16px, -webkit-gradient(linear, left top, left bottom, from($b1), to($b2))
889
+ border: 1px solid $b1
890
+ +box-shadow(0, 1, 4)
891
+ +transition-duration(0.6)
892
+ &.loading
893
+ height: 100px
894
+ opacity: 1
895
+ top: -4px
896
+
897
+
898
+
899
+
900
+ #wmd-button-bar
901
+ width: 100%
902
+ background: $w1
903
+ padding: 0 10px 4px 0
904
+ margin: 0 -6px 4px -6px
905
+ @extend .default_input
906
+ #wmd-input
907
+ height: 400px
908
+ width: 100%
909
+
910
+ #wmd-preview,
911
+ #wmd-output
912
+ @extend .default_input
913
+ margin: 0 -6px 0 -6px
914
+ background-color: #F5F5F5
915
+ padding: 3px 5px
916
+ margin-bottom: 10px
917
+ line-height: 22px
918
+
919
+ .wmd-panel
920
+ width: 700px !important
921
+
922
+ #wmd-preview
923
+ img
924
+ display: block
925
+ ul,
926
+ ol
927
+ padding-left: 30px
928
+ ul,
929
+ ol,
930
+ h1, h2, h3, h4, h5, h6,
931
+ p
932
+ padding-bottom: 10px
933
+ a
934
+ text-decoration: underline
935
+ color: $b2
936
+ font-weight: bold
937
+
938
+ .preview_switch
939
+ span
940
+ float: right
941
+ margin-left: 10px
942
+ cursor: pointer
943
+ &.active
944
+ color: $b2
945
+
946
+ #wmd-output
947
+ font-size: 12px
948
+ line-height: 16px
949
+ background: $g3
950
+ color: $w2
951
+ code
952
+ font-family: Monaco,Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Courier New",Courier,monospace
953
+ white-space: pre-wrap
954
+
955
+ #wmd-button-row
956
+ position: relative
957
+ margin-left: 5px
958
+ margin-right: 5px
959
+ margin-bottom: 5px
960
+ margin-top: 10px
961
+ padding: 0px
962
+ height: 20px
963
+
964
+
965
+ .wmd-spacer
966
+ width: 1px
967
+ height: 20px
968
+ margin-left: 14px
969
+ position: absolute
970
+ background-color: Silver
971
+ display: inline-block
972
+ list-style: none
973
+
974
+ .wmd-button
975
+ width: 20px
976
+ height: 20px
977
+ margin-left: 5px
978
+ margin-right: 5px
979
+ position: absolute
980
+ background-image: url(wmd-buttons.png)
981
+ background-repeat: no-repeat
982
+ background-position: 0px 0px
983
+ display: inline-block
984
+ list-style: none
985
+ > a
986
+ width: 20px
987
+ height: 20px
988
+ margin-left: 5px
989
+ margin-right: 5px
990
+ position: absolute
991
+ display: inline-block
992
+
993
+ // TODO: style this properly
994
+
995
+ #wmd-button-bar
996
+ #wmd-bold-button
997
+ left: 0px
998
+ background-position: 0px 0
999
+ #wmd-italic-button
1000
+ left: 25px
1001
+ background-position: -20px 0
1002
+ #wmd-spacer1
1003
+ left: 50px
1004
+ #wmd-link-button
1005
+ left: 75px
1006
+ background-position: -40px 0
1007
+ #wmd-quote-button
1008
+ left: 100px
1009
+ background-position: -60px 0
1010
+ #wmd-code-button
1011
+ left: 125px
1012
+ background-position: -80px 0
1013
+ #wmd-image-button
1014
+ left: 150px
1015
+ background-position: -100px 0
1016
+ #wmd-spacer2
1017
+ left: 175px
1018
+ #wmd-olist-button
1019
+ left: 200px
1020
+ background-position: -120px 0
1021
+ #wmd-ulist-button
1022
+ left: 225px
1023
+ background-position: -140px 0
1024
+ #wmd-heading-button
1025
+ left: 250px
1026
+ background-position: -160px 0
1027
+ #wmd-hr-button
1028
+ left: 275px
1029
+ background-position: -180px 0
1030
+ #wmd-spacer3
1031
+ left: 300px
1032
+ #wmd-undo-button
1033
+ left: 325px
1034
+ background-position: -200px 0
1035
+ #wmd-redo-button
1036
+ left: 350px
1037
+ background-position: -220px 0
1038
+ #wmd-help-button
1039
+ right: 0px
1040
+ background-position: -240px 0
1041
+
1042
+ .wmd-prompt-background
1043
+ background-color: #000
1044
+
1045
+ .wmd-prompt-dialog
1046
+ border: 1px solid #999999
1047
+ background-color: #F5F5F5
1048
+ > div
1049
+ font-size: 0.8em
1050
+ font-family: arial, helvetica, sans-serif
1051
+ > form
1052
+ input[type="text"]
1053
+ border: 1px solid #999999
1054
+ color: black
1055
+ > form
1056
+ input[type="button"]
1057
+ border: 1px solid #888888
1058
+ font-size: 0.8em
1059
+ font-weight: bold
1060
+
1061
+
1062
+ // TODO: bigger ration buttons
1063
+
1064
+
1065
+ // TODO: remove me
1066
+ .translation_missing
1067
+ color: red !important