@concretecms/bedrock 1.1.18 → 1.2.0

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.
@@ -19,20 +19,39 @@ import _ from 'underscore'
19
19
  elem.children('.ccm-block-cover').remove()
20
20
  my.bindDrag()
21
21
  my.bindDelete()
22
+ my.bindEditDesign()
22
23
  },
23
24
 
24
25
  bindDelete: function ContainerBlockDelete() {
25
26
  var my = this
26
- var deleter = my.getElem().find('>ul a[data-inline-command=delete-block]')
27
+ var deleter = my.getElem().find('ul.ccm-edit-mode-inline-container a[data-inline-command=delete-block]')
27
28
  deleter.unbind('click.containerDelete').on('click.containerDelete', function(e) {
28
29
  e.preventDefault()
29
30
  my.delete()
30
31
  })
31
32
  },
32
33
 
34
+ bindEditDesign: function ContainerBlockEditDesign() {
35
+ var my = this
36
+ var menuElem = my.getElem().find('ul.ccm-edit-mode-inline-container a[data-inline-command=edit-container-design]')
37
+ menuElem.off('click.edit-mode')
38
+ .on('click.edit-mode', function (e) {
39
+ e.preventDefault()
40
+ // we are going to place this at the END of the list.
41
+ var $link = $(this)
42
+ var bID = parseInt($link.attr('data-container-block-id'))
43
+ var editor = Concrete.getEditMode()
44
+ var block = _.findWhere(editor.getBlocks(), { id: bID })
45
+ Concrete.event.fire('EditModeBlockEditInline', {
46
+ block: block, event: e, action: CCM_DISPATCHER_FILENAME + '/ccm/system/dialogs/block/design'
47
+ })
48
+ return false
49
+ })
50
+ },
51
+
33
52
  bindDrag: function ContainerBlockBindDrag() {
34
53
  var my = this
35
- var mover = my.getElem().find('>ul a[data-inline-command=move-block]').parent()
54
+ var mover = my.getElem().find('ul.ccm-edit-mode-inline-container a[data-inline-command=move-block]').parent()
36
55
 
37
56
  $.pep.unbind(mover)
38
57
  mover.pep(my.getPepSettings())
@@ -313,41 +313,46 @@ div#ccm-menu-highlighter.ccm-block-highlight {
313
313
  */
314
314
  ul.ccm-edit-mode-inline-commands {
315
315
  background-color: #fff;
316
- height: 20px !important;
316
+ border-bottom-left-radius: 3px;
317
+ box-shadow: $popover-box-shadow;
318
+ display: flex;
319
+ height: 25px;
317
320
  list-style-type: none;
318
321
  margin: 0 !important;
319
322
  opacity: 0;
320
323
  padding: 0 !important;
321
324
  position: absolute;
322
- right: 1px;
323
- top: 1px;
325
+ right: 0;
326
+ top: 0;
324
327
  z-index: $index-level-inline-commands; // has to be over the click proxy
325
328
  li {
326
- display: inline-block;
327
- height: 20px !important;
328
- line-height: 20px !important;
329
+ align-items: center;
330
+ display: flex;
329
331
  margin: 0 !important;
330
332
  padding: 0 !important;
331
333
 
334
+ span {
335
+ color: #888;
336
+ display: inline-block;
337
+ font-size: 12px;
338
+ font-weight: bold;
339
+ line-height: 12px;
340
+ padding-left: 4px;
341
+ padding-right: 4px;
342
+ text-transform: uppercase;
343
+ }
344
+
332
345
  a {
333
- color: #555 !important;
346
+ color: #444 !important;
334
347
  display: inline-block;
335
348
  font-weight: lighter;
336
- height: 20px !important;
337
- line-height: 20px !important;
349
+ padding: 0;
338
350
  position: relative;
339
351
  text-align: center;
340
- width: 20px !important;
352
+ width: 25px !important;
341
353
 
342
354
  &:hover {
343
- color: #000 !important;
344
- }
345
-
346
- i {
347
- left: 3px;
348
- position: absolute;
349
- top: 3px;
350
- vertical-align: middle;
355
+ color: $blue !important;
351
356
  }
352
357
 
353
358
  &.ccm-edit-mode-inline-command-move {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concretecms/bedrock",
3
- "version": "1.1.18",
3
+ "version": "1.2.0",
4
4
  "description": "The asset framework and dependencies for Concrete CMS.",
5
5
  "scripts": {
6
6
  "lint": "standardx \"**/*.{js,vue}\" && stylelint assets/**/*.{scss,vue}",