alchemy_cms 4.1.2 → 4.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/Bug_report.md +0 -5
  3. data/.rubocop.yml +4 -1
  4. data/.travis.yml +3 -3
  5. data/CHANGELOG.md +29 -10
  6. data/Gemfile +5 -7
  7. data/README.md +114 -62
  8. data/Rakefile +2 -2
  9. data/alchemy_cms.gemspec +5 -5
  10. data/app/assets/images/alchemy/icon.svg +1 -1
  11. data/app/assets/javascripts/alchemy/admin.js +2 -0
  12. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +0 -24
  13. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +11 -9
  14. data/app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee +7 -24
  15. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +9 -8
  16. data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +38 -0
  17. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +2 -4
  18. data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +1 -1
  19. data/app/assets/stylesheets/alchemy/_mixins.scss +2 -1
  20. data/app/assets/stylesheets/alchemy/_variables.scss +7 -2
  21. data/app/assets/stylesheets/alchemy/admin.scss +2 -1
  22. data/app/assets/stylesheets/alchemy/archive.scss +18 -4
  23. data/app/assets/stylesheets/alchemy/buttons.scss +1 -1
  24. data/app/assets/stylesheets/alchemy/dialogs.scss +1 -1
  25. data/app/assets/stylesheets/alchemy/elements.scss +154 -90
  26. data/app/assets/stylesheets/alchemy/filter_field.scss +30 -0
  27. data/app/assets/stylesheets/alchemy/flatpickr.scss +839 -0
  28. data/app/assets/stylesheets/alchemy/forms.scss +5 -1
  29. data/app/assets/stylesheets/alchemy/frame.scss +6 -14
  30. data/app/assets/stylesheets/alchemy/navigation.scss +109 -98
  31. data/app/assets/stylesheets/alchemy/search.scss +11 -29
  32. data/app/assets/stylesheets/alchemy/tables.scss +0 -23
  33. data/app/assets/stylesheets/alchemy/tags.scss +4 -27
  34. data/app/assets/stylesheets/alchemy/toolbar.scss +12 -2
  35. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +4 -33
  36. data/app/controllers/alchemy/admin/attachments_controller.rb +1 -12
  37. data/app/controllers/alchemy/admin/contents_controller.rb +2 -24
  38. data/app/controllers/alchemy/admin/elements_controller.rb +11 -49
  39. data/app/controllers/alchemy/admin/pages_controller.rb +1 -1
  40. data/app/controllers/alchemy/admin/pictures_controller.rb +1 -14
  41. data/app/controllers/alchemy/api/contents_controller.rb +1 -1
  42. data/app/controllers/alchemy/api/elements_controller.rb +1 -1
  43. data/app/controllers/alchemy/api/pages_controller.rb +1 -1
  44. data/app/controllers/concerns/alchemy/admin/archive_overlay.rb +20 -0
  45. data/app/helpers/alchemy/admin/base_helper.rb +8 -18
  46. data/app/helpers/alchemy/admin/elements_helper.rb +55 -85
  47. data/app/helpers/alchemy/admin/pictures_helper.rb +0 -23
  48. data/app/helpers/alchemy/elements_helper.rb +80 -120
  49. data/app/helpers/alchemy/pages_helper.rb +5 -24
  50. data/app/models/alchemy/content.rb +0 -1
  51. data/app/models/alchemy/content/factory.rb +33 -57
  52. data/app/models/alchemy/element.rb +46 -66
  53. data/app/models/alchemy/element/element_contents.rb +2 -2
  54. data/app/models/alchemy/page.rb +34 -4
  55. data/app/models/alchemy/page/page_elements.rb +30 -122
  56. data/app/serializers/alchemy/attachment_serializer.rb +0 -2
  57. data/app/serializers/alchemy/content_serializer.rb +0 -2
  58. data/app/serializers/alchemy/element_serializer.rb +0 -3
  59. data/app/serializers/alchemy/essence_boolean_serializer.rb +0 -2
  60. data/app/serializers/alchemy/essence_date_serializer.rb +0 -2
  61. data/app/serializers/alchemy/essence_file_serializer.rb +0 -2
  62. data/app/serializers/alchemy/essence_html_serializer.rb +0 -2
  63. data/app/serializers/alchemy/essence_link_serializer.rb +0 -2
  64. data/app/serializers/alchemy/essence_picture_serializer.rb +0 -2
  65. data/app/serializers/alchemy/essence_richtext_serializer.rb +0 -2
  66. data/app/serializers/alchemy/essence_select_serializer.rb +0 -2
  67. data/app/serializers/alchemy/essence_text_serializer.rb +0 -2
  68. data/app/serializers/alchemy/legacy_element_serializer.rb +0 -3
  69. data/app/serializers/alchemy/page_serializer.rb +2 -8
  70. data/app/serializers/alchemy/page_tree_serializer.rb +1 -1
  71. data/app/serializers/alchemy/picture_serializer.rb +0 -2
  72. data/app/views/alchemy/admin/clipboard/index.html.erb +2 -2
  73. data/app/views/alchemy/admin/clipboard/insert.js.erb +9 -12
  74. data/app/views/alchemy/admin/contents/create.js.erb +4 -30
  75. data/app/views/alchemy/admin/elements/_element.html.erb +27 -12
  76. data/app/views/alchemy/admin/elements/_element_toolbar.html.erb +1 -1
  77. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +0 -10
  78. data/app/views/alchemy/admin/elements/create.js.erb +12 -12
  79. data/app/views/alchemy/admin/elements/fold.js.erb +1 -1
  80. data/app/views/alchemy/admin/elements/index.html.erb +20 -19
  81. data/app/views/alchemy/admin/elements/publish.js.erb +5 -0
  82. data/app/views/alchemy/admin/elements/trash.js.erb +4 -1
  83. data/app/views/alchemy/admin/essence_pictures/assign.js.erb +0 -7
  84. data/app/views/alchemy/admin/essence_pictures/destroy.js.erb +0 -22
  85. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +2 -4
  86. data/app/views/alchemy/admin/pages/edit.html.erb +1 -1
  87. data/app/views/alchemy/admin/pages/index.html.erb +14 -10
  88. data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
  89. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +1 -1
  90. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +7 -5
  91. data/app/views/alchemy/admin/partials/_routes.html.erb +0 -1
  92. data/app/views/alchemy/admin/partials/_search_form.html.erb +6 -4
  93. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +6 -3
  94. data/app/views/alchemy/admin/pictures/index.html.erb +1 -1
  95. data/app/views/alchemy/admin/trash/index.html.erb +8 -7
  96. data/app/views/alchemy/elements/_editor_not_found.html.erb +1 -1
  97. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +4 -19
  98. data/app/views/layouts/alchemy/admin.html.erb +1 -0
  99. data/bin/rspec +0 -5
  100. data/config/alchemy/config.yml +3 -0
  101. data/config/brakeman.ignore +1 -1
  102. data/config/locales/alchemy.en.yml +6 -12
  103. data/config/routes.rb +1 -5
  104. data/db/migrate/20180226123013_alchemy_four_point_zero.rb +0 -29
  105. data/db/migrate/20180519204655_add_fixed_to_alchemy_elements.rb +6 -0
  106. data/lib/alchemy/admin/locale.rb +1 -1
  107. data/lib/alchemy/cache_digests/template_tracker.rb +4 -27
  108. data/lib/alchemy/elements_finder.rb +111 -0
  109. data/lib/alchemy/errors.rb +0 -4
  110. data/lib/alchemy/modules.rb +49 -18
  111. data/lib/alchemy/tasks/tidy.rb +3 -40
  112. data/lib/alchemy/test_support/controller_requests.rb +1 -1
  113. data/lib/alchemy/test_support/essence_shared_examples.rb +1 -1
  114. data/lib/alchemy/test_support/factories/attachment_factory.rb +5 -3
  115. data/lib/alchemy/test_support/factories/content_factory.rb +4 -4
  116. data/lib/alchemy/test_support/factories/dummy_user_factory.rb +5 -5
  117. data/lib/alchemy/test_support/factories/element_factory.rb +12 -7
  118. data/lib/alchemy/test_support/factories/essence_text_factory.rb +1 -1
  119. data/lib/alchemy/test_support/factories/language_factory.rb +13 -13
  120. data/lib/alchemy/test_support/factories/page_factory.rb +18 -17
  121. data/lib/alchemy/test_support/factories/picture_factory.rb +6 -4
  122. data/lib/alchemy/test_support/factories/site_factory.rb +6 -6
  123. data/lib/alchemy/tinymce.rb +1 -1
  124. data/lib/alchemy/upgrader/four_point_two.rb +68 -0
  125. data/lib/alchemy/upgrader/tasks/cells_migration.rb +41 -0
  126. data/lib/alchemy/upgrader/tasks/cells_upgrader.rb +146 -0
  127. data/lib/alchemy/upgrader/tasks/picture_gallery_migration.rb +65 -0
  128. data/lib/alchemy/upgrader/tasks/picture_gallery_upgrader.rb +195 -0
  129. data/lib/alchemy/version.rb +1 -1
  130. data/lib/alchemy_cms.rb +1 -0
  131. data/lib/rails/generators/alchemy/elements/elements_generator.rb +1 -0
  132. data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +0 -3
  133. data/lib/rails/generators/alchemy/elements/templates/editor.html.haml +0 -3
  134. data/lib/rails/generators/alchemy/elements/templates/editor.html.slim +0 -3
  135. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +3 -14
  136. data/lib/rails/generators/alchemy/elements/templates/view.html.haml +3 -10
  137. data/lib/rails/generators/alchemy/elements/templates/view.html.slim +3 -10
  138. data/lib/tasks/alchemy/tidy.rake +1 -23
  139. data/lib/tasks/alchemy/upgrade.rake +44 -1
  140. data/vendor/assets/javascripts/flatpickr/flatpickr.min.js +2 -0
  141. data/vendor/assets/javascripts/tinymce/license.txt +0 -0
  142. data/vendor/assets/javascripts/tinymce/tinymce.min.js +2 -2
  143. metadata +25 -31
  144. data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +0 -478
  145. data/app/models/alchemy/cell.rb +0 -95
  146. data/app/models/alchemy/page/page_cells.rb +0 -69
  147. data/app/serializers/alchemy/cell_serializer.rb +0 -19
  148. data/app/views/alchemy/admin/contents/new.html.erb +0 -11
  149. data/app/views/alchemy/admin/contents/order.js.erb +0 -3
  150. data/app/views/alchemy/admin/elements/_add_picture.html.erb +0 -14
  151. data/app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb +0 -24
  152. data/bin/spring +0 -16
  153. data/lib/alchemy/test_support/factories/cell_factory.rb +0 -9
  154. data/vendor/assets/javascripts/date-formatter.js +0 -161
  155. data/vendor/assets/javascripts/jquery_plugins/jquery.datetimepicker.full.min.js +0 -2
