Created
January 5, 2013 05:02
-
-
Save l34marr/4459870 to your computer and use it in GitHub Desktop.
http://www.okilla.com/528/plugin-slidingpanels
http://www.codecademy.com/zh/courses/javascript-lesson-951
This file contains hidden or 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
/** | |
* slidingPanels is similar to a horizontal accordion navigation, or holding | |
* some playing cards in your hand... sliding panels around to reveal one of | |
* interest. | |
* | |
* slidingPanels r1 // 2008.02.18 // jQuery 1.2.3+ | |
* <http://cherne.net/brian/resources/jquery.slidingPanels.html> | |
* | |
* REQUIRES jQuery hoverIntent plug-in | |
* <http://cherne.net/brian/resources/jquery.hoverIntent.html> | |
* | |
* slidingPanels is currently available for use in all personal or commercial | |
* projects under both MIT and GPL licenses. This means that you can choose | |
* the license that best suits your project, and use it accordingly. | |
* | |
* // basic usage // assumes ul/li html structure | |
* $("ul").slidingPanels(); | |
* | |
* // advanced usage receives configuration object only | |
* $("div#wrapper").slidingPanels({ | |
* panelSelector: "div.panel", // cssSelector = indicates the panel elements (default = "li") | |
* slideDuration: 200, // number = milliseconds of slide animation (default = 200) | |
* onEnterState: handleEnter, // function = callback after panel has entered a state (undefined by default) | |
* onLeaveState: handleLeave, // function = callback before panel leaves a state (undefined by default) | |
* onLeaveDefaultDelay: 0, // number = milliseconds to delay sliding animation when leaving default state (default = 0) | |
* onLeaveStateDelay: 0 // number = milliseconds to delay sliding animation when leaving min/max states (default = 0) | |
* }); | |
* | |
* @param options An object with configuration options | |
* @author Brian Cherne <[email protected]> | |
*/ | |
(function($) { | |
$.fn.slidingPanels = function(options) { | |
// default configuration options | |
var cfg = { | |
panelSelector: "li", | |
slideDuration: 200, | |
onLeaveDefaultDelay: 0, | |
onLeaveStateDelay: 0 | |
}; | |
// override configuration options with user supplied object | |
cfg = $.extend(cfg, options); | |
// iterate through each jQuery object sent to this plug-in and return it to allow chaining | |
return this.each(function(){ | |
var wrapper = $(this).addClass("slidingPanelsActivated"); | |
var cPanels = $(cfg.panelSelector,wrapper); | |
var nPanels = cPanels.length; | |
var nPanelDefaultX = ((1/nPanels)*100); | |
var nPanelBaseX = nPanelDefaultX/2; | |
var nPanelWidth = 100-(nPanelBaseX*(nPanels-1)); | |
var unit = "%"; | |
var iMaximizedPanel; // set later | |
// //////////////////////////////////////////////////////////////// | |
// iterate through panels | |
// //////////////////////////////////////////////////////////////// | |
cPanels.each(function(i){ | |
var properties = { | |
index: i, | |
position: "D", | |
state: "Default", | |
D2L: -i, | |
D2R: nPanels-i, | |
L2D: i, | |
R2D: i-nPanels, | |
L2R: nPanels, // assumes nPanelBaseX = nPanelDefaultX/2 | |
R2L: -nPanels // assumes nPanelBaseX = nPanelDefaultX/2 | |
} | |
$.data(this,"slidingPanels",properties); | |
// for each panel, set default css | |
$(this).attr("slidingPanelState","Default").css({ | |
left: nPanelDefaultX*i+unit, | |
width: nPanelWidth+unit | |
}); | |
}).hoverIntent(function(){ | |
iMaximizedPanel = cPanels.index( this ); | |
cPanels.each(function(i){ | |
var position = $.data(this,"slidingPanels").position; | |
if ( i <= iMaximizedPanel ){ | |
if (position != "L"){ $.data(this,"slidingPanels").direction = position + "2L" } | |
} else { | |
if (position != "R"){ $.data(this,"slidingPanels").direction = position + "2R" } | |
} | |
}); // close each | |
onLeavePanels(); | |
},function(){});//close cPanels.hoverIntent | |
// //////////////////////////////////////////////////////////////// | |
// attach events to wrapper | |
// //////////////////////////////////////////////////////////////// | |
wrapper.hoverIntent({ | |
over: function(){}, | |
out: function(){ | |
cPanels.each(function(i){ | |
var position = $.data(this,"slidingPanels").position; | |
$.data(this,"slidingPanels").direction = position + "2D" | |
}); | |
onLeavePanels(); | |
}, | |
// because we use relative animation, wait until any opening animations are done | |
timeout: cfg.slideDuration+10 | |
});//close wrapper.hoverIntent | |
// //////////////////////////////////////////////////////////////// | |
// has changed state // returns true | false | |
// //////////////////////////////////////////////////////////////// | |
var hasChangedState = function( panel ){ | |
// captures panels going to or coming from default state | |
if ( $.data(panel,"slidingPanels").direction && $.data(panel,"slidingPanels").direction.indexOf("D") != -1 ){ | |
return true; | |
} | |
// captures leaving minimized for maximized state // captures entering maximized state | |
if ( $.data(panel,"slidingPanels").index == iMaximizedPanel ){ | |
return true; | |
} | |
// captures leaving maximized for minimized state // captures entering maximized state | |
if ( $.data(panel,"slidingPanels").state == "Maximized" ){ | |
return true; | |
} | |
return false; | |
};// close hasChangedState | |
// //////////////////////////////////////////////////////////////// | |
// on leave panels // before animate | |
// //////////////////////////////////////////////////////////////// | |
var onLeavePanels = function(){ | |
// if onLeaveState callback is defined | |
if ( cfg.onLeaveState ){ | |
var state; | |
// iterate through panels // determine who is moving and who is maximized, they are leaving a state | |
cPanels.each(function(i){ | |
var direction = $.data(this,"slidingPanels").direction; | |
state = $.data(this,"slidingPanels").state; | |
if ( hasChangedState(this) ){ cfg.onLeaveState.apply(this,[state]); } | |
}); | |
// choose the correct delay // if it's greater than zero, delay animating the panels | |
var delay = (state == "Default") ? cfg.onLeaveDefaultDelay : cfg.onLeaveStateDelay; | |
if (delay > 0){ | |
setTimeout(animatePanels,delay); | |
return; | |
} | |
} | |
animatePanels(); | |
};// close onLeavePanels | |
// //////////////////////////////////////////////////////////////// | |
// animate panels | |
// //////////////////////////////////////////////////////////////// | |
var animatePanels = function(){ | |
var difference = 0; | |
// create a DIV that never gets appended to the DOM to animate from | |
$('<div></div>').css("left",0).animate({left:nPanelBaseX},{ | |
// panels use "know" their direction (D2L,D2R,etc.) and use multiplier against step-by-step animate values | |
// keeps panels moving together, allows bug free percent based movement and is always relative to previous position | |
step:function(now){ | |
difference = now - difference; | |
cPanels.each(function(i){ | |
var direction = $.data(this,"slidingPanels").direction; | |
if ( direction != undefined ){ | |
var currentX = Number(this.style.left.substring(0,this.style.left.length-1)); | |
var desiredX = currentX + (difference * $.data(this,"slidingPanels")[direction]); | |
$(this).css("left",desiredX+unit); | |
} | |
}); | |
// difference is really now "previous" but we're using the same variable to be efficient | |
difference = now; | |
}, | |
duration: cfg.slideDuration, | |
// when animation is complete, clean up | |
complete: function(){ | |
cPanels.each(function(i){ | |
var direction = $.data(this,"slidingPanels").direction; | |
var position; | |
var state = $.data(this,"slidingPanels").state; | |
if ( direction != undefined ){ | |
// set new position based on direction | |
position = $.data(this,"slidingPanels").position = direction.substring(2); | |
// round x to the nearest tenth to keep things clean (doesn't really matter) | |
var desiredX = Math.round(Number(this.style.left.substring(0,this.style.left.length-1))*100)/100; | |
$(this).css("left",desiredX+unit); | |
} | |
// captures entering minimized from maximized | |
var wasMaximized = ( state == "Maximized" ) ? true : false; | |
// set state based on position and index of maximized panel | |
if( position == "D" ) { state = "Default"; } else { state = (i == iMaximizedPanel) ? "Maximized" : "Minimized"; } | |
$.data(this,"slidingPanels").state = state; | |
// if the panel has changed state, make sure to call onEnterState function | |
if ( cfg.onEnterState && ( wasMaximized || hasChangedState(this) ) ){ cfg.onEnterState.apply(this,[state]); } | |
// clear direction | |
$.data(this,"slidingPanels").direction = undefined; | |
});// close cPanels.each | |
}// close div.animate.complete | |
});// close div.animate | |
};// close animatePanels | |
});// close each slidingPanels object | |
};// close slidingPanels | |
})(jQuery); |
This file contains hidden or 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
/* | |
Theme Name: gaarai.com Theme (FlexxCanvas) | |
Theme URI: http://flexxtheme.com/canvas | |
Author: iThemes | |
Author URI: http://ithemes.com/ | |
Version: 1.1.0 | |
Description: FlexxCanvas customized for my site. | |
Tags: blog, theme options, multiple layouts, multiple color schemes | |
All the CSS, XHTML, design, and images are copyrighted. Please don't steal. | |
Version History | |
1.0.0 - 2008-11-12 | |
Initial Release | |
1.0.1 - 2008-11-13 | |
Updated featured-images.php code to 1.0.7 | |
1.0.2 - 2008-11-13 | |
Updated featured-images.php code to 1.0.8 | |
Updated iThemesFileUtility.php to 1.1.1 | |
Updated feature-bottom.php and feature-top.php | |
Updated flexlayout.php | |
1.0.3 - 2008-11-17 | |
Updated functions.php to add PHP4 compatibility | |
Updated lib/contact-page-plugin/contact-page-plugin.php to 1.0.2 | |
Updated lib/featured-images/featured-images.php to 1.0.10 | |
Updated lib/flexx-layout-editor/flexx-layout-editor.php to 1.0.2 | |
Updated lib/theme-options/theme-options.php to 1.0.2 | |
Updated lib/theme-options/theme-options-framework.php to 1.0.3 | |
Updated lib/tutorials/tutorials.php to 1.0.4 | |
1.0.4 - 2008-11-24 | |
Updated lib/theme-options/theme-options.php to 1.0.3 | |
Standardized the changelog format in style.css | |
1.0.5 - 2008-11-24 | |
Updated lib/flexlayout.php | |
1.0.6 - 2008-11-25 | |
Updated lib/featured-images/featured-images.php to version 1.0.11 | |
Updated lib/contact-page-plugin/contact-page-plugin.php to version 1.0.3 | |
Updated lib/flexx-layout-editor/flexx-layout-editor.php to version 1.0.3 | |
Updated lib/iThemesFileUtility.php to version 1.1.2 | |
Updated lib/theme-options/theme-options-framework.php to version 1.0.4 | |
Updated lib/tutorials/tutorials.php to version 1.0.5 | |
1.0.7 - 2008-12-02 | |
Updated lib/tuturials/tutorials.php to version 1.0.6 | |
1.0.8 - 2008-12-11 | |
Updated footer.php and functions.php | |
1.1.0 - 2008-12-16 | |
Updated iThemesFileUtility.php to version 1.3.0 | |
Added lib/billboard folder and files | |
Modified functions.php file to add entry code for lib/billboard/billboard.php | |
*/ | |
/*CSS Reset*/ | |
@import url(css/reset.css); | |
/*Get the grid, baby!*/ | |
@import url(css/grid.css); | |
body { /* This is where you set many of the universal defaults */ | |
background: #ddd; | |
color: #000; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 12px; | |
text-align: center; | |
} | |
/********************************************* | |
Universal Link Styles | |
*********************************************/ | |
a { | |
color: #242B3E; | |
text-decoration: underline; | |
} | |
a:hover { | |
color: #333; | |
text-decoration: underline; | |
} | |
/********************************************* | |
Universal Text Elements | |
*********************************************/ | |
p, ul, ol, blockquote { | |
color: #333; | |
} | |
ol, ul { | |
margin: 5px 35px; | |
} | |
blockquote { | |
margin: 5px 0px 5px 10px; padding: 0px 0px 0px 10px; | |
font-style: italic; | |
} | |
img { border: 0px; background: none; } | |
p { | |
padding: 10px 0px; | |
margin: 0px; | |
} | |
/********************************************* | |
Header Styles | |
*********************************************/ | |
/* Use this for universal styles for all header elements | |
Be sure to uncomment the styles before using */ | |
h1,h2,h3,h4,h5,h6 { | |
/* | |
font-family: ; | |
font-size: ; | |
color: px; | |
margin: px; padding: px; | |
*/ | |
} | |
h1 { /* This style is generally used as title on single posts and pages */ | |
font-size: 25px; | |
line-height: 24px; | |
font-weight: bold; | |
} | |
h2 { /* This style used as a sub-header in post/page content */ | |
font-size: 18px; | |
} | |
h3 { /* This style used as the post titles on homepage/archive */ | |
clear: both; | |
font-size: 25px; | |
line-height: 24px; | |
font-weight: bold; | |
color: #242B3E; | |
} | |
h3 a { | |
} | |
h3 a:hover { | |
} | |
h4 { /* This style used as title for comments and as the identifying header on archive page */ | |
font-size: 18px; | |
padding: 0 0 0 15px; | |
} | |
h5 { | |
font-size: 16px; | |
} | |
h6 { | |
font-size: 14px; | |
} | |
/********************************************* | |
The Obligatory WP Styles | |
*********************************************/ | |
.aligncenter, | |
div.aligncenter { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.alignleft { | |
float: left; | |
margin: 0px 8px 8px 0px; | |
} | |
.alignright { | |
float: right; | |
margin: 0px 0px 8px 8px; | |
} | |
.wp-caption { | |
border: 1px solid #ddd; | |
text-align: center; | |
background-color: #f3f3f3; | |
padding-top: 4px; | |
margin: 10px; | |
} | |
.wp-caption img { | |
margin: 0; | |
padding: 0; | |
border: 0 none; | |
} | |
.wp-caption p.wp-caption-text { | |
font-size: 11px; | |
line-height: 17px; | |
padding: 0 4px 5px; | |
margin: 0; | |
} | |
/*.post img {border: 2px solid #cfcfcf;}*/ | |
/********************************************* | |
Container Div | |
*********************************************/ | |
#container { | |
background: #FFF; | |
margin-top: 20px; | |
border: 1px solid #000; | |
} | |
/********************************************* | |
Header Styles | |
*********************************************/ | |
#header { | |
clear: both; | |
background: #000; | |
} | |
#header #title a { | |
display: block; | |
overflow: hidden; | |
} | |
/********************************************* | |
Horizontal Navigaion Styles | |
(with dropdowns) | |
*********************************************/ | |
#above-header #pagemenu, | |
#above-header #catmenu { | |
border-bottom: 1px solid #FFF; | |
} | |
#below-header #pagemenu, | |
#below-header #catmenu { | |
border-top: 1px solid #FFF; | |
margin: 0px; | |
} | |
#pagemenu, | |
#catmenu { | |
background: /*#771700*/ /*#140BB2*/ /*#1F3570*/ #000 url(images/menu-gradient.png) repeat-x; | |
float: left; | |
font-size: 11px; | |
text-transform: uppercase; | |
width: 100%; height: 22px; | |
margin: 0px; padding: 5px 0px; | |
} | |
/* This is the style for the first UL (horizontal) */ | |
#pagemenu ul, | |
#catmenu ul { | |
float: left; | |
background: transparent; | |
height: 22px; line-height: 22px; | |
margin: 0px; padding: 0px; | |
} | |
/* This is the style for the top level list items */ | |
#pagemenu ul li, | |
#catmenu ul li { | |
background: none; | |
width: auto; | |
display: block; | |
float: left; | |
list-style-type: none; | |
height: 22px; line-height: 22px; | |
margin: 0px; padding: 0 0 0 10px; | |
} | |
#pagemenu ul li.home, | |
#catmenu ul li.home { | |
background: none; | |
} | |
/* The style for all links */ | |
#pagemenu a, | |
#catmenu a { | |
color: #FFF; | |
text-decoration: none; | |
} | |
/* The universal hover state colors and background for all LI items and links */ | |
#pagemenu li:hover a, | |
#pagemenu li.sfhover a, | |
#pagemenu li a:hover, | |
#catmenu li:hover a, | |
#catmenu li.sfhover a, | |
#catmenu li a:hover { | |
color: #FFF; | |
text-decoration: none; | |
background: url(images/menu-bg-gradient.png) repeat; | |
} | |
/* This is the style for the top level links, if different than the universal */ | |
#pagemenu ul li a, | |
#catmenu ul li a { | |
display: block; | |
height: 20px; line-height: 20px; | |
margin: 0px; padding: 0px 10px; | |
text-decoration: none; | |
border: 0px solid #cacaca; | |
} | |
/* if you want to set a "current page item" style, do it here */ | |
#pagemenu ul li.current_page_item a, | |
#catmenu ul li.current_page_item a { | |
} | |
/****************************** | |
The second-level stuff | |
*******************************/ | |
/* This hides the nested UL before you hover */ | |
#pagemenu li ul, | |
#catmenu li ul { | |
clear: both; | |
position: absolute; | |
/* width: 132px; /* the width of the dropdown */ | |
width: 200px; | |
left: -999em; | |
} | |
/* This shows the nested UL when you hover */ | |
#pagemenu li:hover ul, | |
#pagemenu li.sfhover ul, | |
#catmenu li:hover ul, | |
#catmenu li.sfhover ul { | |
left: auto; | |
display: block; | |
z-index: 5000; | |
} | |
/* This is the style for the nested UL */ | |
#pagemenu li:hover ul, | |
#pagemenu li.sfhover ul, | |
#catmenu li:hover ul, | |
#catmenu li.sfhover ul { | |
background: transparent; | |
display: block; | |
margin: 0px; padding: 0px; | |
} | |
/* This is the style for the LI items within the nested UL */ | |
#pagemenu li:hover ul li, | |
#pagemenu li.sfhover ul li, | |
#catmenu li:hover ul li, | |
#catmenu li.sfhover ul li { | |
background: url(images/menu-bg-gradient.png) repeat; | |
width: 100%; | |
display: block; | |
padding: 0px; margin: 0px; | |
height: 21px; line-height: 21px; | |
overflow: hidden; | |
text-align: left; | |
} | |
/* This is the style for the links within the LI items within the nested UL */ | |
#pagemenu li:hover ul li a, | |
#pagemenu li:hover ul li.current_page_item a, | |
#pagemenu li.sfhover ul li a, | |
#pagemenu li.sfhover ul li.current_page_item a, | |
#catmenu li:hover ul li a, | |
#catmenu li:hover ul li.current_page_item a, | |
#catmenu li.sfhover ul li a, | |
#catmenu li.sfhover ul li.current_page_item a { | |
/* width: 121px;*/ | |
width: 189px; | |
display: block; | |
margin: 0px; padding: 0px 5px; | |
height: 20px; line-height: 20px; | |
border: none; | |
border: 0px solid #cacaca; | |
border-top: none; | |
} | |
/* This is the style for the hover state on the links within the LI items within the nested UL */ | |
#pagemenu li:hover ul li a:hover, | |
#pagemenu li.sfhover ul li a:hover, | |
#catmenu li:hover ul li a:hover, | |
#catmenu li.sfhover ul li a:hover { | |
text-decoration: none; | |
margin: 0px; padding: 0px 5px; | |
height: 20px; line-height: 20px; | |
background: url(images/menu-bg-gradient-subpage.png) repeat; | |
} | |
/********************************************* | |
Feature-Top Div | |
Feature-Bottom Div | |
*********************************************/ | |
.w260,.w260-,.w390,.w390- {display: inline; float: left; margin: 0px 10px; text-align: left; overflow: hidden;} | |
.w260 {width: 240px;} .w260- {width: 260px; margin: 0px;} | |
.w390 {width: 370px;} .w390- {width: 390px; margin: 0px;} | |
#feature-top, | |
#feature-bottom { | |
width: 100%; | |
/* background: #ccc;*/ | |
background: #CED2DC; | |
float: left; | |
margin: 0px; padding: 0px 0px 0px 0px; | |
overflow: hidden; | |
border-bottom: 1px solid #000; | |
} | |
#feature-top {margin-bottom: 10px;} | |
#feature-top a { | |
text-decoration: none; | |
} | |
#feature-top a:hover { | |
color: #000; | |
text-decoration: underline; | |
} | |
#feature-bottom { | |
background: #111; | |
} | |
#feature-bottom a { | |
color: #FFF; | |
text-decoration: none; | |
} | |
#feature-bottom a:hover { | |
text-decoration: underline; | |
} | |
#feature-top .widget, | |
#feature-bottom .widget { | |
padding: 0px 0px 10px 0px; | |
} | |
#feature-top h4, | |
#feature-bottom h4 { | |
/* background: url(images/feature-top-title.gif) repeat-x;*/ | |
background: #242B3E url(images/menu-gradient.png) repeat-x; | |
margin: 0px; padding: 5px 10px; | |
/* color: #FFF;*/ | |
color: #CED2DC; | |
font-size: 11px; | |
text-transform: uppercase; | |
border: 1px solid #FFF; | |
border-left: none; border-right: none; | |
} | |
#feature-top h4 a, | |
#feature-bottom h4 a { | |
color: #FFF; | |
text-decoration: none; | |
} | |
#feature-top h4 a:hover, | |
#feature-bottom h4 a:hover { | |
color: #FFF; | |
text-decoration: none; | |
} | |
#feature-top-left h4, | |
#feature-top-middle h4, | |
#feature-bottom-left h4, | |
#feature-bottom-middle h4 { | |
border: 1px solid #FFF; | |
border-left: none; | |
} | |
#feature-top p, | |
#feature-top ul, | |
#feature-top ol, | |
#feature-top img, | |
#feature-top form, | |
#feature-top .widget div { | |
padding: 10px; | |
} | |
#feature-bottom p, | |
#feature-bottom ul, | |
#feature-bottom ol, | |
#feature-bottom img, | |
#feature-bottom form, | |
#feature-bottom .widget div { | |
color: #FFF; | |
padding: 10px; | |
} | |
#feature-top ul, | |
#feature-top ol, | |
#feature-bottom ul, | |
#feature-bottom ol { | |
padding: 10px 0px; margin: 0px 15px 5px 25px; | |
list-style-type: square; | |
} | |
#feature-top li ul, | |
#feature-top li ol, | |
#feature-bottom li ul, | |
#feature-bottom li ol { | |
padding: 0px; | |
} | |
#feature-top a.rsswidget img, | |
#feature-bottom a.rsswidget img { | |
display: none; | |
} | |
/********************************************* | |
Content Div | |
*********************************************/ | |
#content { | |
background: #FFF; | |
} | |
.post { | |
padding: 5px 10px 10px 10px; | |
} | |
.post .title { | |
width: 580px; | |
} | |
.post .date { | |
display: block; | |
width: 55px; height: 75px; | |
text-align: center; | |
color: #FFF; | |
/* color: #CED2DC;*/ | |
float: left; | |
} | |
.post .date .month { | |
font-size: 16px; | |
line-height: 24px; | |
text-transform: uppercase; | |
background: /*#333*/ /*#242B3E*/ #000 url(images/menu-gradient.png) repeat-x; | |
} | |
.post .date .day { | |
font-size: 35px; | |
line-height: 45px; | |
background: /*#333*/ /*#242B3E*/ #000 url(images/menu-gradient.png) repeat-x; | |
border-top: 2px solid #FFF; | |
} | |
.post .post-title { | |
float: left; | |
width: 515px; | |
/* line-height: 28px;*/ | |
padding: 0px 0px 0px 10px; | |
} | |
.post .post-title a { | |
text-decoration: none; | |
} | |
.post-title h3, .post-title h1 { | |
font-size: 23px; | |
line-height: 25px; | |
padding-bottom: 8px; | |
/* height: 58px;*/ | |
} | |
.post-title .categories, .post-title .comments { | |
line-height: 8px; | |
} | |
/********************************************* | |
Post Meta Styles, if needed | |
*********************************************/ | |
.meta-top { | |
clear: both; /* we need this so floats in the post are cleared */ | |
} | |
.meta-bottom { | |
clear: both; /* we need this so floats in the post are cleared */ | |
border-top: 1px solid #d7d7d7; | |
margin: 10px 0px 0px 0px; padding: 10px 0px 0px 0px; | |
} | |
.meta-bottom .alignleft { | |
width: 70%; | |
} | |
.meta-bottom .categories { | |
background: url(images/folder.png) 0px 0px no-repeat; | |
padding: 0px 0px 0px 18px; | |
} | |
.meta-bottom .comments { | |
background: url(images/comments.png) 0px 2px no-repeat; | |
padding: 0px 0px 0px 18px; | |
} | |
.photometa { | |
margin: 0px 5px 0px 5px; padding: 0px 0px; | |
width: 100%; | |
} | |
.EXIF { | |
margin: -22px 0px 0px 10px; padding: 0px 0px; | |
float: left; | |
width: 33%; | |
} | |
.photometa h4 { | |
border-bottom: 1px solid #666; | |
text-align: center; | |
margin: 0px; padding: 0px; | |
} | |
.photometa ul { | |
list-style-type: none; | |
} | |
/********************************************* | |
Previous/Next Page Navigation | |
*********************************************/ | |
.paging { | |
clear: both; /* To clear any floats */ | |
margin: 0px; padding: 10px; | |
} | |
/********************************************* | |
Sidebar | |
*********************************************/ | |
#sidebar { /* Wide Sidebar */ | |
background: #FFF; | |
} | |
.sidebar { | |
background: #FFF; | |
} | |
#sidebar .sidebar { | |
background: none; | |
} | |
.sidebar a { | |
text-decoration: none; | |
} | |
.sidebar a:hover { | |
text-decoration: underline; | |
} | |
.sidebar h4 { | |
clear: both; | |
/* background: #000 url(images/feature-top-title.gif) repeat-x;*/ | |
background: /*#242B3E*/ #000 url(images/menu-gradient.png) repeat-x; | |
/* color: #FFF;*/ | |
/* color: #CED2DC;*/ | |
color: #FFF; | |
font-size: 11px; | |
text-transform: uppercase; | |
letter-spacing: 0px; | |
padding: 4px 0px 4px 4px; | |
line-height: 13px; | |
} | |
.sidebar h4 img { | |
padding: 0px; | |
} | |
.sidebar h4 a { | |
color: #FFF; | |
text-decoration: none; | |
margin: 0px; padding: 0px; | |
} | |
.sidebar .widget { | |
clear: both; | |
padding: 5px; | |
} | |
.sidebar .widget p, | |
.sidebar .widget ul, | |
.sidebar .widget ol, | |
.sidebar .widget img, | |
.sidebar .widget form, | |
.sidebar .widget div { | |
padding: 5px 0px; | |
} | |
.sidebar p, | |
.sidebar .textwidget { | |
padding: 5px 0px; | |
} | |
.sidebar img { | |
text-align: center; | |
} | |
.sidebar form { | |
margin: 0px; padding: 0px; | |
} | |
.sidebar ul { | |
list-style-type: none; | |
margin: 0px; padding: 0px; | |
} | |
.sidebar ul li { | |
margin: 0px; padding: 0px 0px 0px 8px; | |
line-height: 18px; | |
background: url(images/arrow.gif) 0px 4px no-repeat; | |
} | |
.sidebar ul li a { | |
text-decoration: none; | |
} | |
.sidebar ul li a:hover { | |
} | |
.sidebar ul li ul { | |
margin: 0px; padding: 0px; | |
} | |
.sidebar ul li ul li { | |
margin: 0px; padding: 0px 0px 0px 8px; | |
} | |
.sidebar a.rsswidget img { | |
display: none; | |
} | |
/********************************************* | |
Comment Styles | |
*********************************************/ | |
#comments { | |
padding: 10px; | |
} | |
#comments h4 { | |
padding: 0; | |
} | |
#comments .comment { | |
margin: 5px 0px 5px 0px; | |
padding: 10px; | |
background: #FFFFFF; | |
overflow: hidden; | |
border: 1px solid #999; | |
} | |
#comments .alt { | |
margin: 5px 0px 5px 0px; padding: 10px; | |
background: #FFFFFF; | |
overflow: hidden; | |
border: 1px solid #999; | |
} | |
#comments .gravatar { | |
float: left; | |
padding: 0 5px 0 0; | |
} | |
#comments .commentmeta { | |
} | |
#comments .commentmeta a { | |
text-decoration: none; | |
} | |
#comments .commentmeta a:hover { | |
text-decoration: underline; | |
} | |
#comments .commenttext { | |
} | |
#comments ul { | |
margin: 0px; | |
} | |
#comments .avatar { | |
float: left; | |
padding-right: 10px; | |
padding-top: 1px; | |
} | |
#comments .comment-author-gaarai { | |
/* background-color: #DDF;*/ | |
background-color: #D3F0FE; | |
} | |
#respond { | |
padding: 10px; | |
} | |
#respond h4 { | |
padding: 0; | |
} | |
#respond form#commentform { | |
} | |
#respond #author { | |
} | |
#respond #email { | |
} | |
#respond #url { | |
} | |
#respond #comment { | |
width: 100%; | |
} | |
#respond #submit { | |
} | |
/********************************************* | |
Footer Styles | |
*********************************************/ | |
#footer { | |
text-align: left; | |
color: #AAA; | |
} | |
#footer .alignleft, | |
#footer .alignright { | |
padding: 10px; | |
} | |
#footer .alignright { | |
text-align: right; | |
} | |
#footer a { | |
color: #AAA; | |
text-decoration: none; | |
} | |
#footer a:hover { | |
text-decoration: underline; | |
} | |
/********************************************* | |
Contact Form Styles | |
*********************************************/ | |
.ithemes-contact-page { | |
margin: 0 auto; | |
font-size: 12px; | |
font-family: Arial, Helvetica, sans-serif; | |
} | |
.ithemes-contact-page td { | |
padding: 5px; | |
text-align: left; | |
} | |
.ithemes-contact-page td.label { | |
text-align: right; | |
vertical-align: top; | |
font-weight: bold; | |
} | |
.ithemes-contact-page input, | |
.ithemes-contact-page textarea, | |
.ithemes-contact-page select { | |
font-family: Arial, Helvetica, Sans-Serif; | |
padding: 3px; | |
} | |
.ithemes-contact-page input:hover, | |
.ithemes-contact-page textarea:hover, | |
.ithemes-contact-page select:hover { | |
} | |
.ithemes-contact-page input:focus, | |
.ithemes-contact-page textarea:focus, | |
.ithemes-contact-page select:focus { | |
} | |
.ithemes-contact-page textarea, | |
.ithemes-contact-page input { | |
} | |
/************************************************ | |
Custom stuff | |
************************************************/ | |
.share-icons { | |
padding: 5px 0px 5px 15px; | |
margin: 0px; | |
text-align: left; | |
} | |
.share-icons img { | |
padding: 0px; | |
margin: 0px; | |
border: none; | |
} | |
.share-icons a { | |
padding: 0px; | |
margin: 0px; | |
text-decoration: none; | |
} | |
.more-link { | |
font-size: 14px; | |
} | |
code { | |
font: 1.1em 'Courier New', Courier, Fixed; | |
} | |
pre { | |
font: 1.1em 'Courier New', Courier, Fixed; | |
overflow: auto; | |
} | |
.code { | |
display: block; | |
font: 1.1em 'Courier New', Courier, Fixed; | |
padding-left: 20px; | |
white-space: pre-wrap; | |
line-height: 1.1em; | |
} | |
pre.terminal { | |
background-color: black; | |
color: #0F0; | |
font-weight: bold; | |
padding: 10px; | |
margin: 0; | |
} | |
#get-email-updates { | |
padding: 0px 0px 0px 15px; | |
} | |
.post-notice { | |
padding: 10px; | |
background-color: #D3F0FE; | |
border: solid 1px #999; | |
margin-top: 10px; | |
} | |
#cf_field_1, #cf_field_2 { | |
width: 250px; | |
} | |
#cf_field_3 { | |
width: 400px; | |
} | |
#cf_field_4 { | |
width: 400px; | |
height: 200px; | |
} | |
.cf-sb { | |
text-align: left !important; | |
} | |
#sendbutton { | |
margin: 0 0 0 100px; | |
} | |
.cform { | |
margin-bottom: 20px !important; | |
width: auto !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment