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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +26 -0
- data/app/assets/javascripts/geri/admin.js +33 -0
- data/app/assets/javascripts/geri/admin/app.js +758 -0
- data/app/assets/javascripts/geri/admin/editor.js +56 -0
- data/app/assets/javascripts/geri/admin/password_resets.js +2 -0
- data/app/assets/stylesheets/geri/admin.css.less +60 -0
- data/app/assets/stylesheets/geri/admin/app.css +4915 -0
- data/app/assets/stylesheets/geri/admin/ckeditor/contents.css +135 -0
- data/app/assets/stylesheets/geri/admin/editor.css.less +38 -0
- data/app/assets/stylesheets/geri/admin/password_resets.css +4 -0
- data/app/assets/stylesheets/geri/admin/skin-blue.less +142 -0
- data/app/assets/vendor/ckeditor/CHANGES.md +1065 -0
- data/app/assets/vendor/ckeditor/LICENSE.md +1420 -0
- data/app/assets/vendor/ckeditor/README.md +39 -0
- data/app/assets/vendor/ckeditor/adapters/jquery.js +10 -0
- data/app/assets/vendor/ckeditor/build-config.js +69 -0
- data/app/assets/vendor/ckeditor/ckeditor.js +775 -0
- data/app/assets/vendor/ckeditor/config.js +34 -0
- data/app/assets/vendor/ckeditor/contents.css +135 -0
- data/app/assets/vendor/ckeditor/lang/en.js +5 -0
- data/app/assets/vendor/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/app/assets/vendor/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/vendor/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/vendor/ckeditor/plugins/clipboard/dialogs/paste.js +12 -0
- data/app/assets/vendor/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/app/assets/vendor/ckeditor/plugins/icons.png +0 -0
- data/app/assets/vendor/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/vendor/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/app/assets/vendor/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/app/assets/vendor/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/vendor/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/vendor/ckeditor/samples/css/samples.css +1640 -0
- data/app/assets/vendor/ckeditor/samples/img/github-top.png +0 -0
- data/app/assets/vendor/ckeditor/samples/img/header-bg.png +0 -0
- data/app/assets/vendor/ckeditor/samples/img/header-separator.png +0 -0
- data/app/assets/vendor/ckeditor/samples/img/logo.png +0 -0
- data/app/assets/vendor/ckeditor/samples/img/navigation-tip.png +0 -0
- data/app/assets/vendor/ckeditor/samples/index.html +128 -0
- data/app/assets/vendor/ckeditor/samples/js/sample.js +53 -0
- data/app/assets/vendor/ckeditor/samples/js/sf.js +17 -0
- data/app/assets/vendor/ckeditor/samples/old/ajax.html +85 -0
- data/app/assets/vendor/ckeditor/samples/old/api.html +210 -0
- data/app/assets/vendor/ckeditor/samples/old/appendto.html +59 -0
- data/app/assets/vendor/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- data/app/assets/vendor/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
- data/app/assets/vendor/ckeditor/samples/old/assets/posteddata.php +59 -0
- data/app/assets/vendor/ckeditor/samples/old/assets/sample.jpg +0 -0
- data/app/assets/vendor/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
- data/app/assets/vendor/ckeditor/samples/old/datafiltering.html +508 -0
- data/app/assets/vendor/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
- data/app/assets/vendor/ckeditor/samples/old/dialog/dialog.html +190 -0
- data/app/assets/vendor/ckeditor/samples/old/divreplace.html +144 -0
- data/app/assets/vendor/ckeditor/samples/old/enterkey/enterkey.html +106 -0
- data/app/assets/vendor/ckeditor/samples/old/index.html +122 -0
- data/app/assets/vendor/ckeditor/samples/old/inlineall.html +314 -0
- data/app/assets/vendor/ckeditor/samples/old/inlinebycode.html +124 -0
- data/app/assets/vendor/ckeditor/samples/old/inlinetextarea.html +113 -0
- data/app/assets/vendor/ckeditor/samples/old/jquery.html +103 -0
- data/app/assets/vendor/ckeditor/samples/old/readonly.html +76 -0
- data/app/assets/vendor/ckeditor/samples/old/replacebyclass.html +60 -0
- data/app/assets/vendor/ckeditor/samples/old/replacebycode.html +59 -0
- data/app/assets/vendor/ckeditor/samples/old/sample.css +357 -0
- data/app/assets/vendor/ckeditor/samples/old/sample.js +50 -0
- data/app/assets/vendor/ckeditor/samples/old/sample_posteddata.php +16 -0
- data/app/assets/vendor/ckeditor/samples/old/tabindex.html +78 -0
- data/app/assets/vendor/ckeditor/samples/old/toolbar/toolbar.html +235 -0
- data/app/assets/vendor/ckeditor/samples/old/uicolor.html +72 -0
- data/app/assets/vendor/ckeditor/samples/old/uilanguages.html +122 -0
- data/app/assets/vendor/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
- data/app/assets/vendor/ckeditor/samples/old/xhtmlstyle.html +234 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/index.html +446 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
- data/app/assets/vendor/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_ie.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_ie7.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_ie8.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_iequirks.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/dialog_opera.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/editor.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_gecko.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_ie.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_ie7.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_ie8.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/editor_iequirks.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/icons.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/icons_hidpi.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/arrow.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/close.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/close.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/lock-open.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/lock.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/hidpi/refresh.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/lock-open.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/lock.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/images/refresh.png +0 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/readme.md +35 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/bootstrapck-sample.html +127 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/css/bootstrapck-sample.css +1 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/js/analytics.js +4 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/sample/js/jquery-1.11.0.min.js +189 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/gecko/editor_gecko.scss +25 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie/dialog_ie.scss +62 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie/editor_ie.scss +71 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/dialog_ie7.scss +68 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/editor_ie7.scss +213 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/dialog_ie8.scss +24 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/editor_ie8.scss +27 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/dialog_iequirks.scss +21 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/editor_iequirks.scss +79 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/browser-specific/opera/dialog_opera.scss +31 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_colorpanel.scss +119 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_elementspath.scss +66 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_mainui.scss +189 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_menu.scss +182 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_panel.scss +199 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_presets.scss +32 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_reset.scss +107 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_richcombo.scss +174 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/_toolbar.scss +317 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/components/editor.scss +66 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/config/_colors.scss +61 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/config/_config.scss +9 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/config/_defaults.scss +37 -0
- data/app/assets/vendor/ckeditor/skins/bootstrapck/scss/dialog/dialog.scss +822 -0
- data/app/assets/vendor/ckeditor/styles.js +111 -0
- data/app/controllers/geri/admin/admin_users_controller.rb +56 -0
- data/app/controllers/geri/admin/dashboard_controller.rb +8 -0
- data/app/controllers/geri/admin/editor_controller.rb +33 -0
- data/app/controllers/geri/admin/password_resets_controller.rb +21 -0
- data/app/controllers/geri/admin/sessions_controller.rb +24 -0
- data/app/controllers/geri/admin_controller.rb +19 -0
- data/app/controllers/geri/application_controller.rb +5 -0
- data/app/controllers/geri/pages_controller.rb +34 -0
- data/app/helpers/geri/admin/dashboard_helper.rb +4 -0
- data/app/helpers/geri/admin/editor_helper.rb +4 -0
- data/app/helpers/geri/admin/pages_helper.rb +45 -0
- data/app/helpers/geri/admin/partials_helper.rb +4 -0
- data/app/helpers/geri/admin/password_resets_helper.rb +4 -0
- data/app/helpers/geri/admin/sessions_helper.rb +4 -0
- data/app/helpers/geri/admin_helper.rb +24 -0
- data/app/helpers/geri/admin_users_helper.rb +4 -0
- data/app/helpers/geri/application_helper.rb +26 -0
- data/app/helpers/geri/meta_helper.rb +32 -0
- data/app/mailers/application_mailer.rb +4 -0
- data/app/mailers/geri/admin_user_mailer.rb +11 -0
- data/app/models/geri/admin_user.rb +14 -0
- data/app/models/geri/content.rb +6 -0
- data/app/models/geri/password_reset.rb +17 -0
- data/app/models/geri/session.rb +20 -0
- data/app/views/geri/admin/admin_users/_form.html.erb +5 -0
- data/app/views/geri/admin/admin_users/edit.html.erb +27 -0
- data/app/views/geri/admin/admin_users/index.html.erb +45 -0
- data/app/views/geri/admin/admin_users/new.html.erb +17 -0
- data/app/views/geri/admin/dashboard/index.html.erb +1 -0
- data/app/views/geri/admin/editor/template.html.erb +17 -0
- data/app/views/geri/admin/password_resets/new.html.erb +17 -0
- data/app/views/geri/admin/sessions/new.html.erb +23 -0
- data/app/views/geri/admin/shared/_aside.html.erb +16 -0
- data/app/views/geri/admin/shared/_header.html.erb +31 -0
- data/app/views/geri/admin/shared/_menu_item.html.erb +17 -0
- data/app/views/geri/admin_user_mailer/reset_password_email.text.erb +7 -0
- data/app/views/layouts/geri/admin.html.erb +24 -0
- data/app/views/layouts/geri/admin/sessions.html.erb +21 -0
- data/app/views/layouts/mailer.html.erb +5 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/config/initializers/geri.rb +7 -0
- data/config/initializers/sorcery.rb +463 -0
- data/config/locales/devise.en.yml +62 -0
- data/config/locales/en.yml +13 -0
- data/config/routes.rb +23 -0
- data/db/migrate/20160409151523_create_geri_contents.rb +8 -0
- data/db/migrate/20160411205412_sorcery_core.rb +20 -0
- data/lib/generators/geri/install/USAGE +8 -0
- data/lib/generators/geri/install/install_generator.rb +54 -0
- data/lib/generators/geri/install/templates/bower.json +8 -0
- data/lib/generators/geri/install/templates/index.html.erb +46 -0
- data/lib/generators/geri/install/templates/initializer.rb +12 -0
- data/lib/generators/geri/install/templates/layout.html.erb +11 -0
- data/lib/generators/geri/install/templates/site.css.less +1 -0
- data/lib/generators/geri/install/templates/site.js +1 -0
- data/lib/geri.rb +7 -0
- data/lib/geri/cli.rb +6 -0
- data/lib/geri/cli/base.rb +23 -0
- data/lib/geri/cli/extension.rb +18 -0
- data/lib/geri/config.rb +29 -0
- data/lib/geri/config/menu_item.rb +35 -0
- data/lib/geri/engine.rb +34 -0
- data/lib/geri/tasks.rb +3 -0
- data/lib/geri/tasks/create_admin_user.rb +40 -0
- data/lib/geri/version.rb +3 -0
- data/lib/tasks/geri_tasks.rake +15 -0
- metadata +449 -0
|
@@ -0,0 +1,174 @@
|
|
|
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
|
+
richcombo.css (part of editor.css)
|
|
8
|
+
=================================
|
|
9
|
+
|
|
10
|
+
This file holds the style set of the "Rich Combo" widget which is commonly used
|
|
11
|
+
in the toolbar. It doesn't, however, styles the panel that is displayed when
|
|
12
|
+
clicking on the combo, which is instead styled by panel.css.
|
|
13
|
+
|
|
14
|
+
The visual representation of a rich combo widget looks as follows:
|
|
15
|
+
|
|
16
|
+
+-- .cke_combo----------------------------------------------------------------------+
|
|
17
|
+
| +-- .cke_combo_label --+ +-- .cke_combo_button ---------------------------------+ |
|
|
18
|
+
| | | | +-- .cke_combo_text --+ +-- .cke_combo_open -------+ | |
|
|
19
|
+
| | | | | | | +-- .cke_combo_arrow --+ | | |
|
|
20
|
+
| | | | | | | | | | | |
|
|
21
|
+
| | | | | | | +----------------------+ | | |
|
|
22
|
+
| | | | +---------------------+ +--------------------------+ | |
|
|
23
|
+
| +----------------------+ +------------------------------------------------------+ |
|
|
24
|
+
+-----------------------------------------------------------------------------------+
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/* The box that hold the entire combo widget */
|
|
28
|
+
.cke_combo {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
float: left;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.cke_rtl .cke_combo {
|
|
34
|
+
float: right;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cke_hc .cke_combo {
|
|
38
|
+
margin-top: -2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* The label of the combo widget. It is invisible by default, yet
|
|
42
|
+
it's important for semantics and accessibility. */
|
|
43
|
+
.cke_combo_label {
|
|
44
|
+
display: none;
|
|
45
|
+
float: left;
|
|
46
|
+
line-height: 26px;
|
|
47
|
+
vertical-align: top;
|
|
48
|
+
margin-right: 5px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cke_rtl .cke_combo_label {
|
|
52
|
+
float: right;
|
|
53
|
+
margin-left: 5px;
|
|
54
|
+
margin-right: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* The container for combo text and arrow. */
|
|
58
|
+
.cke_combo_button {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
float: left;
|
|
61
|
+
margin: 0 6px 5px 0;
|
|
62
|
+
border: 1px solid $hr-border;
|
|
63
|
+
border-radius: $border-radius;
|
|
64
|
+
background: #fff;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Different states of the container. */
|
|
68
|
+
.cke_combo_off {
|
|
69
|
+
a.cke_combo_button {
|
|
70
|
+
&:hover, &:focus {
|
|
71
|
+
outline: none;
|
|
72
|
+
}
|
|
73
|
+
&:active {
|
|
74
|
+
border-color: $gray-darker;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cke_combo_on {
|
|
80
|
+
a.cke_combo_button {
|
|
81
|
+
border-color: $gray-darker;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.cke_rtl .cke_combo_button {
|
|
86
|
+
float: right;
|
|
87
|
+
margin-left: 5px;
|
|
88
|
+
margin-right: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cke_hc a.cke_combo_button {
|
|
92
|
+
padding: 3px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cke_hc .cke_combo_on a.cke_combo_button {
|
|
96
|
+
border-width: 3px;
|
|
97
|
+
padding: 1px;
|
|
98
|
+
}
|
|
99
|
+
.cke_hc .cke_combo_off a.cke_combo_button {
|
|
100
|
+
&:hover, &:focus, &:active {
|
|
101
|
+
border-width: 3px;
|
|
102
|
+
padding: 1px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* The label that shows the current value of the rich combo.
|
|
107
|
+
By default, it holds the name of the property.
|
|
108
|
+
See: .cke_combo_inlinelabel */
|
|
109
|
+
.cke_combo_text {
|
|
110
|
+
line-height: 26px;
|
|
111
|
+
padding-left: 10px;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
float: left;
|
|
115
|
+
cursor: default;
|
|
116
|
+
color: #474747;
|
|
117
|
+
width: 60px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.cke_rtl .cke_combo_text {
|
|
121
|
+
float: right;
|
|
122
|
+
text-align: right;
|
|
123
|
+
padding-left: 0;
|
|
124
|
+
padding-right: 10px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.cke_hc .cke_combo_text {
|
|
128
|
+
line-height: 18px;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* The handler which opens the panel of rich combo properties.
|
|
133
|
+
It holds an arrow as a visual indicator. */
|
|
134
|
+
.cke_combo_open {
|
|
135
|
+
cursor: default;
|
|
136
|
+
display: inline-block;
|
|
137
|
+
font-size: 0;
|
|
138
|
+
height: 19px;
|
|
139
|
+
line-height: 17px;
|
|
140
|
+
margin: 1px 7px 1px;
|
|
141
|
+
width: 5px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.cke_hc .cke_combo_open {
|
|
145
|
+
height: 12px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* The arrow which is displayed inside of the .cke_combo_open handler. */
|
|
149
|
+
.cke_combo_arrow {
|
|
150
|
+
margin: 11px 0 0;
|
|
151
|
+
float: left;
|
|
152
|
+
|
|
153
|
+
/* Pure CSS Arrow */
|
|
154
|
+
height: 0;
|
|
155
|
+
width: 0;
|
|
156
|
+
font-size: 0;
|
|
157
|
+
border-left: 3px solid transparent;
|
|
158
|
+
border-right: 3px solid transparent;
|
|
159
|
+
border-top: 3px solid $text-color;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cke_hc .cke_combo_arrow {
|
|
163
|
+
font-size: 10px;
|
|
164
|
+
width: auto;
|
|
165
|
+
border: 0;
|
|
166
|
+
margin-top: 3px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Disabled combo button styles. */
|
|
170
|
+
.cke_combo_disabled {
|
|
171
|
+
.cke_combo_inlinelabel, .cke_combo_open {
|
|
172
|
+
opacity: 0.3;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
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
|
+
toolbar.css (part of editor.css)
|
|
8
|
+
==================================
|
|
9
|
+
|
|
10
|
+
This files styles the CKEditor toolbar and its buttons. For toolbar combo
|
|
11
|
+
styles, check richcombo.css.
|
|
12
|
+
|
|
13
|
+
The toolbar is rendered as a big container (called toolbox), which contains
|
|
14
|
+
smaller "toolbars". Each toolbar represents a group of items that cannot be
|
|
15
|
+
separated. The following is the visual representation of the toolbox.
|
|
16
|
+
|
|
17
|
+
+-- .cke_toolbox ----------------------------------------------------------+
|
|
18
|
+
| +-- .cke_toolbar --+ +-- .cke_toolbar --+ ... +-- .cke_toolbar_break --+ |
|
|
19
|
+
| | | | | | | |
|
|
20
|
+
| +------------------+ +------------------+ +------------------------+ |
|
|
21
|
+
| +-- .cke_toolbar --+ +-- .cke_toolbar --+ ... |
|
|
22
|
+
| | | | | |
|
|
23
|
+
| +------------------+ +------------------+ |
|
|
24
|
+
+--------------------------------------------------------------------------+
|
|
25
|
+
|
|
26
|
+
The following instead is the visual representation of a single toolbar:
|
|
27
|
+
|
|
28
|
+
+-- .cke_toolbar ----------------------------------------------------------------+
|
|
29
|
+
| +-- .cke_toolbar_start --+ +-- .cke_toolgroup (*) --+ +-- .cke_toolbar_end --+ |
|
|
30
|
+
| | | | | | | |
|
|
31
|
+
| +------------------------+ +------------------------+ +----------------------+ |
|
|
32
|
+
+--------------------------------------------------------------------------------+
|
|
33
|
+
(*) .cke_toolgroup is available only when the toolbar items can be grouped
|
|
34
|
+
(buttons). If the items can't be group (combos), this box is not available
|
|
35
|
+
and the items are rendered straight in that place.
|
|
36
|
+
|
|
37
|
+
This file also styles toolbar buttons, which are rendered inside the above
|
|
38
|
+
.cke_toolgroup containers. This is the visual representation of a button:
|
|
39
|
+
|
|
40
|
+
+-- .cke_button -------------------------------------+
|
|
41
|
+
| +-- .cke_button_icon --+ +-- .cke_button_label --+ |
|
|
42
|
+
| | | | | |
|
|
43
|
+
| +----------------------+ +-----------------------+ |
|
|
44
|
+
+----------------------------------------------------+
|
|
45
|
+
|
|
46
|
+
Special outer level classes used in this file:
|
|
47
|
+
|
|
48
|
+
.cke_hc: Available when the editor is rendered on "High Contrast".
|
|
49
|
+
.cke_rtl: Available when the editor UI is on RTL.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/* The box that holds each toolbar. */
|
|
53
|
+
.cke_toolbar {
|
|
54
|
+
float: left;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cke_rtl .cke_toolbar {
|
|
58
|
+
float: right;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* The box that holds buttons. */
|
|
62
|
+
.cke_toolgroup {
|
|
63
|
+
float: left;
|
|
64
|
+
margin: 0 6px 3px 0;
|
|
65
|
+
padding: 2px;
|
|
66
|
+
border: 1px solid $hr-border;
|
|
67
|
+
|
|
68
|
+
border-radius: $border-radius;
|
|
69
|
+
|
|
70
|
+
background: #fff;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cke_hc .cke_toolgroup {
|
|
74
|
+
border: 0;
|
|
75
|
+
margin-right: 10px;
|
|
76
|
+
margin-bottom: 10px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.cke_rtl .cke_toolgroup *:first-child {
|
|
80
|
+
border-radius: 0 $border-radius $border-radius 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cke_rtl .cke_toolgroup *:last-child {
|
|
84
|
+
border-radius: $border-radius 0 0 $border-radius;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cke_rtl .cke_toolgroup {
|
|
88
|
+
float: right;
|
|
89
|
+
margin-left: 6px;
|
|
90
|
+
margin-right: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* A toolbar button . */
|
|
94
|
+
a.cke_button {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
height: 18px;
|
|
97
|
+
padding: 2px 4px;
|
|
98
|
+
outline: none;
|
|
99
|
+
cursor: default;
|
|
100
|
+
float: left;
|
|
101
|
+
border: 0;
|
|
102
|
+
border-radius: 2px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.cke_rtl .cke_button {
|
|
106
|
+
float: right;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cke_hc .cke_button {
|
|
110
|
+
border: 1px solid black;
|
|
111
|
+
|
|
112
|
+
/* Compensate the added border */
|
|
113
|
+
padding: 3px 5px;
|
|
114
|
+
margin: -2px 4px 0 -2px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* This class is applied to the button when it is "active" (pushed).
|
|
118
|
+
This style indicates that the feature associated with the button is active
|
|
119
|
+
i.e. currently writing in bold or when spell checking is enabled. */
|
|
120
|
+
.cke_button_on {
|
|
121
|
+
background: $primary-light;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cke_hc {
|
|
125
|
+
.cke_button_on {
|
|
126
|
+
border-width: 3px;
|
|
127
|
+
/* Compensate the border change */
|
|
128
|
+
padding: 1px 3px;
|
|
129
|
+
}
|
|
130
|
+
a.cke_button_off, a.cke_button_disabled {
|
|
131
|
+
&:hover, &:focus, &:active {
|
|
132
|
+
border-width: 3px;
|
|
133
|
+
/* Compensate the border change */
|
|
134
|
+
padding: 1px 3px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* This class is applied to the button when the feature associated with the
|
|
140
|
+
button cannot be used (grayed-out).
|
|
141
|
+
i.e. paste button remains disabled when there is nothing in the clipboard to
|
|
142
|
+
be pasted. */
|
|
143
|
+
.cke_button_disabled .cke_button_icon {
|
|
144
|
+
opacity: 0.3;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.cke_hc .cke_button_disabled {
|
|
148
|
+
opacity: 0.5;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
a.cke_button_on {
|
|
152
|
+
&:hover, &:focus, &:active {
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
a.cke_button_off, a.cke_button_disabled {
|
|
157
|
+
&:hover, &:focus, &:active {
|
|
158
|
+
background: $primary-lighter;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* The icon which is a visual representation of the button. */
|
|
163
|
+
.cke_button_icon {
|
|
164
|
+
cursor: inherit;
|
|
165
|
+
background-repeat: no-repeat;
|
|
166
|
+
margin-top: 1px;
|
|
167
|
+
width: 16px;
|
|
168
|
+
height: 16px;
|
|
169
|
+
float: left;
|
|
170
|
+
display: inline-block;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cke_rtl .cke_button_icon {
|
|
174
|
+
float: right;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.cke_hc .cke_button_icon {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* The label of the button that stores the name of the feature. By default,
|
|
182
|
+
labels are invisible. They can be revealed on demand though. */
|
|
183
|
+
.cke_button_label {
|
|
184
|
+
display: none;
|
|
185
|
+
padding-left: 3px;
|
|
186
|
+
margin-top: 1px;
|
|
187
|
+
line-height: 18px;
|
|
188
|
+
vertical-align: middle;
|
|
189
|
+
float: left;
|
|
190
|
+
cursor: default;
|
|
191
|
+
color: $gray-dark;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.cke_rtl .cke_button_label {
|
|
195
|
+
padding-right: 3px;
|
|
196
|
+
padding-left: 0;
|
|
197
|
+
float: right;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.cke_hc .cke_button_label {
|
|
201
|
+
padding: 0;
|
|
202
|
+
display: inline-block;
|
|
203
|
+
font-size: 12px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* The small arrow available on buttons that can be expanded
|
|
207
|
+
(e.g. the color buttons). */
|
|
208
|
+
.cke_button_arrow {
|
|
209
|
+
/* Arrow in CSS */
|
|
210
|
+
display: inline-block;
|
|
211
|
+
margin: 8px 0 0 1px;
|
|
212
|
+
width: 0;
|
|
213
|
+
height: 0;
|
|
214
|
+
cursor: default;
|
|
215
|
+
vertical-align: top;
|
|
216
|
+
border-left: 3px solid transparent;
|
|
217
|
+
border-right: 3px solid transparent;
|
|
218
|
+
border-top: 3px solid #474747;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.cke_rtl .cke_button_arrow {
|
|
222
|
+
margin-right: 5px;
|
|
223
|
+
margin-left: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.cke_hc .cke_button_arrow {
|
|
227
|
+
font-size: 10px;
|
|
228
|
+
margin: 3px -2px 0 3px;
|
|
229
|
+
width: auto;
|
|
230
|
+
border: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* The vertical separator which is used within a single toolbar to split
|
|
234
|
+
buttons into sub-groups. */
|
|
235
|
+
.cke_toolbar_separator {
|
|
236
|
+
float: left;
|
|
237
|
+
background-color: $hr-border;
|
|
238
|
+
margin: 4px 2px 0;
|
|
239
|
+
height: 16px;
|
|
240
|
+
width: 1px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.cke_rtl .cke_toolbar_separator {
|
|
244
|
+
float: right;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.cke_hc .cke_toolbar_separator {
|
|
248
|
+
width: 0;
|
|
249
|
+
border-left: 1px solid;
|
|
250
|
+
margin: 1px 5px 0 0px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* The dummy element that breaks toolbars.
|
|
254
|
+
Once it is placed, the very next toolbar is moved to the new row. */
|
|
255
|
+
.cke_toolbar_break {
|
|
256
|
+
display: block;
|
|
257
|
+
clear: left;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cke_rtl .cke_toolbar_break {
|
|
261
|
+
clear: right;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* The button, which when clicked hides (collapses) all the toolbars. */
|
|
265
|
+
.cke_toolbox_collapser {
|
|
266
|
+
width: 12px;
|
|
267
|
+
height: 11px;
|
|
268
|
+
float: right;
|
|
269
|
+
margin: 11px 0 0;
|
|
270
|
+
font-size: 0;
|
|
271
|
+
cursor: default;
|
|
272
|
+
text-align: center;
|
|
273
|
+
|
|
274
|
+
border: 1px solid #a6a6a6;
|
|
275
|
+
border-bottom-color: #979797;
|
|
276
|
+
|
|
277
|
+
border-radius: $border-radius;
|
|
278
|
+
|
|
279
|
+
background: #e4e4e4;
|
|
280
|
+
&:hover {
|
|
281
|
+
background: #ccc;
|
|
282
|
+
}
|
|
283
|
+
&.cke_toolbox_collapser_min {
|
|
284
|
+
margin: 0 2px 4px;
|
|
285
|
+
.cke_arrow {
|
|
286
|
+
margin-top: 4px;
|
|
287
|
+
border-bottom-color: transparent;
|
|
288
|
+
border-top-color: #474747;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
/* The CSS arrow, which belongs to the toolbar collapser. */
|
|
292
|
+
.cke_arrow {
|
|
293
|
+
display: inline-block;
|
|
294
|
+
|
|
295
|
+
/* Pure CSS Arrow */
|
|
296
|
+
height: 0;
|
|
297
|
+
width: 0;
|
|
298
|
+
font-size: 0;
|
|
299
|
+
margin-top: 1px;
|
|
300
|
+
border-left: 3px solid transparent;
|
|
301
|
+
border-right: 3px solid transparent;
|
|
302
|
+
border-bottom: 3px solid #474747;
|
|
303
|
+
border-top: 3px solid transparent;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.cke_rtl .cke_toolbox_collapser {
|
|
308
|
+
float: left;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.cke_hc .cke_toolbox_collapser .cke_arrow {
|
|
312
|
+
font-size: 8px;
|
|
313
|
+
width: auto;
|
|
314
|
+
border: 0;
|
|
315
|
+
margin-top: 0;
|
|
316
|
+
margin-right: 2px;
|
|
317
|
+
}
|