Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
67111de0
Commit
67111de0
authored
Feb 08, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Plain Diff
Merged in static_ernie_leanmodal_closebox
parents
d470bc53
bb368549
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
7 deletions
+54
-7
css/application.css
+26
-1
css/marketing.css
+15
-1
js/jquery.leanModal.js
+12
-4
js/jquery.leanModal.min.js
+1
-1
No files found.
css/application.css
View file @
67111de0
...
...
@@ -552,12 +552,26 @@ div.leanModal_box {
border
:
none
;
background
:
#fff
;
padding
:
45.304px
;
}
div
.leanModal_box
a
.modal_close
{
position
:
absolute
;
top
:
12px
;
right
:
12px
;
display
:
block
;
width
:
14px
;
height
:
14px
;
z-index
:
2
;
color
:
#aaa
;
font-style
:
normal
;
}
div
.leanModal_box
a
.modal_close
:hover
{
text-decoration
:
none
;
color
:
#993333
;
}
div
.leanModal_box
h1
{
font-size
:
24px
;
margin-top
:
0
;
padding-bottom
:
22.652px
;
border-bottom
:
1px
solid
#eee
;
margin-bottom
:
22.652px
;
}
margin-bottom
:
22.652px
;
text-align
:
left
;
}
div
.leanModal_box
#enroll
{
max-width
:
600px
;
}
div
.leanModal_box
#enroll
ol
li
.terms
,
div
.leanModal_box
#enroll
ol
li
.honor-code
{
...
...
@@ -3703,6 +3717,17 @@ div.answer-own {
padding-left
:
8.178%
;
padding-top
:
10px
;
}
div
.answer-actions
{
text-align
:
right
;
margin
:
0
;
padding
:
0
;
}
div
.answer-actions
span
.sep
{
color
:
#ddd
;
}
div
.answer-actions
a
{
text-decoration
:
none
;
}
div
.answer-actions
a
.question-edit
,
div
.answer-actions
a
.permant-link
{
color
:
#999
;
}
form
.answer-form
,
form
.question-form
{
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
...
...
css/marketing.css
View file @
67111de0
...
...
@@ -627,12 +627,26 @@ div.leanModal_box {
border
:
none
;
background
:
#fff
;
padding
:
51.776px
;
}
div
.leanModal_box
a
.modal_close
{
position
:
absolute
;
top
:
12px
;
right
:
12px
;
display
:
block
;
width
:
14px
;
height
:
14px
;
z-index
:
2
;
color
:
#aaa
;
font-style
:
normal
;
}
div
.leanModal_box
a
.modal_close
:hover
{
text-decoration
:
none
;
color
:
#993333
;
}
div
.leanModal_box
h1
{
font-size
:
24px
;
margin-top
:
0
;
padding-bottom
:
25.888px
;
border-bottom
:
1px
solid
#eee
;
margin-bottom
:
25.888px
;
}
margin-bottom
:
25.888px
;
text-align
:
left
;
}
div
.leanModal_box
#enroll
{
max-width
:
600px
;
}
div
.leanModal_box
#enroll
ol
li
.terms
,
div
.leanModal_box
#enroll
ol
li
.honor-code
{
...
...
js/jquery.leanModal.js
View file @
67111de0
...
...
@@ -6,8 +6,13 @@
var
defaults
=
{
top
:
100
,
overlay
:
0.5
overlay
:
0.5
,
closeButton
:
'.modal_close'
}
var
overlay
=
$
(
"<div id='lean_overlay'></div>"
);
$
(
"body"
).
append
(
overlay
);
options
=
$
.
extend
(
defaults
,
options
);
...
...
@@ -17,17 +22,20 @@
$
(
this
).
click
(
function
(
e
)
{
var
overlay
=
$
(
"<div id='lean_overlay'></div>"
);
var
modal_id
=
$
(
this
).
attr
(
"href"
);
$
(
".leanModal_box"
).
css
({
'display'
:
'none'
});
$
(
"body"
).
append
(
overlay
);
$
(
".leanModal_box"
).
append
(
"<a class=
\"
modal_close
\"
href=
\"
#
\"
>✖</a>"
);
$
(
"#lean_overlay"
).
click
(
function
()
{
close_modal
(
modal_id
);
});
$
(
o
.
closeButton
).
click
(
function
()
{
close_modal
(
modal_id
);
});
var
modal_height
=
$
(
modal_id
).
outerHeight
();
var
modal_width
=
$
(
modal_id
).
outerWidth
();
...
...
js/jquery.leanModal.min.js
View file @
67111de0
(
function
(
a
){
a
.
fn
.
extend
({
leanModal
:
function
(
b
){
function
d
(
b
){
a
(
"#lean_overlay"
).
fadeOut
(
200
);
a
(
b
).
css
({
display
:
"none"
})}
var
c
=
{
top
:
100
,
overlay
:.
5
};
b
=
a
.
extend
(
c
,
b
);
return
this
.
each
(
function
(){
var
c
=
b
;
a
(
this
).
click
(
function
(
b
){
var
e
=
a
(
"<div id='lean_overlay'></div>"
);
var
f
=
a
(
this
).
attr
(
"href"
);
a
(
".leanModal_box"
).
css
({
display
:
"none"
});
a
(
"body"
).
append
(
e
);
a
(
"#lean_overlay"
).
click
(
function
(){
d
(
f
)});
var
g
=
a
(
f
).
outerHeight
();
var
h
=
a
(
f
).
outerWidth
();
a
(
"#lean_overlay"
).
css
({
display
:
"block"
,
opacity
:
0
});
a
(
"#lean_overlay"
).
fadeTo
(
200
,
c
.
overlay
);
a
(
f
).
css
({
display
:
"block"
,
position
:
"fixed"
,
opacity
:
0
,
"z-index"
:
11
e3
,
left
:
50
+
"%"
,
"margin-left"
:
-
(
h
/
2
)
+
"px"
,
top
:
c
.
top
+
"px"
});
var
i
=
a
(
f
).
offset
().
top
+
"px"
;
a
(
f
).
css
({
position
:
"absolute"
,
top
:
i
});
a
(
f
).
fadeTo
(
200
,
1
);
b
.
preventDefault
()})})}})})(
jQuery
)
(
function
(
a
){
a
.
fn
.
extend
({
leanModal
:
function
(
b
){
function
e
(
b
){
a
(
"#lean_overlay"
).
fadeOut
(
200
);
a
(
b
).
css
({
display
:
"none"
})}
var
c
=
{
top
:
100
,
overlay
:.
5
,
closeButton
:
".modal_close"
};
var
d
=
a
(
"<div id='lean_overlay'></div>"
);
a
(
"body"
).
append
(
d
);
b
=
a
.
extend
(
c
,
b
);
return
this
.
each
(
function
(){
var
c
=
b
;
a
(
this
).
click
(
function
(
b
){
var
f
=
a
(
this
).
attr
(
"href"
);
a
(
".leanModal_box"
).
css
({
display
:
"none"
});
a
(
"body"
).
append
(
d
);
a
(
".leanModal_box"
).
append
(
'<a class="modal_close" href="#">✖</a>'
);
a
(
"#lean_overlay"
).
click
(
function
(){
e
(
f
)});
a
(
c
.
closeButton
).
click
(
function
(){
e
(
f
)});
var
g
=
a
(
f
).
outerHeight
();
var
h
=
a
(
f
).
outerWidth
();
a
(
"#lean_overlay"
).
css
({
display
:
"block"
,
opacity
:
0
});
a
(
"#lean_overlay"
).
fadeTo
(
200
,
c
.
overlay
);
a
(
f
).
css
({
display
:
"block"
,
position
:
"fixed"
,
opacity
:
0
,
"z-index"
:
11
e3
,
left
:
50
+
"%"
,
"margin-left"
:
-
(
h
/
2
)
+
"px"
,
top
:
c
.
top
+
"px"
});
var
i
=
a
(
f
).
offset
().
top
+
"px"
;
a
(
f
).
css
({
position
:
"absolute"
,
top
:
i
});
a
(
f
).
fadeTo
(
200
,
1
);
b
.
preventDefault
()})})}})})(
jQuery
)
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