From 348c33c85b30d3c24a8043bdea9c844810abe1c0 Mon Sep 17 00:00:00 2001
From: David Schnur
Date: Tue, 16 Oct 2012 11:20:17 -0400
Subject: [PATCH 1/5] Initial migration of plugins site to new-new-css.
Mostly straightforward migration to the new-new CSS framework,
cross-referencing the new foundation site with the old stage.jquery.com.
Major changes include:
- Split the sidebar from content-jquery_plugin.php off into its own
include, sidebar-jquery_plugin.php
- Removed several no-longer-necessary wrapper divs
- Cleaned-up style.css organization; it had gotten messy
Remaining issues:
- Single-plugin page project info is still broken
- Lots of pruning still required to remove styles that are now in base
- Media queries haven't yet been migrated
---
.../content-jquery_plugin.php | 138 +---
themes/plugins.jquery.com/content-single.php | 34 +-
themes/plugins.jquery.com/content.php | 82 +--
themes/plugins.jquery.com/excerpt.php | 87 ++-
themes/plugins.jquery.com/functions.php | 12 +-
themes/plugins.jquery.com/images/bullet.png | Bin 0 -> 224 bytes
themes/plugins.jquery.com/index.php | 127 ++--
themes/plugins.jquery.com/page.php | 49 +-
themes/plugins.jquery.com/search.php | 101 ++-
.../sidebar-jquery_plugin.php | 75 ++
themes/plugins.jquery.com/sidebar.php | 53 +-
.../single-jquery_plugin.php | 74 +-
themes/plugins.jquery.com/single.php | 45 +-
themes/plugins.jquery.com/style.css | 661 +++++++++---------
14 files changed, 771 insertions(+), 767 deletions(-)
create mode 100644 themes/plugins.jquery.com/images/bullet.png
create mode 100644 themes/plugins.jquery.com/sidebar-jquery_plugin.php
diff --git a/themes/plugins.jquery.com/content-jquery_plugin.php b/themes/plugins.jquery.com/content-jquery_plugin.php
index 0fbadecf..5da34e33 100755
--- a/themes/plugins.jquery.com/content-jquery_plugin.php
+++ b/themes/plugins.jquery.com/content-jquery_plugin.php
@@ -9,105 +9,41 @@
?>
>
-
-
-
-
by
-
-
-
-
-
-
-
-
-
Tags
-
-
-
-
-
-
-
-
Versions
-
-
-
- Version
- Date
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ by
+
+
+
+
+
+
+
+
+
Tags
+
+
+
+
+
+
+
Versions
+
+
+
+ Version
+ Date
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/content-single.php b/themes/plugins.jquery.com/content-single.php
index 3d91f305..c8c37736 100755
--- a/themes/plugins.jquery.com/content-single.php
+++ b/themes/plugins.jquery.com/content-single.php
@@ -1,18 +1,16 @@
-
-
->
-
-
-
- '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
+
+
+>
+
+
+ '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
+
+
diff --git a/themes/plugins.jquery.com/content.php b/themes/plugins.jquery.com/content.php
index a106f4ac..bf0d2f92 100755
--- a/themes/plugins.jquery.com/content.php
+++ b/themes/plugins.jquery.com/content.php
@@ -1,41 +1,41 @@
-
-
- >
-
-
-
-
-
- Version ID, 'latest' ); echo $latest[0]; ?> -
- Released
-
- Tags: ID, 'post_tag' ); ?>
-
-
-
-
-
- →', 'twentyeleven' ) ); ?>
- '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+
+
+>
+
+
+
+
+
+ Version ID, 'latest' ); echo $latest[0]; ?> -
+ Released
+
+ Tags: ID, 'post_tag' ); ?>
+
+
+
+
+
+ →', 'twentyeleven' ) ); ?>
+ '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/plugins.jquery.com/excerpt.php b/themes/plugins.jquery.com/excerpt.php
index b2f851ff..ab78d935 100755
--- a/themes/plugins.jquery.com/excerpt.php
+++ b/themes/plugins.jquery.com/excerpt.php
@@ -1,44 +1,43 @@
-
-
- >
-
-
-
-
-
-
-
-
-
- |
-
-
- Tagged %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
- $show_sep = true; ?>
-
-
-
-
-
+
+
+>
+
+
+
+
+
+
+
+
+
+ |
+
+
+ Tagged %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
+ $show_sep = true; ?>
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/functions.php b/themes/plugins.jquery.com/functions.php
index ba57fdf4..91f2e8db 100644
--- a/themes/plugins.jquery.com/functions.php
+++ b/themes/plugins.jquery.com/functions.php
@@ -69,7 +69,7 @@ function jq_new_plugins($total = 10) {
while ( $new_plugins->have_posts() ) :
$new_plugins->the_post();
?>
-
+
post_title; ?>
-
+
post_title; ?>
(version post_name; ?>)
@@ -178,7 +178,7 @@ function jq_release_licenses() {
foreach( $pkg->licenses as $license ) {
$url = htmlspecialchars( $license->url );
$type = empty( $license->type ) ? $url : htmlspecialchars( $license->type );
- $ret .= "$type ";
+ $ret .= "$type ";
}
$ret .= '';
return $ret;
@@ -193,7 +193,7 @@ function jq_release_maintainers( $options = array('avatar' => false) ) {
$ret = '';
foreach( $pkg->maintainers as $maintainer ) {
- $ret .= '' . person( $maintainer, $options['avatar'] ) . ' ';
+ $ret .= '' . person( $maintainer, $options['avatar'] ) . ' ';
}
$ret .= ' ';
return $ret;
@@ -209,9 +209,9 @@ function jq_release_dependencies() {
$ret = '';
foreach( $pkg->dependencies as $plugin => $version ) {
if ( get_page_by_path( $plugin ) ) {
- $ret .= "$plugin $version ";
+ $ret .= "$plugin $version ";
} else {
- $ret .= "$plugin $version ";
+ $ret .= "$plugin $version ";
}
}
$ret .= ' ';
diff --git a/themes/plugins.jquery.com/images/bullet.png b/themes/plugins.jquery.com/images/bullet.png
new file mode 100644
index 0000000000000000000000000000000000000000..bfeb5a70ba88577b32b96f723ec2140d253b3bb5
GIT binary patch
literal 224
zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqk|nMYCBgY=CFO}lsSJ)O`AMk?
zp1FzXsX?iUDV2pMQ*D5Xnmk<`Ln>}1r8G2UUted*pegW=;fVB>EnDOojz~Hld3t*K
zbz>tVwgV#n|Noa?vLYZnyqxjz&(F`L8|GB8`Fvnpabd#K^YiV$@!V)+2ykRL{r>)b
z$qx*S6FB8RXxv~3y1-$=^`wf?
-
-
+
-
-
-
-
-
+
Plugins Make jQuery More Awesomer
-
Level up your project, not your grammar
-
+
Level up your project, not your grammar
-
0 ) );
-foreach( $toplvlpages as $post ) {
- setup_postdata($post);
- if ( $post->post_name !== 'update' ) {
- get_template_part('excerpt', 'index');
+ $toplvlpages = get_pages( array( 'parent' => 0 ) );
+ foreach( $toplvlpages as $post ) {
+ setup_postdata($post);
+ if ( $post->post_name !== 'update' ) {
+ get_template_part('excerpt', 'index');
+ }
}
-}
?>
-
+
-
-
New Plugins
- 'jquery_plugin',
- 'post_parent' => 0
- ));
- while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
- ?>
-
-
-
-
-
-
-
-
-
+
+
Popular Tags
+
'count',
+ 'order' => 'DESC',
+ 'number' => 10
+ );
+ $tags = get_tags( $tags_args );
+ foreach ( $tags as $tag ) {
+ echo
+ '' .
+ '' .
+ $tag->name . ' ' .
+ ' (' . $tag->count . ')' .
+ ' ';
+ }
+ ?>
+
-
+
+
New Plugins
+ 'jquery_plugin',
+ 'post_parent' => 0
+ ));
+ while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
+ ?>
+
+
+
+
+
+
+
+
+
-
-
-
+
diff --git a/themes/plugins.jquery.com/page.php b/themes/plugins.jquery.com/page.php
index 2e98d028..fcc8664b 100755
--- a/themes/plugins.jquery.com/page.php
+++ b/themes/plugins.jquery.com/page.php
@@ -1,27 +1,22 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/search.php b/themes/plugins.jquery.com/search.php
index 1387d63b..ac322f2d 100755
--- a/themes/plugins.jquery.com/search.php
+++ b/themes/plugins.jquery.com/search.php
@@ -1,52 +1,49 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Sorry, but nothing matched your search criteria.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Sorry, but nothing matched your search criteria.
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/sidebar-jquery_plugin.php b/themes/plugins.jquery.com/sidebar-jquery_plugin.php
new file mode 100644
index 00000000..042e4cb1
--- /dev/null
+++ b/themes/plugins.jquery.com/sidebar-jquery_plugin.php
@@ -0,0 +1,75 @@
+
+
+
diff --git a/themes/plugins.jquery.com/sidebar.php b/themes/plugins.jquery.com/sidebar.php
index b1a2d2f0..98f4f97f 100644
--- a/themes/plugins.jquery.com/sidebar.php
+++ b/themes/plugins.jquery.com/sidebar.php
@@ -1,29 +1,30 @@
-
diff --git a/themes/plugins.jquery.com/single-jquery_plugin.php b/themes/plugins.jquery.com/single-jquery_plugin.php
index 244d403a..aa4c69dd 100755
--- a/themes/plugins.jquery.com/single-jquery_plugin.php
+++ b/themes/plugins.jquery.com/single-jquery_plugin.php
@@ -1,37 +1,37 @@
-
-
-
-
-
- post_parent && (jq_release_version() !== jq_release_version( $post->post_parent )) ) : ?>
-
-
-
-
-
-
-
-
-
+
+
+
+
+ post_parent && (jq_release_version() !== jq_release_version( $post->post_parent )) ) : ?>
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/single.php b/themes/plugins.jquery.com/single.php
index 50469734..1d7cf1b4 100755
--- a/themes/plugins.jquery.com/single.php
+++ b/themes/plugins.jquery.com/single.php
@@ -1,27 +1,20 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/plugins.jquery.com/style.css b/themes/plugins.jquery.com/style.css
index fdcafe2d..2053caac 100755
--- a/themes/plugins.jquery.com/style.css
+++ b/themes/plugins.jquery.com/style.css
@@ -8,77 +8,22 @@ Theme Name: plugins-jquery-com
Template: jquery
*/
-/*-----[ containers ]-----------------------------------------------------------
-*/
-.single-jquery_plugin #container #body .inner {
- padding: 0;
-}
-
-.home #container #body .inner,
-.page #container #body .inner {
- padding: 2%;
-}
-
-#container #body .inner {
- padding: 2em 0;
-}
-
-.jquery_plugin {
- padding: 1.6em 1em;
-}
-
-.jquery_plugin .block {
- margin-bottom: 1.5em;
-}
-
-.jquery_plugin .plugin-metadata,
-#content,
-.sidebar {
- float: left;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-
-#content {
- padding: 0.5em 30px 0.5em 30px;
- width: 68%;
-}
-
-#content hr {
- display: block;
- margin: 2em 0;
- height: 1em;
- background: url("images/gauze.png");
- content: ' ';
- border: none;
+/*-----[ Containers and shared content ]------------------------------------*/
+
+h2 [class^="icon-"],
+h2 [class*=" icon-"],
+h3 [class^="icon-"],
+h3 [class*=" icon-"],
+h4 [class^="icon-"],
+h4 [class*=" icon-"] {
+ margin-right: 7px;
}
-.jquery_plugin .plugin-metadata,
-.sidebar {
- float: right;
- border-left: 1px;
- -moz-border-image: -moz-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- -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));
- -webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- -o-border-image: -o-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- border-image: linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- padding: 0.5em 20px 0.5em 35px; /*0.5 * 16px = 8px*/
- -webkit-box-shadow: inset 15px 0 5px -16px #e7e7e7;
- box-shadow: inset 15px 0 5px -16px #e7e7e7;
- background-image: -webkit-gradient(radial, 0% 50%, 0, 0% 50%, 80, color-stop(0%, #f2f2f2), color-stop(80%, #ffffff));
- background-image: -webkit-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: -moz-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: -o-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: -ms-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: radial-gradient(left, #f2f2f2, #ffffff 80%);
- width: 320px;
-
+#sidebar li {
+ color: #b3b3b3;
}
-/*-----[ content ]--------------------------------------------------------------
-*/
-
+/*----------[ Notifications ]-----------------------------------------------*/
.notify {
background-image: -webkit-gradient(linear, left bottom, left top, from(#eeeaa2), to(#f2efbf));
@@ -125,214 +70,268 @@ Template: jquery
line-height: 24px;
}
-.jquery_plugin h1.entry-title,
-h1.page-title {
- margin: 0 0 .25em; /*0.25 * 32px = 8px*/
- color: #d18f4f;
+/*----------[ Content ]-----------------------------------------------------*/
+
+#content article {
+ margin-bottom: 20px;
+ padding-bottom: 10px;
+ border-bottom: 1px solid #ccc;
}
-h1.page-title {
- margin-bottom: 40px;
+#content article p {
+ float: left;
+ width: 70%;
+ margin: 1em 0;
}
+#content article .action {
+ float: right;
+ width: 25%;
+ margin-left: 5%;
+}
+#content a.button {
+ float: left;
+ width: 100%;
+ padding-left: 5%;
+ padding-right: 5%;
+ text-align: center;
+}
-.jquery_plugin .block ul,
-.jquery_plugin .block li {
- margin: 0;
- padding: 0;
- list-style-type: none;
+/*----------[ Home page ]---------------------------------------------------*/
+
+.home #banner-secondary p {
+ font-family: "JournalRegular", Georgia, "Times New Roman", Times, serif;
+ font-size: 56px;
+ color: #71d1ff;
}
-.jquery_plugin p,
-.jquery_plugin dl,
-.jquery_plugin ol,
-.jquery_plugin ul,
-.jquery_plugin table {
- margin-bottom: 1.6em; /*1.6 * 15px = 24px*/
+.home #banner-secondary .searchform {
+ position: relative;
+ width: 60%;
+ margin: 60px auto 0;
+ font-size: 22px;
+ background-color: #666;
+ border: 1px solid #ccc;
+ -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
+ box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
+ border-radius: 2em;
}
-.jquery_plugin table {
- border-radius: 8px;
+.home #banner-secondary .searchform input {
+ width: 100%;
+ padding-left: 15px;
+ padding-right: 40px;
+ line-height: 1.5em;
+ border: none;
+ background: none;
+ color: #fff;
}
-.jquery_plugin .attribution,
-p.info {
- color: #808080;
- font: 13px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- margin-top: -5px;
+.home #banner-secondary .searchform i {
+ position: absolute;
+ top: 50%;
+ right: 10px;
+ margin-top: -10px;
+ color: #aaa;
}
-p.info {
- margin-top: 0;
+.home #sidebar {
+ width: 25%
}
+.home #content {
+ position: relative;
+ width: 53%; /* 22 | 53 | 25 */
+ margin: 0 30px 30px 30px;
+}
-/*----------[ tags ]------------------------------------------------------------
-*/
-.jquery_plugin .tags li {
- display: inline-block;
- margin-right: 10px;
- width: auto;
+.home #content h3, .home #content h3 i {
+ font-size: 32px;
+ text-align: center;
+ color: #e18d3b;
+ margin-bottom: 30px;
}
-.jquery_plugin li a.tag[class^="icon-"]:before,
-.jquery_plugin li a.tag[class*=" icon-"]:before {
+.home article footer {
+ margin: 0;
+ padding: 0;
+}
- width: 20px;
- text-align: left;
- color: #8ccffa;
+.home #content article .action p.date {
+ width: 100%;
+ margin: 1em 0;
+ line-height: 11px;
+ text-align: center;
+ font-size: 11px;
+ color: #999;
}
-.jquery_plugin li a.tag {
- color: white;
- text-decoration: none;
- display: block;
- border-radius: 3px;
- background-color: #305e91;
- margin-bottom: 10px;
- padding: 2px 7px 2px 7px;
- width: auto;
+.plugin-title {
+ font-size: 20px;
+ line-height: 20px;
+ color: #333;
+ margin-bottom: 5px;
}
-.jquery_plugin li a.tag:hover {
- background-color: #333;
+.plugin-title a {
+ color: #333;
+ text-decoration: none;
}
-/*----------[ versions table ]--------------------------------------------------
+/*----------[ Home page info sidebar ]----------------------------------------
+The new-new-CSS doesn't support a secondary bar - it has only #sidebar - so we
+unfortunately need to replicate some stuff from base.css here.
*/
-.jquery_plugin .versions table {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border-collapse: separate;
- border-spacing: 0;
- border-style: none;
- width: 100%;
-}
-.jquery_plugin .versions table th,
-.jquery_plugin .versions table td {
- border: 1px solid #ccc;
- border-top-style: none;
- padding: 8px 14px;
+.info-bar {
+ float: left;
+ position: relative;
+ width: 22%;
+ margin-left: -40px;
+ -moz-border-image: -moz-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ -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));
+ -webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ -o-border-image: -o-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ border-image: linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ padding: 3em 35px 3em 20px;
+ -webkit-box-shadow: inset 15px 0 5px -16px #e7e7e7;
+ box-shadow: inset 15px 0 5px -16px #e7e7e7;
+ background-image: -webkit-gradient(radial, 0% 50%, 0, 0% 50%, 80, color-stop(0%, #f2f2f2), color-stop(80%, #ffffff));
+ background-image: -webkit-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: -moz-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: -o-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: -ms-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: radial-gradient(right, #f2f2f2, #ffffff 80%);
+ border: 0px;
+ border-right: 1px solid #efefef;
+}
+
+.info-bar h3 {
+ font: normal normal 20px/18px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ background-image: -webkit-gradient(linear, left bottom, right bottom, from(#efefef), to(#f3f3f3));
+ background-image: -moz-linear-gradient(360deg, #efefef 0%, #f3f3f3 100%);
+ margin-left: -20px;
+ margin-right: -35px;
+ padding: 12px 20px 12px 30px;
+ text-shadow: 0 1px 0 #ffffff;
}
-.jquery_plugin .versions table tbody tr:nth-child(even) td {
- background-color: #f2f2f2;
+.info-bar li {
+ padding-top: 2px;
+ padding-bottom: 5px;
+ padding-left: 20px;
+ line-height: 20px;
+ list-style-type: none;
+ background: url(images/bullet.png) no-repeat 0 8px;
+ text-shadow: 0 1px 0 #ffffff;
+ color: #b3b3b3;
}
-.jquery_plugin .versions table tbody tr:last-of-type td.version {
- border-bottom-left-radius: 8px;
+.info-bar li a {
+ color: #4d4d4d;
}
-.jquery_plugin .versions table tbody tr:last-of-type td.release-date {
- border-bottom-right-radius: 8px;
+.info-bar nav#secondary li {
+ background-image: none;
+ padding-left: 0;
}
-.jquery_plugin .versions table thead tr {
- border-radius: 8px 8px 0 0;
- background: black url('images/dark-grey-tile.png');
+.info-bar nav#secondary li.current {
+ background-color: #e2e2e2;
+ margin-left: -35px;
+ margin-right: -20px;
+ padding-left: 35px;
+ font-weight: bold;
}
+/*----------[ Individual plugin pages ]-------------------------------------*/
-
-.jquery_plugin .versions table thead th.version-head {
- border-top-left-radius: 8px;
+#content.jquery-plugin {
+ width: 71%; /* 71% | 29% */
+ padding: 1.6em 1em;
}
-.jquery_plugin .versions table thead th.release-date-head {
- border-top-right-radius: 8px;
+#content.jquery-plugin h2 {
+ margin-bottom: 15px;
}
-.jquery_plugin .versions table .version {
- border-right-style: none;
- font: bold 18px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- letter-spacing: -1px;
+#content.jquery-plugin article {
+ border-bottom: 0;
}
-.jquery_plugin .versions table .release-date {
- border-left-style: none;
- width: 20%;
+.jquery-plugin .block {
+ margin-bottom: 1.5em;
}
-.jquery_plugin .versions table thead th {
- border-style: none;
- color: white;
+.jquery-plugin h1.entry-title, h1.page-title {
+ margin: 0 0 .25em; /* 0.25 * 32px = 8px */
+ font: bold 33px/33px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
text-align: left;
- text-transform: uppercase;
- font: bold 12px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- padding-top: 10px;
- padding-bottom: 10px;
+ color: #d18f4f;
}
-/*----------[ related plugins ]-------------------------------------------------
-*/
-.jquery_plugin .related-plugins .box {
- border-radius: 4px;
- border: 1px solid #ccc;
- padding: 16px 20px;
+.jquery-plugin h1.page-title {
+ margin-bottom: 40px;
}
-.jquery_plugin .related-plugins h3 {
- font-size: 18px;
- line-height: 1.33em;
- color: #7f7f7f;
+.jquery-plugin .block ul,
+.jquery-plugin .block li {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
}
-.jquery_plugin .related-plugins ul {
- margin-left: 0px;
- list-style-type: none;
+.jquery-plugin p,
+.jquery-plugin dl,
+.jquery-plugin ol,
+.jquery-plugin ul,
+.jquery-plugin table {
+ margin-bottom: 1.6em; /* 1.6 * 15px = 24px */
}
-.jquery_plugin .related-plugins li {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- float: left;
- margin-bottom: 8px;
- padding-left: 16px;
- width: 33%;
+.jquery-plugin table {
+ border-radius: 8px;
}
-.jquery_plugin .related-plugins li:before,
-.jquery_plugin .plugin-metadata li:before,
-.sidebar li:before {
- text-indent: -1.6em;
- color: #e0e0e0;
+.jquery-plugin .attribution, p.info {
+ color: #808080;
+ font: 13px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ margin-top: -5px;
}
-/*----------[ general sidebar styles ]------------------------------------------
-*/
-.jquery_plugin .plugin-metadata .github-activity,
-.jquery_plugin .plugin-metadata .author-info,
-.jquery_plugin .plugin-metadata .maintainer-info,
-.jquery_plugin .plugin-metadata .licenses,
-.jquery_plugin .plugin-metadata .dependencies {
+p.info {
+ margin-top: 0;
+}
+
+/*----------[ Individual plugin page general sidebar styles ]---------------*/
+
+.jquery-plugin .github-activity,
+.jquery-plugin .author-info,
+.jquery-plugin .maintainer-info,
+.jquery-plugin .licenses,
+.jquery-plugin .dependencies {
color: #7f7f7f;
}
-.jquery_plugin .plugin-metadata .github-activity h2,
-.jquery_plugin .plugin-metadata .author-info h2,
-.jquery_plugin .plugin-metadata .maintainer-info h2,
-.jquery_plugin .plugin-metadata .licenses h2,
-.jquery_plugin .plugin-metadata .dependencies h2 {
+.jquery-plugin .github-activity h2,
+.jquery-plugin .author-info h2,
+.jquery-plugin .maintainer-info h2,
+.jquery-plugin .licenses h2,
+.jquery-plugin .dependencies h2 {
padding-left: 30px;
background: no-repeat left center;
text-shadow: 0 1px 0 white;
}
-.jquery_plugin .plugin-metadata h3,
-.sidebar h3 {
+.jquery-plugin h3 {
margin-bottom: 5px;
font-size: 1.4em;
color: #858585;
}
-.jquery_plugin .plugin-metadata h2 [class^="icon-"],
-.jquery_plugin .plugin-metadata h2 [class*=" icon-"],
-.sidebar h2 [class^="icon-"],
-.sidebar h2 [class*=" icon-"] {
+.jquery-plugin h2 [class^="icon-"],
+.jquery-plugin h2 [class*=" icon-"] {
display: inline-block;
margin-left: -30px;
margin-right: 6px;
@@ -343,18 +342,18 @@ p.info {
text-shadow: 0 1px 0 white;
}
-.jquery_plugin .plugin-metadata .github-activity .box {
+.jquery-plugin .github-activity .box {
border-radius: 3px;
border: 1px solid #ccc;
padding: 10px;
background-color: white;
}
-.jquery_plugin .plugin-metadata .github-activity .box p {
+.jquery-plugin .github-activity .box p {
margin: 0;
}
-.jquery_plugin .plugin-metadata .github-activity .box .info-block {
+.jquery-plugin .github-activity .box .info-block {
display: inline-block;
margin-right: 10px;
border-radius: 4px;
@@ -362,7 +361,7 @@ p.info {
min-width: 80px;
}
-.jquery_plugin .plugin-metadata .github-activity .box .info-block .number {
+.jquery-plugin .github-activity .box .info-block .number {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
background: black url('images/dark-grey-tile.png');
@@ -371,7 +370,7 @@ p.info {
font: bold 3em/1em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .plugin-metadata .github-activity .box .info-block .caption {
+.jquery-plugin .github-activity .box .info-block .caption {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 4px 10px;
@@ -382,31 +381,9 @@ p.info {
letter-spacing: 1px;
}
-.jquery_plugin .plugin-metadata ul,
-.sidebar ul {
- margin-left: 25px;
- list-style-type: none;
-}
-
-.jquery_plugin .plugin-metadata li,
-.sidebar li {
- padding-left: 16px;
- text-shadow: 0 1px 0 white;
-}
-
-.sidebar li {
- color: #b3b3b3;
- padding-bottom: 9px;
-}
-
-.jquery_plugin .plugin-metadata li.icon-caret-right:before,
-.sidebar li.icon-caret-right:before {
- font-size: .9em;
-}
+/*----------[ Individual plugin page sidebar toolbox ]----------------------*/
-/*----------[ toolbox ]---------------------------------------------------------
-*/
-.jquery_plugin .toolbox {
+.jquery-plugin .toolbox {
border: 1px solid black;
border-radius: 8px;
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
@@ -414,58 +391,58 @@ p.info {
background-color: black;
}
-.jquery_plugin .toolbox > .inner {
+.jquery-plugin .toolbox > .inner {
border: 1px solid #666;
border-radius: 8px;
background-color: #202020;
color: white;
}
-.jquery_plugin .toolbox header {
+.jquery-plugin .toolbox header {
padding: 10px 15px;
}
-.jquery_plugin .toolbox header p {
+.jquery-plugin .toolbox header p {
margin: 0;
}
-.jquery_plugin .toolbox header .caption {
+.jquery-plugin .toolbox header .caption {
color: #999;
font: 14px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .toolbox header .version-info {
+.jquery-plugin .toolbox header .version-info {
float: left;
width: 30%;
}
-.jquery_plugin .toolbox header .release-info {
+.jquery-plugin .toolbox header .release-info {
float: right;
width: 70%;
}
-.jquery_plugin .toolbox header .release-info {
+.jquery-plugin .toolbox header .release-info {
text-align: right;
}
-.jquery_plugin .toolbox header .version-number, .jquery_plugin .toolbox header .date {
+.jquery-plugin .toolbox header .version-number, .jquery-plugin .toolbox header .date {
font: bold 1.25em/1.2em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .toolbox header .version-number {
+.jquery-plugin .toolbox header .version-number {
font-size: 1.9em;
letter-spacing: -2px;
line-height: .9em;
}
-.jquery_plugin .toolbox .body {
+.jquery-plugin .toolbox .body {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
padding: 12px 15px 5px;
background: url('images/dark-grey-tile.png');
}
-.jquery_plugin .toolbox a.download {
+.jquery-plugin .toolbox a.download {
display: block;
margin-bottom: 1.2em;
border-radius: 5px;
@@ -479,7 +456,7 @@ p.info {
font: bold 1.4em/1.6em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .toolbox a.download .inner-wrapper {
+.jquery-plugin .toolbox a.download .inner-wrapper {
display: block;
border-radius: 5px;
border: 1px solid #e1b68c;
@@ -487,12 +464,12 @@ p.info {
padding: 0 5px 0 32px;
}
-.jquery_plugin .toolbox a.download:hover .inner-wrapper {
+.jquery-plugin .toolbox a.download:hover .inner-wrapper {
background-color: #cc8540;
}
-.jquery_plugin .toolbox a.download .inner-wrapper [class^="icon-"],
-.jquery_plugin .toolbox a.download .inner-wrapper [class*=" icon-"] {
+.jquery-plugin .toolbox a.download .inner-wrapper [class^="icon-"],
+.jquery-plugin .toolbox a.download .inner-wrapper [class*=" icon-"] {
margin-left: -25px;
margin-right: 5px;
color: #81502e;
@@ -502,7 +479,7 @@ p.info {
position: relative;
}
-.jquery_plugin .toolbox [class^="icon-"], .jquery_plugin .toolbox [class*=" icon-"] {
+.jquery-plugin .toolbox [class^="icon-"], .jquery-plugin .toolbox [class*=" icon-"] {
margin-left: -25px;
margin-right: 7px;
width: 25px;
@@ -511,13 +488,13 @@ p.info {
text-shadow: 0 -1px black;
}
-.jquery_plugin .toolbox [class^="icon-"]:before, .jquery_plugin .toolbox [class*=" icon-"]:before {
+.jquery-plugin .toolbox [class^="icon-"]:before, .jquery-plugin .toolbox [class*=" icon-"]:before {
width: 25px;
text-align: center;
font-size: 1.2em;
}
-.jquery_plugin .toolbox a.other-link {
+.jquery-plugin .toolbox a.other-link {
display: block;
margin-bottom: 0.8em;
background: no-repeat 8px center;
@@ -529,100 +506,145 @@ p.info {
padding-left: 32px;
}
-.jquery_plugin .toolbox a.other-link:hover {
+.jquery-plugin .toolbox a.other-link:hover {
text-decoration: underline;
}
-/*----------[ Home ]--------------------------------------------------------*/
+/*----------[ Individual plugin page tags ]---------------------------------*/
-.home .sidebar {
- width: 25%
+#content.jquery-plugin .tags ul {
+ margin: 0;
}
-.home .sidebar.left {
- left: 0px;
- position: absolute;
+#content.jquery-plugin .tags li {
+ display: inline-block;
+ width: auto;
+ margin-right: 10px;
+ padding: 0;
+ background: none;
}
-.home #content {
- position: relative;
- margin-left: 27%;
- width: 46%;
- float: left;
- margin-bottom: 30px;
+.jquery-plugin li a.tag[class^="icon-"]:before,
+.jquery-plugin li a.tag[class*=" icon-"]:before {
+ width: 20px;
+ text-align: left;
+ color: #8ccffa;
+}
+#content.jquery-plugin li a.tag {
+ display: block;
+ width: auto;
+ padding: 2px 7px 2px 7px;
+ margin-bottom: 10px;
+ border-radius: 3px;
+ text-decoration: none;
+ background-color: #305e91;
+ color: white;
}
-.home .sidebar ul {
- margin-left: 25px;
+.jquery-plugin li a.tag:hover {
+ background-color: #333;
}
-.home .sidebar li {
- color: #b3b3b3;
- padding-bottom: 7px;
+/*----------[ Individual plugin page versions table ]-----------------------*/
+
+.jquery-plugin .versions table {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ border-collapse: separate;
+ border-spacing: 0;
+ border-style: none;
+ width: 100%;
}
-.home .sidebar li.icon-caret-right:before {
- font-size: 10px;
- color: #ccc;
+.jquery-plugin .versions table th,
+.jquery-plugin .versions table td {
+ border: 1px solid #ccc;
+ border-top-style: none;
+ padding: 8px 14px;
}
-.home #content h3 {
- font-size: 32px;
- text-align: center;
- color: #e18d3b;
- margin-bottom: 30px;
+.jquery-plugin .versions table tbody tr:nth-child(even) td {
+ background-color: #f2f2f2;
}
-#content article {
- border-bottom: 1px solid #ccc;
- margin-bottom: 20px;
- padding-bottom: 10px;
+.jquery-plugin .versions table tbody tr:last-of-type td.version {
+ border-bottom-left-radius: 8px;
}
-.plugin-title {
- font-size: 20px;
- line-height: 20px;
- color: #333;
- margin-bottom: 5px;
+.jquery-plugin .versions table tbody tr:last-of-type td.release-date {
+ border-bottom-right-radius: 8px;
}
-.plugin-title a {
- color: #333;
- text-decoration: none;
+.jquery-plugin .versions table thead tr {
+ border-radius: 8px 8px 0 0;
+ background: black url('images/dark-grey-tile.png');
}
-#content article p {
- float: left;
- width: 70%;
+.jquery-plugin .versions table thead th.version-head {
+ border-top-left-radius: 8px;
}
-#content article .action {
- float: right;
- width: 25%;
- margin-left: 5%;
+.jquery-plugin .versions table thead th.release-date-head {
+ border-top-right-radius: 8px;
}
-.home #content article .action p.date {
- color: #999;
- font-size: 11px;
- line-height: 11px;
- text-align: center;
- width: 100%;
+.jquery-plugin .versions table .version {
+ border-right-style: none;
+ font: bold 18px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ letter-spacing: -1px;
}
-.home #content a.button,
-#content article a.button {
- margin-bottom: 5px;
- float: left;
- width: 90%;
- padding-left: 5%;
- padding-right: 5%;
- text-align: center;
+.jquery-plugin .versions table .release-date {
+ border-left-style: none;
+ width: 20%;
}
+.jquery-plugin .versions table thead th {
+ border-style: none;
+ color: white;
+ text-align: left;
+ text-transform: uppercase;
+ font: bold 12px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+/*----------[ Individual plugin page related plugins ]----------------------*/
+.jquery-plugin .related-plugins .box {
+ border-radius: 4px;
+ border: 1px solid #ccc;
+ padding: 16px 20px;
+}
+
+.jquery-plugin .related-plugins h3 {
+ font-size: 18px;
+ line-height: 1.33em;
+ color: #7f7f7f;
+}
+
+.jquery-plugin .related-plugins ul {
+ margin-left: 0px;
+ list-style-type: none;
+}
+
+.jquery-plugin .related-plugins li {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ float: left;
+ margin-bottom: 8px;
+ padding-left: 16px;
+ width: 33%;
+}
+
+.jquery-plugin .related-plugins li:before,
+.jquery-plugin .plugin-metadata li:before {
+ text-indent: -1.6em;
+ color: #e0e0e0;
+}
/*----------[ Pagination ]----------------------------------------------------*/
@@ -639,20 +661,20 @@ p.info {
/*----------[ IE hacks ]------------------------------------------------------*/
-.lte9 .jquery_plugin h1.entry-title {
+.lte9 .jquery-plugin h1.entry-title {
background: transparent;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
-.lte9 .jquery_plugin .tags li a {
+.lte9 .jquery-plugin .tags li a {
height: 24px;
}
-
-
+/*----------[ Media queries ]------------------------------------------------------*/
+/*
@media all and (max-width: 1100px) {
- .jquery_plugin .plugin-metadata,
+ .jquery-plugin .plugin-metadata,
.sidebar {
width: 280px;
}
@@ -686,7 +708,7 @@ p.info {
@media all and (max-width: 768px) {
- .jquery_plugin .plugin-metadata,
+ .jquery-plugin .plugin-metadata,
.home .sidebar,
.home .sidebar.left,
.sidebar,
@@ -744,12 +766,12 @@ p.info {
@media all and (max-width: 660px) {
- #banner h1 {
+ #banner-secondary h1 {
font-size: 60px;
line-height: 60px;
}
- #banner h2 {
+ #banner-secondary h2 {
font-size: 40px;
line-height: 35px;
}
@@ -770,7 +792,7 @@ p.info {
@media all and (max-width: 480px) {
- #banner h1 {
+ #banner-secondary h1 {
font-size: 43px;
line-height: 43px;
}
@@ -796,11 +818,8 @@ p.info {
width: 90%;
}
- .home #content article .action a.button {
- width: 90%;
- }
-
#content h1.page-title {
text-align: center;
}
}
+*/
\ No newline at end of file
From 5a446b848ba825266a7a732fc0e7841f7bd05d34 Mon Sep 17 00:00:00 2001
From: David Schnur
Date: Tue, 16 Oct 2012 11:20:17 -0400
Subject: [PATCH 2/5] Initial migration of plugins site to new-new-css.
Mostly straightforward migration to the new-new CSS framework,
cross-referencing the new foundation site with the old stage.jquery.com.
Major changes include:
- Split the sidebar from content-jquery_plugin.php off into its own
include, sidebar-jquery_plugin.php
- Removed several no-longer-necessary wrapper divs
- Cleaned-up style.css organization; it had gotten messy
Remaining issues:
- Single-plugin page project info is still broken
- Lots of pruning still required to remove styles that are now in base
- Media queries haven't yet been migrated
---
.../content-jquery_plugin.php | 138 +---
themes/plugins.jquery.com/content-single.php | 34 +-
themes/plugins.jquery.com/content.php | 82 +--
themes/plugins.jquery.com/excerpt.php | 87 ++-
themes/plugins.jquery.com/functions.php | 12 +-
themes/plugins.jquery.com/images/bullet.png | Bin 0 -> 224 bytes
themes/plugins.jquery.com/index.php | 127 ++--
themes/plugins.jquery.com/page.php | 49 +-
themes/plugins.jquery.com/search.php | 101 ++-
.../sidebar-jquery_plugin.php | 75 ++
themes/plugins.jquery.com/sidebar.php | 53 +-
.../single-jquery_plugin.php | 74 +-
themes/plugins.jquery.com/single.php | 45 +-
themes/plugins.jquery.com/style.css | 661 +++++++++---------
14 files changed, 771 insertions(+), 767 deletions(-)
create mode 100644 themes/plugins.jquery.com/images/bullet.png
create mode 100644 themes/plugins.jquery.com/sidebar-jquery_plugin.php
diff --git a/themes/plugins.jquery.com/content-jquery_plugin.php b/themes/plugins.jquery.com/content-jquery_plugin.php
index 0fbadecf..5da34e33 100755
--- a/themes/plugins.jquery.com/content-jquery_plugin.php
+++ b/themes/plugins.jquery.com/content-jquery_plugin.php
@@ -9,105 +9,41 @@
?>
>
-
-
-
-
by
-
-
-
-
-
-
-
-
-
Tags
-
-
-
-
-
-
-
-
Versions
-
-
-
- Version
- Date
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ by
+
+
+
+
+
+
+
+
+
Tags
+
+
+
+
+
+
+
Versions
+
+
+
+ Version
+ Date
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/content-single.php b/themes/plugins.jquery.com/content-single.php
index 3d91f305..c8c37736 100755
--- a/themes/plugins.jquery.com/content-single.php
+++ b/themes/plugins.jquery.com/content-single.php
@@ -1,18 +1,16 @@
-
-
->
-
-
-
- '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
+
+
+>
+
+
+ '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
+
+
diff --git a/themes/plugins.jquery.com/content.php b/themes/plugins.jquery.com/content.php
index a106f4ac..bf0d2f92 100755
--- a/themes/plugins.jquery.com/content.php
+++ b/themes/plugins.jquery.com/content.php
@@ -1,41 +1,41 @@
-
-
- >
-
-
-
-
-
- Version ID, 'latest' ); echo $latest[0]; ?> -
- Released
-
- Tags: ID, 'post_tag' ); ?>
-
-
-
-
-
- →', 'twentyeleven' ) ); ?>
- '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
-
-
-
-
+
+
+>
+
+
+
+
+
+ Version ID, 'latest' ); echo $latest[0]; ?> -
+ Released
+
+ Tags: ID, 'post_tag' ); ?>
+
+
+
+
+
+ →', 'twentyeleven' ) ); ?>
+ '
' . __( 'Pages:', 'twentyeleven' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
diff --git a/themes/plugins.jquery.com/excerpt.php b/themes/plugins.jquery.com/excerpt.php
index b2f851ff..ab78d935 100755
--- a/themes/plugins.jquery.com/excerpt.php
+++ b/themes/plugins.jquery.com/excerpt.php
@@ -1,44 +1,43 @@
-
-
- >
-
-
-
-
-
-
-
-
-
- |
-
-
- Tagged %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
- $show_sep = true; ?>
-
-
-
-
-
+
+
+>
+
+
+
+
+
+
+
+
+
+ |
+
+
+ Tagged %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
+ $show_sep = true; ?>
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/functions.php b/themes/plugins.jquery.com/functions.php
index ba57fdf4..91f2e8db 100644
--- a/themes/plugins.jquery.com/functions.php
+++ b/themes/plugins.jquery.com/functions.php
@@ -69,7 +69,7 @@ function jq_new_plugins($total = 10) {
while ( $new_plugins->have_posts() ) :
$new_plugins->the_post();
?>
-
+
post_title; ?>
-
+
post_title; ?>
(version post_name; ?>)
@@ -178,7 +178,7 @@ function jq_release_licenses() {
foreach( $pkg->licenses as $license ) {
$url = htmlspecialchars( $license->url );
$type = empty( $license->type ) ? $url : htmlspecialchars( $license->type );
- $ret .= "$type ";
+ $ret .= "$type ";
}
$ret .= '';
return $ret;
@@ -193,7 +193,7 @@ function jq_release_maintainers( $options = array('avatar' => false) ) {
$ret = '';
foreach( $pkg->maintainers as $maintainer ) {
- $ret .= '' . person( $maintainer, $options['avatar'] ) . ' ';
+ $ret .= '' . person( $maintainer, $options['avatar'] ) . ' ';
}
$ret .= ' ';
return $ret;
@@ -209,9 +209,9 @@ function jq_release_dependencies() {
$ret = '';
foreach( $pkg->dependencies as $plugin => $version ) {
if ( get_page_by_path( $plugin ) ) {
- $ret .= "$plugin $version ";
+ $ret .= "$plugin $version ";
} else {
- $ret .= "$plugin $version ";
+ $ret .= "$plugin $version ";
}
}
$ret .= ' ';
diff --git a/themes/plugins.jquery.com/images/bullet.png b/themes/plugins.jquery.com/images/bullet.png
new file mode 100644
index 0000000000000000000000000000000000000000..bfeb5a70ba88577b32b96f723ec2140d253b3bb5
GIT binary patch
literal 224
zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqk|nMYCBgY=CFO}lsSJ)O`AMk?
zp1FzXsX?iUDV2pMQ*D5Xnmk<`Ln>}1r8G2UUted*pegW=;fVB>EnDOojz~Hld3t*K
zbz>tVwgV#n|Noa?vLYZnyqxjz&(F`L8|GB8`Fvnpabd#K^YiV$@!V)+2ykRL{r>)b
z$qx*S6FB8RXxv~3y1-$=^`wf?
-
-
+
-
-
-
-
-
+
Plugins Make jQuery More Awesomer
-
Level up your project, not your grammar
-
+
Level up your project, not your grammar
-
0 ) );
-foreach( $toplvlpages as $post ) {
- setup_postdata($post);
- if ( $post->post_name !== 'update' ) {
- get_template_part('excerpt', 'index');
+ $toplvlpages = get_pages( array( 'parent' => 0 ) );
+ foreach( $toplvlpages as $post ) {
+ setup_postdata($post);
+ if ( $post->post_name !== 'update' ) {
+ get_template_part('excerpt', 'index');
+ }
}
-}
?>
-
+
-
-
New Plugins
- 'jquery_plugin',
- 'post_parent' => 0
- ));
- while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
- ?>
-
-
-
-
-
-
-
-
-
+
+
Popular Tags
+
'count',
+ 'order' => 'DESC',
+ 'number' => 10
+ );
+ $tags = get_tags( $tags_args );
+ foreach ( $tags as $tag ) {
+ echo
+ '' .
+ '' .
+ $tag->name . ' ' .
+ ' (' . $tag->count . ')' .
+ ' ';
+ }
+ ?>
+
-
+
+
New Plugins
+ 'jquery_plugin',
+ 'post_parent' => 0
+ ));
+ while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
+ ?>
+
+
+
+
+
+
+
+
+
-
-
-
+
diff --git a/themes/plugins.jquery.com/page.php b/themes/plugins.jquery.com/page.php
index 2e98d028..fcc8664b 100755
--- a/themes/plugins.jquery.com/page.php
+++ b/themes/plugins.jquery.com/page.php
@@ -1,27 +1,22 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/search.php b/themes/plugins.jquery.com/search.php
index 1387d63b..ac322f2d 100755
--- a/themes/plugins.jquery.com/search.php
+++ b/themes/plugins.jquery.com/search.php
@@ -1,52 +1,49 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Sorry, but nothing matched your search criteria.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Sorry, but nothing matched your search criteria.
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/sidebar-jquery_plugin.php b/themes/plugins.jquery.com/sidebar-jquery_plugin.php
new file mode 100644
index 00000000..042e4cb1
--- /dev/null
+++ b/themes/plugins.jquery.com/sidebar-jquery_plugin.php
@@ -0,0 +1,75 @@
+
+
+
diff --git a/themes/plugins.jquery.com/sidebar.php b/themes/plugins.jquery.com/sidebar.php
index b1a2d2f0..98f4f97f 100644
--- a/themes/plugins.jquery.com/sidebar.php
+++ b/themes/plugins.jquery.com/sidebar.php
@@ -1,29 +1,30 @@
-
diff --git a/themes/plugins.jquery.com/single-jquery_plugin.php b/themes/plugins.jquery.com/single-jquery_plugin.php
index 244d403a..aa4c69dd 100755
--- a/themes/plugins.jquery.com/single-jquery_plugin.php
+++ b/themes/plugins.jquery.com/single-jquery_plugin.php
@@ -1,37 +1,37 @@
-
-
-
-
-
- post_parent && (jq_release_version() !== jq_release_version( $post->post_parent )) ) : ?>
-
-
-
-
-
-
-
-
-
+
+
+
+
+ post_parent && (jq_release_version() !== jq_release_version( $post->post_parent )) ) : ?>
+
+
+
+
+
+
+
+
+
+
diff --git a/themes/plugins.jquery.com/single.php b/themes/plugins.jquery.com/single.php
index 50469734..1d7cf1b4 100755
--- a/themes/plugins.jquery.com/single.php
+++ b/themes/plugins.jquery.com/single.php
@@ -1,27 +1,20 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/themes/plugins.jquery.com/style.css b/themes/plugins.jquery.com/style.css
index fdcafe2d..2053caac 100755
--- a/themes/plugins.jquery.com/style.css
+++ b/themes/plugins.jquery.com/style.css
@@ -8,77 +8,22 @@ Theme Name: plugins-jquery-com
Template: jquery
*/
-/*-----[ containers ]-----------------------------------------------------------
-*/
-.single-jquery_plugin #container #body .inner {
- padding: 0;
-}
-
-.home #container #body .inner,
-.page #container #body .inner {
- padding: 2%;
-}
-
-#container #body .inner {
- padding: 2em 0;
-}
-
-.jquery_plugin {
- padding: 1.6em 1em;
-}
-
-.jquery_plugin .block {
- margin-bottom: 1.5em;
-}
-
-.jquery_plugin .plugin-metadata,
-#content,
-.sidebar {
- float: left;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-
-#content {
- padding: 0.5em 30px 0.5em 30px;
- width: 68%;
-}
-
-#content hr {
- display: block;
- margin: 2em 0;
- height: 1em;
- background: url("images/gauze.png");
- content: ' ';
- border: none;
+/*-----[ Containers and shared content ]------------------------------------*/
+
+h2 [class^="icon-"],
+h2 [class*=" icon-"],
+h3 [class^="icon-"],
+h3 [class*=" icon-"],
+h4 [class^="icon-"],
+h4 [class*=" icon-"] {
+ margin-right: 7px;
}
-.jquery_plugin .plugin-metadata,
-.sidebar {
- float: right;
- border-left: 1px;
- -moz-border-image: -moz-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- -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));
- -webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- -o-border-image: -o-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- border-image: linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
- padding: 0.5em 20px 0.5em 35px; /*0.5 * 16px = 8px*/
- -webkit-box-shadow: inset 15px 0 5px -16px #e7e7e7;
- box-shadow: inset 15px 0 5px -16px #e7e7e7;
- background-image: -webkit-gradient(radial, 0% 50%, 0, 0% 50%, 80, color-stop(0%, #f2f2f2), color-stop(80%, #ffffff));
- background-image: -webkit-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: -moz-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: -o-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: -ms-radial-gradient(left, #f2f2f2, #ffffff 80%);
- background-image: radial-gradient(left, #f2f2f2, #ffffff 80%);
- width: 320px;
-
+#sidebar li {
+ color: #b3b3b3;
}
-/*-----[ content ]--------------------------------------------------------------
-*/
-
+/*----------[ Notifications ]-----------------------------------------------*/
.notify {
background-image: -webkit-gradient(linear, left bottom, left top, from(#eeeaa2), to(#f2efbf));
@@ -125,214 +70,268 @@ Template: jquery
line-height: 24px;
}
-.jquery_plugin h1.entry-title,
-h1.page-title {
- margin: 0 0 .25em; /*0.25 * 32px = 8px*/
- color: #d18f4f;
+/*----------[ Content ]-----------------------------------------------------*/
+
+#content article {
+ margin-bottom: 20px;
+ padding-bottom: 10px;
+ border-bottom: 1px solid #ccc;
}
-h1.page-title {
- margin-bottom: 40px;
+#content article p {
+ float: left;
+ width: 70%;
+ margin: 1em 0;
}
+#content article .action {
+ float: right;
+ width: 25%;
+ margin-left: 5%;
+}
+#content a.button {
+ float: left;
+ width: 100%;
+ padding-left: 5%;
+ padding-right: 5%;
+ text-align: center;
+}
-.jquery_plugin .block ul,
-.jquery_plugin .block li {
- margin: 0;
- padding: 0;
- list-style-type: none;
+/*----------[ Home page ]---------------------------------------------------*/
+
+.home #banner-secondary p {
+ font-family: "JournalRegular", Georgia, "Times New Roman", Times, serif;
+ font-size: 56px;
+ color: #71d1ff;
}
-.jquery_plugin p,
-.jquery_plugin dl,
-.jquery_plugin ol,
-.jquery_plugin ul,
-.jquery_plugin table {
- margin-bottom: 1.6em; /*1.6 * 15px = 24px*/
+.home #banner-secondary .searchform {
+ position: relative;
+ width: 60%;
+ margin: 60px auto 0;
+ font-size: 22px;
+ background-color: #666;
+ border: 1px solid #ccc;
+ -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
+ box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
+ border-radius: 2em;
}
-.jquery_plugin table {
- border-radius: 8px;
+.home #banner-secondary .searchform input {
+ width: 100%;
+ padding-left: 15px;
+ padding-right: 40px;
+ line-height: 1.5em;
+ border: none;
+ background: none;
+ color: #fff;
}
-.jquery_plugin .attribution,
-p.info {
- color: #808080;
- font: 13px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- margin-top: -5px;
+.home #banner-secondary .searchform i {
+ position: absolute;
+ top: 50%;
+ right: 10px;
+ margin-top: -10px;
+ color: #aaa;
}
-p.info {
- margin-top: 0;
+.home #sidebar {
+ width: 25%
}
+.home #content {
+ position: relative;
+ width: 53%; /* 22 | 53 | 25 */
+ margin: 0 30px 30px 30px;
+}
-/*----------[ tags ]------------------------------------------------------------
-*/
-.jquery_plugin .tags li {
- display: inline-block;
- margin-right: 10px;
- width: auto;
+.home #content h3, .home #content h3 i {
+ font-size: 32px;
+ text-align: center;
+ color: #e18d3b;
+ margin-bottom: 30px;
}
-.jquery_plugin li a.tag[class^="icon-"]:before,
-.jquery_plugin li a.tag[class*=" icon-"]:before {
+.home article footer {
+ margin: 0;
+ padding: 0;
+}
- width: 20px;
- text-align: left;
- color: #8ccffa;
+.home #content article .action p.date {
+ width: 100%;
+ margin: 1em 0;
+ line-height: 11px;
+ text-align: center;
+ font-size: 11px;
+ color: #999;
}
-.jquery_plugin li a.tag {
- color: white;
- text-decoration: none;
- display: block;
- border-radius: 3px;
- background-color: #305e91;
- margin-bottom: 10px;
- padding: 2px 7px 2px 7px;
- width: auto;
+.plugin-title {
+ font-size: 20px;
+ line-height: 20px;
+ color: #333;
+ margin-bottom: 5px;
}
-.jquery_plugin li a.tag:hover {
- background-color: #333;
+.plugin-title a {
+ color: #333;
+ text-decoration: none;
}
-/*----------[ versions table ]--------------------------------------------------
+/*----------[ Home page info sidebar ]----------------------------------------
+The new-new-CSS doesn't support a secondary bar - it has only #sidebar - so we
+unfortunately need to replicate some stuff from base.css here.
*/
-.jquery_plugin .versions table {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border-collapse: separate;
- border-spacing: 0;
- border-style: none;
- width: 100%;
-}
-.jquery_plugin .versions table th,
-.jquery_plugin .versions table td {
- border: 1px solid #ccc;
- border-top-style: none;
- padding: 8px 14px;
+.info-bar {
+ float: left;
+ position: relative;
+ width: 22%;
+ margin-left: -40px;
+ -moz-border-image: -moz-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ -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));
+ -webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ -o-border-image: -o-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ border-image: linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
+ padding: 3em 35px 3em 20px;
+ -webkit-box-shadow: inset 15px 0 5px -16px #e7e7e7;
+ box-shadow: inset 15px 0 5px -16px #e7e7e7;
+ background-image: -webkit-gradient(radial, 0% 50%, 0, 0% 50%, 80, color-stop(0%, #f2f2f2), color-stop(80%, #ffffff));
+ background-image: -webkit-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: -moz-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: -o-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: -ms-radial-gradient(right, #f2f2f2, #ffffff 80%);
+ background-image: radial-gradient(right, #f2f2f2, #ffffff 80%);
+ border: 0px;
+ border-right: 1px solid #efefef;
+}
+
+.info-bar h3 {
+ font: normal normal 20px/18px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ background-image: -webkit-gradient(linear, left bottom, right bottom, from(#efefef), to(#f3f3f3));
+ background-image: -moz-linear-gradient(360deg, #efefef 0%, #f3f3f3 100%);
+ margin-left: -20px;
+ margin-right: -35px;
+ padding: 12px 20px 12px 30px;
+ text-shadow: 0 1px 0 #ffffff;
}
-.jquery_plugin .versions table tbody tr:nth-child(even) td {
- background-color: #f2f2f2;
+.info-bar li {
+ padding-top: 2px;
+ padding-bottom: 5px;
+ padding-left: 20px;
+ line-height: 20px;
+ list-style-type: none;
+ background: url(images/bullet.png) no-repeat 0 8px;
+ text-shadow: 0 1px 0 #ffffff;
+ color: #b3b3b3;
}
-.jquery_plugin .versions table tbody tr:last-of-type td.version {
- border-bottom-left-radius: 8px;
+.info-bar li a {
+ color: #4d4d4d;
}
-.jquery_plugin .versions table tbody tr:last-of-type td.release-date {
- border-bottom-right-radius: 8px;
+.info-bar nav#secondary li {
+ background-image: none;
+ padding-left: 0;
}
-.jquery_plugin .versions table thead tr {
- border-radius: 8px 8px 0 0;
- background: black url('images/dark-grey-tile.png');
+.info-bar nav#secondary li.current {
+ background-color: #e2e2e2;
+ margin-left: -35px;
+ margin-right: -20px;
+ padding-left: 35px;
+ font-weight: bold;
}
+/*----------[ Individual plugin pages ]-------------------------------------*/
-
-.jquery_plugin .versions table thead th.version-head {
- border-top-left-radius: 8px;
+#content.jquery-plugin {
+ width: 71%; /* 71% | 29% */
+ padding: 1.6em 1em;
}
-.jquery_plugin .versions table thead th.release-date-head {
- border-top-right-radius: 8px;
+#content.jquery-plugin h2 {
+ margin-bottom: 15px;
}
-.jquery_plugin .versions table .version {
- border-right-style: none;
- font: bold 18px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- letter-spacing: -1px;
+#content.jquery-plugin article {
+ border-bottom: 0;
}
-.jquery_plugin .versions table .release-date {
- border-left-style: none;
- width: 20%;
+.jquery-plugin .block {
+ margin-bottom: 1.5em;
}
-.jquery_plugin .versions table thead th {
- border-style: none;
- color: white;
+.jquery-plugin h1.entry-title, h1.page-title {
+ margin: 0 0 .25em; /* 0.25 * 32px = 8px */
+ font: bold 33px/33px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
text-align: left;
- text-transform: uppercase;
- font: bold 12px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- padding-top: 10px;
- padding-bottom: 10px;
+ color: #d18f4f;
}
-/*----------[ related plugins ]-------------------------------------------------
-*/
-.jquery_plugin .related-plugins .box {
- border-radius: 4px;
- border: 1px solid #ccc;
- padding: 16px 20px;
+.jquery-plugin h1.page-title {
+ margin-bottom: 40px;
}
-.jquery_plugin .related-plugins h3 {
- font-size: 18px;
- line-height: 1.33em;
- color: #7f7f7f;
+.jquery-plugin .block ul,
+.jquery-plugin .block li {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
}
-.jquery_plugin .related-plugins ul {
- margin-left: 0px;
- list-style-type: none;
+.jquery-plugin p,
+.jquery-plugin dl,
+.jquery-plugin ol,
+.jquery-plugin ul,
+.jquery-plugin table {
+ margin-bottom: 1.6em; /* 1.6 * 15px = 24px */
}
-.jquery_plugin .related-plugins li {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- float: left;
- margin-bottom: 8px;
- padding-left: 16px;
- width: 33%;
+.jquery-plugin table {
+ border-radius: 8px;
}
-.jquery_plugin .related-plugins li:before,
-.jquery_plugin .plugin-metadata li:before,
-.sidebar li:before {
- text-indent: -1.6em;
- color: #e0e0e0;
+.jquery-plugin .attribution, p.info {
+ color: #808080;
+ font: 13px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ margin-top: -5px;
}
-/*----------[ general sidebar styles ]------------------------------------------
-*/
-.jquery_plugin .plugin-metadata .github-activity,
-.jquery_plugin .plugin-metadata .author-info,
-.jquery_plugin .plugin-metadata .maintainer-info,
-.jquery_plugin .plugin-metadata .licenses,
-.jquery_plugin .plugin-metadata .dependencies {
+p.info {
+ margin-top: 0;
+}
+
+/*----------[ Individual plugin page general sidebar styles ]---------------*/
+
+.jquery-plugin .github-activity,
+.jquery-plugin .author-info,
+.jquery-plugin .maintainer-info,
+.jquery-plugin .licenses,
+.jquery-plugin .dependencies {
color: #7f7f7f;
}
-.jquery_plugin .plugin-metadata .github-activity h2,
-.jquery_plugin .plugin-metadata .author-info h2,
-.jquery_plugin .plugin-metadata .maintainer-info h2,
-.jquery_plugin .plugin-metadata .licenses h2,
-.jquery_plugin .plugin-metadata .dependencies h2 {
+.jquery-plugin .github-activity h2,
+.jquery-plugin .author-info h2,
+.jquery-plugin .maintainer-info h2,
+.jquery-plugin .licenses h2,
+.jquery-plugin .dependencies h2 {
padding-left: 30px;
background: no-repeat left center;
text-shadow: 0 1px 0 white;
}
-.jquery_plugin .plugin-metadata h3,
-.sidebar h3 {
+.jquery-plugin h3 {
margin-bottom: 5px;
font-size: 1.4em;
color: #858585;
}
-.jquery_plugin .plugin-metadata h2 [class^="icon-"],
-.jquery_plugin .plugin-metadata h2 [class*=" icon-"],
-.sidebar h2 [class^="icon-"],
-.sidebar h2 [class*=" icon-"] {
+.jquery-plugin h2 [class^="icon-"],
+.jquery-plugin h2 [class*=" icon-"] {
display: inline-block;
margin-left: -30px;
margin-right: 6px;
@@ -343,18 +342,18 @@ p.info {
text-shadow: 0 1px 0 white;
}
-.jquery_plugin .plugin-metadata .github-activity .box {
+.jquery-plugin .github-activity .box {
border-radius: 3px;
border: 1px solid #ccc;
padding: 10px;
background-color: white;
}
-.jquery_plugin .plugin-metadata .github-activity .box p {
+.jquery-plugin .github-activity .box p {
margin: 0;
}
-.jquery_plugin .plugin-metadata .github-activity .box .info-block {
+.jquery-plugin .github-activity .box .info-block {
display: inline-block;
margin-right: 10px;
border-radius: 4px;
@@ -362,7 +361,7 @@ p.info {
min-width: 80px;
}
-.jquery_plugin .plugin-metadata .github-activity .box .info-block .number {
+.jquery-plugin .github-activity .box .info-block .number {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
background: black url('images/dark-grey-tile.png');
@@ -371,7 +370,7 @@ p.info {
font: bold 3em/1em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .plugin-metadata .github-activity .box .info-block .caption {
+.jquery-plugin .github-activity .box .info-block .caption {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 4px 10px;
@@ -382,31 +381,9 @@ p.info {
letter-spacing: 1px;
}
-.jquery_plugin .plugin-metadata ul,
-.sidebar ul {
- margin-left: 25px;
- list-style-type: none;
-}
-
-.jquery_plugin .plugin-metadata li,
-.sidebar li {
- padding-left: 16px;
- text-shadow: 0 1px 0 white;
-}
-
-.sidebar li {
- color: #b3b3b3;
- padding-bottom: 9px;
-}
-
-.jquery_plugin .plugin-metadata li.icon-caret-right:before,
-.sidebar li.icon-caret-right:before {
- font-size: .9em;
-}
+/*----------[ Individual plugin page sidebar toolbox ]----------------------*/
-/*----------[ toolbox ]---------------------------------------------------------
-*/
-.jquery_plugin .toolbox {
+.jquery-plugin .toolbox {
border: 1px solid black;
border-radius: 8px;
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
@@ -414,58 +391,58 @@ p.info {
background-color: black;
}
-.jquery_plugin .toolbox > .inner {
+.jquery-plugin .toolbox > .inner {
border: 1px solid #666;
border-radius: 8px;
background-color: #202020;
color: white;
}
-.jquery_plugin .toolbox header {
+.jquery-plugin .toolbox header {
padding: 10px 15px;
}
-.jquery_plugin .toolbox header p {
+.jquery-plugin .toolbox header p {
margin: 0;
}
-.jquery_plugin .toolbox header .caption {
+.jquery-plugin .toolbox header .caption {
color: #999;
font: 14px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .toolbox header .version-info {
+.jquery-plugin .toolbox header .version-info {
float: left;
width: 30%;
}
-.jquery_plugin .toolbox header .release-info {
+.jquery-plugin .toolbox header .release-info {
float: right;
width: 70%;
}
-.jquery_plugin .toolbox header .release-info {
+.jquery-plugin .toolbox header .release-info {
text-align: right;
}
-.jquery_plugin .toolbox header .version-number, .jquery_plugin .toolbox header .date {
+.jquery-plugin .toolbox header .version-number, .jquery-plugin .toolbox header .date {
font: bold 1.25em/1.2em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .toolbox header .version-number {
+.jquery-plugin .toolbox header .version-number {
font-size: 1.9em;
letter-spacing: -2px;
line-height: .9em;
}
-.jquery_plugin .toolbox .body {
+.jquery-plugin .toolbox .body {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
padding: 12px 15px 5px;
background: url('images/dark-grey-tile.png');
}
-.jquery_plugin .toolbox a.download {
+.jquery-plugin .toolbox a.download {
display: block;
margin-bottom: 1.2em;
border-radius: 5px;
@@ -479,7 +456,7 @@ p.info {
font: bold 1.4em/1.6em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
-.jquery_plugin .toolbox a.download .inner-wrapper {
+.jquery-plugin .toolbox a.download .inner-wrapper {
display: block;
border-radius: 5px;
border: 1px solid #e1b68c;
@@ -487,12 +464,12 @@ p.info {
padding: 0 5px 0 32px;
}
-.jquery_plugin .toolbox a.download:hover .inner-wrapper {
+.jquery-plugin .toolbox a.download:hover .inner-wrapper {
background-color: #cc8540;
}
-.jquery_plugin .toolbox a.download .inner-wrapper [class^="icon-"],
-.jquery_plugin .toolbox a.download .inner-wrapper [class*=" icon-"] {
+.jquery-plugin .toolbox a.download .inner-wrapper [class^="icon-"],
+.jquery-plugin .toolbox a.download .inner-wrapper [class*=" icon-"] {
margin-left: -25px;
margin-right: 5px;
color: #81502e;
@@ -502,7 +479,7 @@ p.info {
position: relative;
}
-.jquery_plugin .toolbox [class^="icon-"], .jquery_plugin .toolbox [class*=" icon-"] {
+.jquery-plugin .toolbox [class^="icon-"], .jquery-plugin .toolbox [class*=" icon-"] {
margin-left: -25px;
margin-right: 7px;
width: 25px;
@@ -511,13 +488,13 @@ p.info {
text-shadow: 0 -1px black;
}
-.jquery_plugin .toolbox [class^="icon-"]:before, .jquery_plugin .toolbox [class*=" icon-"]:before {
+.jquery-plugin .toolbox [class^="icon-"]:before, .jquery-plugin .toolbox [class*=" icon-"]:before {
width: 25px;
text-align: center;
font-size: 1.2em;
}
-.jquery_plugin .toolbox a.other-link {
+.jquery-plugin .toolbox a.other-link {
display: block;
margin-bottom: 0.8em;
background: no-repeat 8px center;
@@ -529,100 +506,145 @@ p.info {
padding-left: 32px;
}
-.jquery_plugin .toolbox a.other-link:hover {
+.jquery-plugin .toolbox a.other-link:hover {
text-decoration: underline;
}
-/*----------[ Home ]--------------------------------------------------------*/
+/*----------[ Individual plugin page tags ]---------------------------------*/
-.home .sidebar {
- width: 25%
+#content.jquery-plugin .tags ul {
+ margin: 0;
}
-.home .sidebar.left {
- left: 0px;
- position: absolute;
+#content.jquery-plugin .tags li {
+ display: inline-block;
+ width: auto;
+ margin-right: 10px;
+ padding: 0;
+ background: none;
}
-.home #content {
- position: relative;
- margin-left: 27%;
- width: 46%;
- float: left;
- margin-bottom: 30px;
+.jquery-plugin li a.tag[class^="icon-"]:before,
+.jquery-plugin li a.tag[class*=" icon-"]:before {
+ width: 20px;
+ text-align: left;
+ color: #8ccffa;
+}
+#content.jquery-plugin li a.tag {
+ display: block;
+ width: auto;
+ padding: 2px 7px 2px 7px;
+ margin-bottom: 10px;
+ border-radius: 3px;
+ text-decoration: none;
+ background-color: #305e91;
+ color: white;
}
-.home .sidebar ul {
- margin-left: 25px;
+.jquery-plugin li a.tag:hover {
+ background-color: #333;
}
-.home .sidebar li {
- color: #b3b3b3;
- padding-bottom: 7px;
+/*----------[ Individual plugin page versions table ]-----------------------*/
+
+.jquery-plugin .versions table {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ border-collapse: separate;
+ border-spacing: 0;
+ border-style: none;
+ width: 100%;
}
-.home .sidebar li.icon-caret-right:before {
- font-size: 10px;
- color: #ccc;
+.jquery-plugin .versions table th,
+.jquery-plugin .versions table td {
+ border: 1px solid #ccc;
+ border-top-style: none;
+ padding: 8px 14px;
}
-.home #content h3 {
- font-size: 32px;
- text-align: center;
- color: #e18d3b;
- margin-bottom: 30px;
+.jquery-plugin .versions table tbody tr:nth-child(even) td {
+ background-color: #f2f2f2;
}
-#content article {
- border-bottom: 1px solid #ccc;
- margin-bottom: 20px;
- padding-bottom: 10px;
+.jquery-plugin .versions table tbody tr:last-of-type td.version {
+ border-bottom-left-radius: 8px;
}
-.plugin-title {
- font-size: 20px;
- line-height: 20px;
- color: #333;
- margin-bottom: 5px;
+.jquery-plugin .versions table tbody tr:last-of-type td.release-date {
+ border-bottom-right-radius: 8px;
}
-.plugin-title a {
- color: #333;
- text-decoration: none;
+.jquery-plugin .versions table thead tr {
+ border-radius: 8px 8px 0 0;
+ background: black url('images/dark-grey-tile.png');
}
-#content article p {
- float: left;
- width: 70%;
+.jquery-plugin .versions table thead th.version-head {
+ border-top-left-radius: 8px;
}
-#content article .action {
- float: right;
- width: 25%;
- margin-left: 5%;
+.jquery-plugin .versions table thead th.release-date-head {
+ border-top-right-radius: 8px;
}
-.home #content article .action p.date {
- color: #999;
- font-size: 11px;
- line-height: 11px;
- text-align: center;
- width: 100%;
+.jquery-plugin .versions table .version {
+ border-right-style: none;
+ font: bold 18px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ letter-spacing: -1px;
}
-.home #content a.button,
-#content article a.button {
- margin-bottom: 5px;
- float: left;
- width: 90%;
- padding-left: 5%;
- padding-right: 5%;
- text-align: center;
+.jquery-plugin .versions table .release-date {
+ border-left-style: none;
+ width: 20%;
}
+.jquery-plugin .versions table thead th {
+ border-style: none;
+ color: white;
+ text-align: left;
+ text-transform: uppercase;
+ font: bold 12px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ padding-top: 10px;
+ padding-bottom: 10px;
+}
+/*----------[ Individual plugin page related plugins ]----------------------*/
+.jquery-plugin .related-plugins .box {
+ border-radius: 4px;
+ border: 1px solid #ccc;
+ padding: 16px 20px;
+}
+
+.jquery-plugin .related-plugins h3 {
+ font-size: 18px;
+ line-height: 1.33em;
+ color: #7f7f7f;
+}
+
+.jquery-plugin .related-plugins ul {
+ margin-left: 0px;
+ list-style-type: none;
+}
+
+.jquery-plugin .related-plugins li {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ float: left;
+ margin-bottom: 8px;
+ padding-left: 16px;
+ width: 33%;
+}
+
+.jquery-plugin .related-plugins li:before,
+.jquery-plugin .plugin-metadata li:before {
+ text-indent: -1.6em;
+ color: #e0e0e0;
+}
/*----------[ Pagination ]----------------------------------------------------*/
@@ -639,20 +661,20 @@ p.info {
/*----------[ IE hacks ]------------------------------------------------------*/
-.lte9 .jquery_plugin h1.entry-title {
+.lte9 .jquery-plugin h1.entry-title {
background: transparent;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
-.lte9 .jquery_plugin .tags li a {
+.lte9 .jquery-plugin .tags li a {
height: 24px;
}
-
-
+/*----------[ Media queries ]------------------------------------------------------*/
+/*
@media all and (max-width: 1100px) {
- .jquery_plugin .plugin-metadata,
+ .jquery-plugin .plugin-metadata,
.sidebar {
width: 280px;
}
@@ -686,7 +708,7 @@ p.info {
@media all and (max-width: 768px) {
- .jquery_plugin .plugin-metadata,
+ .jquery-plugin .plugin-metadata,
.home .sidebar,
.home .sidebar.left,
.sidebar,
@@ -744,12 +766,12 @@ p.info {
@media all and (max-width: 660px) {
- #banner h1 {
+ #banner-secondary h1 {
font-size: 60px;
line-height: 60px;
}
- #banner h2 {
+ #banner-secondary h2 {
font-size: 40px;
line-height: 35px;
}
@@ -770,7 +792,7 @@ p.info {
@media all and (max-width: 480px) {
- #banner h1 {
+ #banner-secondary h1 {
font-size: 43px;
line-height: 43px;
}
@@ -796,11 +818,8 @@ p.info {
width: 90%;
}
- .home #content article .action a.button {
- width: 90%;
- }
-
#content h1.page-title {
text-align: center;
}
}
+*/
\ No newline at end of file
From d9c52da8020a544882121aadd8fea4e4328275a4 Mon Sep 17 00:00:00 2001
From: David Schnur
Date: Tue, 16 Oct 2012 13:14:04 -0400
Subject: [PATCH 3/5] Migrated plugin tags and search to new-new-css.
Fixed plugin title and info styles, plus various minor fixes.
---
themes/plugins.jquery.com/search.php | 2 +-
themes/plugins.jquery.com/style.css | 69 ++++++++++--------
themes/plugins.jquery.com/tag.php | 104 +++++++++++++--------------
3 files changed, 92 insertions(+), 83 deletions(-)
diff --git a/themes/plugins.jquery.com/search.php b/themes/plugins.jquery.com/search.php
index ac322f2d..217199dc 100755
--- a/themes/plugins.jquery.com/search.php
+++ b/themes/plugins.jquery.com/search.php
@@ -14,7 +14,7 @@
diff --git a/themes/plugins.jquery.com/style.css b/themes/plugins.jquery.com/style.css
index 2053caac..cb2d904c 100755
--- a/themes/plugins.jquery.com/style.css
+++ b/themes/plugins.jquery.com/style.css
@@ -81,7 +81,6 @@ h4 [class*=" icon-"] {
#content article p {
float: left;
width: 70%;
- margin: 1em 0;
}
#content article .action {
@@ -98,6 +97,22 @@ h4 [class*=" icon-"] {
text-align: center;
}
+#content .plugin-title {
+ font-size: 20px;
+ line-height: 20px;
+ color: #333;
+ margin-bottom: 5px;
+}
+
+#content .plugin-title a {
+ color: #333;
+ text-decoration: none;
+}
+
+#content .plugin-title a:hover {
+ text-decoration: underline;
+}
+
/*----------[ Home page ]---------------------------------------------------*/
.home #banner-secondary p {
@@ -158,27 +173,18 @@ h4 [class*=" icon-"] {
padding: 0;
}
+.home #content article p {
+ margin: 1em 0;
+}
+
.home #content article .action p.date {
width: 100%;
- margin: 1em 0;
line-height: 11px;
text-align: center;
font-size: 11px;
color: #999;
}
-.plugin-title {
- font-size: 20px;
- line-height: 20px;
- color: #333;
- margin-bottom: 5px;
-}
-
-.plugin-title a {
- color: #333;
- text-decoration: none;
-}
-
/*----------[ Home page info sidebar ]----------------------------------------
The new-new-CSS doesn't support a secondary bar - it has only #sidebar - so we
unfortunately need to replicate some stuff from base.css here.
@@ -229,9 +235,14 @@ unfortunately need to replicate some stuff from base.css here.
}
.info-bar li a {
+ text-decoration: none;
color: #4d4d4d;
}
+.info-bar li a:hover {
+ text-decoration: underline;
+}
+
.info-bar nav#secondary li {
background-image: none;
padding-left: 0;
@@ -249,7 +260,6 @@ unfortunately need to replicate some stuff from base.css here.
#content.jquery-plugin {
width: 71%; /* 71% | 29% */
- padding: 1.6em 1em;
}
#content.jquery-plugin h2 {
@@ -265,14 +275,12 @@ unfortunately need to replicate some stuff from base.css here.
}
.jquery-plugin h1.entry-title, h1.page-title {
- margin: 0 0 .25em; /* 0.25 * 32px = 8px */
- font: bold 33px/33px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
- text-align: left;
+ font: bold 33px/33px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
color: #d18f4f;
}
-.jquery-plugin h1.page-title {
- margin-bottom: 40px;
+.jquery-plugin h1.entry-title {
+ margin: 0 0 .25em; /* 0.25 * 32px = 8px */
}
.jquery-plugin .block ul,
@@ -294,9 +302,10 @@ unfortunately need to replicate some stuff from base.css here.
border-radius: 8px;
}
-.jquery-plugin .attribution, p.info {
+#content.jquery-plugin .attribution, p.info {
+ float: none;
color: #808080;
- font: 13px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: 13px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
margin-top: -5px;
}
@@ -367,7 +376,7 @@ p.info {
background: black url('images/dark-grey-tile.png');
padding: 2px 10px;
color: white;
- font: bold 3em/1em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: bold 3em/1em Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
.jquery-plugin .github-activity .box .info-block .caption {
@@ -377,7 +386,7 @@ p.info {
background-color: #8ccffa;
color: white;
text-transform: uppercase;
- font: bold 11px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: bold 11px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
letter-spacing: 1px;
}
@@ -408,7 +417,7 @@ p.info {
.jquery-plugin .toolbox header .caption {
color: #999;
- font: 14px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: 14px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
.jquery-plugin .toolbox header .version-info {
@@ -426,7 +435,7 @@ p.info {
}
.jquery-plugin .toolbox header .version-number, .jquery-plugin .toolbox header .date {
- font: bold 1.25em/1.2em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: bold 1.25em/1.2em Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
.jquery-plugin .toolbox header .version-number {
@@ -453,7 +462,7 @@ p.info {
color: white;
text-shadow: 0 -1px #bc7531, 0 1px #dca977;
text-decoration: none;
- font: bold 1.4em/1.6em "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: bold 1.4em/1.6em Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}
.jquery-plugin .toolbox a.download .inner-wrapper {
@@ -500,7 +509,7 @@ p.info {
background: no-repeat 8px center;
color: white;
text-decoration: none;
- font: 18px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: 18px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
padding-top: 0;
padding-bottom: 0;
padding-left: 32px;
@@ -592,7 +601,7 @@ p.info {
.jquery-plugin .versions table .version {
border-right-style: none;
- font: bold 18px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: bold 18px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
letter-spacing: -1px;
}
@@ -606,7 +615,7 @@ p.info {
color: white;
text-align: left;
text-transform: uppercase;
- font: bold 12px "proxima-nova", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+ font: bold 12px Proxima-Nova, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
padding-top: 10px;
padding-bottom: 10px;
}
diff --git a/themes/plugins.jquery.com/tag.php b/themes/plugins.jquery.com/tag.php
index a7b332fc..51d55fbf 100755
--- a/themes/plugins.jquery.com/tag.php
+++ b/themes/plugins.jquery.com/tag.php
@@ -1,52 +1,52 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Sorry, but no results were found for the requested archive.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Sorry, but no results were found for the requested archive.
+
+
+
+
+
+
+
+
+
+
+
From a7eb7a1da39c4961e6bafd9eaa35a66c8e615f9f Mon Sep 17 00:00:00 2001
From: David Schnur
Date: Tue, 16 Oct 2012 14:10:45 -0400
Subject: [PATCH 4/5] Migrated media queries to new-new-css.
Updated media queries to work with the new markup, plus additional
tweaks to make scaling smoother between 480px and 900px.
---
themes/plugins.jquery.com/index.php | 124 ++++++++++++++--------------
themes/plugins.jquery.com/style.css | 115 ++++++++++++--------------
2 files changed, 115 insertions(+), 124 deletions(-)
diff --git a/themes/plugins.jquery.com/index.php b/themes/plugins.jquery.com/index.php
index 39aed8b7..6cdceb6a 100755
--- a/themes/plugins.jquery.com/index.php
+++ b/themes/plugins.jquery.com/index.php
@@ -2,75 +2,75 @@
-
-
Plugins Make jQuery More Awesomer
-
Level up your project, not your grammar
-
-
+
+
Plugins Make jQuery More Awesomer
+
Level up your project, not your grammar
+
+
- 0 ) );
- foreach( $toplvlpages as $post ) {
- setup_postdata($post);
- if ( $post->post_name !== 'update' ) {
- get_template_part('excerpt', 'index');
+ $toplvlpages = get_pages( array( 'parent' => 0 ) );
+ foreach( $toplvlpages as $post ) {
+ setup_postdata($post);
+ if ( $post->post_name !== 'update' ) {
+ get_template_part('excerpt', 'index');
+ }
}
- }
-?>
+ ?>
-
+
+
Popular Tags
+
'count',
+ 'order' => 'DESC',
+ 'number' => 10
+ );
+ $tags = get_tags( $tags_args );
+ foreach ( $tags as $tag ) {
+ echo
+ '' .
+ '' .
+ $tag->name . ' ' .
+ ' (' . $tag->count . ')' .
+ ' ';
+ }
+ ?>
+
-
-
Popular Tags
-
'count',
- 'order' => 'DESC',
- 'number' => 10
- );
- $tags = get_tags( $tags_args );
- foreach ( $tags as $tag ) {
- echo
- '' .
- '' .
- $tag->name . ' ' .
- ' (' . $tag->count . ')' .
- ' ';
- }
- ?>
-
+
+
New Plugins
+ 'jquery_plugin',
+ 'post_parent' => 0
+ ));
+ while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
+ ?>
+
+
+
+
+
+
+
+
+
-
-
New Plugins
- 'jquery_plugin',
- 'post_parent' => 0
- ));
- while ( $new_plugins->have_posts() ) : $new_plugins->the_post();
- ?>
-
-
-
-
-
-
-
-
-
+
diff --git a/themes/plugins.jquery.com/style.css b/themes/plugins.jquery.com/style.css
index cb2d904c..44903baa 100755
--- a/themes/plugins.jquery.com/style.css
+++ b/themes/plugins.jquery.com/style.css
@@ -655,7 +655,7 @@ p.info {
color: #e0e0e0;
}
-/*----------[ Pagination ]----------------------------------------------------*/
+/*----------[ Pagination ]--------------------------------------------------*/
.nav-previous {
float: left;
@@ -668,7 +668,7 @@ p.info {
width: 45%;
}
-/*----------[ IE hacks ]------------------------------------------------------*/
+/*----------[ IE hacks ]----------------------------------------------------*/
.lte9 .jquery-plugin h1.entry-title {
background: transparent;
@@ -679,31 +679,23 @@ p.info {
height: 24px;
}
-/*----------[ Media queries ]------------------------------------------------------*/
-/*
-@media all and (max-width: 1100px) {
-
- .jquery-plugin .plugin-metadata,
- .sidebar {
- width: 280px;
- }
-
-}
+/*----------[ Media queries ]-----------------------------------------------*/
@media all and (max-width: 1000px) {
- #content {
+ #content, .home #content {
width: 65%;
+ margin: 0;
}
- .home #content {
- width: 65%;
- margin-left: 3%;
+ #sidebar, .home #sidebar, .home .info-bar {
+ width: 220px;
}
- .home .sidebar.left {
- position: relative;
+ .home .info-bar {
float: right;
+ margin-left: 0;
+ margin-right: -40px;
}
}
@@ -712,21 +704,36 @@ p.info {
#content {
width: 60%;
}
-
}
@media all and (max-width: 768px) {
- .jquery-plugin .plugin-metadata,
- .home .sidebar,
- .home .sidebar.left,
- .sidebar,
- #content {
+ .home #banner-secondary h1 {
+ font-size: 42px;
+ line-height: 42px;
+ }
+
+ .home #banner-secondary p {
+ font-size: 42px;
+ line-height: 42px;
+ padding-left: 5%;
+ padding-right: 5%;
+ }
+
+ .home #banner-secondary .searchform {
+ font-size: 16px;
+ }
+
+ #sidebar, .info-bar, #content,
+ .home #sidebar, .home .info-bar, .home #content {
width: 100%;
padding: 0;
clear: both;
float: none;
+ border-top: none;
border-left: none;
+ border-right: none;
+ border-bottom: none;
-moz-border-image: none;
-webkit-border-image: none;
-webkit-border-image: none;
@@ -744,45 +751,25 @@ p.info {
margin-bottom: 20px;
}
- .home #content {
- width: 100%;
- margin: 0;
- padding-left: 5%;
- padding-right: 5%;
- margin-bottom: 30px;
- }
-
- .home .sidebar.left {
- float: left;
- width: 45%;
- clear: none;
- margin-left: 5%;
- }
-
- .home .sidebar.right {
- float: right;
- width: 45%;
- clear: none;
- margin-right: 5%;
+ #sidebar h3, .home #sidebar h3,
+ .info-bar h3, .home .info-bar h3 {
+ margin-left: -20px;
+ margin-right: -20px;
}
-
- #container #body .inner {
- padding-left: 1.2em;
- padding-right: 1.2em;
- }
-
}
@media all and (max-width: 660px) {
- #banner-secondary h1 {
- font-size: 60px;
- line-height: 60px;
+ .home #banner-secondary h1 {
+ font-size: 36px;
+ line-height: 36px;
}
- #banner-secondary h2 {
- font-size: 40px;
- line-height: 35px;
+ .home #banner-secondary p {
+ font-size: 36px;
+ line-height: 36px;
+ padding-left: 5%;
+ padding-right: 5%;
}
.notify p {
@@ -801,13 +788,18 @@ p.info {
@media all and (max-width: 480px) {
- #banner-secondary h1 {
- font-size: 43px;
- line-height: 43px;
+ .home #banner-secondary h1 {
+ font-size: 32px;
+ line-height: 32px;
+ }
+
+ .home #banner-secondary p {
+ font-size: 32px;
+ line-height: 32px;
}
- .home .sidebar.left,
- .home .sidebar.right {
+ .home #sidebar,
+ .home .info-bar {
width: 90%;
margin-left: 5%;
margin-right: 5%;
@@ -831,4 +823,3 @@ p.info {
text-align: center;
}
}
-*/
\ No newline at end of file
From 78d45e9a8640548fdbf83ca3de24d2c98d744a49 Mon Sep 17 00:00:00 2001
From: David Schnur
Date: Tue, 16 Oct 2012 14:26:21 -0400
Subject: [PATCH 5/5] Additional media fixes for the plugin info page.
Fixed various bugs (which existed prior to new-new-css) in the way the
single-plugin info page scaled to smaller screen sizes.
---
themes/plugins.jquery.com/style.css | 32 ++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/themes/plugins.jquery.com/style.css b/themes/plugins.jquery.com/style.css
index 44903baa..5173fee6 100755
--- a/themes/plugins.jquery.com/style.css
+++ b/themes/plugins.jquery.com/style.css
@@ -681,6 +681,24 @@ p.info {
/*----------[ Media queries ]-----------------------------------------------*/
+@media all and (max-width: 1200px) {
+
+ #sidebar.jquery-plugin p.date {
+ font-size: 16px;
+ }
+}
+
+@media all and (max-width: 1100px) {
+
+ #sidebar.jquery-plugin a.download {
+ font-size: 16px;
+ }
+
+ #sidebar.jquery-plugin p.date {
+ font-size: 14px;
+ }
+}
+
@media all and (max-width: 1000px) {
#content, .home #content {
@@ -692,6 +710,10 @@ p.info {
width: 220px;
}
+ #sidebar.jquery-plugin a.download {
+ font-size: 12px;
+ }
+
.home .info-bar {
float: right;
margin-left: 0;
@@ -724,7 +746,7 @@ p.info {
font-size: 16px;
}
- #sidebar, .info-bar, #content,
+ #sidebar, .info-bar, #content, #content.jquery-plugin,
.home #sidebar, .home .info-bar, .home #content {
width: 100%;
padding: 0;
@@ -756,6 +778,14 @@ p.info {
margin-left: -20px;
margin-right: -20px;
}
+
+ #sidebar.jquery-plugin a.download {
+ font-size: 20px;
+ }
+
+ #sidebar.jquery-plugin p.date {
+ font-size: 18px;
+ }
}
@media all and (max-width: 660px) {