rad_common_interface 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. data/Rakefile +1 -0
  2. data/app/static/demo/images/img1.jpg +0 -0
  3. data/app/static/demo/images/img1_200.jpg +0 -0
  4. data/app/static/demo/images/img1_icon.jpg +0 -0
  5. data/app/static/demo/images/img1_thumb.jpg +0 -0
  6. data/app/static/demo/images/img2.jpg +0 -0
  7. data/app/static/demo/images/img2_200.jpg +0 -0
  8. data/app/static/demo/images/img2_icon.jpg +0 -0
  9. data/app/static/demo/images/img2_thumb.jpg +0 -0
  10. data/app/static/demo/images/img3.jpg +0 -0
  11. data/app/static/demo/images/img3_200.jpg +0 -0
  12. data/app/static/demo/images/img3_icon.jpg +0 -0
  13. data/app/static/demo/images/img3_thumb.jpg +0 -0
  14. data/app/static/demo/images/img_big.jpg +0 -0
  15. data/app/static/demo/images/img_big_icon.jpg +0 -0
  16. data/app/static/demo/images/img_big_thum.jpg +0 -0
  17. data/app/static/demo/images/video_icon.png +0 -0
  18. data/app/static/face/attachments.js +85 -0
  19. data/app/static/face/dialogs.js +189 -0
  20. data/app/static/face/discussion.js +47 -0
  21. data/app/static/face/markup.js +53 -0
  22. data/app/static/face/more.js +33 -0
  23. data/app/static/face/table.js +24 -0
  24. data/app/static/face/tabs.js +26 -0
  25. data/app/static/face.css +8 -0
  26. data/app/static/face.js +109 -0
  27. data/app/static/lib/SimpleDialog/SimpleDialog.ContextMenu.js +36 -0
  28. data/app/static/lib/SimpleDialog/SimpleDialog.Image.js +121 -0
  29. data/app/static/lib/SimpleDialog/SimpleDialog.Mask.js +76 -0
  30. data/app/static/lib/SimpleDialog/SimpleDialog.Static.js +0 -0
  31. data/app/static/lib/SimpleDialog/SimpleDialog.css +12 -0
  32. data/app/static/lib/SimpleDialog/SimpleDialog.js +158 -0
  33. data/app/static/lib/ajax_file_uploading.js +33 -0
  34. data/app/static/themes/default/reset.css +127 -0
  35. data/app/static/themes/default/style/application.less +51 -0
  36. data/app/static/themes/default/style/aspects.less +15 -0
  37. data/app/static/themes/default/style/basic.less +49 -0
  38. data/app/static/themes/default/style/forms.less +34 -0
  39. data/app/static/themes/default/style/items.less +43 -0
  40. data/app/static/themes/default/style/markup.less +16 -0
  41. data/app/static/themes/default/style/micelaneous.less +10 -0
  42. data/app/static/themes/default/style/mixins.less +72 -0
  43. data/app/static/themes/default/style/styles.less +57 -0
  44. data/app/static/themes/default/style/tools.less +15 -0
  45. data/app/static/themes/default/style/variables.less +38 -0
  46. data/app/static/themes/default/style.css +944 -0
  47. data/app/static/themes/default/style.js +127 -0
  48. data/app/static/themes/default/style.less +22 -0
  49. data/app/static/vendor/flext.js +254 -0
  50. data/app/static/vendor/formalize/formalize.css +311 -0
  51. data/app/static/vendor/formalize/mootools.formalize.js +163 -0
  52. data/app/static/vendor/formalize/reset.css +171 -0
  53. data/app/static/vendor/iFrameFormRequest.js +95 -0
  54. data/app/static/vendor/mootools-more.js +4185 -0
  55. data/app/static/vendor/purr/purr.css +43 -0
  56. data/app/static/vendor/purr/purr.js +308 -0
  57. data/app/views/face/_attachments_tag.html.haml +17 -0
  58. data/app/views/rad/face/demo/commons/aspects.html.haml +32 -0
  59. data/app/views/rad/face/demo/commons/basic.html.haml +86 -0
  60. data/app/views/rad/face/demo/commons/forms.html.haml +57 -0
  61. data/app/views/rad/face/demo/commons/items.html.haml +32 -0
  62. data/app/views/rad/face/demo/commons/style.html.erb +111 -0
  63. data/app/views/rad/face/demo/dialogs/dialog.js.haml +1 -0
  64. data/app/views/rad/face/demo/dialogs/dialog_form.html.haml +7 -0
  65. data/app/views/rad/face/demo/dialogs/dialog_form.js.erb +1 -0
  66. data/app/views/rad/face/demo/dialogs/inplace/_element.html.haml +3 -0
  67. data/app/views/rad/face/demo/dialogs/inplace/_form.html.haml +3 -0
  68. data/app/views/rad/face/demo/dialogs/inplace.js.haml +1 -0
  69. data/app/views/rad/face/demo/dialogs/inplace_form.js.haml +2 -0
  70. data/app/views/rad/face/demo/dialogs/show.html.haml +27 -0
  71. data/app/views/rad/face/demo/helps/help.html.haml +1 -0
  72. data/app/views/rad/face/demo/helps/index.html.haml +25 -0
  73. data/app/views/rad/face/demo/layout.html.haml +3 -0
  74. data/app/views/rad/face/demo/layout.js.haml +11 -0
  75. data/app/views/rad/face/demo/shared/_comments.html.haml +11 -0
  76. data/app/views/rad/face/demo/shared/_core_tools.html.haml +6 -0
  77. data/app/views/rad/face/demo/shared/_line_previews.html.haml +40 -0
  78. data/app/views/rad/face/demo/shared/_paginator.html.haml +7 -0
  79. data/app/views/rad/face/demo/shared/_tools.html.haml +25 -0
  80. data/app/views/rad/face/demo/shared/_top_navigation_bottom.html.haml +34 -0
  81. data/app/views/rad/face/demo/sites/blog.html.haml +12 -0
  82. data/app/views/rad/face/demo/sites/home.html.haml +8 -0
  83. data/app/views/rad/face/demo/sites/post.html.haml +10 -0
  84. data/app/views/rad/face/demo/sites/style.html.haml +8 -0
  85. data/app/views/themes/default/application.html.haml +25 -0
  86. data/app/views/themes/default/basic_list.html.haml +2 -0
  87. data/app/views/themes/default/basic_list_item.html.haml +5 -0
  88. data/app/views/themes/default/bottom_panel.html.haml +16 -0
  89. data/app/views/themes/default/comment.html.haml +20 -0
  90. data/app/views/themes/default/controls.html.haml +3 -0
  91. data/app/views/themes/default/demo_metadata.rb +118 -0
  92. data/app/views/themes/default/details.html.haml +6 -0
  93. data/app/views/themes/default/discussion.html.haml +7 -0
  94. data/app/views/themes/default/divider.html.haml +2 -0
  95. data/app/views/themes/default/forms/errors.html.haml +4 -0
  96. data/app/views/themes/default/forms/field.html.haml +18 -0
  97. data/app/views/themes/default/forms/form.html.haml +4 -0
  98. data/app/views/themes/default/forms/line.html.haml +8 -0
  99. data/app/views/themes/default/help.html.haml +3 -0
  100. data/app/views/themes/default/html.html.haml +1 -0
  101. data/app/views/themes/default/index.html.haml +6 -0
  102. data/app/views/themes/default/item.html.haml +12 -0
  103. data/app/views/themes/default/layout_templates/dashboard.html.haml +1 -0
  104. data/app/views/themes/default/layout_templates/default.html.haml +22 -0
  105. data/app/views/themes/default/line.html.haml +21 -0
  106. data/app/views/themes/default/message.html.haml +2 -0
  107. data/app/views/themes/default/more.html.haml +8 -0
  108. data/app/views/themes/default/narrow.html.haml +2 -0
  109. data/app/views/themes/default/navigation.html.haml +16 -0
  110. data/app/views/themes/default/paginator.html.haml +8 -0
  111. data/app/views/themes/default/shared/details.html.haml +17 -0
  112. data/app/views/themes/default/table.html.haml +9 -0
  113. data/app/views/themes/default/table_row.html.haml +4 -0
  114. data/app/views/themes/default/tabs.html.haml +27 -0
  115. data/app/views/themes/default/tag_selector.html.haml +10 -0
  116. data/app/views/themes/default/text.html.haml +4 -0
  117. data/app/views/themes/default/thumb.html.haml +10 -0
  118. data/app/views/themes/default/title.html.haml +3 -0
  119. data/app/views/themes/default/tool.html.haml +5 -0
  120. data/app/views/themes/default/toolbar.html.haml +16 -0
  121. data/app/views/themes/default/top_panel.html.haml +18 -0
  122. metadata +153 -25
@@ -0,0 +1,43 @@
1
+ .the_attachments_t () {
2
+ .l_item {float: left;
3
+ > a, div {float: left;}}}
4
+ .the_attachments {.the_attachments_t;
5
+ .l_item {
6
+ > a, div {margin-right: @normal;}}
7
+ .l_item_style {.s_box; .s_round; .s_border; margin-left: 0; margin-right: @normal * 2;}
8
+ .l_empty_item_style {.s_box; margin-left: 0; margin-right: @normal * 2;}}
9
+
10
+
11
+ .the_comment_t () {
12
+ > table.css_table {
13
+ > tbody {
14
+ > tr {
15
+ > td.css_td1 {width: @icon_size1;}
16
+ > td.css_td2 {}}}}}
17
+ .the_comment {.the_comment_t; .s_box; .s_round;
18
+ .l_image {margin-right: @normal;}
19
+ .l_text {}
20
+ .m_details {}}
21
+
22
+
23
+ .the_thumb_t () {float: left; .s_box; .s_round;
24
+ .l_title {display: block;}}
25
+ .the_thumb {.the_thumb_t; min-width: @icon_size2; min-height: @icon_size2; margin: 0px;
26
+ .m_hover_controls {.s_small_text;}
27
+ .l_title {.s_small_text; max-width: @icon_size2;}}
28
+
29
+
30
+ .the_line_t () {
31
+ > table.css_table {
32
+ > tbody {
33
+ > tr {
34
+ > td.css_td1 {width: @icon_size1;}
35
+ > td.css_td2 {}}}}}
36
+ .the_line {.the_line_t; .s_box; .s_round;
37
+ .l_image {width: @icon_size1; margin-right: @normal;}
38
+ .l_title {.s_normal_text; color: @select_color;
39
+ &:visited {color: @select_color;}}}
40
+
41
+
42
+ .the_item {.s_box; .s_round;
43
+ .l_text {}}
@@ -0,0 +1,16 @@
1
+ .m_markup {.s_link;
2
+ .left {float: left; margin-top: @normal / 2; margin-right: @normal;} // margin: @normal; margin-left: 0; margin-right: @big;}
3
+ .right {float: right; margin-top: @normal / 2; margin-left: @normal;} // margin: @normal; margin-right: 0; margin-left: @big;}
4
+ .clear {clear: both;}
5
+ .space {height: @big; clear: both;}
6
+ .tiny {.m_tiny;}
7
+
8
+ table tr td {vertical-align: top;}
9
+ p {margin-bottom: @big;}
10
+ h1, h2, h3, h4, h5, h6 {clear: both;}
11
+ object {clear: both; display: block; margin-bottom: @normal;}
12
+
13
+ // .hl_code, code {margin-left: @big;}
14
+ pre {padding: @normal; margin-bottom: @normal; .s_round; background-color: @very_light_color; max-width: @max_width - @max_width * 0.2 - 2 * @normal - 2 * @small;}
15
+ .left pre, .right pre {width: @half_markup; margin-left: @normal;}
16
+ }
@@ -0,0 +1,10 @@
1
+ .the_dialog {.s_box(); border-width: @normal; .s_border; .s_round; width: 60%;}
2
+
3
+
4
+ .the_image_dialog {.s_box; .s_border; .s_round;}
5
+
6
+
7
+ .the_context_menu {.s_box; .s_border; .s_round(@small_radius); .s_link; max-width: @context_menu_width;}
8
+
9
+
10
+ .the_inplace_editor {.s_box; .s_border; .s_round;}
@@ -0,0 +1,72 @@
1
+ .t_tabs () {
2
+ .l_item {float: left;}}
3
+
4
+ .s_tabs (@w: @normal, @h: @small) {padding-left: @w; padding-right: @w; background: @background_color;
5
+ .l_item {padding-left: @w; padding-right: @w; padding-top: @h; padding-bottom: @h;}
6
+ .l_active {background: @light_color; font-weight: bold}}
7
+
8
+
9
+ .m_title {.s_big_text; margin-top: 0px; padding-top: 0px}
10
+
11
+
12
+ .m_details_t () {float: right;
13
+ > *, > a {float: left;}}
14
+ .m_details {.m_details_t; .s_link; color: @light_color;
15
+ > * {padding-right: @normal;}
16
+ a {color: @light_color !important;}}
17
+
18
+
19
+ .t_tags () {float: left;
20
+ > *, > a {float: left;}}
21
+ .m_tags {.t_tags; margin-top: @normal; margin-bottom: @normal;
22
+ > *, > a {.s_round(@small_radius); .s_small_text; padding-left: @normal; padding-right: @normal; background: @very_light_color; margin-right: @normal;}
23
+
24
+ .m_owner_visibility, .m_member_visibility, .m_custom_visibility, .m_item_type {background: @background_color;}
25
+ .m_owner_visibility {color: @red_color;}
26
+ .m_member_visibility, .m_custom_visibility {color: @yellow_color;}
27
+ .m_item_type {.m_tiny;}}
28
+
29
+
30
+ .t_attachments () {float: left;
31
+ > *, > a {float: left;}}
32
+ .m_attachments {.t_attachments; .s_link; margin-top: @normal; margin-bottom: @normal;
33
+ > *, > a {padding-right: @normal;}}
34
+
35
+
36
+ .t_hover_controls () {position: absolute; right: 0px; top: 0px; z-index: 1; display: none;}
37
+
38
+ .m_hover_controls {.t_hover_controls; .s_controls; text-align: right;}
39
+
40
+
41
+ .m_selectable {
42
+ > .m_hover_controls {.s_box; .s_border; .s_round_bl(@small_radius); border-right: 0px; border-top: 0px; margin: 0px;}}
43
+
44
+ .m_selectable_hover {border-color: @light_color !important;}
45
+
46
+
47
+ .t_toolbar () {
48
+ .l_left {float: left;
49
+ .l_item {float: left;}}
50
+ .l_right {float: right;
51
+ .l_item {float: right;}}}
52
+
53
+ .s_toolbar (@w: @normal, @h: @small) {
54
+ .l_left {padding-left: @w;
55
+ .l_item {padding-left: @w; padding-right: @w; padding-top: @h; padding-bottom: @h;}}
56
+ .l_right {padding-right: @w;
57
+ .l_item {padding-left: @w; padding-right: @w; padding-top: @h; padding-bottom: @h;}}}
58
+
59
+
60
+ .t_list () {
61
+ .l_item {
62
+ .l_check_box {display: inline;}
63
+ .l_content {display: inline;
64
+ > div {display: inline;}}}}
65
+
66
+ .s_list () {
67
+ .l_item {}}
68
+
69
+
70
+ /*.t_left () {float: left;}
71
+ .t_right () {float: right;}
72
+ */
@@ -0,0 +1,57 @@
1
+ .m_tiny {color: @light_color !important;
2
+ a {color: @light_color !important;}}
3
+ .m_bold {font-weight: bold;}
4
+
5
+ .m_hidden {display: none !important;}
6
+
7
+
8
+ .s_small_text () {font-size: 90%;}
9
+ .s_normal_text () {font-size: 110%; font-weight: bold;}
10
+ .s_big_text () {font-size: 180%; font-weight: bold; padding-top: @normal; padding-bottom: @normal; margin-top: 0px; margin-bottom: 0px;}
11
+
12
+
13
+ .s_a_link () {color: @select_color; text-decoration: underline;
14
+ &:visited {color: @select_color;}}
15
+ .s_link () {
16
+ a {.s_a_link;}}
17
+
18
+
19
+ .s_round_tl (@r: @normal_radius) {-moz-border-radius-topleft: @r; -webkit-border-top-left-radius: @r; border-top-left-radius: @r;}
20
+ .s_round_tr (@r: @normal_radius) {-moz-border-radius-topright: @r; -webkit-border-top-right-radius: @r; border-top-right-radius: @r;}
21
+ .s_round_bl (@r: @normal_radius) {-moz-border-radius-bottomleft: @r; -webkit-border-bottom-left-radius: @r; border-bottom-left-radius: @r;}
22
+ .s_round_br (@r: @normal_radius) {-moz-border-radius-bottomright: @r; -webkit-border-bottom-right-radius: @r; border-bottom-right-radius: @r;}
23
+ .s_round (@r: @normal_radius) {-moz-border-radius: @r; -webkit-border-radius: @r; border-radius: @r;}
24
+
25
+
26
+ .s_narrow () {margin-left: 20%; margin-right: 20%;}
27
+
28
+
29
+ .s_controls () {.s_link; font-size: 100%;}
30
+
31
+
32
+ /*.s_width () {max-width: @max_width; margin-left: auto; margin-right: auto;}*/
33
+
34
+
35
+ .s_box (@size: @normal) {background: @background_color; border: solid @small @background_color; padding: @size; margin: @size;}
36
+ .s_vbox (@size: @normal) {background: @background_color; border: solid @small @background_color; padding-top: @size; padding-bottom: @size; margin-top: @size; margin-bottom: @size;}
37
+
38
+
39
+ .s_border (@color: @light_color) {border-color: @color;}
40
+
41
+
42
+ //
43
+ // Global
44
+ //
45
+ a {color: @color; text-decoration: none;
46
+ &:visited {color: @color;}}
47
+
48
+
49
+ //
50
+ // Special
51
+ //
52
+ .css_clear {display: block !important; clear: both !important; width: 0px !important; height: 0px !important; min-width: 0px !important; min-height: 0px !important; margin: 0px !important; padding: 0px !important; border: 0px !important;}
53
+
54
+ table.css_table {margin: 0; padding: 0; border: 0; width: 100%;
55
+ > tbody {margin: 0; padding: 0; border: 0;
56
+ > tr {margin: 0; padding: 0; border: 0;
57
+ > td {margin: 0; padding: 0; border: 0; vertical-align: top;}}}}
@@ -0,0 +1,15 @@
1
+ .the_tool {padding-bottom: @big;
2
+ > .l_title {color: @light_color; font-weight: bold;}}
3
+
4
+
5
+ .the_tag_selector_t () {
6
+ .l_tag {display: inline-block;}}
7
+ .the_tag_selector {.the_tag_selector_t; text-align: center;
8
+ .l_selected {.s_round(@small_radius); color: @background_color; padding-left: @normal; padding-right: @normal; background: @select_color;
9
+ a {color: @background_color;}}
10
+ .l_tag {margin: @small;}
11
+
12
+ .l_size_1 {font-size: 90%;}
13
+ .l_size_2 {font-size: 120%;}
14
+ .l_size_3 {font-size: 130%;}
15
+ .l_size_4 {font-size: 140%;}}
@@ -0,0 +1,38 @@
1
+ // Sizes
2
+ @small: 1px;
3
+ @normal: 5px;
4
+ @big: 10px;
5
+
6
+ /*@small: 5px;
7
+ @normal: 10px;
8
+ @big: 20px;*/
9
+
10
+ @small_radius: 3px;
11
+ @normal_radius: 5px;
12
+
13
+ @max_width: 1024px;
14
+ @min_height: 300px;
15
+
16
+ @icon_size1: 50px;
17
+ @icon_size2: 150px;
18
+
19
+ @tools_width: 20%; // 180px;
20
+ @half_markup: 450px;
21
+ @form_label_width: 150px;
22
+ @textarea_height: 60px;
23
+ @context_menu_width: 100px;
24
+
25
+ // Colors
26
+ @color: black;
27
+ @light_color: #cccccc;
28
+ @very_light_color: #efefef;
29
+
30
+ @background_color: white;
31
+
32
+ @select_color: #2a5db0;
33
+
34
+ @red_color: #dd0000;
35
+ @light_red_color: #eebbbb;
36
+
37
+ @yellow_color: #dddd00;
38
+ @light_yellow_color: #eeeebb;