para 0.6.9 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/para/admin/tangram-mosaic.png +0 -0
- data/app/assets/images/para/admin/template-section.svg +23 -0
- data/app/assets/javascripts/para/admin.coffee +20 -0
- data/app/assets/javascripts/para/admin/tabs.coffee +22 -5
- data/app/assets/javascripts/para/admin/theme_actions.coffee +3 -3
- data/app/assets/javascripts/para/inputs/material-input.coffee +4 -0
- data/app/assets/javascripts/para/inputs/multi-select-input.coffee +173 -0
- data/app/assets/javascripts/para/inputs/nested_many.coffee +9 -9
- data/app/assets/stylesheets/para/admin.sass +5 -5
- data/app/assets/stylesheets/para/admin/main.sass +32 -0
- data/app/assets/stylesheets/para/admin/src/_alert.sass +17 -0
- data/app/assets/stylesheets/para/admin/src/_base.sass +51 -0
- data/app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss +874 -0
- data/app/assets/stylesheets/para/admin/src/_breadcrumb.sass +22 -0
- data/app/assets/stylesheets/para/admin/src/_buttons.sass +107 -0
- data/app/assets/stylesheets/para/admin/src/_checkable.sass +94 -0
- data/app/assets/stylesheets/para/admin/src/_common.sass +203 -0
- data/app/assets/stylesheets/para/admin/src/_dropdown.sass +40 -0
- data/app/assets/stylesheets/para/admin/src/_form.sass +271 -0
- data/app/assets/stylesheets/para/admin/src/_list.sass +61 -0
- data/app/assets/stylesheets/para/admin/src/_mixins.sass +113 -0
- data/app/assets/stylesheets/para/admin/src/_multi-select.sass +91 -0
- data/app/assets/stylesheets/para/admin/src/_navigation.sass +150 -0
- data/app/assets/stylesheets/para/admin/src/_navtabs.sass +41 -0
- data/app/assets/stylesheets/para/admin/src/_nested-many.sass +69 -0
- data/app/assets/stylesheets/para/admin/src/_nested_one.sass +13 -0
- data/app/assets/stylesheets/para/admin/src/_orderable.sass +44 -0
- data/app/assets/stylesheets/para/admin/src/_page-loading.sass +39 -0
- data/app/assets/stylesheets/para/admin/src/_pagination.sass +34 -0
- data/app/assets/stylesheets/para/admin/src/_panel.sass +55 -0
- data/app/assets/stylesheets/para/admin/src/_responsive.sass +100 -0
- data/app/assets/stylesheets/para/admin/{theme → src}/_sorting.sass +11 -3
- data/app/assets/stylesheets/para/admin/src/_statcard.sass +41 -0
- data/app/assets/stylesheets/para/admin/src/_table.sass +33 -0
- data/app/assets/stylesheets/para/admin/src/_tree.sass +52 -0
- data/app/assets/stylesheets/para/admin/src/_variables.sass +37 -0
- data/app/assets/stylesheets/para/admin/src/_well.sass +12 -0
- data/app/assets/stylesheets/para/{admin/src → lib}/datetimepicker.sass +1 -3
- data/app/assets/stylesheets/para/{admin/src → lib}/fuelux.sass +3 -5
- data/app/assets/stylesheets/para/lib/jasny-bootstrap.sass +97 -0
- data/app/assets/stylesheets/para/{admin/src → lib}/redactor.sass +2 -5
- data/app/assets/stylesheets/para/lib/selectize.sass +112 -0
- data/app/assets/stylesheets/para/lib/slider.sass +12 -0
- data/app/controllers/concerns/para/admin/resource_controller_concerns.rb +14 -2
- data/app/controllers/para/admin/base_controller.rb +7 -0
- data/app/controllers/para/admin/crud_resources_controller.rb +13 -6
- data/app/controllers/para/admin/form_resources_controller.rb +5 -3
- data/app/controllers/para/admin/resources_controller.rb +9 -3
- data/app/controllers/para/admin/search_controller.rb +15 -0
- data/app/controllers/para/application_controller.rb +10 -2
- data/app/helpers/para/admin/page_helper.rb +9 -9
- data/app/helpers/para/application_helper.rb +1 -10
- data/app/helpers/para/form_helper.rb +5 -6
- data/app/helpers/para/model_helper.rb +13 -3
- data/app/helpers/para/ordering_helper.rb +1 -1
- data/app/helpers/para/search_results_helper.rb +16 -0
- data/app/helpers/para/tree_helper.rb +10 -6
- data/app/models/para/page.rb +5 -0
- data/app/models/para/page/section.rb +42 -0
- data/app/models/para/page/section_resource.rb +12 -0
- data/app/views/layouts/para/admin.html.haml +5 -8
- data/app/views/para/admin/dashboard.html.haml +21 -8
- data/app/views/para/admin/form_resources/show.html.haml +1 -1
- data/app/views/para/admin/imports/new.html.haml +2 -2
- data/app/views/para/admin/resources/_actions.html.haml +3 -3
- data/app/views/para/admin/resources/_add_button.html.haml +1 -1
- data/app/views/para/admin/resources/_exports_menu.html.haml +6 -6
- data/app/views/para/admin/resources/_filters.html.haml +7 -8
- data/app/views/para/admin/resources/_imports_menu.html.haml +6 -6
- data/app/views/para/admin/resources/_list.html.haml +14 -15
- data/app/views/para/admin/resources/_per_page_select.html.haml +4 -3
- data/app/views/para/admin/resources/_subclassable_add_button.html.haml +3 -3
- data/app/views/para/admin/resources/_tree.html.haml +7 -9
- data/app/views/para/admin/resources/_tree_item.html.haml +5 -6
- data/app/views/para/admin/resources/edit.html.haml +1 -1
- data/app/views/para/admin/resources/new.html.haml +1 -1
- data/app/views/para/admin/search/_result.html.haml +7 -0
- data/app/views/para/admin/search/index.html.haml +1 -0
- data/app/views/para/admin/settings_component/show.html.haml +1 -1
- data/app/views/para/admin/shared/_breadcrumbs.html.haml +2 -3
- data/app/views/para/admin/shared/_header.html.haml +16 -27
- data/app/views/para/admin/shared/_navigation.html.haml +20 -19
- data/app/views/para/form/_tabs.html.haml +6 -7
- data/app/views/para/inputs/_multi_select.html.haml +40 -0
- data/app/views/para/inputs/_nested_many.html.haml +4 -4
- data/app/views/para/inputs/multi_select/_no_items.html.haml +6 -0
- data/app/views/para/inputs/nested_many/_add.html.haml +1 -2
- data/app/views/para/inputs/nested_many/_add_with_subclasses.html.haml +4 -5
- data/app/views/para/inputs/nested_many/_container.html.haml +7 -8
- data/app/views/shared/_breadcrumbs.html.haml +4 -0
- data/config/locales/fr.yml +29 -4
- data/db/migrate/20170324125547_create_para_page_section_resources.rb +15 -0
- data/lib/generators/para/filters/templates/_filters.html.haml +3 -5
- data/lib/generators/para/install/templates/initializer.rb +12 -0
- data/lib/generators/para/page/section/section_generator.rb +13 -2
- data/lib/generators/para/page/section/templates/section.html.haml.erb +3 -0
- data/lib/generators/para/resource/resource_generator.rb +1 -1
- data/lib/para.rb +25 -21
- data/lib/para/attribute_field.rb +2 -0
- data/lib/para/attribute_field/base.rb +1 -1
- data/lib/para/attribute_field/belongs_to.rb +1 -1
- data/lib/para/attribute_field/boolean.rb +1 -1
- data/lib/para/attribute_field/friendly_id.rb +19 -0
- data/lib/para/attribute_field/has_many.rb +43 -4
- data/lib/para/attribute_field/nested_field.rb +46 -0
- data/lib/para/attribute_field/nested_many.rb +30 -9
- data/lib/para/attribute_field/nested_one.rb +28 -9
- data/lib/para/attribute_field/password.rb +1 -1
- data/lib/para/attribute_field/relation.rb +19 -1
- data/lib/para/attribute_field_mappings.rb +9 -3
- data/lib/para/breadcrumbs/breadcrumb.rb +57 -10
- data/lib/para/breadcrumbs/controller.rb +19 -6
- data/lib/para/breadcrumbs/manager.rb +9 -1
- data/lib/para/config.rb +3 -0
- data/lib/para/controller_resource.rb +34 -0
- data/lib/para/engine.rb +33 -14
- data/lib/para/exporter/base.rb +1 -1
- data/lib/para/ext.rb +1 -1
- data/lib/para/ext/active_record_nested_attributes.rb +51 -0
- data/lib/para/ext/paperclip.rb +2 -6
- data/lib/para/form_builder.rb +3 -0
- data/lib/para/form_builder/attributes_mappings_tracker.rb +45 -0
- data/lib/para/form_builder/containers.rb +13 -17
- data/lib/para/form_builder/nested_form.rb +2 -3
- data/lib/para/helpers.rb +8 -0
- data/lib/para/helpers/attributes_mappings.rb +13 -0
- data/lib/para/helpers/resource_name.rb +14 -0
- data/lib/para/inputs.rb +1 -0
- data/lib/para/inputs/multi_select_input.rb +90 -0
- data/lib/para/inputs/nested_many_input.rb +6 -1
- data/lib/para/markup/resources_table.rb +15 -11
- data/lib/para/model_field_parsers.rb +3 -2
- data/lib/para/model_field_parsers/base.rb +7 -2
- data/lib/para/model_field_parsers/friendly_id.rb +19 -0
- data/lib/para/model_field_parsers/relations.rb +20 -1
- data/lib/para/page/model.rb +3 -1
- data/lib/para/routes.rb +1 -0
- data/lib/para/simple_form_config.rb +85 -0
- data/lib/para/version.rb +1 -1
- data/lib/rails/routing_mapper.rb +5 -8
- data/vendor/assets/javascripts/jasny-bootstrap.js +577 -0
- data/vendor/assets/stylesheets/animate.css +3340 -0
- data/vendor/assets/stylesheets/hint.css +649 -0
- data/vendor/assets/stylesheets/jasny-bootstrap.css +287 -0
- metadata +114 -67
- data/app/assets/images/para/admin/bg.png +0 -0
- data/app/assets/javascripts/para/admin.js +0 -20
- data/app/assets/stylesheets/admin/theme.sass +0 -0
- data/app/assets/stylesheets/para/admin/src/jasny.bootstrap.sass +0 -40
- data/app/assets/stylesheets/para/admin/src/nested_many.sass +0 -5
- data/app/assets/stylesheets/para/admin/src/page-loading.sass +0 -24
- data/app/assets/stylesheets/para/admin/src/page-top-bar.sass +0 -9
- data/app/assets/stylesheets/para/admin/src/selectize.sass +0 -46
- data/app/assets/stylesheets/para/admin/src/slider.sass +0 -12
- data/app/assets/stylesheets/para/admin/theme.sass +0 -22
- data/app/assets/stylesheets/para/admin/theme/_base.sass +0 -176
- data/app/assets/stylesheets/para/admin/theme/_breadcrumb.sass +0 -75
- data/app/assets/stylesheets/para/admin/theme/_buttons.sass +0 -27
- data/app/assets/stylesheets/para/admin/theme/_checkable.sass +0 -108
- data/app/assets/stylesheets/para/admin/theme/_commonds.sass +0 -210
- data/app/assets/stylesheets/para/admin/theme/_dropdown.sass +0 -52
- data/app/assets/stylesheets/para/admin/theme/_form.sass +0 -150
- data/app/assets/stylesheets/para/admin/theme/_list.sass +0 -139
- data/app/assets/stylesheets/para/admin/theme/_navigation.sass +0 -229
- data/app/assets/stylesheets/para/admin/theme/_navtabs.sass +0 -151
- data/app/assets/stylesheets/para/admin/theme/_orderable.sass +0 -45
- data/app/assets/stylesheets/para/admin/theme/_panel.sass +0 -264
- data/app/assets/stylesheets/para/admin/theme/_responsive.sass +0 -123
- data/app/assets/stylesheets/para/admin/theme/_table.sass +0 -28
- data/app/assets/stylesheets/para/admin/theme/_tree.sass +0 -74
- data/app/assets/stylesheets/para/admin/theme/_variables.sass +0 -31
- data/app/assets/stylesheets/para/application.css +0 -15
- data/app/assets/stylesheets/para/lib/_variables.scss +0 -646
- data/app/assets/stylesheets/para/overrides/responsive.sass +0 -62
- data/app/assets/stylesheets/para/overrides/theme.sass +0 -172
- data/lib/para/ext/cancan.rb +0 -26
- data/vendor/assets/javascripts/jasny.bootstrap.min.js +0 -7
- data/vendor/assets/stylesheets/animate.min.css +0 -6
- data/vendor/assets/stylesheets/jasny.bootstrap.min.css +0 -7
@@ -0,0 +1,649 @@
|
|
1
|
+
/*! Hint.css - v2.4.1 - 2016-11-08
|
2
|
+
* http://kushagragour.in/lab/hint/
|
3
|
+
* Copyright (c) 2016 Kushagra Gour */
|
4
|
+
|
5
|
+
/*-------------------------------------* HINT.css - A CSS tooltip library
|
6
|
+
\*-------------------------------------*/
|
7
|
+
/**
|
8
|
+
* HINT.css is a tooltip library made in pure CSS.
|
9
|
+
*
|
10
|
+
* Source: https://github.com/chinchang/hint.css
|
11
|
+
* Demo: http://kushagragour.in/lab/hint/
|
12
|
+
*
|
13
|
+
* Release under The MIT License
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
/**
|
17
|
+
* source: hint-core.scss
|
18
|
+
*
|
19
|
+
* Defines the basic styling for the tooltip.
|
20
|
+
* Each tooltip is made of 2 parts:
|
21
|
+
* 1) body (:after)
|
22
|
+
* 2) arrow (:before)
|
23
|
+
*
|
24
|
+
* Classes added:
|
25
|
+
* 1) hint
|
26
|
+
*/
|
27
|
+
[class*="hint--"] {
|
28
|
+
position: relative;
|
29
|
+
display: inline-block;
|
30
|
+
/**
|
31
|
+
* tooltip arrow
|
32
|
+
*/
|
33
|
+
/**
|
34
|
+
* tooltip body
|
35
|
+
*/ }
|
36
|
+
[class*="hint--"]:before, [class*="hint--"]:after {
|
37
|
+
position: absolute;
|
38
|
+
-webkit-transform: translate3d(0, 0, 0);
|
39
|
+
-moz-transform: translate3d(0, 0, 0);
|
40
|
+
transform: translate3d(0, 0, 0);
|
41
|
+
visibility: hidden;
|
42
|
+
opacity: 0;
|
43
|
+
z-index: 1000000;
|
44
|
+
pointer-events: none;
|
45
|
+
-webkit-transition: 0.3s ease;
|
46
|
+
-moz-transition: 0.3s ease;
|
47
|
+
transition: 0.3s ease;
|
48
|
+
-webkit-transition-delay: 0ms;
|
49
|
+
-moz-transition-delay: 0ms;
|
50
|
+
transition-delay: 0ms; }
|
51
|
+
[class*="hint--"]:hover:before, [class*="hint--"]:hover:after {
|
52
|
+
visibility: visible;
|
53
|
+
opacity: 1; }
|
54
|
+
[class*="hint--"]:hover:before, [class*="hint--"]:hover:after {
|
55
|
+
-webkit-transition-delay: 100ms;
|
56
|
+
-moz-transition-delay: 100ms;
|
57
|
+
transition-delay: 100ms; }
|
58
|
+
[class*="hint--"]:before {
|
59
|
+
content: '';
|
60
|
+
position: absolute;
|
61
|
+
background: transparent;
|
62
|
+
border: 6px solid transparent;
|
63
|
+
z-index: 1000001; }
|
64
|
+
[class*="hint--"]:after {
|
65
|
+
background: #383838;
|
66
|
+
color: white;
|
67
|
+
padding: 8px 10px;
|
68
|
+
font-size: 12px;
|
69
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
70
|
+
line-height: 12px;
|
71
|
+
white-space: nowrap; }
|
72
|
+
[class*="hint--"][aria-label]:after {
|
73
|
+
content: attr(aria-label); }
|
74
|
+
[class*="hint--"][data-hint]:after {
|
75
|
+
content: attr(data-hint); }
|
76
|
+
|
77
|
+
[aria-label='']:before, [aria-label='']:after,
|
78
|
+
[data-hint='']:before,
|
79
|
+
[data-hint='']:after {
|
80
|
+
display: none !important; }
|
81
|
+
|
82
|
+
/**
|
83
|
+
* source: hint-position.scss
|
84
|
+
*
|
85
|
+
* Defines the positoning logic for the tooltips.
|
86
|
+
*
|
87
|
+
* Classes added:
|
88
|
+
* 1) hint--top
|
89
|
+
* 2) hint--bottom
|
90
|
+
* 3) hint--left
|
91
|
+
* 4) hint--right
|
92
|
+
*/
|
93
|
+
/**
|
94
|
+
* set default color for tooltip arrows
|
95
|
+
*/
|
96
|
+
.hint--top-left:before {
|
97
|
+
border-top-color: #383838; }
|
98
|
+
|
99
|
+
.hint--top-right:before {
|
100
|
+
border-top-color: #383838; }
|
101
|
+
|
102
|
+
.hint--top:before {
|
103
|
+
border-top-color: #383838; }
|
104
|
+
|
105
|
+
.hint--bottom-left:before {
|
106
|
+
border-bottom-color: #383838; }
|
107
|
+
|
108
|
+
.hint--bottom-right:before {
|
109
|
+
border-bottom-color: #383838; }
|
110
|
+
|
111
|
+
.hint--bottom:before {
|
112
|
+
border-bottom-color: #383838; }
|
113
|
+
|
114
|
+
.hint--left:before {
|
115
|
+
border-left-color: #383838; }
|
116
|
+
|
117
|
+
.hint--right:before {
|
118
|
+
border-right-color: #383838; }
|
119
|
+
|
120
|
+
/**
|
121
|
+
* top tooltip
|
122
|
+
*/
|
123
|
+
.hint--top:before {
|
124
|
+
margin-bottom: -11px; }
|
125
|
+
|
126
|
+
.hint--top:before, .hint--top:after {
|
127
|
+
bottom: 100%;
|
128
|
+
left: 50%; }
|
129
|
+
|
130
|
+
.hint--top:before {
|
131
|
+
left: calc(50% - 6px); }
|
132
|
+
|
133
|
+
.hint--top:after {
|
134
|
+
-webkit-transform: translateX(-50%);
|
135
|
+
-moz-transform: translateX(-50%);
|
136
|
+
transform: translateX(-50%); }
|
137
|
+
|
138
|
+
.hint--top:hover:before {
|
139
|
+
-webkit-transform: translateY(-8px);
|
140
|
+
-moz-transform: translateY(-8px);
|
141
|
+
transform: translateY(-8px); }
|
142
|
+
|
143
|
+
.hint--top:hover:after {
|
144
|
+
-webkit-transform: translateX(-50%) translateY(-8px);
|
145
|
+
-moz-transform: translateX(-50%) translateY(-8px);
|
146
|
+
transform: translateX(-50%) translateY(-8px); }
|
147
|
+
|
148
|
+
/**
|
149
|
+
* bottom tooltip
|
150
|
+
*/
|
151
|
+
.hint--bottom:before {
|
152
|
+
margin-top: -11px; }
|
153
|
+
|
154
|
+
.hint--bottom:before, .hint--bottom:after {
|
155
|
+
top: 100%;
|
156
|
+
left: 50%; }
|
157
|
+
|
158
|
+
.hint--bottom:before {
|
159
|
+
left: calc(50% - 6px); }
|
160
|
+
|
161
|
+
.hint--bottom:after {
|
162
|
+
-webkit-transform: translateX(-50%);
|
163
|
+
-moz-transform: translateX(-50%);
|
164
|
+
transform: translateX(-50%); }
|
165
|
+
|
166
|
+
.hint--bottom:hover:before {
|
167
|
+
-webkit-transform: translateY(8px);
|
168
|
+
-moz-transform: translateY(8px);
|
169
|
+
transform: translateY(8px); }
|
170
|
+
|
171
|
+
.hint--bottom:hover:after {
|
172
|
+
-webkit-transform: translateX(-50%) translateY(8px);
|
173
|
+
-moz-transform: translateX(-50%) translateY(8px);
|
174
|
+
transform: translateX(-50%) translateY(8px); }
|
175
|
+
|
176
|
+
/**
|
177
|
+
* right tooltip
|
178
|
+
*/
|
179
|
+
.hint--right:before {
|
180
|
+
margin-left: -11px;
|
181
|
+
margin-bottom: -6px; }
|
182
|
+
|
183
|
+
.hint--right:after {
|
184
|
+
margin-bottom: -14px; }
|
185
|
+
|
186
|
+
.hint--right:before, .hint--right:after {
|
187
|
+
left: 100%;
|
188
|
+
bottom: 50%; }
|
189
|
+
|
190
|
+
.hint--right:hover:before {
|
191
|
+
-webkit-transform: translateX(8px);
|
192
|
+
-moz-transform: translateX(8px);
|
193
|
+
transform: translateX(8px); }
|
194
|
+
|
195
|
+
.hint--right:hover:after {
|
196
|
+
-webkit-transform: translateX(8px);
|
197
|
+
-moz-transform: translateX(8px);
|
198
|
+
transform: translateX(8px); }
|
199
|
+
|
200
|
+
/**
|
201
|
+
* left tooltip
|
202
|
+
*/
|
203
|
+
.hint--left:before {
|
204
|
+
margin-right: -11px;
|
205
|
+
margin-bottom: -6px; }
|
206
|
+
|
207
|
+
.hint--left:after {
|
208
|
+
margin-bottom: -14px; }
|
209
|
+
|
210
|
+
.hint--left:before, .hint--left:after {
|
211
|
+
right: 100%;
|
212
|
+
bottom: 50%; }
|
213
|
+
|
214
|
+
.hint--left:hover:before {
|
215
|
+
-webkit-transform: translateX(-8px);
|
216
|
+
-moz-transform: translateX(-8px);
|
217
|
+
transform: translateX(-8px); }
|
218
|
+
|
219
|
+
.hint--left:hover:after {
|
220
|
+
-webkit-transform: translateX(-8px);
|
221
|
+
-moz-transform: translateX(-8px);
|
222
|
+
transform: translateX(-8px); }
|
223
|
+
|
224
|
+
/**
|
225
|
+
* top-left tooltip
|
226
|
+
*/
|
227
|
+
.hint--top-left:before {
|
228
|
+
margin-bottom: -11px; }
|
229
|
+
|
230
|
+
.hint--top-left:before, .hint--top-left:after {
|
231
|
+
bottom: 100%;
|
232
|
+
left: 50%; }
|
233
|
+
|
234
|
+
.hint--top-left:before {
|
235
|
+
left: calc(50% - 6px); }
|
236
|
+
|
237
|
+
.hint--top-left:after {
|
238
|
+
-webkit-transform: translateX(-100%);
|
239
|
+
-moz-transform: translateX(-100%);
|
240
|
+
transform: translateX(-100%); }
|
241
|
+
|
242
|
+
.hint--top-left:after {
|
243
|
+
margin-left: 12px; }
|
244
|
+
|
245
|
+
.hint--top-left:hover:before {
|
246
|
+
-webkit-transform: translateY(-8px);
|
247
|
+
-moz-transform: translateY(-8px);
|
248
|
+
transform: translateY(-8px); }
|
249
|
+
|
250
|
+
.hint--top-left:hover:after {
|
251
|
+
-webkit-transform: translateX(-100%) translateY(-8px);
|
252
|
+
-moz-transform: translateX(-100%) translateY(-8px);
|
253
|
+
transform: translateX(-100%) translateY(-8px); }
|
254
|
+
|
255
|
+
/**
|
256
|
+
* top-right tooltip
|
257
|
+
*/
|
258
|
+
.hint--top-right:before {
|
259
|
+
margin-bottom: -11px; }
|
260
|
+
|
261
|
+
.hint--top-right:before, .hint--top-right:after {
|
262
|
+
bottom: 100%;
|
263
|
+
left: 50%; }
|
264
|
+
|
265
|
+
.hint--top-right:before {
|
266
|
+
left: calc(50% - 6px); }
|
267
|
+
|
268
|
+
.hint--top-right:after {
|
269
|
+
-webkit-transform: translateX(0);
|
270
|
+
-moz-transform: translateX(0);
|
271
|
+
transform: translateX(0); }
|
272
|
+
|
273
|
+
.hint--top-right:after {
|
274
|
+
margin-left: -12px; }
|
275
|
+
|
276
|
+
.hint--top-right:hover:before {
|
277
|
+
-webkit-transform: translateY(-8px);
|
278
|
+
-moz-transform: translateY(-8px);
|
279
|
+
transform: translateY(-8px); }
|
280
|
+
|
281
|
+
.hint--top-right:hover:after {
|
282
|
+
-webkit-transform: translateY(-8px);
|
283
|
+
-moz-transform: translateY(-8px);
|
284
|
+
transform: translateY(-8px); }
|
285
|
+
|
286
|
+
/**
|
287
|
+
* bottom-left tooltip
|
288
|
+
*/
|
289
|
+
.hint--bottom-left:before {
|
290
|
+
margin-top: -11px; }
|
291
|
+
|
292
|
+
.hint--bottom-left:before, .hint--bottom-left:after {
|
293
|
+
top: 100%;
|
294
|
+
left: 50%; }
|
295
|
+
|
296
|
+
.hint--bottom-left:before {
|
297
|
+
left: calc(50% - 6px); }
|
298
|
+
|
299
|
+
.hint--bottom-left:after {
|
300
|
+
-webkit-transform: translateX(-100%);
|
301
|
+
-moz-transform: translateX(-100%);
|
302
|
+
transform: translateX(-100%); }
|
303
|
+
|
304
|
+
.hint--bottom-left:after {
|
305
|
+
margin-left: 12px; }
|
306
|
+
|
307
|
+
.hint--bottom-left:hover:before {
|
308
|
+
-webkit-transform: translateY(8px);
|
309
|
+
-moz-transform: translateY(8px);
|
310
|
+
transform: translateY(8px); }
|
311
|
+
|
312
|
+
.hint--bottom-left:hover:after {
|
313
|
+
-webkit-transform: translateX(-100%) translateY(8px);
|
314
|
+
-moz-transform: translateX(-100%) translateY(8px);
|
315
|
+
transform: translateX(-100%) translateY(8px); }
|
316
|
+
|
317
|
+
/**
|
318
|
+
* bottom-right tooltip
|
319
|
+
*/
|
320
|
+
.hint--bottom-right:before {
|
321
|
+
margin-top: -11px; }
|
322
|
+
|
323
|
+
.hint--bottom-right:before, .hint--bottom-right:after {
|
324
|
+
top: 100%;
|
325
|
+
left: 50%; }
|
326
|
+
|
327
|
+
.hint--bottom-right:before {
|
328
|
+
left: calc(50% - 6px); }
|
329
|
+
|
330
|
+
.hint--bottom-right:after {
|
331
|
+
-webkit-transform: translateX(0);
|
332
|
+
-moz-transform: translateX(0);
|
333
|
+
transform: translateX(0); }
|
334
|
+
|
335
|
+
.hint--bottom-right:after {
|
336
|
+
margin-left: -12px; }
|
337
|
+
|
338
|
+
.hint--bottom-right:hover:before {
|
339
|
+
-webkit-transform: translateY(8px);
|
340
|
+
-moz-transform: translateY(8px);
|
341
|
+
transform: translateY(8px); }
|
342
|
+
|
343
|
+
.hint--bottom-right:hover:after {
|
344
|
+
-webkit-transform: translateY(8px);
|
345
|
+
-moz-transform: translateY(8px);
|
346
|
+
transform: translateY(8px); }
|
347
|
+
|
348
|
+
/**
|
349
|
+
* source: hint-sizes.scss
|
350
|
+
*
|
351
|
+
* Defines width restricted tooltips that can span
|
352
|
+
* across multiple lines.
|
353
|
+
*
|
354
|
+
* Classes added:
|
355
|
+
* 1) hint--small
|
356
|
+
* 2) hint--medium
|
357
|
+
* 3) hint--large
|
358
|
+
*
|
359
|
+
*/
|
360
|
+
.hint--small:after,
|
361
|
+
.hint--medium:after,
|
362
|
+
.hint--large:after {
|
363
|
+
white-space: normal;
|
364
|
+
line-height: 1.4em;
|
365
|
+
word-wrap: break-word; }
|
366
|
+
|
367
|
+
.hint--small:after {
|
368
|
+
width: 80px; }
|
369
|
+
|
370
|
+
.hint--medium:after {
|
371
|
+
width: 150px; }
|
372
|
+
|
373
|
+
.hint--large:after {
|
374
|
+
width: 300px; }
|
375
|
+
|
376
|
+
/**
|
377
|
+
* source: hint-theme.scss
|
378
|
+
*
|
379
|
+
* Defines basic theme for tooltips.
|
380
|
+
*
|
381
|
+
*/
|
382
|
+
[class*="hint--"] {
|
383
|
+
/**
|
384
|
+
* tooltip body
|
385
|
+
*/ }
|
386
|
+
[class*="hint--"]:after {
|
387
|
+
text-shadow: 0 -1px 0px black;
|
388
|
+
box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3); }
|
389
|
+
|
390
|
+
/**
|
391
|
+
* source: hint-color-types.scss
|
392
|
+
*
|
393
|
+
* Contains tooltips of various types based on color differences.
|
394
|
+
*
|
395
|
+
* Classes added:
|
396
|
+
* 1) hint--error
|
397
|
+
* 2) hint--warning
|
398
|
+
* 3) hint--info
|
399
|
+
* 4) hint--success
|
400
|
+
*
|
401
|
+
*/
|
402
|
+
/**
|
403
|
+
* Error
|
404
|
+
*/
|
405
|
+
.hint--error:after {
|
406
|
+
background-color: #b34e4d;
|
407
|
+
text-shadow: 0 -1px 0px #592726; }
|
408
|
+
|
409
|
+
.hint--error.hint--top-left:before {
|
410
|
+
border-top-color: #b34e4d; }
|
411
|
+
|
412
|
+
.hint--error.hint--top-right:before {
|
413
|
+
border-top-color: #b34e4d; }
|
414
|
+
|
415
|
+
.hint--error.hint--top:before {
|
416
|
+
border-top-color: #b34e4d; }
|
417
|
+
|
418
|
+
.hint--error.hint--bottom-left:before {
|
419
|
+
border-bottom-color: #b34e4d; }
|
420
|
+
|
421
|
+
.hint--error.hint--bottom-right:before {
|
422
|
+
border-bottom-color: #b34e4d; }
|
423
|
+
|
424
|
+
.hint--error.hint--bottom:before {
|
425
|
+
border-bottom-color: #b34e4d; }
|
426
|
+
|
427
|
+
.hint--error.hint--left:before {
|
428
|
+
border-left-color: #b34e4d; }
|
429
|
+
|
430
|
+
.hint--error.hint--right:before {
|
431
|
+
border-right-color: #b34e4d; }
|
432
|
+
|
433
|
+
/**
|
434
|
+
* Warning
|
435
|
+
*/
|
436
|
+
.hint--warning:after {
|
437
|
+
background-color: #c09854;
|
438
|
+
text-shadow: 0 -1px 0px #6c5328; }
|
439
|
+
|
440
|
+
.hint--warning.hint--top-left:before {
|
441
|
+
border-top-color: #c09854; }
|
442
|
+
|
443
|
+
.hint--warning.hint--top-right:before {
|
444
|
+
border-top-color: #c09854; }
|
445
|
+
|
446
|
+
.hint--warning.hint--top:before {
|
447
|
+
border-top-color: #c09854; }
|
448
|
+
|
449
|
+
.hint--warning.hint--bottom-left:before {
|
450
|
+
border-bottom-color: #c09854; }
|
451
|
+
|
452
|
+
.hint--warning.hint--bottom-right:before {
|
453
|
+
border-bottom-color: #c09854; }
|
454
|
+
|
455
|
+
.hint--warning.hint--bottom:before {
|
456
|
+
border-bottom-color: #c09854; }
|
457
|
+
|
458
|
+
.hint--warning.hint--left:before {
|
459
|
+
border-left-color: #c09854; }
|
460
|
+
|
461
|
+
.hint--warning.hint--right:before {
|
462
|
+
border-right-color: #c09854; }
|
463
|
+
|
464
|
+
/**
|
465
|
+
* Info
|
466
|
+
*/
|
467
|
+
.hint--info:after {
|
468
|
+
background-color: #3986ac;
|
469
|
+
text-shadow: 0 -1px 0px #1a3c4d; }
|
470
|
+
|
471
|
+
.hint--info.hint--top-left:before {
|
472
|
+
border-top-color: #3986ac; }
|
473
|
+
|
474
|
+
.hint--info.hint--top-right:before {
|
475
|
+
border-top-color: #3986ac; }
|
476
|
+
|
477
|
+
.hint--info.hint--top:before {
|
478
|
+
border-top-color: #3986ac; }
|
479
|
+
|
480
|
+
.hint--info.hint--bottom-left:before {
|
481
|
+
border-bottom-color: #3986ac; }
|
482
|
+
|
483
|
+
.hint--info.hint--bottom-right:before {
|
484
|
+
border-bottom-color: #3986ac; }
|
485
|
+
|
486
|
+
.hint--info.hint--bottom:before {
|
487
|
+
border-bottom-color: #3986ac; }
|
488
|
+
|
489
|
+
.hint--info.hint--left:before {
|
490
|
+
border-left-color: #3986ac; }
|
491
|
+
|
492
|
+
.hint--info.hint--right:before {
|
493
|
+
border-right-color: #3986ac; }
|
494
|
+
|
495
|
+
/**
|
496
|
+
* Success
|
497
|
+
*/
|
498
|
+
.hint--success:after {
|
499
|
+
background-color: #458746;
|
500
|
+
text-shadow: 0 -1px 0px #1a321a; }
|
501
|
+
|
502
|
+
.hint--success.hint--top-left:before {
|
503
|
+
border-top-color: #458746; }
|
504
|
+
|
505
|
+
.hint--success.hint--top-right:before {
|
506
|
+
border-top-color: #458746; }
|
507
|
+
|
508
|
+
.hint--success.hint--top:before {
|
509
|
+
border-top-color: #458746; }
|
510
|
+
|
511
|
+
.hint--success.hint--bottom-left:before {
|
512
|
+
border-bottom-color: #458746; }
|
513
|
+
|
514
|
+
.hint--success.hint--bottom-right:before {
|
515
|
+
border-bottom-color: #458746; }
|
516
|
+
|
517
|
+
.hint--success.hint--bottom:before {
|
518
|
+
border-bottom-color: #458746; }
|
519
|
+
|
520
|
+
.hint--success.hint--left:before {
|
521
|
+
border-left-color: #458746; }
|
522
|
+
|
523
|
+
.hint--success.hint--right:before {
|
524
|
+
border-right-color: #458746; }
|
525
|
+
|
526
|
+
/**
|
527
|
+
* source: hint-always.scss
|
528
|
+
*
|
529
|
+
* Defines a persisted tooltip which shows always.
|
530
|
+
*
|
531
|
+
* Classes added:
|
532
|
+
* 1) hint--always
|
533
|
+
*
|
534
|
+
*/
|
535
|
+
.hint--always:after, .hint--always:before {
|
536
|
+
opacity: 1;
|
537
|
+
visibility: visible; }
|
538
|
+
|
539
|
+
.hint--always.hint--top:before {
|
540
|
+
-webkit-transform: translateY(-8px);
|
541
|
+
-moz-transform: translateY(-8px);
|
542
|
+
transform: translateY(-8px); }
|
543
|
+
|
544
|
+
.hint--always.hint--top:after {
|
545
|
+
-webkit-transform: translateX(-50%) translateY(-8px);
|
546
|
+
-moz-transform: translateX(-50%) translateY(-8px);
|
547
|
+
transform: translateX(-50%) translateY(-8px); }
|
548
|
+
|
549
|
+
.hint--always.hint--top-left:before {
|
550
|
+
-webkit-transform: translateY(-8px);
|
551
|
+
-moz-transform: translateY(-8px);
|
552
|
+
transform: translateY(-8px); }
|
553
|
+
|
554
|
+
.hint--always.hint--top-left:after {
|
555
|
+
-webkit-transform: translateX(-100%) translateY(-8px);
|
556
|
+
-moz-transform: translateX(-100%) translateY(-8px);
|
557
|
+
transform: translateX(-100%) translateY(-8px); }
|
558
|
+
|
559
|
+
.hint--always.hint--top-right:before {
|
560
|
+
-webkit-transform: translateY(-8px);
|
561
|
+
-moz-transform: translateY(-8px);
|
562
|
+
transform: translateY(-8px); }
|
563
|
+
|
564
|
+
.hint--always.hint--top-right:after {
|
565
|
+
-webkit-transform: translateY(-8px);
|
566
|
+
-moz-transform: translateY(-8px);
|
567
|
+
transform: translateY(-8px); }
|
568
|
+
|
569
|
+
.hint--always.hint--bottom:before {
|
570
|
+
-webkit-transform: translateY(8px);
|
571
|
+
-moz-transform: translateY(8px);
|
572
|
+
transform: translateY(8px); }
|
573
|
+
|
574
|
+
.hint--always.hint--bottom:after {
|
575
|
+
-webkit-transform: translateX(-50%) translateY(8px);
|
576
|
+
-moz-transform: translateX(-50%) translateY(8px);
|
577
|
+
transform: translateX(-50%) translateY(8px); }
|
578
|
+
|
579
|
+
.hint--always.hint--bottom-left:before {
|
580
|
+
-webkit-transform: translateY(8px);
|
581
|
+
-moz-transform: translateY(8px);
|
582
|
+
transform: translateY(8px); }
|
583
|
+
|
584
|
+
.hint--always.hint--bottom-left:after {
|
585
|
+
-webkit-transform: translateX(-100%) translateY(8px);
|
586
|
+
-moz-transform: translateX(-100%) translateY(8px);
|
587
|
+
transform: translateX(-100%) translateY(8px); }
|
588
|
+
|
589
|
+
.hint--always.hint--bottom-right:before {
|
590
|
+
-webkit-transform: translateY(8px);
|
591
|
+
-moz-transform: translateY(8px);
|
592
|
+
transform: translateY(8px); }
|
593
|
+
|
594
|
+
.hint--always.hint--bottom-right:after {
|
595
|
+
-webkit-transform: translateY(8px);
|
596
|
+
-moz-transform: translateY(8px);
|
597
|
+
transform: translateY(8px); }
|
598
|
+
|
599
|
+
.hint--always.hint--left:before {
|
600
|
+
-webkit-transform: translateX(-8px);
|
601
|
+
-moz-transform: translateX(-8px);
|
602
|
+
transform: translateX(-8px); }
|
603
|
+
|
604
|
+
.hint--always.hint--left:after {
|
605
|
+
-webkit-transform: translateX(-8px);
|
606
|
+
-moz-transform: translateX(-8px);
|
607
|
+
transform: translateX(-8px); }
|
608
|
+
|
609
|
+
.hint--always.hint--right:before {
|
610
|
+
-webkit-transform: translateX(8px);
|
611
|
+
-moz-transform: translateX(8px);
|
612
|
+
transform: translateX(8px); }
|
613
|
+
|
614
|
+
.hint--always.hint--right:after {
|
615
|
+
-webkit-transform: translateX(8px);
|
616
|
+
-moz-transform: translateX(8px);
|
617
|
+
transform: translateX(8px); }
|
618
|
+
|
619
|
+
/**
|
620
|
+
* source: hint-rounded.scss
|
621
|
+
*
|
622
|
+
* Defines rounded corner tooltips.
|
623
|
+
*
|
624
|
+
* Classes added:
|
625
|
+
* 1) hint--rounded
|
626
|
+
*
|
627
|
+
*/
|
628
|
+
.hint--rounded:after {
|
629
|
+
border-radius: 4px; }
|
630
|
+
|
631
|
+
/**
|
632
|
+
* source: hint-effects.scss
|
633
|
+
*
|
634
|
+
* Defines various transition effects for the tooltips.
|
635
|
+
*
|
636
|
+
* Classes added:
|
637
|
+
* 1) hint--no-animate
|
638
|
+
* 2) hint--bounce
|
639
|
+
*
|
640
|
+
*/
|
641
|
+
.hint--no-animate:before, .hint--no-animate:after {
|
642
|
+
-webkit-transition-duration: 0ms;
|
643
|
+
-moz-transition-duration: 0ms;
|
644
|
+
transition-duration: 0ms; }
|
645
|
+
|
646
|
+
.hint--bounce:before, .hint--bounce:after {
|
647
|
+
-webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
648
|
+
-moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
649
|
+
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); }
|