redde 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/.gitignore +20 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +4 -0
  4. data/Guardfile +24 -0
  5. data/LICENSE +22 -0
  6. data/README.md +57 -0
  7. data/Rakefile +2 -0
  8. data/lib/generators/redde/deploy/deploy_generator.rb +34 -0
  9. data/lib/generators/redde/deploy/templates/Capfile +4 -0
  10. data/lib/generators/redde/deploy/templates/deploy.rb +33 -0
  11. data/lib/generators/redde/deploy/templates/recipes/base.rb +16 -0
  12. data/lib/generators/redde/deploy/templates/recipes/check.rb +13 -0
  13. data/lib/generators/redde/deploy/templates/recipes/database.rb +66 -0
  14. data/lib/generators/redde/deploy/templates/recipes/imagemagick.rb +8 -0
  15. data/lib/generators/redde/deploy/templates/recipes/memcached.rb +10 -0
  16. data/lib/generators/redde/deploy/templates/recipes/monit.rb +35 -0
  17. data/lib/generators/redde/deploy/templates/recipes/nginx.rb +26 -0
  18. data/lib/generators/redde/deploy/templates/recipes/nodejs.rb +10 -0
  19. data/lib/generators/redde/deploy/templates/recipes/postfix.rb +37 -0
  20. data/lib/generators/redde/deploy/templates/recipes/rbenv.rb +17 -0
  21. data/lib/generators/redde/deploy/templates/recipes/templates/database.yml.erb +8 -0
  22. data/lib/generators/redde/deploy/templates/recipes/templates/dkim-filter.conf.erb +57 -0
  23. data/lib/generators/redde/deploy/templates/recipes/templates/dkim-filter.defaults.erb +11 -0
  24. data/lib/generators/redde/deploy/templates/recipes/templates/dkim-keys.conf.erb +2 -0
  25. data/lib/generators/redde/deploy/templates/recipes/templates/gemrc.erb +1 -0
  26. data/lib/generators/redde/deploy/templates/recipes/templates/main.cf.erb +43 -0
  27. data/lib/generators/redde/deploy/templates/recipes/templates/memcached.erb +47 -0
  28. data/lib/generators/redde/deploy/templates/recipes/templates/monit_monitrc.erb +21 -0
  29. data/lib/generators/redde/deploy/templates/recipes/templates/monit_nginx.erb +5 -0
  30. data/lib/generators/redde/deploy/templates/recipes/templates/monit_unicorn.erb +14 -0
  31. data/lib/generators/redde/deploy/templates/recipes/templates/nginx_unicorn.erb +28 -0
  32. data/lib/generators/redde/deploy/templates/recipes/templates/unicorn.rb.erb +36 -0
  33. data/lib/generators/redde/deploy/templates/recipes/templates/unicorn_init.erb +84 -0
  34. data/lib/generators/redde/deploy/templates/recipes/unicorn.rb +27 -0
  35. data/lib/generators/redde/layout/layout_generator.rb +57 -0
  36. data/lib/generators/redde/layout/templates/assets/images/admin/addphoto.png +0 -0
  37. data/lib/generators/redde/layout/templates/assets/images/admin/ajaxloader2.gif +0 -0
  38. data/lib/generators/redde/layout/templates/assets/images/admin/arrow_down.png +0 -0
  39. data/lib/generators/redde/layout/templates/assets/images/admin/arrow_enter.png +0 -0
  40. data/lib/generators/redde/layout/templates/assets/images/admin/arrow_right.png +0 -0
  41. data/lib/generators/redde/layout/templates/assets/images/admin/coins.png +0 -0
  42. data/lib/generators/redde/layout/templates/assets/images/admin/confirm.png +0 -0
  43. data/lib/generators/redde/layout/templates/assets/images/admin/del.png +0 -0
  44. data/lib/generators/redde/layout/templates/assets/images/admin/delete.png +0 -0
  45. data/lib/generators/redde/layout/templates/assets/images/admin/email.png +0 -0
  46. data/lib/generators/redde/layout/templates/assets/images/admin/error.png +0 -0
  47. data/lib/generators/redde/layout/templates/assets/images/admin/fio.png +0 -0
  48. data/lib/generators/redde/layout/templates/assets/images/admin/folder.png +0 -0
  49. data/lib/generators/redde/layout/templates/assets/images/admin/folder_.png +0 -0
  50. data/lib/generators/redde/layout/templates/assets/images/admin/icon_eye.gif +0 -0
  51. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +101 -0
  52. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
  53. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
  54. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
  55. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
  56. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
  57. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/js/jquery.js +32 -0
  58. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +477 -0
  59. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +42 -0
  60. data/lib/generators/redde/layout/templates/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +14 -0
  61. data/lib/generators/redde/layout/templates/assets/images/admin/logo.png +0 -0
  62. data/lib/generators/redde/layout/templates/assets/images/admin/logo_reddeshop.png +0 -0
  63. data/lib/generators/redde/layout/templates/assets/images/admin/move_handler.png +0 -0
  64. data/lib/generators/redde/layout/templates/assets/images/admin/phone.png +0 -0
  65. data/lib/generators/redde/layout/templates/assets/images/admin/photo_ico.png +0 -0
  66. data/lib/generators/redde/layout/templates/assets/images/admin/print.png +0 -0
  67. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/css/docstyle.css +123 -0
  68. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/css/redactor.css +369 -0
  69. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/css/style.css +119 -0
  70. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/css/wym.css +136 -0
  71. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/img/icons.png +0 -0
  72. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/by.js +72 -0
  73. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/de.js +75 -0
  74. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/en.js +76 -0
  75. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/es.js +76 -0
  76. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/fr.js +74 -0
  77. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/hu.js +76 -0
  78. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/it.js +76 -0
  79. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/ja.js +76 -0
  80. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/lv.js +74 -0
  81. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/nl.js +76 -0
  82. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/pl.js +75 -0
  83. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/pt_br.js +81 -0
  84. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/ru.js +75 -0
  85. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/sq.js +76 -0
  86. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/tr.js +76 -0
  87. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/ua.js +75 -0
  88. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/langs/zh_cn.js +77 -0
  89. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/plugins/file.html +3 -0
  90. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/plugins/image.html +39 -0
  91. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/plugins/image_edit.html +35 -0
  92. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/plugins/link.html +74 -0
  93. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/plugins/table.html +25 -0
  94. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/plugins/video.html +15 -0
  95. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/redactor.js.erb +2260 -0
  96. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/redactor.min.js +1 -0
  97. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/toolbars/default.js +219 -0
  98. data/lib/generators/redde/layout/templates/assets/images/admin/redactor/toolbars/mini.js +103 -0
  99. data/lib/generators/redde/layout/templates/assets/images/admin/reddebox/_jquery.reddebox.js.erb +214 -0
  100. data/lib/generators/redde/layout/templates/assets/images/admin/reddebox/close.png +0 -0
  101. data/lib/generators/redde/layout/templates/assets/images/admin/reddebox/jquery.reddebox.js.erb +246 -0
  102. data/lib/generators/redde/layout/templates/assets/images/admin/reddebox/jquery.reddebox.scss +31 -0
  103. data/lib/generators/redde/layout/templates/assets/images/admin/reddebox/next.png +0 -0
  104. data/lib/generators/redde/layout/templates/assets/images/admin/reddebox/prev.png +0 -0
  105. data/lib/generators/redde/layout/templates/assets/images/admin/refresh.png +0 -0
  106. data/lib/generators/redde/layout/templates/assets/images/admin/submit.png +0 -0
  107. data/lib/generators/redde/layout/templates/assets/images/admin/submit_hover.png +0 -0
  108. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/change-log.txt +19 -0
  109. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/check-exists.php +15 -0
  110. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/index.php +50 -0
  111. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/jquery.uploadifive.js +888 -0
  112. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/jquery.uploadifive.min.js +6 -0
  113. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/license-standard.txt +71 -0
  114. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/uploadifive-cancel.png +0 -0
  115. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/uploadifive-image-only.php +66 -0
  116. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/uploadifive.css +100 -0
  117. data/lib/generators/redde/layout/templates/assets/images/admin/uploadifive/uploadifive.php +33 -0
  118. data/lib/generators/redde/layout/templates/assets/images/admin/uploadify/#swfobject.js +4 -0
  119. data/lib/generators/redde/layout/templates/assets/images/admin/uploadify/cancel.png +0 -0
  120. data/lib/generators/redde/layout/templates/assets/images/admin/uploadify/jquery.uploadify.min.js +315 -0
  121. data/lib/generators/redde/layout/templates/assets/images/admin/uploadify/uploadify-cancel.png +0 -0
  122. data/lib/generators/redde/layout/templates/assets/images/admin/uploadify/uploadify.css +66 -0
  123. data/lib/generators/redde/layout/templates/assets/images/admin/uploadify/uploadify.swf +0 -0
  124. data/lib/generators/redde/layout/templates/assets/images/admin/view.png +0 -0
  125. data/lib/generators/redde/layout/templates/assets/images/admin/view_mk.png +0 -0
  126. data/lib/generators/redde/layout/templates/assets/javascripts/admin/jquery.ui.nestedSortable.js +390 -0
  127. data/lib/generators/redde/layout/templates/assets/javascripts/admin/swfobject.js +4 -0
  128. data/lib/generators/redde/layout/templates/assets/javascripts/admin/zen_textarea.min.js +17 -0
  129. data/lib/generators/redde/layout/templates/assets/javascripts/admin.js +88 -0
  130. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/_reset.scss +32 -0
  131. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/_list.scss +22 -0
  132. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/_notice.scss +39 -0
  133. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/_orders.scss +22 -0
  134. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/_partners.scss +15 -0
  135. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/_photos.scss +31 -0
  136. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/_sortable.scss +17 -0
  137. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/default.scss +127 -0
  138. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/_input.scss +43 -0
  139. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/_table.scss +24 -0
  140. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/_header.scss +57 -0
  141. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/_launchbar.scss +35 -0
  142. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/_login.scss +10 -0
  143. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/_main.scss +59 -0
  144. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/_sidebar.scss +35 -0
  145. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/shop/_filter.scss +16 -0
  146. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/shop/_order-sh.scss +59 -0
  147. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/shop/_pe.scss +43 -0
  148. data/lib/generators/redde/layout/templates/assets/stylesheets/admin.scss +12 -0
  149. data/lib/generators/redde/layout/templates/controllers/base_controller.rb +6 -0
  150. data/lib/generators/redde/layout/templates/helpers/admin_helper.rb +37 -0
  151. data/lib/generators/redde/layout/templates/layouts/admin.html.haml +30 -0
  152. data/lib/generators/redde/layout/templates/layouts/login.html.haml +32 -0
  153. data/lib/generators/redde/layout/templates/shared/_header.html.haml +13 -0
  154. data/lib/generators/redde/layout/templates/shared/_launchbar.html.haml +9 -0
  155. data/lib/generators/redde/layout/templates/shared/_sidebar.html.haml +23 -0
  156. data/lib/generators/redde/scaffold/scaffold_generator.rb +114 -0
  157. data/lib/generators/redde/scaffold/templates/controllers/controller.rb +55 -0
  158. data/lib/generators/redde/scaffold/templates/edit.html.haml +36 -0
  159. data/lib/generators/redde/scaffold/templates/index.html.haml +37 -0
  160. data/lib/redde/version.rb +3 -0
  161. data/lib/redde.rb +4 -0
  162. data/redde.gemspec +26 -0
  163. data/spec/deploy_generator_spec.rb +29 -0
  164. data/spec/layout_generator_spec.rb +41 -0
  165. data/spec/scaffold_generator_spec.rb +25 -0
  166. data/spec/spec_helper.rb +10 -0
  167. metadata +327 -0
