Commit e8b32108 by Andrew Gaylard

Corrections after review feedback.

parent 9c780c2f
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
.xblock--drag-and-drop .zone { .xblock--drag-and-drop .zone {
position: absolute; position: absolute;
border: 1px hidden #f00; border: 1px hidden #565656;
display: -webkit-box; display: -webkit-box;
display: -moz-box; display: -moz-box;
...@@ -235,6 +235,10 @@ ...@@ -235,6 +235,10 @@
} }
.xblock--drag-and-drop .zone-with-borders {
border: 1px dotted #565656;
}
/* Focused zone */ /* Focused zone */
.xblock--drag-and-drop .zone:focus { .xblock--drag-and-drop .zone:focus {
border: 2px solid #a5a5a5; border: 2px solid #a5a5a5;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
box-pack:center; box-pack:center;
box-align:center; box-align:center;
border: 1px dotted #666; border: 1px dotted #565656;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -102,9 +102,10 @@ ...@@ -102,9 +102,10 @@
var zoneTemplate = function(zone, ctx) { var zoneTemplate = function(zone, ctx) {
var className = ctx.display_zone_labels ? 'zone-name' : 'zone-name sr'; var className = ctx.display_zone_labels ? 'zone-name' : 'zone-name sr';
var selector = ctx.display_zone_borders ? 'div.zone.zone-with-borders' : 'div.zone';
return ( return (
h( h(
'div.zone', selector,
{ {
id: zone.id, id: zone.id,
attributes: { attributes: {
...@@ -115,8 +116,7 @@ ...@@ -115,8 +116,7 @@
}, },
style: { style: {
top: zone.y_percent + '%', left: zone.x_percent + "%", top: zone.y_percent + '%', left: zone.x_percent + "%",
width: zone.width_percent + '%', height: zone.height_percent + "%", width: zone.width_percent + '%', height: zone.height_percent + "%"
borderStyle: ctx.display_zone_borders ? 'dotted' : 'hidden'
} }
}, },
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment