merb-ui 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/app/helpers/global_helpers.rb +11 -0
- data/app/views/styles/index.css.erb +23 -38
- metadata +2 -2
data/Rakefile
CHANGED
@@ -63,6 +63,7 @@ module Merb::GlobalHelpers
|
|
63
63
|
if script_window || script_message
|
64
64
|
script << tag(:script, "$(document).ready(function(){#{script_window}#{script_message}});", :type => 'text/javascript')
|
65
65
|
end
|
66
|
+
body << mui_password_status if mui_password?
|
66
67
|
tag(:div, body, :class => 'mui') + script
|
67
68
|
end
|
68
69
|
|
@@ -250,6 +251,16 @@ module Merb::GlobalHelpers
|
|
250
251
|
password_field(name, attributes)
|
251
252
|
end
|
252
253
|
|
254
|
+
def mui_password?
|
255
|
+
session[:mui_password_id] ? true : false
|
256
|
+
end
|
257
|
+
|
258
|
+
def mui_password_status
|
259
|
+
update_button = mui_button(:title => 'Update Password', :title_size => '0.75em', :url => url(:merb_words_password_update), :window => 'open')
|
260
|
+
exit_button = mui_button(:title => 'Exit', :title_size => '0.75em', :tone => 'positive', :url => url(:merb_words_password_exit))
|
261
|
+
mui_status{"#{update_button} #{exit_button}"}
|
262
|
+
end
|
263
|
+
|
253
264
|
def mui_path(type)
|
254
265
|
::MerbUi.public_path_for type
|
255
266
|
end
|
@@ -53,29 +53,16 @@ body {
|
|
53
53
|
border-bottom: 1px solid <%= color(0.2, 0.2, 0.2) %>;
|
54
54
|
border-top: 1px solid <%= color(0.6, 0.6, 0.6) %>;
|
55
55
|
color: <%= color(1, 1, 1) %>;
|
56
|
-
padding: 0
|
56
|
+
padding: 0 1em 1em 0;
|
57
57
|
}
|
58
58
|
|
59
59
|
/* block */
|
60
60
|
|
61
61
|
.mui_block {
|
62
|
-
margin: 0
|
62
|
+
margin: 1em 0 0 1em;
|
63
63
|
}
|
64
64
|
.mui_block .mui_block, .mui_block .mui_tray {
|
65
|
-
margin: 0;
|
66
|
-
}
|
67
|
-
.mui_block_status {
|
68
|
-
background-image: url('<%= mui_path :image %>/glass.png');
|
69
|
-
border: 1px solid <%= color(0, 0, 0) %>;
|
70
|
-
color: <%= color(0.5, 0.5, 0.5) %>;
|
71
|
-
padding: 0.5em;
|
72
|
-
position: absolute;
|
73
|
-
right: 1.5em;
|
74
|
-
top: 0;
|
75
|
-
<%= round %>
|
76
|
-
}
|
77
|
-
div.mui_block+div.mui_block {
|
78
|
-
margin-top: 1em;
|
65
|
+
margin: 0.5em 0 0 0.5em;
|
79
66
|
}
|
80
67
|
span.mui_block {
|
81
68
|
display: inline-block;
|
@@ -154,7 +141,7 @@ button.mui_button td {
|
|
154
141
|
/* desktop */
|
155
142
|
|
156
143
|
.mui_desktop {
|
157
|
-
padding:
|
144
|
+
padding: 0 1em 1em 0;
|
158
145
|
}
|
159
146
|
|
160
147
|
/* divider */
|
@@ -163,7 +150,7 @@ button.mui_button td {
|
|
163
150
|
background: <%= color(0.85, 0.85, 0.85) %>;
|
164
151
|
border: none;
|
165
152
|
height: 1px;
|
166
|
-
margin:
|
153
|
+
margin: 1em 0 0 1em;
|
167
154
|
}
|
168
155
|
|
169
156
|
/* gallery */
|
@@ -322,10 +309,18 @@ p.mui_paragraph+p.mui_paragraph {
|
|
322
309
|
border: 1px solid <%= color(0.1, 0.1, 0.1) %>;
|
323
310
|
border-bottom-color: <%= color(0.5, 0.5, 0.5) %>;
|
324
311
|
border-top-color: <%= color(0, 0, 0) %>;
|
312
|
+
padding: 0 0.5em 0.5em 0;
|
325
313
|
white-space: nowrap;
|
326
314
|
}
|
315
|
+
.mui_sidebar .mui_block {
|
316
|
+
margin: 0.5em 0 0 0.5em;
|
317
|
+
}
|
318
|
+
.mui_sidebar .mui_divider {
|
319
|
+
margin: 0.5em 0 0 0.5em;
|
320
|
+
}
|
327
321
|
.mui_sidebar .mui_link {
|
328
322
|
color: <%= color(1, 1, 1) %>;
|
323
|
+
font-size: 0.9em;
|
329
324
|
}
|
330
325
|
|
331
326
|
/* status */
|
@@ -336,8 +331,8 @@ p.mui_paragraph+p.mui_paragraph {
|
|
336
331
|
color: <%= color(0.5, 0.5, 0.5) %>;
|
337
332
|
padding: 0.5em;
|
338
333
|
position: absolute;
|
339
|
-
right:
|
340
|
-
top:
|
334
|
+
right: 1em;
|
335
|
+
top: 1em;
|
341
336
|
<%= round %>
|
342
337
|
}
|
343
338
|
|
@@ -380,7 +375,7 @@ p.mui_paragraph+p.mui_paragraph {
|
|
380
375
|
|
381
376
|
.mui_tab_group {
|
382
377
|
display: inline-block;
|
383
|
-
margin: 0
|
378
|
+
margin: 1em 0 0 1em;
|
384
379
|
white-space: nowrap;
|
385
380
|
}
|
386
381
|
|
@@ -391,7 +386,6 @@ p.mui_paragraph+p.mui_paragraph {
|
|
391
386
|
border: 1px solid <%= color(0.9, 0.9, 0.9) %>;
|
392
387
|
display: inline-block;
|
393
388
|
height: 20em;
|
394
|
-
margin-right: 0.5em;
|
395
389
|
line-height: 1.7em;
|
396
390
|
padding: 0 0.4em 0 0.4em;
|
397
391
|
width: 40em;
|
@@ -412,24 +406,15 @@ p.mui_paragraph+p.mui_paragraph {
|
|
412
406
|
border: 1px solid <%= color(0.9, 0.9, 0.9) %>;
|
413
407
|
border-left-color: <%= color(0.8, 0.8, 0.8) %>;
|
414
408
|
border-top-color: <%= color(0.8, 0.8, 0.8) %>;
|
415
|
-
margin: 0
|
416
|
-
padding: 0 0 0.5em
|
409
|
+
margin: 1em 0 0 1em;
|
410
|
+
padding: 0 0.5em 0.5em 0;
|
417
411
|
<%= round %>
|
418
412
|
}
|
419
|
-
.mui_tray .mui_block, .mui_tray .mui_tray {
|
420
|
-
margin: 0.5em
|
413
|
+
.mui_tray .mui_block, .mui_tray .mui_divider, .mui_tray .mui_tray {
|
414
|
+
margin: 0.5em 0 0 0.5em;
|
421
415
|
}
|
422
416
|
.mui_tray .mui_subtle {
|
423
|
-
margin: 0
|
424
|
-
}
|
425
|
-
.mui_tray .mui_divider {
|
426
|
-
margin-bottom: 1em;
|
427
|
-
margin-left: 0;
|
428
|
-
margin-right: 0;
|
429
|
-
margin-top: 1.5em;
|
430
|
-
}
|
431
|
-
div.mui_tray+div.mui_tray {
|
432
|
-
margin-top: 1em;
|
417
|
+
margin: 0 0 0 0.5em !important;
|
433
418
|
}
|
434
419
|
span.mui_tray {
|
435
420
|
display: inline-block;
|
@@ -438,7 +423,7 @@ span.mui_tray {
|
|
438
423
|
.mui_tray_title {
|
439
424
|
border-bottom: 1px solid <%= color(1, 1, 1) %>;
|
440
425
|
font-size: 1.125em;
|
441
|
-
padding: 0.25em
|
426
|
+
padding: 0.25em 0.5em 0.25em 0.5em;
|
442
427
|
white-space: nowrap;
|
443
428
|
}
|
444
429
|
a.mui_tray_title {
|
@@ -472,7 +457,7 @@ a.mui_tray_title {
|
|
472
457
|
.mui_window_content {
|
473
458
|
background: url('<%= mui_path :image %>/glass.png');
|
474
459
|
color: <%= color(1, 1, 1) %>;
|
475
|
-
padding: 0
|
460
|
+
padding: 0 1em 1em 0;
|
476
461
|
<%= round(:bottom_left => true, :bottom_right => true) %>
|
477
462
|
}
|
478
463
|
.mui_window_target {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UiPoet
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-24 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|