Commit 48aa7ad9 by Piotr Mitros

Code documentation cleaned up

parent 8912f8c7
/* 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);
}
<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>
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