forked from cgmartin/hexo-theme-bootstrap-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
163 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.DS_Store | ||
.DS_Store | ||
node_modules | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module.exports = function(grunt){ | ||
grunt.initConfig({ | ||
gitclone: { | ||
fontawesome: { | ||
options: { | ||
repository: 'https://github.com/FortAwesome/Font-Awesome.git', | ||
directory: 'tmp/fontawesome' | ||
}, | ||
}, | ||
fancybox: { | ||
options: { | ||
repository: 'https://github.com/fancyapps/fancyBox.git', | ||
directory: 'tmp/fancybox' | ||
} | ||
} | ||
}, | ||
copy: { | ||
fontawesome: { | ||
expand: true, | ||
cwd: 'tmp/fontawesome/fonts/', | ||
src: ['**'], | ||
dest: 'source/css/fonts/' | ||
}, | ||
fancybox: { | ||
expand: true, | ||
cwd: 'tmp/fancybox/source/', | ||
src: ['**'], | ||
dest: 'source/fancybox/' | ||
} | ||
}, | ||
_clean: { | ||
tmp: ['tmp'], | ||
fontawesome: ['source/css/fonts'], | ||
fancybox: ['source/fancybox'] | ||
} | ||
}); | ||
|
||
require('load-grunt-tasks')(grunt); | ||
|
||
grunt.renameTask('clean', '_clean'); | ||
|
||
grunt.registerTask('fontawesome', ['gitclone:fontawesome', 'copy:fontawesome', '_clean:tmp']); | ||
grunt.registerTask('fancybox', ['gitclone:fancybox', 'copy:fancybox', '_clean:tmp']); | ||
grunt.registerTask('default', ['gitclone', 'copy', '_clean:tmp']); | ||
grunt.registerTask('clean', ['_clean']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "hexo-theme-landscape", | ||
"version": "0.0.1", | ||
"private": true, | ||
"devDependencies": { | ||
"grunt": "~0.4.2", | ||
"load-grunt-tasks": "~0.2.0", | ||
"grunt-git": "~0.2.2", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-copy": "~0.4.1" | ||
} | ||
} |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* }); | ||
* | ||
*/ | ||
(function ($) { | ||
;(function ($) { | ||
//Shortcut for fancyBox object | ||
var F = $.fancybox; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ | |
} | ||
|
||
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { | ||
background-image: url('fancybox_sprite.png'); | ||
background-image: url(fancybox_sprite.png); | ||
} | ||
|
||
#fancybox-loading { | ||
|
@@ -94,7 +94,7 @@ | |
#fancybox-loading div { | ||
width: 44px; | ||
height: 44px; | ||
background: url('fancybox_loading.gif') center center no-repeat; | ||
background: url(fancybox_loading.gif) center center no-repeat; | ||
} | ||
|
||
.fancybox-close { | ||
|
@@ -114,7 +114,7 @@ | |
height: 100%; | ||
cursor: pointer; | ||
text-decoration: none; | ||
background: transparent url('blank.gif'); /* helps IE */ | ||
background: transparent url(blank.gif); /* helps IE */ | ||
-webkit-tap-highlight-color: rgba(0,0,0,0); | ||
z-index: 8040; | ||
} | ||
|
@@ -156,7 +156,6 @@ | |
position: absolute; | ||
top: -99999px; | ||
left: -99999px; | ||
visibility: hidden; | ||
max-width: 99999px; | ||
max-height: 99999px; | ||
overflow: visible !important; | ||
|
@@ -165,7 +164,7 @@ | |
/* Overlay helper */ | ||
|
||
.fancybox-lock { | ||
overflow: hidden !important; | ||
overflow: visible !important; | ||
width: auto; | ||
} | ||
|
||
|
@@ -184,7 +183,7 @@ | |
overflow: hidden; | ||
display: none; | ||
z-index: 8010; | ||
background: url('fancybox_overlay.png'); | ||
background: url(fancybox_overlay.png); | ||
} | ||
|
||
.fancybox-overlay-fixed { | ||
|
@@ -263,12 +262,12 @@ | |
only screen and (min-device-pixel-ratio: 1.5){ | ||
|
||
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { | ||
background-image: url('[email protected]'); | ||
background-image: url([email protected]); | ||
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ | ||
} | ||
|
||
#fancybox-loading div { | ||
background-image: url('[email protected]'); | ||
background-image: url([email protected]); | ||
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ | ||
} | ||
} |
Oops, something went wrong.