Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AnimationXBlock
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
AnimationXBlock
Commits
48aa7ad9
Commit
48aa7ad9
authored
Jun 04, 2014
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code documentation cleaned up
parent
8912f8c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
29 deletions
+30
-29
animation/static/css/animation.css
+18
-15
animation/static/html/animation.html
+12
-14
No files found.
animation/static/css/animation.css
View file @
48aa7ad9
/* CSS for AnimationXBlock */
/* CSS for AnimationXBlock */
.animation_wrapper
{
.animation_wrapper
{
//
Whole
XBlock.
Gray
background
display
:
block
;
display
:
block
;
background
:
rgb
(
200
,
200
,
200
);
//
TODO
:
edX
gray
background
:
rgb
(
200
,
200
,
200
);
//
TODO
:
edX
gray
padding
:
20px
!important
;
padding
:
20px
!important
;
...
@@ -9,32 +9,35 @@
...
@@ -9,32 +9,35 @@
border-radius
:
5px
;
border-radius
:
5px
;
}
}
.animation_block
{
.animation_slider_wrapper
{
//
Div
around
slider.
Give
a
bit
of
a
border
display
:
inline-block
;
display
:
block
;
}
width
:
100%
;
.animation_text
{
border-width
:
1px
;
border-style
:
solid
;
border-color
:
black
;
border-radius
:
5px
;
padding
:
10px
;
padding
:
10px
;
text-align
:
center
;
margin
:
10px
;
background
:
rgb
(
255
,
255
,
255
);
}
}
.ui-widget-content
.ui-state-default
,
.ui-widget-content
.ui-state-default
,
.animation_slider
.animation_slider
.ui-widget-header
.ui-state-default
,
.animation_slider
{
.ui-widget-header
.ui-state-default
,
.animation_slider
{
border
:
1px
solid
#222222
;
border
:
1px
solid
#222222
;
//
Slider
knob
background
:
#e6e6e6
linear-gradient
(
rgb
(
109
,
204
,
241
),
rgb
(
56
,
168
,
229
));
background
:
#e6e6e6
linear-gradient
(
rgb
(
109
,
204
,
241
),
rgb
(
56
,
168
,
229
));
font-weight
:
normal
;
font-weight
:
normal
;
color
:
#555555
;
color
:
#555555
;
}
}
.ui-widget-content
,
.animation_slider
{
.ui-widget-content
,
.animation_slider
{
border
:
1px
solid
#222222
;
border
:
1px
solid
#222222
;
//
Slider
background
background
:
#23c400
linear-gradient
(
90deg
,
rgb
(
109
,
204
,
241
),
rgb
(
202
,
232
,
202
));
background
:
#23c400
linear-gradient
(
90deg
,
rgb
(
109
,
204
,
241
),
rgb
(
202
,
232
,
202
));
color
:
#222222
;
color
:
#222222
;
}
}
//
Block
of
text
at
the
bottom
.
Rounded
border
.
We
'
d
like
nicer
fonts
.
.animation_text
{
border-width
:
1px
;
border-style
:
solid
;
border-color
:
black
;
border-radius
:
5px
;
padding
:
10px
;
text-align
:
center
;
margin
:
10px
;
background
:
rgb
(
255
,
255
,
255
);
}
animation/static/html/animation.html
View file @
48aa7ad9
<div
class=
"animation_wrapper"
style=
"width:{width};"
>
<div
class=
"animation_wrapper"
style=
"width:{width};"
>
<div
class=
"animation_block"
style=
"width:{width};"
>
<script
type=
"data/animation"
class=
"animation_source"
>
<script
type=
"data/animation"
class=
"animation_source"
>
{{
"position"
:{
position
},
{{
"position"
:{
position
},
"animation"
:{
animation
},
"animation"
:{
animation
},
"max_position"
:{
max_position
}
"max_position"
:{
max_position
}
}}
}}
</script>
</script>
<div
class=
"animation_slider_wrapper"
>
<div
style=
"display:block; width:100%; padding:10px;"
>
<div
class=
"animation_slider"
style=
"width:{inner_width}; "
></div>
<div
class=
"animation_slider"
style=
"width:{inner_width}; "
></div>
</div>
</div>
<img
class=
"animation_image"
src=
""
height=
{height}
width=
{width}
>
<img
class=
"animation_image"
src=
""
height=
{height}
width=
{width}
>
<div
class=
"animation_text_wrapper"
style=
"height:{textheight}"
>
<div
class=
"animation_text_wrapper"
style=
"height:{textheight}"
>
<div
class=
"animation_text"
>
<div
class=
"animation_text"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
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