Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 8066d64

Browse files
author
claudiuvertistudio
committed
Fixed style issues
1 parent 4d12a95 commit 8066d64

3 files changed

Lines changed: 89 additions & 15 deletions

File tree

functions.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function zillah_setup() {
4242
*/
4343
add_theme_support( 'post-thumbnails' );
4444

45-
set_post_thumbnail_size( 1140, 530, true );
45+
set_post_thumbnail_size( 1170, 545, true );
4646

4747
add_image_size ( 'slider-thumbnail', 900, 515, true );
4848

@@ -558,4 +558,17 @@ function zillah_get_rgb( $color ) {
558558
preg_match_all('!\d+!', $color, $matches);
559559

560560
return array( 'red' => $matches[0][0], 'green' => $matches[0][1], 'blue' => $matches[0][2] );
561-
}
561+
}
562+
563+
564+
function custom_excerpt_length( $length ) {
565+
global $wp_customize;
566+
$zillah_sidebar_show = get_theme_mod( 'zillah_sidebar_show', false );
567+
568+
if( $zillah_sidebar_show ) {
569+
return 55;
570+
} else {
571+
return 85;
572+
}
573+
}
574+
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

js/functions.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,22 @@
206206
changeDirection = false,
207207
lastDirectionDown = false;
208208
var $headerToHide = $( '.header-inner-top' ),
209-
$headerWrap = $( '.header-inner-site-branding' );
209+
$body = $( 'body' );
210210

211211
if( window.innerWidth >= 992 ) {
212212

213213
$(document).ready(function () {
214214
headerHeight = $headerToHide.height();
215215
isAdminBar = $( '#wpadminbar' ).length > 0 ? true : false;
216216
initTop = isAdminBar ? 32 : 0;
217-
$headerWrap.css( 'padding-top', headerHeight + 84 );
217+
$body.css( 'padding-top', headerHeight );
218+
218219
});
219220

220221
$(window).resize(function () {
221222
headerHeight = $headerToHide.height();
222223
initTop = isAdminBar ? 32 : 0;
223-
$headerWrap.css( 'padding-top', headerHeight + 84 );
224+
$body.css( 'padding-top', headerHeight );
224225
});
225226

226227
$(window).scroll(function (event) {
@@ -236,6 +237,8 @@
236237
lastScrollTop = thisScrollTop;
237238
});
238239

240+
} else {
241+
$body.css( 'padding-top', '0' );
239242
}
240243

241244
} )(jQuery,window);

style.css

Lines changed: 68 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ a:active {
11111111
width: 100%;
11121112
}
11131113