@@ -0,0 +1,123 @@
1
+ html {
2
+ padding: 0;
3
+ margin: 0;
4
+ }
5
+ body {
6
+ font-family: "PT Sans", "Trebuchet MS", Verdana, Arial, Tahoma, sans-serif;
7
+ font-size: 17px;
8
+ margin: 0;
9
+ padding: 0;
10
+ overflow-x: hidden;
11
+ background: #f4f4f4;
12
+ }
13
+ #page {
14
+ max-width: 900px;
15
+ width: 74%;
16
+ margin: 20px auto;
17
+ padding: 15px 50px;
18
+ background: #fff;
19
+ border: 1px solid #ddd;
20
+ }
21
+ #page:focus {
22
+ outline: none;
23
+ }
24
+
25
+ ::selection {
26
+ background-color: #333;
27
+ color: #fff;
28
+ text-shadow: none;
29
+ }
30
+
31
+ div,
32
+ p,
33
+ ul,
34
+ ol,
35
+ table,
36
+ dl,
37
+ blockquote,
38
+ pre,
39
+ iframe,
40
+ object,
41
+ hr {
42
+ margin-bottom: 15px;
43
+ line-height: 1.5em;
44
+ }
45
+ blockquote {
46
+ margin-left: 3em;
47
+ font-style: italic;
48
+ color: #777;
49
+ }
50
+ ul, ol {
51
+ padding-left: 2em;
52
+ }
53
+ ul ul,
54
+ ol ol,
55
+ ul ol,
56
+ ol ul {
57
+ border: none;
58
+ margin: 2px !important;
59
+ padding: 0;
60
+ padding-left: 2em;
61
+ }
62
+ dl dt { font-weight: bold; }
63
+ dd { margin-left: 1em;}
64
+
65
+ table {
66
+ border-collapse: collapse;
67
+ font-size: 1em;
68
+ }
69
+ table td {
70
+ border: 1px solid #ddd;
71
+ padding: 5px;
72
+ }
73
+ table thead td {
74
+ border-bottom: 2px solid #000 !important;
75
+ font-weight: bold;
76
+ }
77
+ code, pre {
78
+ font-family: monospace sans-serif;
79
+ }
80
+ code {
81
+ background-color: #d8d7d7;
82
+ }
83
+ pre {
84
+ padding: 1em;
85
+ border: 1px dashed #ccc;
86
+ background: #f5f5f5;
87
+ overflow: auto;
88
+ }
89
+ hr {
90
+ display: block;
91
+ height: 1px;
92
+ border: 0;
93
+ border-top: 1px solid #ccc;
94
+ }
95
+
96
+ h1, h2, h3, h4,h5 {
97
+ font-weight: bold;
98
+ }
99
+
100
+ h1 {
101
+ font-size: 36px;
102
+ line-height: 40px;
103
+ margin-bottom: 10px;
104
+ }
105
+ h2 {
106
+ font-size: 30px;
107
+ line-height: 36px;
108
+ margin-bottom: 15px;
109
+ }
110
+ h3 {
111
+ font-size: 24px;
112
+ line-height: 30px;
113
+ margin-bottom: 10px;
114
+ }
115
+ h4 {
116
+ font-size: 18px;
117
+ line-height: 24px;
118
+ margin-bottom: 10px;
119
+ }
120
+ h4 {
121
+ font-size: 1em;
122
+ margin-bottom: 10px;
123
+ }
@@ -0,0 +1,369 @@
1
+ .redactor_box {
2
+ position: relative;
3
+ border: 1px solid #ddd;
4
+ line-height: 0;
5
+ }
6
+ .redactor_box, .redactor_box textarea {
7
+ background-color: #fff;
8
+ }
9
+ .redactor_box iframe {
10
+ outline: none;
11
+ width: 100%;
12
+ background: #fff;
13
+ display: block;
14
+ overflow: auto;
15
+ }
16
+ .redactor_box textarea {
17
+ font-family: Menlo, Monaco, monospace, sans-serif;
18
+ font-size: 13px;
19
+ overflow: auto;
20
+ resize: none;
21
+ margin: 0;
22
+ padding: 0;
23
+ display: block;
24
+ position: relative;
25
+ z-index: 1004;
26
+ outline: none;
27
+ border: none;
28
+ width: 100%;
29
+ }
30
+ .redactor_box textarea:focus {
31
+ outline: none !important;
32
+ border: none !important;
33
+ box-shadow: none;
34
+ }
35
+
36
+ /*
37
+ Fuulscreen
38
+ */
39
+ body .redactor_box_fullscreen {
40
+ border: medium none !important;
41
+ height: 100%;
42
+ left: 0;
43
+ position: absolute;
44
+ top: 0;
45
+ width: 100% !important;
46
+ z-index: 2000;
47
+ }
48
+
49
+ /*
50
+ TOOLBAR
51
+ */
52
+ .redactor_toolbar {
53
+ position: relative;
54
+ /*z-index: 2002;*/
55
+ height: 33px;
56
+ left: 0;
57
+ top: 0;
58
+ margin: 0 !important;
59
+ padding: 0 !important;
60
+ line-height: 0 !important;
61
+ list-style: none;
62
+ font-size: 0;
63
+ background: #f2f2f2;
64
+ background: -moz-linear-gradient(top, #f5f5f5 0%, #ddd 100%);
65
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#ddd));
66
+ background: -webkit-linear-gradient(top, #f5f5f5 0%,#ddd 100%);
67
+ background: -o-linear-gradient(top, #f5f5f5 0%,#ddd 100%);
68
+ background: -ms-linear-gradient(top, #f5f5f5 0%,#ddd 100%);
69
+ background: linear-gradient(top, #f5f5f5 0%,#ddd 100%);
70
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dddddd',GradientType=0 );
71
+ overflow: hidden;
72
+ border-bottom: 1px solid #c2c2c2;
73
+ }
74
+ .redactor_toolbar li {
75
+ float: left !important;
76
+ padding: 3px 1px;
77
+ padding-right: 0;
78
+ list-style-type: none;
79
+ }
80
+ .redactor_toolbar li.redactor_separator {
81
+ float: left;
82
+ height: 34px;
83
+ border-left: 1px solid #d7d7d7;
84
+ border-right: 1px solid #eee;
85
+ padding: 0;
86
+ margin: 0 2px 0 3px;
87
+ }
88
+ li.redactor_toolbar_right {
89
+ float: none;
90
+ float: right !important;
91
+ padding: 2px 0;
92
+ padding-right: 1px !important;
93
+ }
94
+ .redactor_toolbar li a, .redactor_toolbar li a span {
95
+ width: 25px;
96
+ height: 26px;
97
+ }
98
+ .redactor_toolbar li a {
99
+ border: 1px solid transparent;
100
+ * border: 1px solid #eee;
101
+ display: block;
102
+ line-height: 0;
103
+ font-size: 0;
104
+ cursor: pointer;
105
+ zoom: 1;
106
+ text-decoration: none;
107
+ }
108
+ .redactor_toolbar li a span {
109
+ display: block;
110
+ text-indent: -9999px;
111
+ background: url("redactor/img/icons.png") no-repeat top left;
112
+ }
113
+
114
+ .redactor_toolbar li a:hover {
115
+ border-color: #98a6ba;
116
+ background-color: #dde4ef;
117
+ }
118
+ .redactor_toolbar li a:active, .redactor_toolbar li a.act {
119
+ border-color: #b5b5b5;
120
+ background-color: #e8e8e8;
121
+ }
122
+
123
+
124
+ /*
125
+ BUTTONS
126
+ step 25px
127
+ */
128
+ body .redactor_toolbar li a.redactor_btn_html span { background-position: 0; }
129
+ body .redactor_toolbar li a.redactor_btn_styles span { background-position: -25px; }
130
+ body .redactor_toolbar li a.redactor_btn_bold span { background-position: -50px; }
131
+ body .redactor_toolbar li a.redactor_btn_italic span { background-position: -75px; }
132
+ body .redactor_toolbar li a.redactor_btn_deleted span { background-position: -550px; }
133
+ body .redactor_toolbar li a.redactor_btn_insertunorderedlist span { background-position: -100px; }
134
+ body .redactor_toolbar li a.redactor_btn_insertorderedlist span { background-position: -125px; }
135
+ body .redactor_toolbar li a.redactor_btn_outdent span { background-position: -150px; }
136
+ body .redactor_toolbar li a.redactor_btn_indent span { background-position: -175px; }
137
+ body .redactor_toolbar li a.redactor_btn_image span { background-position: -200px; }
138
+ body .redactor_toolbar li a.redactor_btn_video span { background-position: -225px; }
139
+ body .redactor_toolbar li a.redactor_btn_file span { background-position: -250px; }
140
+ body .redactor_toolbar li a.redactor_btn_table span { background-position: -275px; }
141
+ body .redactor_toolbar li a.redactor_btn_link span { background-position: -300px; }
142
+ body .redactor_toolbar li a.redactor_btn_fontcolor span { background-position: -325px; }
143
+ body .redactor_toolbar li a.redactor_btn_backcolor span { background-position: -350px; }
144
+ body .redactor_toolbar li a.redactor_btn_justifyleft span { background-position: -375px; }
145
+ body .redactor_toolbar li a.redactor_btn_justifycenter span { background-position: -400px; }
146
+ body .redactor_toolbar li a.redactor_btn_justifyright span { background-position: -425px; }
147
+ body .redactor_toolbar li a.redactor_btn_justify span { background-position: -450px; }
148
+ body .redactor_toolbar li a.redactor_btn_horizontalrule span { background-position: -475px; }
149
+ body .redactor_toolbar li a.redactor_btn_fullscreen span { background-position: -500px; }
150
+ body .redactor_toolbar li a.redactor_btn_format span { background-position: -575px; }
151
+ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-position: -525px !important; }
152
+
153
+
154
+ /*
155
+ RESIZER
156
+ */
157
+ .redactor_resizer {
158
+ font-family: Arial, Tahoma, Verdana, Helvetica, sans-serif;
159
+ background-color: #f5f5f5;
160
+ padding-top: 2px;
161
+ line-height: 4px;
162
+ font-size: 12px;
163
+ color: #ddd;
164
+ text-align: center;
165
+ text-shadow: 0 -1px 0 #aaa;
166
+ cursor: s-resize;
167
+ }
168
+
169
+
170
+
171
+ /*
172
+ DROPDOWN
173
+ */
174
+ .redactor_dropdown {
175
+ top: 28px;
176
+ left: 0;
177
+ z-index: 2004;
178
+ position: absolute;
179
+ width: 200px;
180
+ background-color: #fff;
181
+ border: 1px solid #ccc;
182
+ font-size: 13px;
183
+ -webkit-box-shadow: 0 2px 4px #ccc;
184
+ -moz-box-shadow: 0 2px 4px #ccc;
185
+ box-shadow: 0 2px 4px #ccc;
186
+ line-height: 21px;
187
+ padding: 10px;
188
+ }
189
+ .redactor_separator_drop {
190
+ border-top: 1px solid #ddd;;
191
+ padding: 0 !important;
192
+ line-height: 0;
193
+ font-size: 0;
194
+ }
195
+ .redactor_dropdown a {
196
+ display: block;
197
+ color: #000;
198
+ padding: 3px 5px;
199
+ text-decoration: none;
200
+ }
201
+ .redactor_dropdown a:hover {
202
+ color: #444 !important;
203
+ text-decoration: none;
204
+ background-color: #dde4ef;
205
+ }
206
+
207
+ /* ColorPicker */
208
+ .redactor_color_link {
209
+ padding: 0 !important;
210
+ width: 15px !important;
211
+ height: 15px !important;
212
+ float: left !important;
213
+ border: 2px solid #fff !important;
214
+ font-size: 0;
215
+ }
216
+ .redactor_color_none {
217
+ font-size: 11px;
218
+ }
219
+
220
+
221
+
222
+ /* MODAL */
223
+ #redactor_modal_overlay {
224
+ position: fixed;
225
+ margin: auto;
226
+ top: 0;
227
+ left: 0;
228
+ width: 100%;
229
+ height: 100%;
230
+ z-index: 50000;
231
+
232
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
233
+ filter:alpha(opacity=70);
234
+ opacity: 0.70;
235
+
236
+ background-color: #fff !important;
237
+ }
238
+
239
+ #redactor_modal {
240
+ background-color: #fff;
241
+ padding: 0;
242
+ position: fixed;
243
+ top: 50%;
244
+ left: 50%;
245
+
246
+ box-shadow: 0px 5px 20px #999;
247
+ -webkit-box-shadow: 0 5px 20px #999;
248
+ -moz-box-shadow: 0 5px 20px #999;
249
+
250
+ -webkit-border-radius: 8px;
251
+ -moz-border-radius: 8px;
252
+ border-radius: 8px;
253
+
254
+ z-index: 50001;
255
+ font-family: "Trebuchet MS", "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
256
+ color: #000;
257
+ }
258
+ #redactor_modal_header {
259
+ padding: 15px;
260
+ font-size: 18px;
261
+
262
+ border-radius: 8px 8px 0 0;
263
+
264
+ font-weight: bold;
265
+ background-color: #f6f6f6;
266
+ border-bottom: 1px solid #ddd;
267
+ }
268
+ #redactor_modal_inner {
269
+ padding: 30px;
270
+ }
271
+ #redactor_modal_close {
272
+ position: absolute;
273
+ right: 0px;
274
+ top: 11px;
275
+ font-size: 24px;
276
+ width: 30px;
277
+ height: 30px;
278
+ color: #999;
279
+ cursor: pointer;
280
+ }
281
+ #redactor_modal_close:hover {
282
+ color: #000;
283
+ }
284
+ #redactor_modal label {
285
+ display: inline !important;
286
+ }
287
+ .redactor_ruler {
288
+ margin-bottom: 10px;
289
+ width: 99% !important;
290
+ }
291
+ .redactor_ruler td {
292
+ font-size: 12px !important;
293
+ padding: 5px !important;
294
+ border: none !important;
295
+ vertical-align: middle !important;
296
+ }
297
+ #redactor_image_box {
298
+ height: 270px;
299
+ overflow: auto;
300
+ margin-bottom: 10px;
301
+ }
302
+ #redactor_image_box img {
303
+ margin-right: 10px;
304
+ margin-bottom: 10px;
305
+ cursor: pointer;
306
+ }
307
+ #redactor_tabs {
308
+ margin-bottom: 18px;
309
+ }
310
+ #redactor_tabs a {
311
+ display: inline-block;
312
+ border: 1px solid #ddd;
313
+ padding: 4px 14px;
314
+ font-size: 12px;
315
+ text-decoration: none;
316
+ color: #000;
317
+ line-height: 1;
318
+ -webkit-border-radius: 10px;
319
+ -moz-border-radius: 10px;
320
+ border-radius: 10px;
321
+ }
322
+ #redactor_tabs a:hover, #redactor_tabs a.redactor_tabs_act {
323
+ background-color: #eee;
324
+ color: #777 !important;
325
+ text-decoration: none !important;
326
+ }
327
+ .redactor_btns_box {
328
+ float: right;
329
+ padding: 6px 16px;
330
+ background-color: #eee;
331
+ -webkit-border-radius: 5px;
332
+ -moz-border-radius: 5px;
333
+ border-radius: 5px;
334
+ }
335
+
336
+ /* Drag and Drop Area */
337
+ .redactor_droparea {
338
+ position: relative;
339
+ width: 100%;
340
+ margin: auto;
341
+ margin-bottom: 5px;
342
+ }
343
+ .redactor_droparea .redactor_dropareabox {
344
+ z-index: 1;
345
+ position: relative;
346
+ text-align: center;
347
+ width: 99%;
348
+ padding: 60px 0;
349
+ border: 2px dashed #bbb;
350
+ }
351
+ .redactor_droparea .redactor_dropareabox, .redactor_dropalternative {
352
+ color: #777;
353
+ font-size: 12px;
354
+ }
355
+ .redactor_dropalternative {
356
+ margin: 4px 0 2px 0;
357
+ }
358
+ .redactor_dropareabox.hover {
359
+ background: #efe3b8;
360
+ border-color: #aaa;
361
+ }
362
+ .redactor_dropareabox.error {
363
+ background: #f7e5e5;
364
+ border-color: #dcc3c3;
365
+ }
366
+ .redactor_dropareabox.drop {
367
+ background: #f4f4ee;
368
+ border-color: #e0e5d6;
369
+ }
@@ -0,0 +1,119 @@
1
+ html {
2
+ padding: 0;
3
+ margin: 0;
4
+ }
5
+ body {
6
+ font-family: "PT Sans", "Trebuchet MS", Verdana, Arial, Tahoma, sans-serif;
7
+ font-size: 17px;
8
+ margin: 0;
9
+ padding: 0;
10
+ overflow-x: hidden;
11
+ background: #fff;
12
+ }
13
+ #page {
14
+ margin: 20px;
15
+ background: #fff;
16
+ }
17
+ #page:focus {
18
+ outline: none;
19
+ }
20
+
21
+ ::selection {
22
+ background-color: #333;
23
+ color: #fff;
24
+ text-shadow: none;
25
+ }
26
+
27
+ div,
28
+ p,
29
+ ul,
30
+ ol,
31
+ table,
32
+ dl,
33
+ blockquote,
34
+ pre,
35
+ iframe,
36
+ object,
37
+ hr {
38
+ margin-bottom: 15px;
39
+ line-height: 1.5em;
40
+ }
41
+ blockquote {
42
+ margin-left: 3em;
43
+ font-style: italic;
44
+ color: #777;
45
+ }
46
+ ul, ol {
47
+ padding-left: 2em;
48
+ }
49
+ ul ul,
50
+ ol ol,
51
+ ul ol,
52
+ ol ul {
53
+ border: none;
54
+ margin: 2px !important;
55
+ padding: 0;
56
+ padding-left: 2em;
57
+ }
58
+ dl dt { font-weight: bold; }
59
+ dd { margin-left: 1em;}
60
+
61
+ table {
62
+ border-collapse: collapse;
63
+ font-size: 1em;
64
+ }
65
+ table td {
66
+ border: 1px solid #ddd;
67
+ padding: 5px;
68
+ }
69
+ table thead td {
70
+ border-bottom: 2px solid #000 !important;
71
+ font-weight: bold;
72
+ }
73
+ code, pre {
74
+ font-family: monospace sans-serif;
75
+ }
76
+ code {
77
+ background-color: #d8d7d7;
78
+ }
79
+ pre {
80
+ padding: 1em;
81
+ border: 1px dashed #ccc;
82
+ background: #f5f5f5;
83
+ overflow: auto;
84
+ }
85
+ hr {
86
+ display: block;
87
+ height: 1px;
88
+ border: 0;
89
+ border-top: 1px solid #ccc;
90
+ }
91
+
92
+ h1, h2, h3, h4,h5 {
93
+ font-weight: bold;
94
+ }
95
+
96
+ h1 {
97
+ font-size: 36px;
98
+ line-height: 40px;
99
+ margin-bottom: 10px;
100
+ }
101
+ h2 {
102
+ font-size: 30px;
103
+ line-height: 36px;
104
+ margin-bottom: 15px;
105
+ }
106
+ h3 {
107
+ font-size: 24px;
108
+ line-height: 30px;
109
+ margin-bottom: 10px;
110
+ }
111
+ h4 {
112
+ font-size: 18px;
113
+ line-height: 24px;
114
+ margin-bottom: 10px;
115
+ }
116
+ h4 {
117
+ font-size: 1em;
118
+ margin-bottom: 10px;
119
+ }