@@ -326,49 +326,139 @@ footer .theme-by {
326326 }
327327}
328328
329- /* --- Post and page layout --- */
329+ /* --- Post and page headers --- */
330330
331- header .header-page {
332- margin-bottom : 20px ;
331+ .intro-header {
332+ margin : 80px 0 20px ;
333+ position : relative;
333334}
334-
335- header .header-page .page-heading {
335+ .intro-header .big-img {
336+ background : no-repeat center center;
337+ -webkit-background-size : cover;
338+ -moz-background-size : cover;
339+ background-size : cover;
340+ -o-background-size : cover;
341+ margin-top : 51px ; /* The small navbar is 50px tall + 1px border */
342+ margin-bottom : 35px ;
343+ }
344+ .intro-header .big-img .big-img-transition {
345+ position : absolute;
346+ width : 100% ;
347+ height : 100% ;
348+ opacity : 0 ;
349+ background : no-repeat center center;
350+ -webkit-background-size : cover;
351+ -moz-background-size : cover;
352+ background-size : cover;
353+ -o-background-size : cover;
354+ -webkit-transition : opacity 1s linear;
355+ -moz-transition : opacity 1s linear;
356+ transition : opacity 1s linear;
357+ }
358+ .intro-header .page-heading {
336359 text-align : center;
337360}
338-
339- header .header-post .post-heading h1 {
340- font-size : 35px ;
341- margin-top : 0 ;
361+ .intro-header .big-img .page-heading ,
362+ .intro-header .big-img .post-heading {
363+ padding : 100px 0 ;
364+ color : # FFF ;
365+ text-shadow : 1px 1px 3px # 000 ;
342366}
343-
344- header . header-page . page-heading h1 {
367+ . intro-header . page-heading h1 {
368+ margin-top : 0 ;
345369 font-size : 50px ;
370+ }
371+ .intro-header .post-heading h1 {
346372 margin-top : 0 ;
373+ font-size : 35px ;
347374}
348-
349- header .header-post .post-heading .post-subheading ,
350- header .header-page .page-heading .page-subheading {
351- font-size : 24px ;
375+ .intro-header .page-heading .page-subheading ,
376+ .intro-header .post-heading .post-subheading {
377+ font-size : 27px ;
352378 line-height : 1.1 ;
353379 display : block;
354380 font-family : 'Open Sans' , 'Helvetica Neue' , Helvetica, Arial, sans-serif;
355381 font-weight : 300 ;
356382 margin : 10px 0 0 ;
357383}
358-
359- header .header-post .post-heading .post-subheading {
384+ .intro-header .post-heading .post-subheading {
360385 margin-bottom : 20px ;
361386}
362-
387+ .intro-header .big-img .page-heading .page-subheading ,
388+ .intro-header .big-img .post-heading .post-subheading {
389+ font-weight : 400 ;
390+ }
391+ .intro-header .big-img .page-heading hr {
392+ box-shadow : 1px 1px 3px # 000 ;
393+ -webkit-box-shadow : 1px 1px 3px # 000 ;
394+ -moz-box-shadow : 1px 1px 3px # 000 ;
395+ }
396+ .intro-header .big-img .post-heading .post-meta {
397+ color : # EEE ;
398+ }
399+ .intro-header .big-img .img-desc {
400+ background : rgba (30 , 30 , 30 , 0.6 );
401+ position : absolute;
402+ padding : 5px 10px ;
403+ font-size : 11px ;
404+ color : # EEE ;
405+ font-family : 'Open Sans' , 'Helvetica Neue' , Helvetica, Arial, sans-serif;
406+ right : 0 ;
407+ bottom : 0 ;
408+ display : none;
409+ }
363410@media only screen and (min-width : 768px ) {
364- header .header-post .post-heading h1 {
411+ .intro-header {
412+ margin-top : 130px ;
413+ }
414+ .intro-header .big-img {
415+ margin-top : 91px ; /* Full navbar is small navbar + 20px padding on each side when expanded */
416+ }
417+ .intro-header .big-img .page-heading ,
418+ .intro-header .big-img .post-heading {
419+ padding : 150px 0 ;
420+ }
421+ .intro-header .page-heading h1 {
422+ font-size : 80px ;
423+ }
424+ .intro-header .post-heading h1 {
365425 font-size : 50px ;
366426 }
427+ .intro-header .big-img .img-desc {
428+ font-size : 14px ;
429+ }
367430}
368431
369- @media only screen and (min-width : 768px ) {
370- header .header-page .page-heading h1 {
371- font-size : 80px ;
432+ .header-section .has-img .no-img {
433+ margin-top : 0 ;
434+ background : # FCFCFC ;
435+ margin : 0 0 40px ;
436+ padding : 20px 0 ;
437+ box-shadow : 0 0 5px # AAA ;
438+ }
439+ /* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
440+ .header-section .has-img .intro-header .no-img {
441+ display : none;
442+ }
443+ @media only screen and (max-width : 365px ) {
444+ .header-section .has-img .intro-header .no-img {
445+ display : block;
446+ }
447+ .intro-header .big-img {
448+ width : 100% ;
449+ height : 220px ;
450+ }
451+ .intro-header .big-img .page-heading ,
452+ .intro-header .big-img .post-heading {
453+ display : none;
454+ }
455+ .header-section .has-img .big-img {
456+ margin-bottom : 0 ;
457+ }
458+ }
459+ @media only screen and (max-width : 325px ) {
460+ .intro-header .big-img {
461+ height : 200px ;
372462 }
373463}
374464
0 commit comments