@@ -1,478 +0,0 @@
1
- .xdsoft_datetimepicker {
2
- box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.506);
3
- background: #fff;
4
- border-bottom: 1px solid #bbb;
5
- border-left: 1px solid #ccc;
6
- border-right: 1px solid #ccc;
7
- border-top: 1px solid #ccc;
8
- @include border-top-radius($default-border-radius);
9
- color: $text-color;
10
- padding: 8px;
11
- padding-left: 0;
12
- padding-top: 2px;
13
- position: absolute;
14
- z-index: 9999;
15
- display: none;
16
- }
17
-
18
- .xdsoft_datetimepicker.xdsoft_rtl {
19
- padding: 8px 0 8px 8px;
20
- }
21
-
22
- .xdsoft_datetimepicker iframe {
23
- position: absolute;
24
- left: 0;
25
- top: 0;
26
- width: 75px;
27
- height: 210px;
28
- background: transparent;
29
- border: none;
30
- }
31
-
32
- /*For IE8 or lower*/
33
- .xdsoft_datetimepicker button {
34
- border: none !important;
35
- box-shadow: none;
36
- }
37
-
38
- .xdsoft_noselect {
39
- user-select: none;
40
- }
41
-
42
- .xdsoft_noselect::selection { background: transparent }
43
- .xdsoft_noselect::-moz-selection { background: transparent }
44
-
45
- .xdsoft_datetimepicker.xdsoft_inline {
46
- display: inline-block;
47
- position: static;
48
- box-shadow: none;
49
- }
50
-
51
- .xdsoft_datetimepicker * {
52
- padding: 0;
53
- margin: 0;
54
- }
55
-
56
- .xdsoft_datetimepicker .xdsoft_datepicker,
57
- .xdsoft_datetimepicker .xdsoft_timepicker {
58
- display: none;
59
- }
60
-
61
- .xdsoft_datetimepicker .xdsoft_datepicker.active,
62
- .xdsoft_datetimepicker .xdsoft_timepicker.active {
63
- display: block;
64
- }
65
-
66
- .xdsoft_datetimepicker .xdsoft_datepicker {
67
- width: 230px;
68
- float: left;
69
- margin-left: 8px;
70
- }
71
-
72
- .xdsoft_datetimepicker.xdsoft_rtl .xdsoft_datepicker {
73
- float: right;
74
- margin-right: 8px;
75
- margin-left: 0;
76
- }
77
-
78
- .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker {
79
- width: 260px;
80
- }
81
-
82
- .xdsoft_datetimepicker .xdsoft_timepicker {
83
- width: 60px;
84
- float: left;
85
- text-align: center;
86
- margin-left: 8px;
87
- margin-top: 0;
88
- }
89
-
90
- .xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker {
91
- float: right;
92
- margin-right: 8px;
93
- margin-left: 0;
94
- }
95
-
96
- .xdsoft_datetimepicker .xdsoft_mounthpicker {
97
- position: relative;
98
- text-align: center;
99
- }
100
-
101
- .xdsoft_datetimepicker .xdsoft_label i,
102
- .xdsoft_datetimepicker .xdsoft_prev,
103
- .xdsoft_datetimepicker .xdsoft_next,
104
- .xdsoft_datetimepicker .xdsoft_today_button {
105
- background-image: none;
106
- }
107
-
108
- .xdsoft_datetimepicker .xdsoft_label i {
109
- opacity: 1;
110
- display: inline-block;
111
- width: 9px;
112
- height: 20px;
113
- vertical-align: middle;
114
- font-family: 'Font Awesome 5 Free';
115
- font-size: $default-font-size;
116
- font-style: normal;
117
- font-weight: 900;
118
- color: $icon-color;
119
- text-align: center;
120
- padding-left: $default-padding;
121
-
122
- &:before {
123
- content: fa-content($fa-var-caret-down);
124
- }
125
- }
126
-
127
- .xdsoft_datetimepicker .xdsoft_prev,
128
- .xdsoft_datetimepicker .xdsoft_next {
129
- font-size: 1.5em;
130
- font-weight: 900;
131
- }
132
-
133
- .xdsoft_datetimepicker .xdsoft_prev {
134
- float: left;
135
- text-align: left;
136
-
137
- &:before {
138
- content: fa-content($fa-var-caret-left);
139
- }
140
- }
141
-
142
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev:before {
143
- content: fa-content($fa-var-caret-up);
144
- }
145
-
146
- .xdsoft_datetimepicker .xdsoft_today_button {
147
- float: left;
148
- margin: 0 5px;
149
- font-weight: 400;
150
-
151
- &:before {
152
- content: fa-content($fa-var-calendar-check);
153
- font-size: 1.25em;
154
- }
155
- }
156
-
157
- .xdsoft_datetimepicker .xdsoft_next {
158
- float: right;
159
- text-align: right;
160
-
161
- &:before {
162
- content: fa-content($fa-var-caret-right);
163
- }
164
- }
165
-
166
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next:before {
167
- content: fa-content($fa-var-caret-down);
168
- }
169
-
170
- .xdsoft_datetimepicker .xdsoft_next,
171
- .xdsoft_datetimepicker .xdsoft_prev ,
172
- .xdsoft_datetimepicker .xdsoft_today_button {
173
- background-color: transparent;
174
- background-repeat: no-repeat;
175
- border: 0 none;
176
- cursor: pointer;
177
- display: block;
178
- height: 30px;
179
- opacity: 1;
180
- outline: medium none;
181
- overflow: hidden;
182
- padding: 0;
183
- position: relative;
184
- white-space: nowrap;
185
- width: 20px;
186
- min-width: 0;
187
- font-family: 'Font Awesome 5 Free';
188
- font-style: normal;
189
- color: $icon-color;
190
- }
191
-
192
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
193
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next {
194
- width: 100%;
195
- text-align: center;
196
- }
197
-
198
- .xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker .xdsoft_prev,
199
- .xdsoft_datetimepicker.xdsoft_rtl .xdsoft_timepicker .xdsoft_next {
200
- float: none;
201
- margin-left: 0;
202
- margin-right: 14px;
203
- }
204
-
205
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev {
206
-
207
- &:before {
208
- border-width: 0 8px 8px 8px;
209
- border-color: transparent transparent $text-color;
210
- }
211
- }
212
-
213
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next {
214
-
215
- &:before {
216
- border-width: 8px 8px 0 8px;
217
- border-color: $text-color transparent transparent;
218
- }
219
- }
220
-
221
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box {
222
- height: 151px;
223
- overflow: hidden;
224
- border-bottom: 1px solid #ddd;
225
- }
226
-
227
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div {
228
- background: #f5f5f5;
229
- border-top: 1px solid #ddd;
230
- color: #666;
231
- font-size: $default-font-size;
232
- text-align: center;
233
- border-collapse: collapse;
234
- cursor: pointer;
235
- border-bottom-width: 0;
236
- height: 25px;
237
- line-height: 25px;
238
- }
239
-
240
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child {
241
- border-top-width: 0;
242
- }
243
-
244
- .xdsoft_datetimepicker .xdsoft_today_button:hover,
245
- .xdsoft_datetimepicker .xdsoft_next:hover,
246
- .xdsoft_datetimepicker .xdsoft_prev:hover,
247
- .xdsoft_datetimepicker .xdsoft_label:hover i {
248
- opacity: 0.75;
249
- }
250
-
251
- .xdsoft_datetimepicker .xdsoft_label {
252
- display: inline;
253
- position: relative;
254
- z-index: 9999;
255
- margin: 0;
256
- padding: 5px 3px;
257
- font-size: $default-font-size;
258
- line-height: 20px;
259
- font-weight: bold;
260
- background-color: #fff;
261
- float: left;
262
- width: 182px;
263
- text-align: center;
264
- cursor: pointer;
265
- }
266
-
267
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
268
- border: 1px solid #ccc;
269
- position: absolute;
270
- right: 0;
271
- top: 30px;
272
- z-index: 101;
273
- display: none;
274
- background: #fff;
275
- max-height: 160px;
276
- overflow-y: hidden;
277
- }
278
-
279
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_monthselect{ right: -7px }
280
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_yearselect{ right: 2px }
281
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover {
282
- color: $datepicker_hover_color;
283
- background: $datepicker_hover_bg;
284
- }
285
-
286
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option {
287
- padding: 2px 10px 2px 5px;
288
- text-decoration: none !important;
289
- }
290
-
291
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current {
292
- background: $datepicker_current_bg;
293
- box-shadow: $datepicker_current_box_shadow;
294
- color: $datepicker_current_color;
295
- font-weight: 700;
296
- }
297
-
298
- .xdsoft_datetimepicker .xdsoft_month {
299
- width: 100px;
300
- text-align: right;
301
- }
302
-
303
- .xdsoft_datetimepicker .xdsoft_calendar {
304
- clear: both;
305
- }
306
-
307
- .xdsoft_datetimepicker .xdsoft_year {
308
- width: 52px;
309
- margin-left: 5px;
310
- }
311
-
312
- .xdsoft_datetimepicker .xdsoft_calendar table {
313
- border-collapse: collapse;
314
- width: 100%;
315
- }
316
-
317
- .xdsoft_datetimepicker .xdsoft_calendar td > div {
318
- padding-right: 5px;
319
- }
320
-
321
- .xdsoft_datetimepicker .xdsoft_calendar th {
322
- height: 25px;
323
- }
324
-
325
- .xdsoft_datetimepicker .xdsoft_calendar td,
326
- .xdsoft_datetimepicker .xdsoft_calendar th {
327
- width: 14.2857142%;
328
- background: $datepicker_day_bg;
329
- border: $datepicker_day_border;
330
- color: $datepicker_day_color;
331
- font-size: $default-font-size;
332
- text-align: right;
333
- vertical-align: middle;
334
- padding: 0;
335
- border-collapse: collapse;
336
- cursor: pointer;
337
- height: 25px;
338
- }
339
-
340
- .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,
341
- .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th {
342
- width: 12.5%;
343
- }
344
-
345
- .xdsoft_datetimepicker .xdsoft_calendar th {
346
- background: #f1f1f1;
347
- }
348
-
349
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
350
- background: $datepicker_today_bg;
351
- color: $datepicker_today_color;
352
- }
353
-
354
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_highlighted_default {
355
- background: #ffe9d2;
356
- box-shadow: #ffb871 0 1px 4px 0 inset;
357
- color: #000;
358
- }
359
-
360
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_highlighted_mint {
361
- background: #c1ffc9;
362
- box-shadow: #00dd1c 0 1px 4px 0 inset;
363
- color: #000;
364
- }
365
-
366
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
367
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
368
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current {
369
- background: $datepicker_current_bg;
370
- box-shadow: $datepicker_current_box_shadow;
371
- color: $datepicker_current_color;
372
- font-weight: 700;
373
- }
374
-
375
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
376
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
377
- .xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled {
378
- opacity: 0.5;
379
- cursor: default;
380
- }
381
-
382
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled {
383
- opacity: 0.2;
384
- }
385
-
386
- .xdsoft_datetimepicker .xdsoft_calendar td:hover,
387
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover {
388
- color: $datepicker_hover_color !important;
389
- background: $datepicker_hover_bg !important;
390
- box-shadow: none !important;
391
- }
392
-
393
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current.xdsoft_disabled:hover,
394
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current.xdsoft_disabled:hover {
395
- background: $datepicker_current_bg !important;
396
- box-shadow: $datepicker_current_box_shadow !important;
397
- color: $datepicker_hover_color !important;
398
- }
399
-
400
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
401
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_disabled:hover {
402
- color: inherit !important;
403
- background: inherit !important;
404
- box-shadow: inherit !important;
405
- }
406
-
407
- .xdsoft_datetimepicker .xdsoft_calendar th {
408
- font-weight: 700;
409
- text-align: center;
410
- color: $datepicker_header_color;
411
- cursor: default;
412
- }
413
-
414
- .xdsoft_datetimepicker .xdsoft_copyright {
415
- color: #ccc !important;
416
- font-size: $small-font-size;
417
- clear: both;
418
- float: none;
419
- margin-left: 8px;
420
- }
421
-
422
- .xdsoft_datetimepicker .xdsoft_copyright a { color: #eee !important }
423
- .xdsoft_datetimepicker .xdsoft_copyright a:hover { color: #aaa !important }
424
-
425
- .xdsoft_time_box {
426
- position: relative;
427
- border: 1px solid #ccc;
428
- }
429
-
430
- .xdsoft_scrollbar > .xdsoft_scroller {
431
- background: #ccc !important;
432
- height: 20px;
433
- border-radius: 3px;
434
- }
435
-
436
- .xdsoft_scrollbar {
437
- position: absolute;
438
- width: 7px;
439
- right: 0;
440
- top: 0;
441
- bottom: 0;
442
- cursor: pointer;
443
- }
444
-
445
- .xdsoft_datetimepicker.xdsoft_rtl .xdsoft_scrollbar {
446
- left: 0;
447
- right: auto;
448
- }
449
-
450
- .xdsoft_scroller_box {
451
- position: relative;
452
- }
453
-
454
- .xdsoft_datetimepicker .xdsoft_save_selected {
455
- display: block;
456
- border: 1px solid #dddddd !important;
457
- margin-top: 5px;
458
- width: 100%;
459
- color: #454551;
460
- font-size: $default-font-size;
461
- }
462
-
463
- .xdsoft_datetimepicker .blue-gradient-button {
464
- font-family: "museo-sans", "Book Antiqua", sans-serif;
465
- font-size: $default-font-size;
466
- font-weight: 300;
467
- color: #82878c;
468
- height: 28px;
469
- position: relative;
470
- padding: 4px 17px 4px 33px;
471
- border: 1px solid #d7d8da;
472
- background: linear-gradient(#fff, #f4f8fa 73%);
473
- }
474
-
475
- .xdsoft_datetimepicker .blue-gradient-button:hover, .xdsoft_datetimepicker .blue-gradient-button:focus, .xdsoft_datetimepicker .blue-gradient-button:hover span, .xdsoft_datetimepicker .blue-gradient-button:focus span {
476
- color: #454551;
477
- background: linear-gradient(#f4f8fa, #fff 73%);
478
- }