geri 0.0.1

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 (211) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +26 -0
  4. data/app/assets/javascripts/geri/admin.js +33 -0
  5. data/app/assets/javascripts/geri/admin/app.js +758 -0
  6. data/app/assets/javascripts/geri/admin/editor.js +56 -0
  7. data/app/assets/javascripts/geri/admin/password_resets.js +2 -0
  8. data/app/assets/stylesheets/geri/admin.css.less +60 -0
  9. data/app/assets/stylesheets/geri/admin/app.css +4915 -0
  10. data/app/assets/stylesheets/geri/admin/ckeditor/contents.css +135 -0
  11. data/app/assets/stylesheets/geri/admin/editor.css.less +38 -0
  12. data/app/assets/stylesheets/geri/admin/password_resets.css +4 -0
  13. data/app/assets/stylesheets/geri/admin/skin-blue.less +142 -0
  14. data/app/assets/vendor/ckeditor/CHANGES.md +1065 -0
  15. data/app/assets/vendor/ckeditor/LICENSE.md +1420 -0
  16. data/app/assets/vendor/ckeditor/README.md +39 -0
  17. data/app/assets/vendor/ckeditor/adapters/jquery.js +10 -0
  18. data/app/assets/vendor/ckeditor/build-config.js +69 -0
  19. data/app/assets/vendor/ckeditor/ckeditor.js +775 -0
  20. data/app/assets/vendor/ckeditor/config.js +34 -0
  21. data/app/assets/vendor/ckeditor/contents.css +135 -0
  22. data/app/assets/vendor/ckeditor/lang/en.js +5 -0
  23. data/app/assets/vendor/ckeditor/plugins/about/dialogs/about.js +7 -0
  24. data/app/assets/vendor/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  25. data/app/assets/vendor/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  26. data/app/assets/vendor/ckeditor/plugins/clipboard/dialogs/paste.js +12 -0
  27. data/app/assets/vendor/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  28. data/app/assets/vendor/ckeditor/plugins/icons.png +0 -0
  29. data/app/assets/vendor/ckeditor/plugins/icons_hidpi.png +0 -0
  30. data/app/assets/vendor/ckeditor/plugins/link/dialogs/anchor.js +7 -0
  31. data/app/assets/vendor/ckeditor/plugins/link/dialogs/link.js +26 -0
  32. data/app/assets/vendor/ckeditor/plugins/link/images/anchor.png +0 -0
  33. data/app/assets/vendor/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  34. data/app/assets/vendor/ckeditor/samples/css/samples.css +1640 -0
  35. data/app/assets/vendor/ckeditor/samples/img/github-top.png +0 -0
  36. data/app/assets/vendor/ckeditor/samples/img/header-bg.png +0 -0
  37. data/app/assets/vendor/ckeditor/samples/img/header-separator.png +0 -0
  38. data/app/assets/vendor/ckeditor/samples/img/logo.png +0 -0
  39. data/app/assets/vendor/ckeditor/samples/img/navigation-tip.png +0 -0
  40. data/app/assets/vendor/ckeditor/samples/index.html +128 -0
  41. data/app/assets/vendor/ckeditor/samples/js/sample.js +53 -0
  42. data/app/assets/vendor/ckeditor/samples/js/sf.js +17 -0
  43. data/app/assets/vendor/ckeditor/samples/old/ajax.html +85 -0
  44. data/app/assets/vendor/ckeditor/samples/old/api.html +210 -0
  45. data/app/assets/vendor/ckeditor/samples/old/appendto.html +59 -0
  46. data/app/assets/vendor/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
  47. data/app/assets/vendor/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
  48. data/app/assets/vendor/ckeditor/samples/old/assets/posteddata.php +59 -0
  49. data/app/assets/vendor/ckeditor/samples/old/assets/sample.jpg +0 -0
  50. data/app/assets/vendor/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
  51. data/app/assets/vendor/ckeditor/samples/old/datafiltering.html +508 -0
  52. data/app/assets/vendor/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
  53. data/app/assets/vendor/ckeditor/samples/old/dialog/dialog.html +190 -0
  54. data/app/assets/vendor/ckeditor/samples/old/divreplace.html +144 -0
  55. data/app/assets/vendor/ckeditor/samples/old/enterkey/enterkey.html +106 -0
  56. data/app/assets/vendor/ckeditor/samples/old/index.html +122 -0
  57. data/app/assets/vendor/ckeditor/samples/old/inlineall.html +314 -0
  58. data/app/assets/vendor/ckeditor/samples/old/inlinebycode.html +124 -0
  59. data/app/assets/vendor/ckeditor/samples/old/inlinetextarea.html +113 -0
  60. data/app/assets/vendor/ckeditor/samples/old/jquery.html +103 -0
  61. data/app/assets/vendor/ckeditor/samples/old/readonly.html +76 -0
  62. data/app/assets/vendor/ckeditor/samples/old/replacebyclass.html +60 -0
  63. data/app/assets/vendor/ckeditor/samples/old/replacebycode.html +59 -0
  64. data/app/assets/vendor/ckeditor/samples/old/sample.css +357 -0
  65. data/app/assets/vendor/ckeditor/samples/old/sample.js +50 -0
  66. data/app/assets/vendor/ckeditor/samples/old/sample_posteddata.php +16 -0
  67. data/app/assets/vendor/ckeditor/samples/old/tabindex.html +78 -0
  68. data/app/assets/vendor/ckeditor/samples/old/toolbar/toolbar.html +235 -0
  69. data/app/assets/vendor/ckeditor/samples/old/uicolor.html +72 -0
  70. data/app/assets/vendor/ckeditor/samples/old/uilanguages.html +122 -0
  71. data/app/assets/vendor/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
  72. data/app/assets/vendor/ckeditor/samples/old/xhtmlstyle.html +234 -0
  73. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
  74. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
  75. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
  76. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
  77. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
  78. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
  79. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
  80. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/index.html +446 -0
  81. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
  82. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
  83. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
  84. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
  85. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
  86. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
  87. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
  88. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
  89. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
  90. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
  91. data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
  92. data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog.css +1 -0
  93. data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_ie.css +1 -0
  94. data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_ie7.css +1 -0
  95. data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_ie8.css +1 -0
  96. data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_iequirks.css +1 -0
  97. data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_opera.css +1 -0
  98. data/app/assets/vendor/ckeditor/skins/bootstrapck/editor.css +1 -0
  99. data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_gecko.css +1 -0
  100. data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_ie.css +1 -0
  101. data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_ie7.css +1 -0
  102. data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_ie8.css +1 -0
  103. data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_iequirks.css +1 -0
  104. data/app/assets/vendor/ckeditor/skins/bootstrapck/icons.png +0 -0
  105. data/app/assets/vendor/ckeditor/skins/bootstrapck/icons_hidpi.png +0 -0
  106. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/arrow.png +0 -0
  107. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/close.png +0 -0
  108. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/close.png +0 -0
  109. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/lock-open.png +0 -0
  110. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/lock.png +0 -0
  111. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/refresh.png +0 -0
  112. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/lock-open.png +0 -0
  113. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/lock.png +0 -0
  114. data/app/assets/vendor/ckeditor/skins/bootstrapck/images/refresh.png +0 -0
  115. data/app/assets/vendor/ckeditor/skins/bootstrapck/readme.md +35 -0
  116. data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/bootstrapck-sample.html +127 -0
  117. data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/css/bootstrapck-sample.css +1 -0
  118. data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/js/analytics.js +4 -0
  119. data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/js/jquery-1.11.0.min.js +189 -0
  120. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/gecko/editor_gecko.scss +25 -0
  121. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie/dialog_ie.scss +62 -0
  122. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie/editor_ie.scss +71 -0
  123. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/dialog_ie7.scss +68 -0
  124. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/editor_ie7.scss +213 -0
  125. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/dialog_ie8.scss +24 -0
  126. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/editor_ie8.scss +27 -0
  127. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/dialog_iequirks.scss +21 -0
  128. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/editor_iequirks.scss +79 -0
  129. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/opera/dialog_opera.scss +31 -0
  130. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_colorpanel.scss +119 -0
  131. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_elementspath.scss +66 -0
  132. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_mainui.scss +189 -0
  133. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_menu.scss +182 -0
  134. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_panel.scss +199 -0
  135. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_presets.scss +32 -0
  136. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_reset.scss +107 -0
  137. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_richcombo.scss +174 -0
  138. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_toolbar.scss +317 -0
  139. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/editor.scss +66 -0
  140. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/config/_colors.scss +61 -0
  141. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/config/_config.scss +9 -0
  142. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/config/_defaults.scss +37 -0
  143. data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/dialog/dialog.scss +822 -0
  144. data/app/assets/vendor/ckeditor/styles.js +111 -0
  145. data/app/controllers/geri/admin/admin_users_controller.rb +56 -0
  146. data/app/controllers/geri/admin/dashboard_controller.rb +8 -0
  147. data/app/controllers/geri/admin/editor_controller.rb +33 -0
  148. data/app/controllers/geri/admin/password_resets_controller.rb +21 -0
  149. data/app/controllers/geri/admin/sessions_controller.rb +24 -0
  150. data/app/controllers/geri/admin_controller.rb +19 -0
  151. data/app/controllers/geri/application_controller.rb +5 -0
  152. data/app/controllers/geri/pages_controller.rb +34 -0
  153. data/app/helpers/geri/admin/dashboard_helper.rb +4 -0
  154. data/app/helpers/geri/admin/editor_helper.rb +4 -0
  155. data/app/helpers/geri/admin/pages_helper.rb +45 -0
  156. data/app/helpers/geri/admin/partials_helper.rb +4 -0
  157. data/app/helpers/geri/admin/password_resets_helper.rb +4 -0
  158. data/app/helpers/geri/admin/sessions_helper.rb +4 -0
  159. data/app/helpers/geri/admin_helper.rb +24 -0
  160. data/app/helpers/geri/admin_users_helper.rb +4 -0
  161. data/app/helpers/geri/application_helper.rb +26 -0
  162. data/app/helpers/geri/meta_helper.rb +32 -0
  163. data/app/mailers/application_mailer.rb +4 -0
  164. data/app/mailers/geri/admin_user_mailer.rb +11 -0
  165. data/app/models/geri/admin_user.rb +14 -0
  166. data/app/models/geri/content.rb +6 -0
  167. data/app/models/geri/password_reset.rb +17 -0
  168. data/app/models/geri/session.rb +20 -0
  169. data/app/views/geri/admin/admin_users/_form.html.erb +5 -0
  170. data/app/views/geri/admin/admin_users/edit.html.erb +27 -0
  171. data/app/views/geri/admin/admin_users/index.html.erb +45 -0
  172. data/app/views/geri/admin/admin_users/new.html.erb +17 -0
  173. data/app/views/geri/admin/dashboard/index.html.erb +1 -0
  174. data/app/views/geri/admin/editor/template.html.erb +17 -0
  175. data/app/views/geri/admin/password_resets/new.html.erb +17 -0
  176. data/app/views/geri/admin/sessions/new.html.erb +23 -0
  177. data/app/views/geri/admin/shared/_aside.html.erb +16 -0
  178. data/app/views/geri/admin/shared/_header.html.erb +31 -0
  179. data/app/views/geri/admin/shared/_menu_item.html.erb +17 -0
  180. data/app/views/geri/admin_user_mailer/reset_password_email.text.erb +7 -0
  181. data/app/views/layouts/geri/admin.html.erb +24 -0
  182. data/app/views/layouts/geri/admin/sessions.html.erb +21 -0
  183. data/app/views/layouts/mailer.html.erb +5 -0
  184. data/app/views/layouts/mailer.text.erb +1 -0
  185. data/config/initializers/geri.rb +7 -0
  186. data/config/initializers/sorcery.rb +463 -0
  187. data/config/locales/devise.en.yml +62 -0
  188. data/config/locales/en.yml +13 -0
  189. data/config/routes.rb +23 -0
  190. data/db/migrate/20160409151523_create_geri_contents.rb +8 -0
  191. data/db/migrate/20160411205412_sorcery_core.rb +20 -0
  192. data/lib/generators/geri/install/USAGE +8 -0
  193. data/lib/generators/geri/install/install_generator.rb +54 -0
  194. data/lib/generators/geri/install/templates/bower.json +8 -0
  195. data/lib/generators/geri/install/templates/index.html.erb +46 -0
  196. data/lib/generators/geri/install/templates/initializer.rb +12 -0
  197. data/lib/generators/geri/install/templates/layout.html.erb +11 -0
  198. data/lib/generators/geri/install/templates/site.css.less +1 -0
  199. data/lib/generators/geri/install/templates/site.js +1 -0
  200. data/lib/geri.rb +7 -0
  201. data/lib/geri/cli.rb +6 -0
  202. data/lib/geri/cli/base.rb +23 -0
  203. data/lib/geri/cli/extension.rb +18 -0
  204. data/lib/geri/config.rb +29 -0
  205. data/lib/geri/config/menu_item.rb +35 -0
  206. data/lib/geri/engine.rb +34 -0
  207. data/lib/geri/tasks.rb +3 -0
  208. data/lib/geri/tasks/create_admin_user.rb +40 -0
  209. data/lib/geri/version.rb +3 -0
  210. data/lib/tasks/geri_tasks.rake +15 -0
  211. metadata +449 -0
