Skip to content

Commit

Permalink
Pull Request animate-css#622 - animate-css#1 Review
Browse files Browse the repository at this point in the history
- Removed checbox style.
- Removed all browser prefixes on new css rules.
- Removed chages on the test directory.
  • Loading branch information
Igorxp5 committed Apr 28, 2017
1 parent ed44751 commit dc3d767
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 420 deletions.
2 changes: 0 additions & 2 deletions test/builder.js → builder.js
Expand Up @@ -26,11 +26,9 @@ $(document).ready(function(){
var $checkGroup = $('<div class="checkbox-group"/>');

var $checkbox = $('<input id="chk-' + animation + '" type="checkbox" name="' + animation + '" value="' + animation + '" class="input--checkbox">');
var $label = $('<label for="chk-' + animation + '" class="checkbox--check"/>');
var $span = $('<label for="chk-' + animation + '" class="checkbox--label">' + animation + '</label>');

$checkGroup.append($checkbox);
$checkGroup.append($label);
$checkGroup.append($span);

$('.js--builder button').before($checkGroup);
Expand Down
8 changes: 4 additions & 4 deletions index.html
Expand Up @@ -148,7 +148,7 @@
</form>
<hr />
<p class="meta"><a class="js--triggerSection" href="javascript:void(0);">Builder</a> or <a href="https://raw.github.com/daneden/animate.css/master/animate.css" download="animate.css">Download Animate.css</a> or <a href="//github.com/daneden/animate.css">View on GitHub</a></p>
<p><small>Another thing from <a href="//daneden.me">Daniel Eden</a>.</small></p>
<p><small>Project <a href="https://github.com/daneden/animate.css/graphs/contributors">contributors</a></small></p>
</div>
</main><!-- /.site__content -->
</section><!-- /Section: Animations Exbihition -->
Expand All @@ -159,18 +159,18 @@
<header class="site__header">
<div class="wrap">
<span id="animationSandbox" style="display: block;"><h1 class="site__title mega">Animate.css Builder</h1></span>
<a href="javascript:void(0);" class="js--triggerSection">Voltar</a>
<a href="javascript:void(0);" class="js--triggerSection">Back</a>
</div>
</header><!-- /.site__header -->

<main class="site__content island" role="content">
<div class="wrap">
<form class="js--builder">
<button class="butt">Build</button>
<button class="butt butt--build">Build</button>
</form>
<hr />
<p class="meta"><a class="js--triggerSection" href="javascript:void(0);">Animate.css</a> or <a href="https://raw.github.com/daneden/animate.css/master/animate.css" download="animate.css">Download Animate.css</a> or <a href="//github.com/daneden/animate.css">View on GitHub</a></p>
<p><small>Developed by Igorxp5</small></p>
<p><small>Project <a href="https://github.com/daneden/animate.css/graphs/contributors">contributors</a></small></p>
</div>
</main><!-- /.site__content -->
</section><!-- /Section: Builder -->
Expand Down
64 changes: 7 additions & 57 deletions style.css
Expand Up @@ -11,7 +11,7 @@
box-sizing: border-box;
}

input, select, button, textarea {
select, button, textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
Expand Down Expand Up @@ -55,6 +55,10 @@ input, select, button, textarea {
color: #fff;
}

.butt--build {
margin-top: 20px;
}

.input {
border: 1px solid #c0c8c9;
border-radius: 4px;
Expand All @@ -70,56 +74,19 @@ input, select, button, textarea {

.checkbox-group {
display: inline-block;
margin: 10px;
margin: 15px;
position: relative;
width: 160px;
}

.checkbox-group .input--checkbox {
visibility: hidden;
}

.checkbox--check {
background: inherit;
border: 1px solid #ddd;
cursor: pointer;
height: 20px;
position: absolute;
top: 0; left: 0;
width: 20px;
}

.checkbox--check:after {
content: '';
background: transparent;
border: 3px solid #4D4C41;
border-top: none;
border-right: none;
height: 5px;
opacity: 0.2;
position: absolute;
top: 6px; left: 5px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
-webkit-animation: hue 60s infinite linear;
animation: hue 60s infinite linear;
width: 9px;
}


.checkbox-group .input--checkbox:checked + .checkbox--check:after {
border: 3px solid #f35626;
border-top: none;
border-right: none;
opacity: 1;
}

.checkbox--label {
position: absolute;
top: -1px; left: 25px;
top: -5px; left: 25px;
}

/*-----------------------------------*\
Expand Down Expand Up @@ -203,7 +170,6 @@ a {

/* prevent fast down animation */
.section__builder.fadeOutDown {
-webkit-animation-duration: 2.5s;
animation-duration: 2.5s;
}

Expand Down Expand Up @@ -302,8 +268,6 @@ html {
}

.modal__main {
-webkit-animation-duration: .5s;
-o-animation-duration: .5s;
animation-duration: .5s;
background-color: #fff;
box-shadow: 0 0 13px -5px rgba(0, 0, 0, .8);
Expand All @@ -324,8 +288,6 @@ html {
}

.modal__button {
-webkit-animation: hue 60s linear;
-o-animation: hue 60s linear;
animation: hue 60s linear;
background-color: transparent;
border: 2px solid #f35626;
Expand All @@ -334,8 +296,6 @@ html {
font-size: 15px;
outline: none;
padding: 7px 22px;
-webkit-transition: background-color .4s, color .4s;
-o-transition: background-color .4s, color .4s;
transition: background-color .4s, color .4s;
}

Expand All @@ -355,8 +315,6 @@ html {
}

.modal__close {
-webkit-animation: hue 60s linear;
-o-animation: hue 60s linear;
animation: hue 60s linear;
border: 3px solid #fff;
background-color: #f35626;
Expand All @@ -379,17 +337,9 @@ html {
width: 15px;
}
.modal__close:before {
-webkit-transform: translateY(-1px) rotate(-45deg);
-moz-transform: translateY(-1px) rotate(-45deg);
-ms-transform: translateY(-1px) rotate(-45deg);
-o-transform: translateY(-1px) rotate(-45deg);
transform: translateY(-1px) rotate(-45deg);
}

.modal__close:after {
-webkit-transform: translateY(-1px) rotate(45deg);
-moz-transform: translateY(-1px) rotate(45deg);
-ms-transform: translateY(-1px) rotate(45deg);
-o-transform: translateY(-1px) rotate(45deg);
transform: translateY(-1px) rotate(45deg);
}

0 comments on commit dc3d767

Please sign in to comment.