Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

[+] quick & dirty sass version, gulp watcher #1176

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/node_modules
*.DS_Store
*._*
*Thumbs.db
*.thumbnails

.project
.settings
.idea

.sass-cache
node_modules
52 changes: 25 additions & 27 deletions dist/jquery.fancybox.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
height: 100%;
z-index: 99993;
-webkit-backface-visibility: hidden;
backface-visibility: hidden; }
backface-visibility: hidden;
/* Make sure that the first one is on the top */ }

/* Make sure that the first one is on the top */
.fancybox-container ~ .fancybox-container {
z-index: 99992; }

Expand Down Expand Up @@ -117,7 +117,7 @@
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: transparent; }

.fancybox-slide::before {
.fancybox-slide:before {
content: '';
display: inline-block;
vertical-align: middle;
Expand Down Expand Up @@ -327,8 +327,7 @@
.fancybox-button:hover {
background: rgba(0, 0, 0, 0.8); }

.fancybox-button::before,
.fancybox-button::after {
.fancybox-button:before, .fancybox-button:after {
content: '';
pointer-events: none;
position: absolute;
Expand All @@ -339,7 +338,10 @@
box-sizing: border-box;
display: inline-block; }

.fancybox-button--left::after {
.fancybox-button--left {
border-bottom-left-radius: 5px; }

.fancybox-button--left:after {
left: 20px;
top: 18px;
width: 6px;
Expand All @@ -351,7 +353,10 @@
-ms-transform: rotate(-135deg);
transform: rotate(-135deg); }

.fancybox-button--right::after {
.fancybox-button--right {
border-bottom-right-radius: 5px; }

.fancybox-button--right:after {
right: 20px;
top: 18px;
width: 6px;
Expand All @@ -363,16 +368,10 @@
-ms-transform: rotate(45deg);
transform: rotate(45deg); }

.fancybox-button--left {
border-bottom-left-radius: 5px; }

.fancybox-button--right {
border-bottom-right-radius: 5px; }

.fancybox-button--close {
float: right; }

.fancybox-button--close::before, .fancybox-button--close::after {
.fancybox-button--close:before, .fancybox-button--close:after {
content: '';
display: inline-block;
position: absolute;
Expand All @@ -381,12 +380,12 @@
top: calc(50% - 1px);
left: calc(50% - 8px); }

.fancybox-button--close::before {
.fancybox-button--close:before {
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg); }

.fancybox-button--close::after {
.fancybox-button--close:after {
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg); }
Expand Down Expand Up @@ -437,7 +436,7 @@
margin: 0; } }

/* Fullscreen */
.fancybox-button--fullscreen::before {
.fancybox-button--fullscreen:before {
width: 15px;
height: 11px;
left: 15px;
Expand All @@ -446,7 +445,7 @@
background: none; }

/* Slideshow button */
.fancybox-button--play::before {
.fancybox-button--play:before {
top: 16px;
left: 18px;
width: 0;
Expand All @@ -457,7 +456,7 @@
border-radius: 1px;
background: transparent; }

.fancybox-button--pause::before {
.fancybox-button--pause:before {
top: 16px;
left: 18px;
width: 7px;
Expand All @@ -470,12 +469,12 @@
.fancybox-button--grid span {
font-size: 23px; }

.fancybox-button--grid::before {
.fancybox-button--grid:before {
top: 20px;
left: 21px;
width: 3px;
height: 3px;
box-shadow: 0 -4px 0, -4px -4px 0, 4px -4px 0, 0 0 0 32px inset, -4px 0 0, 4px 0 0, 0 4px 0, -4px 4px 0, 4px 4px 0; }
box-shadow: 0 -4px 0 #FFF, -4px -4px 0 #FFF, 4px -4px 0 #FFF, inset 0 0 0 32px #FFF, -4px 0 0 #FFF, 4px 0 0 #FFF, 0 4px 0 #FFF, -4px 4px 0 #FFF, 4px 4px 0 #FFF; }

.fancybox-container--thumbs .fancybox-controls,
.fancybox-container--thumbs .fancybox-slider-wrap,
Expand All @@ -500,7 +499,6 @@

.fancybox-grid > ul {
list-style: none;
position: absolute;
position: relative;
width: 100%;
height: 100%;
Expand Down Expand Up @@ -529,9 +527,6 @@
backface-visibility: hidden;
box-sizing: border-box; }

li.fancybox-grid-loading {
background: rgba(0, 0, 0, 0.1); }

.fancybox-grid > ul > li > img {
position: absolute;
top: 0;
Expand All @@ -546,6 +541,9 @@ li.fancybox-grid-loading {
-ms-user-select: none;
user-select: none; }

.fancybox-grid > ul > li.fancybox-grid-active:before {
opacity: 1; }

.fancybox-grid > ul > li:before {
content: '';
position: absolute;
Expand All @@ -559,8 +557,8 @@ li.fancybox-grid-loading {
opacity: 0;
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.fancybox-grid > ul > li.fancybox-grid-active:before {
opacity: 1; }
li.fancybox-grid-loading {
background: rgba(0, 0, 0, 0.1); }

/* Styling for Small-Screen Devices */
@media all and (max-width: 800px) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.fancybox.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,17 @@ gulp.task('css', function() {
.pipe(gulp.dest('dist'));
});

// scss files
gulp.task('sass', function() {
return gulp.src('src/scss/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('src/css'));
});

// scss watcher
gulp.task('watch', function() {
gulp.watch('src/scss/*.scss', ['sass']);
});

// Default Task
gulp.task('default', ['scripts', 'css']);
Loading