Skip to content

Commit

Permalink
Built files will be kept in dist
Browse files Browse the repository at this point in the history
  • Loading branch information
benschwarz committed Mar 14, 2013
1 parent 3bff102 commit e950af6
Show file tree
Hide file tree
Showing 7 changed files with 1,117 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ module.exports = function(grunt) {
style: 'expanded'
},
files: {
'css/<%= pkg.name %>.css': 'sass/<%= pkg.name %>.build.scss',
'css/<%= pkg.name %>.theme.css': 'sass/<%= pkg.name %>.theme.scss'
'dist/<%= pkg.name %>.css': 'sass/<%= pkg.name %>.build.scss',
'dist/<%= pkg.name %>.theme.css': 'sass/<%= pkg.name %>.theme.scss'
}
}
},
csslint: {
dist: {
src: ['css/*.css']
src: ['dist/*.css']
}
},
rework: {
'css/<%= pkg.name %>.prefixed.css': 'css/<%= pkg.name %>.css',
'dist/<%= pkg.name %>.prefixed.css': 'dist/<%= pkg.name %>.css',
options: {
use: [
['rework.keyframes'],
Expand All @@ -39,12 +39,12 @@ module.exports = function(grunt) {
},
cssmin: {
unprefixed: {
src: 'css/gallery.css',
dest: 'css/gallery.min.css'
src: 'dist/gallery.css',
dest: 'dist/gallery.min.css'
},
prefixed: {
src: 'css/gallery.prefixed.css',
dest: 'css/gallery.prefixed.min.css'
src: 'dist/gallery.prefixed.css',
dest: 'dist/gallery.prefixed.min.css'
}
}
});
Expand Down
10 changes: 5 additions & 5 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "gallery",
"version": "1.0.0",
"main": [
"./css/gallery.css",
"./css/gallery.min.css",
"./css/gallery.prefixed.css",
"./css/gallery.prefixed.min.css",
"./css/gallery.theme./.css"
"./dist/gallery.css",
"./dist/gallery.min.css",
"./dist/gallery.prefixed.css",
"./dist/gallery.prefixed.min.css",
"./dist/gallery.theme./.css"
]
}
297 changes: 297 additions & 0 deletions dist/gallery.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
.gallery .item:first-of-type {
opacity: 1;
position: static;
}
.gallery .item {
transition: opacity 0.5s;
width: 100%;
position: absolute;
top: 0;
left: 0;
opacity: 0;
}
.gallery .control-operator {
display: none;
}
.gallery .control-operator:target ~ .item {
opacity: 0;
animation: none;
}
.gallery .control-operator:target + .item {
opacity: 1;
}
.gallery .control-operator:target ~ .controls .control-button {
animation: none;
}

@keyframes controlFade-2 {
0% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}

14.28571%,
50% {
color: white;
color: rgba(255, 255, 255, 0.8);
}

64.28571% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}
}

@keyframes galleryAnimation-2 {
0% {
opacity: 0;
}

14.28571%,
50% {
opacity: 1;
}

64.28571% {
opacity: 0;
}
}

.items-2 .control-button {
animation: controlFade-2 14s infinite;
}
.items-2 .item {
animation: galleryAnimation-2 14s infinite;
}
.items-2 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-2 .control-button:nth-of-type(1),
.items-2 .item:nth-of-type(1) {
animation-delay: -2s;
}
.items-2 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-2 .control-button:nth-of-type(2),
.items-2 .item:nth-of-type(2) {
animation-delay: 5s;
}

@keyframes controlFade-3 {
0% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}

9.52381%,
33.33333% {
color: white;
color: rgba(255, 255, 255, 0.8);
}

42.85714% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}
}

@keyframes galleryAnimation-3 {
0% {
opacity: 0;
}

9.52381%,
33.33333% {
opacity: 1;
}

42.85714% {
opacity: 0;
}
}

.items-3 .control-button {
animation: controlFade-3 21s infinite;
}
.items-3 .item {
animation: galleryAnimation-3 21s infinite;
}
.items-3 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-3 .control-button:nth-of-type(1),
.items-3 .item:nth-of-type(1) {
animation-delay: -2s;
}
.items-3 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-3 .control-button:nth-of-type(2),
.items-3 .item:nth-of-type(2) {
animation-delay: 5s;
}
.items-3 .control-operator:nth-of-type(3):target ~ .controls .control-button:nth-of-type(3) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-3 .control-button:nth-of-type(3),
.items-3 .item:nth-of-type(3) {
animation-delay: 12s;
}

@keyframes controlFade-4 {
0% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}

7.14286%,
25% {
color: white;
color: rgba(255, 255, 255, 0.8);
}

32.14286% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}
}

@keyframes galleryAnimation-4 {
0% {
opacity: 0;
}

7.14286%,
25% {
opacity: 1;
}

32.14286% {
opacity: 0;
}
}

.items-4 .control-button {
animation: controlFade-4 28s infinite;
}
.items-4 .item {
animation: galleryAnimation-4 28s infinite;
}
.items-4 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-4 .control-button:nth-of-type(1),
.items-4 .item:nth-of-type(1) {
animation-delay: -2s;
}
.items-4 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-4 .control-button:nth-of-type(2),
.items-4 .item:nth-of-type(2) {
animation-delay: 5s;
}
.items-4 .control-operator:nth-of-type(3):target ~ .controls .control-button:nth-of-type(3) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-4 .control-button:nth-of-type(3),
.items-4 .item:nth-of-type(3) {
animation-delay: 12s;
}
.items-4 .control-operator:nth-of-type(4):target ~ .controls .control-button:nth-of-type(4) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-4 .control-button:nth-of-type(4),
.items-4 .item:nth-of-type(4) {
animation-delay: 19s;
}

@keyframes controlFade-5 {
0% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}

5.71429%,
20% {
color: white;
color: rgba(255, 255, 255, 0.8);
}

25.71429% {
color: #ccc;
color: rgba(255, 255, 255, 0.4);
}
}

@keyframes galleryAnimation-5 {
0% {
opacity: 0;
}

5.71429%,
20% {
opacity: 1;
}

25.71429% {
opacity: 0;
}
}

.items-5 .control-button {
animation: controlFade-5 35s infinite;
}
.items-5 .item {
animation: galleryAnimation-5 35s infinite;
}
.items-5 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-5 .control-button:nth-of-type(1),
.items-5 .item:nth-of-type(1) {
animation-delay: -2s;
}
.items-5 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-5 .control-button:nth-of-type(2),
.items-5 .item:nth-of-type(2) {
animation-delay: 5s;
}
.items-5 .control-operator:nth-of-type(3):target ~ .controls .control-button:nth-of-type(3) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-5 .control-button:nth-of-type(3),
.items-5 .item:nth-of-type(3) {
animation-delay: 12s;
}
.items-5 .control-operator:nth-of-type(4):target ~ .controls .control-button:nth-of-type(4) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-5 .control-button:nth-of-type(4),
.items-5 .item:nth-of-type(4) {
animation-delay: 19s;
}
.items-5 .control-operator:nth-of-type(5):target ~ .controls .control-button:nth-of-type(5) {
color: white;
color: rgba(255, 255, 255, 0.8);
}
.items-5 .control-button:nth-of-type(5),
.items-5 .item:nth-of-type(5) {
animation-delay: 26s;
}
1 change: 1 addition & 0 deletions dist/gallery.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e950af6

Please sign in to comment.