added animations
This commit is contained in:
parent
fd3e78aa28
commit
aff4818f80
@ -15,3 +15,4 @@ fortawesome:fontawesome
|
|||||||
templates:tabs
|
templates:tabs
|
||||||
accounts-ui
|
accounts-ui
|
||||||
maazalik:malihu-jquery-custom-scrollbar
|
maazalik:malihu-jquery-custom-scrollbar
|
||||||
|
percolate:momentum
|
||||||
|
|||||||
@ -55,6 +55,8 @@ oauth@1.1.3
|
|||||||
oauth2@1.1.2
|
oauth2@1.1.2
|
||||||
observe-sequence@1.0.4
|
observe-sequence@1.0.4
|
||||||
ordered-dict@1.0.2
|
ordered-dict@1.0.2
|
||||||
|
percolate:momentum@0.7.1
|
||||||
|
percolate:velocityjs@1.1.0
|
||||||
random@1.0.2
|
random@1.0.2
|
||||||
reactive-dict@1.0.5
|
reactive-dict@1.0.5
|
||||||
reactive-var@1.0.4
|
reactive-var@1.0.4
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
color: #E14C2B;
|
color: #E14C2B;
|
||||||
}
|
}
|
||||||
.row-admin {
|
.row-admin {
|
||||||
max-width:89%;
|
min-width: 100%;
|
||||||
}
|
}
|
||||||
.submission {
|
.submission {
|
||||||
margin-left: 2%;
|
margin-left: 2%;
|
||||||
|
|||||||
@ -3,21 +3,20 @@
|
|||||||
<div>
|
<div>
|
||||||
<h5>Admin Panel</h5>
|
<h5>Admin Panel</h5>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#teacherTabs tabs=tabs}}
|
{{#teacherTabs tabs=tabs}}
|
||||||
<!-- Single -->
|
<!-- Single -->
|
||||||
<div class="border">
|
<div class="border">
|
||||||
<div>
|
<div>
|
||||||
<h6>Edit Chromebooks</h6> <!-- Edit Chromebooks -->
|
<h6>Edit Chromebooks</h6> <!-- Edit Chromebooks -->
|
||||||
|
{{#momentum plugin='slide-fade'}}
|
||||||
{{#each chromebooks}}
|
{{#each chromebooks}}
|
||||||
<div class="row-admin">
|
<div class="row-admin">
|
||||||
{{> chromebook}}
|
{{> chromebook}}
|
||||||
<i class="icons yield fa fa-exclamation-triangle fa-lg"></i>
|
<i class="icons yield fa fa-exclamation-triangle fa-lg"></i>
|
||||||
<div class="overlap-fix">
|
|
||||||
<i class="icons cross fa fa-times fa-lg"></i>
|
<i class="icons cross fa fa-times fa-lg"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
{{/momentum}}
|
||||||
<h6>Add a Chromebook</h6> <!-- Add Chromebooks -->
|
<h6>Add a Chromebook</h6> <!-- Add Chromebooks -->
|
||||||
<form class="new-task">
|
<form class="new-task">
|
||||||
<input type="text" name="anumber" placeholder="Chromebook Number (eg. B1)" class="submission" />
|
<input type="text" name="anumber" placeholder="Chromebook Number (eg. B1)" class="submission" />
|
||||||
|
|||||||
@ -16,8 +16,7 @@ body {
|
|||||||
box-shadow: 3px 3px 10px #c2c2c2;
|
box-shadow: 3px 3px 10px #c2c2c2;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
height: 10%;
|
height: 10%;
|
||||||
/* max-width: 100%;*/
|
max-width: 81%;
|
||||||
min-width: 92%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chromebook:hover {
|
.chromebook:hover {
|
||||||
@ -32,11 +31,14 @@ body {
|
|||||||
|
|
||||||
.icons {
|
.icons {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: 2.5%;
|
margin-top: -7.5%;
|
||||||
margin-left: 2%;
|
margin-left: 2%;
|
||||||
color: #5A5A5A;
|
color: #5A5A5A;
|
||||||
transition: color 0.5s;
|
transition: color 0.5s;
|
||||||
}
|
}
|
||||||
|
.icons.yield.fa.fa-exclamation-triangle.fa-lg {
|
||||||
|
margin-right: 6%;
|
||||||
|
}
|
||||||
|
|
||||||
.cross:hover, .crossc:hover{
|
.cross:hover, .crossc:hover{
|
||||||
color: #E14C2B;
|
color: #E14C2B;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template name="chromebook">
|
<template name="chromebook">
|
||||||
<div class="chromebook {{status_class}}">
|
<div class="chromebook {{status_class}}">
|
||||||
<p class="pure-u-3-5">Chromebook #{{number}}</p>
|
<p class="pure-u-3-5">Chromebook #{{number}}</p>
|
||||||
{{#if status }}
|
{{#if status}}
|
||||||
<div class="timestamp pure-u-2-5">
|
<div class="timestamp pure-u-2-5">
|
||||||
<p class="user"> <b>{{user}}</b></p>
|
<p class="user"> <b>{{user}}</b></p>
|
||||||
<p class="time">{{time_ago}}</p>
|
<p class="time">{{time_ago}}</p>
|
||||||
|
|||||||
38
chromebook-checkout-meteor/client/slide-fade.js
Normal file
38
chromebook-checkout-meteor/client/slide-fade.js
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
Momentum.registerPlugin('slide-fade', function(options) {
|
||||||
|
options = _.extend({
|
||||||
|
duration: 200,
|
||||||
|
easing: 'ease-in-out'
|
||||||
|
}, options);
|
||||||
|
|
||||||
|
return {
|
||||||
|
insertElement: function(node, next, done) {
|
||||||
|
var $node = $(node);
|
||||||
|
|
||||||
|
$node
|
||||||
|
.hide()
|
||||||
|
.insertBefore(next)
|
||||||
|
.velocity('fadeIn')
|
||||||
|
.velocity('slideDown', {
|
||||||
|
easing: options.easing,
|
||||||
|
duration: options.duration,
|
||||||
|
queue: false,
|
||||||
|
complete: function() {
|
||||||
|
$node.css('height', ''); // remove explicit height
|
||||||
|
done();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
removeElement: function(node, done) {
|
||||||
|
var $node = $(node);
|
||||||
|
|
||||||
|
$node.velocity('slideUp', {
|
||||||
|
easing: options.easing,
|
||||||
|
duration: options.duration,
|
||||||
|
complete: function() {
|
||||||
|
$node.remove();
|
||||||
|
done();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user