Skip to content

Commit

Permalink
increased animation speed per design feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
randyaskin committed Apr 27, 2017
1 parent a51e959 commit 263712c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 65 deletions.
3 changes: 2 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
v1.0.0-prerelease
==================
* Major version bump for start of redesign
* major version bump for start of redesign
* updated colors for redesign
* increased animation speed per design feedback

v0.2.3
==================
Expand Down
2 changes: 1 addition & 1 deletion css/px-clipboard-styles.html

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ function buildCSS(){
}

gulp.task('sass', function() {
return gulp.src(['./sass/*.scss', '!./sass/*sketch.scss'])
return gulp.src(['./sass/*.scss'])
.pipe(buildCSS())
.pipe(gulpif(/.*predix/,
$.rename(function(path){
path.basename = new RegExp('.+?(?=\-predix)').exec(path.basename)[0];
})
))
.pipe(stylemod({
moduleId: function(file) {
return path.basename(file.path, path.extname(file.path)) + '-styles';
Expand Down
5 changes: 2 additions & 3 deletions px-clipboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<dom-module id="px-clipboard">
<template>
<style include="px-clipboard-styles"></style>

<div class="flex flex--left">
<div class="flex__item"><content></content></div>
<div class="iron">
Expand Down Expand Up @@ -227,8 +227,7 @@
copiedIcon.classList.remove('copiedIconGreen', 'fadeOutCopied');
copiedIcon.classList.add('fadeIn');
this.distributeContent();
// copiedText.classList.add('copiedText');
}.bind(this), 4000);
}.bind(this), 2000);

},
/**
Expand Down
39 changes: 0 additions & 39 deletions sass/px-clipboard-predix.scss

This file was deleted.

32 changes: 17 additions & 15 deletions sass/px-clipboard-sketch.scss → sass/px-clipboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
*/

//
// Sass for the "sketch" notion of the px-clipboard component
// Sass for the Predix notion of the px-clipboard component
//
// @author
//

/*
THIS FILE SHOULD CONTAIN ONLY ABSTRACT/'SKETCH' THEME RULES, NOT SPECIFIC TO PREDIX BRANDING
Predix branding rules go in px-clipboard-predix.scss, not in this file.
THIS FILE SHOULD CONTAIN ONLY RULES SPECIFIC TO PREDIX BRANDING
common/abstract rules go in px-clipboard-sketch.scss, not in this file.
*/


// Settings
@import "px-colors-design/_settings.colors.scss";

// Generic
@import "px-normalize-design/_generic.normalize.scss";
Expand All @@ -36,22 +37,23 @@ Predix branding rules go in px-clipboard-predix.scss, not in this file.
height: calculateRem(24px);
width: calculateRem(24px);
margin-left: 5px;
color: var(--px-clipboard-icon-color, $gray13);
&:hover{
color: var(--px-clipboard-icon-color--hover, $primary-default);
}
&:active {
color: var(--px-clipboard-icon-color--pressed, $primary-pressed);
}
&.copiedIconGreen {
color: var(--px-clipboard-icon-color--copied, $status-green3);
}
}
.fadeOutCopied {

-webkit-transition: opacity 3s 2s;
-moz-transition: opacity 3s 2s;
-ms-transition: opacity 3s 2s;
-o-transition: opacity 3s 2s;
transition: opacity 2.5s 0.4s;
opacity: 0;


}
.fadeIn {
-webkit-transition: opacity 3s;
-moz-transition: opacity 3s;
-ms-transition: opacity 3s;
-o-transition: opacity 3s;
transition: opacity 0.4s;
opacity: 1;
}

Expand Down

0 comments on commit 263712c

Please sign in to comment.