1114-
.content-inner-wrap {
1114+
.content-inner-wrap,
1115+
.content-area-with-sidebar .content-inner-wrap {
11151116
padding: 0 15px;
11161117
}
11171118

@@ -1156,6 +1157,10 @@ p.dropcap:first-letter {
11561157
padding-left: 3px;
11571158
}
11581159

1160+
.entry-content {
1161+
font-size: 15px;
1162+
}
1163+
11591164
/*--------------------------------------------------------------
11601165
## Posts and pages
11611166
--------------------------------------------------------------*/
@@ -1690,7 +1695,7 @@ object {
16901695

16911696
.header-inner-site-branding {
16921697
width: 100%;
1693-
padding: 84px 0;
1698+
padding: 94px 0;
16941699
text-align: center;
16951700
background: #FFF;
16961701
background-size: cover;
@@ -1906,7 +1911,7 @@ object {
19061911
.site-footer a {
19071912
color: #aaaaaa;
19081913
text-transform: uppercase;
1909-
letter-spacing: 2.5px;
1914+
letter-spacing: 1.5px;
19101915
font-family: 'Cabin', Helvetica, sans-serif;
19111916
}
19121917

@@ -2038,6 +2043,10 @@ object {
20382043
display: none;
20392044
}
20402045

2046+
.widget.Zillah_About_Me {
2047+
letter-spacing: 0.25px;
2048+
}
2049+
20412050
/*--------------------------------------------------------------
20422051
# Slider
20432052
--------------------------------------------------------------*/
@@ -2092,6 +2101,15 @@ object {
20922101
margin-top: 5px;
20932102
}
20942103

2104+
.blog-post .sd-social-icon .sd-button span.share-count,
2105+
.blog-post .sd-social-icon .sd-button span.share-count,
2106+
.blog-post .sd-social-icon .sd-button span.share-count,
2107+
.search-post .sd-social-icon .sd-button span.share-count,
2108+
.search-post .sd-social-icon .sd-button span.share-count,
2109+
.search-post .sd-social-icon .sd-button span.share-count {
2110+
display: none;
2111+
}
2112+
20952113
.entry-content-wrap .sd-social-icon .sd-content ul li[class*='share-'] a.sd-button,
20962114
.entry-content-wrap .sd-social-icon .sd-content ul li[class*='share-'].share-skype a.sd-button,
20972115
.entry-content-wrap .sd-social-icon .sd-content ul li[class*='share-'].share-reddit a.sd-button,
@@ -2121,6 +2139,29 @@ object {
21212139
float: right;
21222140
}
21232141

2142+
.entry-content #jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post{
2143+
padding:0px 0px 20px 0px;
2144+
margin:5px;
2145+
}
2146+
2147+
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post{
2148+
width: 32%;
2149+
}
2150+
2151+
#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post{
2152+
opacity: 1;
2153+
}
2154+
2155+
.entry-content #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a{
2156+
letter-spacing: 1px;
2157+
font-size: 15px;
2158+
}
2159+
2160+
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post:hover .jp-relatedposts-post-title a{
2161+
text-decoration: none;
2162+
color: #7fcaad;
2163+
}
2164+
21242165
div.sharedaddy h3.sd-title:before {
21252166
display: none !important;
21262167
}
@@ -2234,6 +2275,10 @@ div.sharedaddy h3.sd-title:before {
22342275
margin: 10px 0 30px 30px;
22352276
}
22362277

2278+
.content-area-with-sidebar .content-inner-wrap {
2279+
padding: 0 45px;
2280+
}
2281+
22372282
/*-----------
22382283
* Header
22392284
-----------*/
@@ -2247,7 +2292,7 @@ div.sharedaddy h3.sd-title:before {
22472292
.header-social-icons ul {
22482293
padding: 0;
22492294
margin: 0;
2250-
float: right;
2295+
float: left;
22512296
}
22522297

22532298
.header-social-icons li {
@@ -2576,6 +2621,10 @@ div.sharedaddy h3.sd-title:before {
25762621

25772622
@media screen and (min-width: 992px) {
25782623

2624+
body {
2625+
padding-top: 58px;
2626+
}
2627+
25792628
/*-----------
25802629
* Header
25812630
-----------*/
@@ -2828,6 +2877,7 @@ div.sharedaddy h3.sd-title:before {
28282877
letter-spacing: .5px;
28292878
margin: 0;
28302879
padding: 0;
2880+
text-transform: lowercase;
28312881
}
28322882

28332883
.carousel-caption-category a:hover {
@@ -2885,12 +2935,20 @@ div.sharedaddy h3.sd-title:before {
28852935
width: 1200px;
28862936
}
28872937

2888-
}
2938+
.entry-content {
2939+
font-size: 16px;
2940+
}
28892941

2890-
@media screen and (max-width: 992px) {
2942+
.main-navigation li a {
2943+
padding: 5px 17px;
2944+
}
28912945

2892-
.header-inner-top {
2893-
top: auto !important;
2894-
}
2946+
.social-navigation a {
2947+
margin-right: 20px;
2948+
}
2949+
2950+
.header-inner-site-branding {
2951+
padding: 124px 0;
2952+
}
28952953

2896-
}
2954+
}

0 commit comments

Comments
 (0)