geri 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
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,182 @@
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
+ menu.css (part of editor.css)
8
+ ===============================
9
+
10
+ This file styles menus used in the editor UI. These menus are the list of
11
+ options available inside some "floating panels", like menu buttons of the
12
+ toolbar or the context menu.
13
+
14
+ Note that the menu itself doesn't include the floating element that holds it.
15
+ That element is styles in the panel.css file.
16
+
17
+ The following is a visual representation of the main elements of a menu:
18
+
19
+ +-- .cke_menu -----------------+
20
+ | +-- .cke_menuitem --------+ |
21
+ | | +-- .cke_menubutton ---+ | |
22
+ | | | | | |
23
+ | | +----------------------+ | |
24
+ | +--------------------------+ |
25
+ | +-- .cke_menuseparator ----+ |
26
+ | ... |
27
+ +------------------------------+
28
+
29
+ This is the .cke_menubutton structure:
30
+ (Note that the menu button icon shares with toolbar button the common class .cke_button_icon to achieve the same outlook.)
31
+
32
+ +-- .cke_menubutton -------------------------------------------------------------------------+
33
+ | +-- .cke_menubutton_inner ---------------------------------------------------------------+ |
34
+ | | +-- .cke_menubutton_icon ---+ +-- .cke_menubutton_label --+ +-- .cke_cke_menuarrow --+ | |
35
+ | | | +-- .cke_button_icon ---+ | | | | | | |
36
+ | | | | | | | | | | | |
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
+ .cke_rtl: Available when the editor UI is on RTL.
46
+ */
47
+
48
+ /* .cke_menuitem is the element that holds the entire structure of each of the
49
+ menu items. */
50
+
51
+ .cke_menubutton {
52
+ /* The "button" inside a menu item is a <a> element.
53
+ Transforms it into a block. */
54
+ display: block;
55
+ }
56
+
57
+ .cke_button_icon {
58
+ opacity: .8;
59
+ }
60
+
61
+ .cke_menuitem span {
62
+ /* Avoid the text selection cursor inside menu items. */
63
+ cursor: default;
64
+ }
65
+
66
+ .cke_menubutton {
67
+ &:hover, &:focus, &:active {
68
+ background-color: #D3D3D3;
69
+ display: block;
70
+ }
71
+ }
72
+
73
+ .cke_hc .cke_menubutton {
74
+ padding: 2px;
75
+ &:hover, &:focus, &:active {
76
+ border: 2px solid;
77
+ padding: 0;
78
+ }
79
+ }
80
+
81
+ .cke_menubutton_inner {
82
+ display: table-row;
83
+ }
84
+
85
+ .cke_menubutton_icon,
86
+ .cke_menubutton_label,
87
+ .cke_menuarrow {
88
+ display: table-cell;
89
+ }
90
+
91
+ /* The menu item icon. */
92
+ .cke_menubutton_icon {
93
+ background-color: #D7D8D7;
94
+ opacity: 0.70; /* Safari, Opera and Mozilla */
95
+ filter: alpha(opacity=70); /* IE */
96
+ padding: 4px;
97
+ }
98
+
99
+ .cke_hc .cke_menubutton_icon {
100
+ height: 16px;
101
+ width: 0;
102
+ padding: 4px 0;
103
+ }
104
+
105
+ .cke_menubutton {
106
+ &:hover, &:focus, &:active {
107
+ .cke_menubutton_icon {
108
+ background-color: #D0D2D0;
109
+ }
110
+ }
111
+ }
112
+
113
+ .cke_menubutton_disabled {
114
+ &:hover, &:focus, &:active {
115
+ .cke_menubutton_icon {
116
+ /* The icon will get opacity as well when hovered. */
117
+ opacity: 0.3;
118
+ filter: alpha(opacity=30);
119
+ }
120
+ }
121
+ }
122
+
123
+ /* The textual part of each menu item. */
124
+ .cke_menubutton_label {
125
+ padding: 0 5px;
126
+ background-color: transparent;
127
+ width: 100%;
128
+ vertical-align: middle;
129
+ }
130
+
131
+ .cke_menubutton_disabled .cke_menubutton_label {
132
+ /* Greyed label text indicates a disabled menu item. */
133
+ opacity: 0.3;
134
+ filter: alpha(opacity=30);
135
+ }
136
+
137
+ .cke_menubutton_on {
138
+ border: 1px solid #dedede;
139
+ background-color: #f2f2f2;
140
+ .cke_menubutton_icon {
141
+ padding-right: 3px;
142
+ }
143
+ }
144
+
145
+ .cke_menubutton {
146
+ &:hover, &:focus, &:active {
147
+ background-color: #EFF0EF;
148
+ }
149
+ }
150
+
151
+ .cke_panel_frame .cke_menubutton_label {
152
+ display: none;
153
+ }
154
+
155
+ /* The separator used to separate menu item groups. */
156
+ .cke_menuseparator {
157
+ background-color: #D3D3D3;
158
+ height: 1px;
159
+ filter: alpha(opacity=70); /* IE */
160
+ opacity: 0.70; /* Safari, Opera and Mozilla */
161
+ }
162
+
163
+ /* The small arrow shown for item with sub-menus. */
164
+ .cke_menuarrow {
165
+ background-image: url(images/arrow.png);
166
+ background-position: 0 10px;
167
+ background-repeat: no-repeat;
168
+ padding: 0 5px;
169
+ span {
170
+ display: none;
171
+ }
172
+ }
173
+
174
+ .cke_rtl .cke_menuarrow {
175
+ background-position: 5px -13px;
176
+ background-repeat: no-repeat;
177
+ }
178
+
179
+ .cke_hc .cke_menuarrow span {
180
+ vertical-align: middle;
181
+ display: inline;
182
+ }
@@ -0,0 +1,199 @@
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
+ panel.css (part of editor.css)
8
+ ================================
9
+
10
+ Panels are floating elements that can hold different types of contents.
11
+ The following are common uses of it:
12
+
13
+ - The element that toolbar combos display when opening them.
14
+ - The context menu.
15
+ - The list of items displayed by "menu buttons" (e.g. scayt).
16
+ - The panel shown when opening "panel buttons" (e.g. color buttons).
17
+
18
+ Panel contents are wrapped into an iframe, so it is possible to have additional
19
+ CSS loaded inside them (e.g. to have more accurate preview on the styles combo).
20
+
21
+ The following is a visual representation of the outer elements of a panel:
22
+
23
+ +-- .cke_panel(*) ---------------------+
24
+ | +-- IFRAME.cke_panel_frame --------+ |
25
+ | | +-- HTML.cke_panel_container --+ | |
26
+ | | | +-- .cke_panel_block ------+ | | |
27
+ | | | | | | | |
28
+ | | | | (contents here) | | | |
29
+ | | | | | | | |
30
+ | | | +--------------------------+ | | |
31
+ | | +------------------------------+ | |
32
+ | +----------------------------------+ |
33
+ +--------------------------------------+
34
+
35
+ (*) All kinds of panel share the above structure. Menu panels adds the
36
+ .cke_menu_panel class to the outer element, while toolbar combos add the
37
+ .cke_combopanel class.
38
+
39
+ This file also defines styles for panel lists (used by combos). For menu-like
40
+ panel contents and color panels check menu.css and colorpanel.css.
41
+ */
42
+
43
+ /* The box that holds an IFRAME. It's inserted into a host document and positioned
44
+ absolutely by the application. It floats above the host document/editor. */
45
+ .cke_panel {
46
+ /* Restore the loading hide */
47
+ visibility: visible;
48
+ width: 120px;
49
+ height: 100px;
50
+ overflow: hidden;
51
+ margin-top: 5px;
52
+
53
+ background-color: #fff;
54
+ border: 1px solid $gray;
55
+ border-radius: $border-radius;
56
+ }
57
+
58
+ /* This class represents panels which are used as context menus. */
59
+ .cke_menu_panel {
60
+ padding: 0;
61
+ margin: 0;
62
+ }
63
+
64
+ /* This class represents panels which are used by rich combos. */
65
+ .cke_combopanel {
66
+ width: 150px;
67
+ height: 178px;
68
+ }
69
+
70
+ /* The IFRAME the panel is wrapped into. */
71
+ .cke_panel_frame {
72
+ width: 100%;
73
+ height: 100%;
74
+ font-size: 12px;
75
+
76
+ overflow: auto;
77
+ overflow-x: hidden;
78
+ }
79
+
80
+ /* The HTML document which is a direct descendant of the IFRAME */
81
+ .cke_panel_container {
82
+ overflow-y: auto;
83
+ overflow-x: hidden;
84
+ }
85
+
86
+ /*
87
+ Here we start the definition of panel lists (e.g. combo panels). The following
88
+ is its visual representation:
89
+
90
+ +-- .cke_panel_block -----------------+
91
+ | +-- .cke_panel_grouptitle --------+ |
92
+ | | | |
93
+ | +---------------------------------+ |
94
+ | +-- .cke_panel_list --------------+ |
95
+ | | +-- .cke_panel_listItem ------+ | |
96
+ | | | +-- a --------------------+ | | |
97
+ | | | | +-- span -------------+ | | | |
98
+ | | | | | | | | | |
99
+ | | | | +---------------------+ | | | |
100
+ | | | +-------------------------+ | | |
101
+ | | +-----------------------------+ | |
102
+ | | +-- .cke_panel_listItem ------+ | |
103
+ | | | +-- a --------------------+ | | |
104
+ | | | | +-- span -------------+ | | | |
105
+ | | | | | | | | | |
106
+ | | | | +---------------------+ | | | |
107
+ | | | +-------------------------+ | | |
108
+ | | +-----------------------------+ | |
109
+ | | ... | |
110
+ | +---------------------------------+ |
111
+ +-------------------------------------+
112
+ */
113
+
114
+
115
+ /* The list of panel items. */
116
+ .cke_panel_list {
117
+ list-style-type: none;
118
+ margin: 3px;
119
+ padding: 0;
120
+ white-space: nowrap;
121
+ }
122
+
123
+ /* The item of .cke_panel_list */
124
+ .cke_panel_listItem {
125
+ margin: 0;
126
+ padding-bottom: 1px;
127
+ }
128
+
129
+ /* The child of .cke_panel_listItem. These elements contain spans which are
130
+ to display a real name of the property which is visible for an end-user. */
131
+ .cke_panel_listItem a {
132
+ padding: 3px 4px;
133
+ display: block;
134
+ border: 1px solid #fff;
135
+ color: inherit !important;
136
+ text-decoration: none;
137
+ overflow: hidden;
138
+ text-overflow: ellipsis;
139
+ border-radius: 2px;
140
+ &:hover, &:focus, &:active {
141
+ background-color: $primary-lighter;
142
+ }
143
+ }
144
+
145
+ /* IE6 */
146
+ * html .cke_panel_listItem a {
147
+ width : 100%;
148
+
149
+ /* IE is not able to inherit the color, so we must force it to black */
150
+ color: #000;
151
+ }
152
+
153
+ /* IE7 */
154
+ *:first-child+html .cke_panel_listItem a {
155
+ /* IE is not able to inherit the color, so we must force it to black */
156
+ color: #000;
157
+ }
158
+
159
+ .cke_panel_listItem.cke_selected a {
160
+ background-color: $primary-light;
161
+ outline: none;
162
+ }
163
+
164
+ .cke_hc .cke_panel_listItem a {
165
+ border-style: none;
166
+ }
167
+
168
+ .cke_hc .cke_panel_listItem a {
169
+ &:hover, &:focus, &:active {
170
+ border: 2px solid;
171
+ padding: 1px 2px;
172
+ }
173
+ }
174
+
175
+ /* The title of the entire panel which is visible on top of the list. */
176
+ .cke_panel_grouptitle {
177
+ font-size: 11px;
178
+ font-weight: bold;
179
+ white-space: nowrap;
180
+ margin: 0;
181
+ padding: 6px 6px;
182
+
183
+ color: #474747;
184
+ border-bottom: 1px solid $gray;
185
+
186
+ background: $gray-lighter;
187
+ &:first-child {
188
+ border-radius: $border-radius $border-radius 0 0;
189
+ }
190
+ }
191
+
192
+ /* The following styles set defaults of the elements used by the Paragraph
193
+ Format panel. */
194
+ .cke_panel_listItem {
195
+ p, h1, h2, h3, h4, h5, h6, pre {
196
+ margin-top: 0px;
197
+ margin-bottom: 0px;
198
+ }
199
+ }
@@ -0,0 +1,32 @@
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
+ /* "Source" button label */
7
+ .cke_button__source_label,
8
+ .cke_button__sourcedialog_label {
9
+ display: inline;
10
+ }
11
+
12
+ /* "Font Size" combo width */
13
+ .cke_combo__fontsize .cke_combo_text {
14
+ width: 30px;
15
+ }
16
+
17
+ /* "Font Size" panel size */
18
+ .cke_combopanel__fontsize {
19
+ width: 120px;
20
+ }
21
+
22
+ /* Editable regions */
23
+ .cke_source {
24
+ font-family: 'Courier New' , Monospace;
25
+ font-size: small;
26
+ background-color: #fff;
27
+ white-space: pre;
28
+ }
29
+
30
+ .cke_wysiwyg_frame, .cke_wysiwyg_div {
31
+ background-color: #fff;
32
+ }
@@ -0,0 +1,107 @@
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
+ reset.css (part of editor.css)
8
+ ================================
9
+
10
+ This file holds the "reset" requirements of CKEditor, as well as define the
11
+ default interface styles.
12
+
13
+ CKEditor includes two main "reset" class names in the DOM structure created for
14
+ editors:
15
+
16
+ * .cke_reset: Intended to reset a specific element, but not its children.
17
+ Because of this, only styles that will not be inherited can be defined.
18
+
19
+ * .cke_reset_all: Intended to reset not only the element holding it, but
20
+ also its child elements.
21
+
22
+ To understand why "reset" is needed, check the CKEditor Skin SDK:
23
+ http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Reset
24
+ */
25
+
26
+ /* Reset for single elements, not their children. */
27
+ .cke_reset {
28
+ /* Do not include inheritable rules here. */
29
+ margin: 0;
30
+ padding: 0;
31
+ border: 0;
32
+ background: transparent;
33
+ text-decoration: none;
34
+ width: auto;
35
+ height: auto;
36
+ vertical-align: baseline;
37
+ box-sizing: content-box;
38
+ -moz-box-sizing: content-box;
39
+ -webkit-box-sizing: content-box;
40
+ position: static;
41
+ -webkit-transition: none;
42
+ -moz-transition: none;
43
+ -ms-transition: none;
44
+ transition: none;
45
+ }
46
+
47
+ /* Reset for elements and their children. */
48
+ .cke_reset_all, .cke_reset_all * {
49
+ /* The following must be identical to .cke_reset. */
50
+ margin: 0;
51
+ padding: 0;
52
+ border: 0;
53
+ background: transparent;
54
+ text-decoration: none;
55
+ width: auto;
56
+ height: auto;
57
+ vertical-align: baseline;
58
+ box-sizing: content-box;
59
+ -moz-box-sizing: content-box;
60
+ -webkit-box-sizing: content-box;
61
+ position: static;
62
+ -webkit-transition: none;
63
+ -moz-transition: none;
64
+ -ms-transition: none;
65
+ transition: none;
66
+
67
+ /* These are rule inherited by all children elements. */
68
+ border-collapse: collapse;
69
+ font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
70
+ color: $gray-darker;
71
+ text-align: left;
72
+ white-space: nowrap;
73
+ cursor: auto;
74
+ float: none;
75
+ }
76
+
77
+ .cke_reset_all {
78
+ .cke_rtl * {
79
+ text-align: right;
80
+ }
81
+ /* Defaults for some elements. */
82
+ iframe {
83
+ vertical-align: inherit; /** For IE */
84
+ }
85
+ textarea {
86
+ white-space: pre;
87
+ }
88
+ textarea, input[type="text"], input[type="password"] {
89
+ cursor: text;
90
+ }
91
+ textarea[disabled], input[type="text"][disabled], input[type="password"][disabled] {
92
+ cursor: default;
93
+ }
94
+ fieldset {
95
+ padding: 10px;
96
+ margin-top: 10px;
97
+ border: 1px solid $hr-border;
98
+ legend {
99
+ padding: 0 5px;
100
+ }
101
+ }
102
+ select {
103
+ box-sizing: border-box;
104
+ -moz-box-sizing: border-box;
105
+ -webkit-box-sizing: border-box;
106
+ }
107
+ }