@@ -0,0 +1,27 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ editor_ie8.css
8
+ ===============
9
+
10
+ This file contains styles to used by Internet Explorer 8 only.
11
+ */
12
+
13
+ /* Base it on editor_ie.css, overriding it with styles defined in this file. */
14
+ @import "../../components/editor";
15
+
16
+ .cke_toolbox_collapser .cke_arrow
17
+ {
18
+ border-width:4px;
19
+ }
20
+ .cke_toolbox_collapser.cke_toolbox_collapser_min .cke_arrow
21
+ {
22
+ border-width:3px;
23
+ }
24
+ .cke_toolbox_collapser .cke_arrow
25
+ {
26
+ margin-top: 0;
27
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ dialog_ie7.css
8
+ ===============
9
+
10
+ This file contains styles to used by Internet Explorer in
11
+ Quirks mode only.
12
+ */
13
+
14
+ /* Base it on dialog_ie.css, overriding it with styles defined in this file. */
15
+ @import "../../dialog/dialog";
16
+
17
+ /* [IE7-8] Filter on footer causes background artifacts when opening dialog. */
18
+ .cke_dialog_footer
19
+ {
20
+ filter: "";
21
+ }
@@ -0,0 +1,79 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ editor_iequirks.css
8
+ ===============
9
+
10
+ This file contains styles to used by all versions of Internet Explorer
11
+ in Quirks mode only.
12
+ */
13
+
14
+ /* Base it on editor_ie.css, overriding it with styles defined in this file. */
15
+ @import "../../components/editor";
16
+
17
+ .cke_top,
18
+ .cke_contents,
19
+ .cke_bottom
20
+ {
21
+ width: 100%; /* hasLayout = true */
22
+ }
23
+
24
+ .cke_button_arrow
25
+ {
26
+ font-size: 0; /* Set minimal font size, so arrow won't be streched by the text that doesn't exist. */
27
+ }
28
+
29
+ /* Bring back toolbar buttons in RTL. */
30
+
31
+ .cke_rtl .cke_toolgroup,
32
+ .cke_rtl .cke_toolbar_separator,
33
+ .cke_rtl .cke_button,
34
+ .cke_rtl .cke_button *,
35
+ .cke_rtl .cke_combo,
36
+ .cke_rtl .cke_combo *,
37
+ .cke_rtl .cke_path_item,
38
+ .cke_rtl .cke_path_item *,
39
+ .cke_rtl .cke_path_empty
40
+ {
41
+ float: none;
42
+ }
43
+
44
+ .cke_rtl .cke_toolgroup,
45
+ .cke_rtl .cke_toolbar_separator,
46
+ .cke_rtl .cke_combo_button,
47
+ .cke_rtl .cke_combo_button *,
48
+ .cke_rtl .cke_button,
49
+ .cke_rtl .cke_button_icon,
50
+ {
51
+ display: inline-block;
52
+ vertical-align: top;
53
+ }
54
+
55
+ /* Otherwise formatting toolbar breaks when editing a mixed content (#9893). */
56
+ .cke_rtl .cke_button_icon
57
+ {
58
+ float: none;
59
+ }
60
+
61
+ .cke_resizer
62
+ {
63
+ width: 10px;
64
+ }
65
+
66
+ .cke_source
67
+ {
68
+ white-space: normal;
69
+ }
70
+
71
+ .cke_bottom
72
+ {
73
+ position: static; /* Without this bottom space doesn't move when resizing editor. */
74
+ }
75
+
76
+ .cke_colorbox
77
+ {
78
+ font-size: 0; /* Set minimal font size, so button won't be streched by the text that doesn't exist. */
79
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ dialog_opera.css
8
+ ===============
9
+
10
+ This file contains styles to used by all versions of Opera only.
11
+ */
12
+
13
+ /* Base it on dialog.css, overriding it with styles defined in this file. */
14
+ @import "../../dialog/dialog";
15
+
16
+ /* Opera has problem with box-shadow and td with border-collapse: collapse */
17
+ /* inset shadow is mis-aligned */
18
+ .cke_dialog_footer
19
+ {
20
+ display: block;
21
+ height: 38px;
22
+ }
23
+
24
+ .cke_ltr .cke_dialog_footer > *
25
+ {
26
+ float:right;
27
+ }
28
+ .cke_rtl .cke_dialog_footer > *
29
+ {
30
+ float:left;
31
+ }
@@ -0,0 +1,119 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ colorpanel.css (part of editor.css)
8
+ =====================================
9
+
10
+ The color panel is related to the contents part of the panels that are
11
+ displayed when clicking the color buttons of the toolbar. See panels.css for
12
+ styles related to the outer part of panels.
13
+
14
+ The following is the visual representation of the color panel contents:
15
+
16
+ +-- .cke_panel_block.cke_colorblock --+
17
+ | +-- a.cke_colorauto --------------+ |
18
+ | | | |
19
+ | | AUTOMATIC COLOR | |
20
+ | | | |
21
+ | +---------------------------------+ |
22
+ | +-- table ------------------------+ |
23
+ | | | |
24
+ | | COLOR PALETTE | |
25
+ | | | |
26
+ | |---------------------------------| |
27
+ | | "More Colors" | |
28
+ | +---------------------------------+ |
29
+ +-------------------------------------+
30
+
31
+ The AUTOMATIC COLOR section is an <a> containing a table with two cells with
32
+ the following contents:
33
+
34
+ +-- TD -----------------+ +-- TD -----------------+
35
+ | +-- .cke_colorbox --+ | | |
36
+ | | | | | "Automatic" |
37
+ | +-------------------+ | | |
38
+ +-----------------------+ +-----------------------+
39
+
40
+ The COLOR PALETTE section instead is a table with a variable number of cells
41
+ (by default 8). Each cell represents a color box, with the following structure:
42
+
43
+ +-- A.cke_colorbox ---------+
44
+ | +-- SPAN.cke_colorbox --+ |
45
+ | | | |
46
+ | +-----------------------+ |
47
+ +---------------------------+
48
+ */
49
+
50
+ /* The container of the color palette. */
51
+ .cke_colorblock {
52
+ padding: 3px;
53
+ font-size: 11px;
54
+ font-family: 'Microsoft Sans Serif', Tahoma, Arial, Verdana, Sans-Serif;
55
+ }
56
+
57
+ .cke_colorblock,
58
+ .cke_colorblock a {
59
+ text-decoration: none;
60
+ color: #000;
61
+ }
62
+
63
+ /* The box which is to represent a single color on the color palette.
64
+ It is a small, square-shaped element which can be selected from the palette. */
65
+ span.cke_colorbox {
66
+ width: 10px;
67
+ height: 10px;
68
+ border: 1px solid $gray;
69
+ float: left;
70
+ }
71
+
72
+ .cke_rtl span.cke_colorbox {
73
+ float: right;
74
+ }
75
+
76
+ /* The wrapper of the span.cke_colorbox. It provides an extra border and padding. */
77
+ a.cke_colorbox {
78
+ border: 1px solid #fff;
79
+ padding: 2px;
80
+ float: left;
81
+ width: 12px;
82
+ height: 12px;
83
+ border-radius: 2px;
84
+ }
85
+
86
+ .cke_rtl a.cke_colorbox {
87
+ float: right;
88
+ }
89
+
90
+ /* Different states of the a.cke_colorbox wrapper. */
91
+ a {
92
+ &:hover, &:focus, &:active {
93
+ &.cke_colorbox {
94
+ border: 1px solid $hr-border;
95
+ background-color: $gray-lighter;
96
+ }
97
+ }
98
+ }
99
+
100
+ /* Buttons which are visible at the top/bottom of the color palette:
101
+ - cke_colorauto (TOP) applies the automatic color.
102
+ - cke_colormore (BOTTOM) executes the color dialog.
103
+ */
104
+ a.cke_colorauto, a.cke_colormore {
105
+ border: 1px solid #fff;
106
+ padding: 2px;
107
+ display: block;
108
+ cursor: pointer;
109
+ }
110
+
111
+ /* Different states of cke_colorauto/cke_colormore buttons. */
112
+ a {
113
+ &:hover, &:focus, &:active {
114
+ &.cke_colorauto, &.cke_colormore {
115
+ border: 1px solid $hr-border;
116
+ background-color: $gray-lighter;
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ elementspath.css (part of editor.css)
8
+ =======================================
9
+
10
+ This file styles the "Elements Path", whith is the list of element names
11
+ present at the the bottom bar of the CKEditor interface.
12
+
13
+ The following is a visual representation of its main elements:
14
+
15
+ +-- .cke_path ---------------------------------------------------------------+
16
+ | +-- .cke_path_item ----+ +-- .cke_path_item ----+ +-- .cke_path_empty ---+ |
17
+ | | | | | | | |
18
+ | +----------------------+ +----------------------+ +----------------------+ |
19
+ +----------------------------------------------------------------------------+
20
+ */
21
+
22
+ /* The box that holds the entire elements path. */
23
+ .cke_path {
24
+ float: left;
25
+ margin: -2px 0 2px;
26
+ }
27
+
28
+ /* Each item of the elements path. */
29
+ .cke_path_item,
30
+ /* Empty element available at the end of the elements path, to help us keeping
31
+ the proper box size when the elements path is empty. */
32
+ .cke_path_empty {
33
+ display: inline-block;
34
+ float: left;
35
+ padding: 3px 4px;
36
+ margin-right: 2px;
37
+ cursor: default;
38
+ text-decoration: none;
39
+ outline: 0;
40
+ border: 0;
41
+ color: #4c4c4c;
42
+ font-weight: bold;
43
+ font-size: 11px;
44
+ }
45
+
46
+ .cke_rtl {
47
+ .cke_path, .cke_path_item, .cke_path_empty {
48
+ float: right;
49
+ }
50
+ }
51
+
52
+ /* The items are <a> elements, so we define its hover states here. */
53
+ a.cke_path_item {
54
+ &:hover, &:focus, &:active {
55
+ background-color: #bfbfbf;
56
+ color: #333;
57
+ border-radius: 2px;
58
+ }
59
+ }
60
+
61
+ .cke_hc a.cke_path_item {
62
+ &:hover, &:focus, &:active {
63
+ border: 2px solid;
64
+ padding: 1px 2px;
65
+ }
66
+ }
@@ -0,0 +1,189 @@
1
+ /*
2
+ Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.md or http://ckeditor.com/license
4
+ */
5
+
6
+ /*
7
+ mainui.css (part of editor.css)
8
+ =================================
9
+
10
+ This file styles the basic structure of the CKEditor user interface - the box
11
+ that holds everything.
12
+
13
+ CKEditor offers two main editing modes. The main UI blocks that compose these
14
+ modes are:
15
+
16
+ For "Theme UI" mode, the one most generally used:
17
+
18
+ +-- .cke_chrome ----------------------+
19
+ |+-- .cke_inner ---------------------+|
20
+ || +-- .cke_top -------------------+ ||
21
+ || | | ||
22
+ || +-------------------------------+ ||
23
+ || +-- .cke_contents --------------+ ||
24
+ || | | ||
25
+ || +-------------------------------+ ||
26
+ || +-- .cke_bottom ----------------+ ||
27
+ || | | ||
28
+ || +-------------------------------+ ||
29
+ |+-----------------------------------+|
30
+ +-------------------------------------+
31
+
32
+ For "Inline Editing" mode:
33
+
34
+ +-- .cke_chrome .cke_float------------+
35
+ |+-- .cke_inner ---------------------+|
36
+ || +-- .cke_top -------------------+ ||
37
+ || | | ||
38
+ || +-------------------------------+ ||
39
+ |+-----------------------------------+|
40
+ +-------------------------------------+
41
+
42
+ Special outer level classes used in this file:
43
+
44
+ .cke_hc: Available when the editor is rendered on "High Contrast".
45
+
46
+ */
47
+
48
+ /* The outer boundary of the interface. */
49
+ .cke_chrome {
50
+ /* This is <span>, so transform it into a block.*/
51
+ display: block;
52
+ border: 1px solid $hr-border;
53
+ border-radius: $border-radius;
54
+ padding: 0 3px;
55
+ background: $gray-lighter;
56
+ }
57
+
58
+ /* The inner boundary of the interface. */
59
+ .cke_inner {
60
+ /* This is <span>, so transform it into a block.*/
61
+ display: block;
62
+
63
+ -webkit-touch-callout: none;
64
+
65
+ background: transparent;
66
+ padding: 0;
67
+ }
68
+
69
+ /* Added to the outer boundary of the UI when in inline editing,
70
+ when the UI is floating. */
71
+ .cke_float {
72
+ /* Make white the space between the outer and the inner borders. */
73
+ border: none;
74
+
75
+ .cke_inner {
76
+ /* As we don't have blocks following top (toolbar) we suppress the padding
77
+ as the toolbar defines its own margin. */
78
+ padding-bottom: 0;
79
+ }
80
+
81
+ .cke_top {
82
+ border: 1px solid $hr-border;
83
+ }
84
+ }
85
+
86
+ /* Make the main spaces enlarge to hold potentially floated content. */
87
+ .cke_top, .cke_contents, .cke_bottom {
88
+ /* These are <span>s, so transform them into blocks.*/
89
+ display: block;
90
+
91
+ /* Ideally this should be "auto", but it shows scrollbars in IE7. */
92
+ overflow: hidden;
93
+ }
94
+
95
+ .cke_top, .cke_bottom {
96
+ padding: 3px 0 0;
97
+ background: $gray-lighter;
98
+ }
99
+
100
+ .cke_top {
101
+ /* Allow breaking toolbars when in a narrow editor. (#9947) */
102
+ white-space: normal;
103
+ }
104
+
105
+ .cke_contents {
106
+ background-color: #fff;
107
+ border: 1px solid $hr-border;
108
+ border-radius: $border-radius;
109
+ }
110
+
111
+ .cke_bottom {
112
+ position: relative;
113
+ }
114
+
115
+ /* On iOS we need to manually enable scrolling in the contents block. (#9945) */
116
+ .cke_browser_ios .cke_contents {
117
+ overflow-y: auto;
118
+ -webkit-overflow-scrolling: touch;
119
+ }
120
+
121
+ /* The resizer is the small UI element that is rendered at the bottom right
122
+ part of the editor. It makes is possible to resize the editor UI. */
123
+ .cke_resizer {
124
+ /* To avoid using images for the resizer, we create a small triangle,
125
+ using some CSS magic. */
126
+ width: 0;
127
+ height: 0;
128
+ overflow: hidden;
129
+ width: 0;
130
+ height: 0;
131
+ overflow: hidden;
132
+ border-width: 10px 10px 0 0;
133
+ border-color: transparent $gray-dark transparent transparent;
134
+ border-style: dashed solid dashed dashed;
135
+
136
+ font-size: 0;
137
+ vertical-align: bottom;
138
+
139
+ margin-top: 6px;
140
+
141
+ /* A margin in case of no other element in the same container
142
+ to keep a distance to the bottom edge. */
143
+ margin-bottom: 2px;
144
+ }
145
+
146
+ .cke_hc .cke_resizer {
147
+ font-size: 15px;
148
+ width: auto;
149
+ height: auto;
150
+ border-width: 0;
151
+ }
152
+
153
+ .cke_resizer_ltr {
154
+ cursor: se-resize;
155
+
156
+ float: right;
157
+ margin-right: -4px;
158
+ }
159
+
160
+ /* This class is added in RTL mode. This is a special case for the resizer
161
+ (usually the .cke_rtl class is used), because it may not necessarily be in
162
+ RTL mode if the main UI is RTL. It depends instead on the context where the
163
+ editor is inserted on. */
164
+ .cke_resizer_rtl {
165
+ border-width: 10px 0 0 10px;
166
+ border-color: transparent transparent transparent $gray;
167
+ border-style: dashed dashed dashed solid;
168
+
169
+ cursor: sw-resize;
170
+
171
+ float: left;
172
+ margin-left: -4px;
173
+ right: auto;
174
+ }
175
+
176
+ /* The editing area (where users type) can be rendered as an editable <div>
177
+ element (e.g. divarea plugin). In that case, this is the class applied to
178
+ that element. */
179
+ .cke_wysiwyg_div {
180
+ display: block;
181
+ height: 100%;
182
+ overflow: auto;
183
+ padding: 0 8px;
184
+ outline-style: none;
185
+
186
+ -moz-box-sizing: border-box;
187
+ -webkit-box-sizing: border-box;
188
+ box-sizing: border-box;
189
+ }