Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
xblock-drag-and-drop-v2
Commits
e8b32108
Commit
e8b32108
authored
Jan 08, 2016
by
Andrew Gaylard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrections after review feedback.
parent
9c780c2f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
drag_and_drop_v2/public/css/drag_and_drop.css
+5
-1
drag_and_drop_v2/public/css/drag_and_drop_edit.css
+1
-1
drag_and_drop_v2/public/js/view.js
+3
-3
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
e8b32108
...
@@ -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
;
...
...
drag_and_drop_v2/public/css/drag_and_drop_edit.css
View file @
e8b32108
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
box-pack
:
center
;
box-pack
:
center
;
box-align
:
center
;
box-align
:
center
;
border
:
1px
dotted
#
66
6
;
border
:
1px
dotted
#
56565
6
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
...
...
drag_and_drop_v2/public/js/view.js
View file @
e8b32108
...
@@ -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'
}
}
},
},
[
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment