Skip to content

Commit 01a2979

Browse files
committed
Wrap the content area in a grid.
1 parent b84a79d commit 01a2979

File tree

19 files changed

+53
-84
lines changed

19 files changed

+53
-84
lines changed

themes/api.jquery.com/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php get_header(); ?>
2-
<div class="content-right listing">
2+
<div class="content-right listing twelve columns">
33
<div id="content">
44
<h1 class="page-title">jQuery API</h1>
55
<hr>

themes/brand.jquery.org/page.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

themes/jquery.org/index.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

themes/jquery.org/page.php

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,29 @@
1212

1313
<?php the_post(); ?>
1414

15-
<?php if ( count( get_post_meta( $post->ID, "banner-image" ) ) ) { ?>
16-
17-
<div id="banner-large-image" class="large-banner entry-header">
18-
<div class="vertically-centered-black-bg">
19-
<h2 class="entry-title"><?php the_title(); ?></h2>
20-
<?php if ( count( get_post_meta( $post->ID, "subtitle" ) ) ) : ?>
21-
<p><?php echo get_post_meta( $post->ID, "subtitle", true ); ?></p>
22-
<?php endif; ?>
23-
</div>
24-
</div>
25-
26-
<?php } else { ?>
27-
28-
<div id="banner-secondary" class="large-banner entry-header">
29-
<h1 class="entry-title"><?php the_title(); ?></h1>
30-
<?php if ( count( get_post_meta( $post->ID, "subtitle" ) ) ) : ?>
31-
<p><?php echo get_post_meta( $post->ID, "subtitle", true ); ?></p>
32-
<?php endif; ?>
33-
</div>
34-
35-
<?php } ?>
36-
37-
<div class="content-full<?php if ( count( get_post_meta( $post->ID, "full-width" ) ) ) : ?> full-width<?php endif; ?>">
15+
<div class="content-full twelve columns<?php if ( count( get_post_meta( $post->ID, "full-width" ) ) ) : ?> full-width<?php endif; ?>">
3816
<div id="content">
17+
<?php if ( count( get_post_meta( $post->ID, "banner-image" ) ) ) { ?>
18+
19+
<div id="banner-large-image" class="large-banner entry-header">
20+
<div class="vertically-centered-black-bg">
21+
<h2 class="entry-title"><?php the_title(); ?></h2>
22+
<?php if ( count( get_post_meta( $post->ID, "subtitle" ) ) ) : ?>
23+
<p><?php echo get_post_meta( $post->ID, "subtitle", true ); ?></p>
24+
<?php endif; ?>
25+
</div>
26+
</div>
27+
28+
<?php } else { ?>
29+
30+
<div id="banner-secondary" class="large-banner entry-header">
31+
<h1 class="entry-title"><?php the_title(); ?></h1>
32+
<?php if ( count( get_post_meta( $post->ID, "subtitle" ) ) ) : ?>
33+
<p><?php echo get_post_meta( $post->ID, "subtitle", true ); ?></p>
34+
<?php endif; ?>
35+
</div>
36+
37+
<?php } ?>
3938

4039
<?php get_template_part( 'content', 'page' ); ?>
4140

themes/jquery.org/style.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ a,
5757
.sub-banner {
5858
background-color: #d6eef1;
5959
text-align: center;
60-
margin-left: -40px;
61-
margin-right: -40px;
62-
margin-top: -30px;
63-
height: auto;
60+
margin: -25px -25px 0;
6461
color: #007d88;
6562
font: bold 20px/40px "klavika-web", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
6663
}

themes/jquery/category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
get_header(); ?>
77

8-
<div class="content-right">
8+
<div class="content-right twelve columns">
99
<div id="content">
1010
<?php if ( have_posts() ) : ?>
1111

themes/jquery/css/base.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,7 @@ iframe {
968968
background-color: #fff;
969969
-webkit-box-shadow: -3px 0 5px -3px rgba(1, 1, 1, 0.87), 3px 0 5px -3px rgba(1, 1, 1, 0.87);
970970
box-shadow: -3px 0 5px -3px rgba(1, 1, 1, 0.87), 3px 0 5px -3px rgba(1, 1, 1, 0.87);
971-
max-width: 1240px;
972-
padding: 20px 40px;
973-
margin: 0 auto;
971+
padding: 20px 0;
974972
border-top: 1px solid #333;
975973
border-radius: 0 0 10px 10px;
976974
position: relative;
@@ -1044,7 +1042,7 @@ iframe {
10441042
float: left;
10451043
border-left: 0;
10461044
border-right: 1px solid #e7e7e7;
1047-
margin: -20px 0 0 -40px;
1045+
margin: -20px 0 0 -25px;
10481046
-moz-border-image: -moz-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
10491047
-webkit-border-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(15%, #e7e7e7), color-stop(85%, #e7e7e7), color-stop(100%, #ffffff));
10501048
-webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
@@ -1854,8 +1852,8 @@ p.author a {
18541852

18551853
#banner-secondary {
18561854
background-image: url(../images/dark-grey-tile.png);
1857-
margin: -20px -40px 15px;
1858-
padding: 20px 40px;
1855+
margin: -20px -25px 15px;
1856+
padding: 20px;
18591857
}
18601858

18611859
#banner-secondary h2,

themes/jquery/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@
108108
<?php get_search_form(); ?>
109109
</nav>
110110

111-
<div id="content-wrapper" class="clearfix">
111+
<div id="content-wrapper" class="clearfix row">

themes/jquery/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
get_header(); ?>
77

8-
<div id="content" class="clearfix content-right">
8+
<div id="content" class="clearfix content-right twelve columns">
99

1010
<?php if ( have_posts() ) : ?>
1111

themes/jquery/page-contentfull.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<?php the_post(); ?>
99

10-
<div class="content-full">
10+
<div class="content-full twelve columns">
1111
<div id="content">
1212
<?php if ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
1313
<h1 class="entry-title"><?php the_title(); ?></h1>

themes/jquery/page-fullwidth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<?php the_post(); ?>
99

10-
<div class="content-full full-width">
10+
<div class="content-full full-width twelve columns">
1111
<div id="content">
1212
<?php if ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
1313
<h1 class="entry-title"><?php the_title(); ?></h1>

themes/jquery/page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<?php the_post(); ?>
44

5-
<div class="content-right">
5+
<div class="content-right twelve columns">
66
<div id="content">
77
<?php if ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
88
<h1 class="entry-title"><?php the_title(); ?></h1>

themes/jquery/search-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$entrylist = array();
1111
?>
1212

13-
<div class="content-right">
13+
<div class="content-right twelve columns">
1414
<div id="content">
1515
<?php if ( have_posts() ) : ?>
1616

themes/jquery/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
?>
66
<?php get_header(); ?>
77

8-
<div class="content-right">
8+
<div class="content-right twelve columns">
99
<div id="content">
1010
<?php if ( have_posts() ) : ?>
1111

themes/jquery/single-api.php

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22
/**
33
* The Template for displaying single posts in API sites.
44
*/
5-
?>
5+
?>
66

7-
<div class="content-right">
8-
<div id="content">
7+
<div class="content-right twelve columns">
8+
<div id="content">
9+
<?php while ( have_posts() ) : the_post(); ?>
10+
<?php get_template_part( 'content', 'single-api' ); ?>
11+
<?php endwhile; ?>
12+
</div>
913

10-
<?php while ( have_posts() ) : the_post(); ?>
11-
12-
<?php get_template_part( 'content', 'single-api' ); ?>
13-
<?php
14-
// typically, we'd use the following here:
15-
// comments_template( '', true )
16-
// however, API sites aren't using comments.
17-
?>
18-
<?php endwhile; // end of the loop. ?>
19-
</div><!-- #content -->
20-
21-
<?php get_sidebar(); ?>
14+
<?php get_sidebar(); ?>
2215
</div>

themes/jqueryui.com/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ a,
6767
#content .dev-links {
6868
float: right;
6969
width: 30%;
70-
margin: -15px -40px .5em 1em;
70+
margin: -15px -25px .5em 1em;
7171
padding: 1em;
7272
border: 1px solid #666;
7373
border-width: 0 0 1px 1px;

themes/learn.jquery.com/home.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
*/
55
get_header(); ?>
66

7+
<div class="beta-ribbon-wrapper"><div class="beta-ribbon"><a href="/about/#beta">Beta</a></div></div>
8+
79
<!-- body -->
8-
<div class="content-full full-width">
10+
<div class="content-full full-width twelve columns">
911

1012
<!-- inner -->
1113
<div id="content">

themes/learn.jquery.com/page.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
<?php get_header(); ?>
2+
<?php the_post(); ?>
23

3-
<div class="content-right">
4+
<div class="beta-ribbon-wrapper"><div class="beta-ribbon"><a href="/about/#beta">Beta</a></div></div>
5+
<div class="content-right twelve columns">
46
<div id="content">
5-
<div class="beta-ribbon-wrapper"><div class="beta-ribbon"><a href="/about/#beta">Beta</a></div></div>
6-
<?php the_post(); ?>
7-
87
<?php get_template_part( 'content', 'page' ); ?>
98
</div>
109

1110
<?php get_sidebar(); ?>
12-
1311
</div>
14-
<!-- /body -->
1512

1613
<?php get_footer(); ?>

themes/learn.jquery.com/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ a {
7272
background-image: -ms-linear-gradient(top, #ffea5e, #FFea94);
7373
background-image: -o-linear-gradient(top, #ffea5e, #FFea94);
7474
}
75-
#content .beta-ribbon a {
75+
.beta-ribbon a {
7676
text-decoration: none;
7777
color: #393939;
7878
}
7979

80-
#content .beta-ribbon:hover a {
80+
.beta-ribbon:hover a {
8181
text-decoration: underline;
8282
}
8383
/*******************************************************************************/

0 commit comments

Comments
 (0)