Skip to content

Commit dace041

Browse files
sigorillakswedberg
authored andcommitted
CSS refactoring and style fixes for secondary banners. Fixes jquerygh-373
1 parent 8a58895 commit dace041

File tree

19 files changed

+350
-323
lines changed

19 files changed

+350
-323
lines changed

themes/api.jquery.com/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ Template: jquery
44
*/
55

66
a {
7-
color: #0769AD;
7+
color: #0769ad;
88
}
99

1010
.signatures li h4 {
11-
background: #25649F;
11+
background: #25649f;
1212
}
1313

1414
.version-details a,
1515
.returns a {
16-
color: #7ACEF4;
16+
color: #7acef4;
1717
}
1818

1919
.versionAdded a {
20-
color: #7ACEF4;
20+
color: #7acef4;
2121
}
2222

2323
#content figure {

themes/api.jquerymobile.com/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ a {
99

1010
.version-details a,
1111
.returns a {
12-
color: #3EB249;
12+
color: #3eb249;
1313
}
1414

1515
.signatures li h4 {

themes/api.jqueryui.com/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Template: jquery
44
*/
55

66
a {
7-
color: #B24926;
7+
color: #b24926;
88
}
99

1010
.version-details a,
1111
.returns a {
12-
color: #FAA523;
12+
color: #faa523;
1313
}
1414

1515
.signatures li h4 {
16-
background: #B24926;
16+
background: #b24926;
1717
}

themes/api.qunitjs.com/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Template: jquery
44
*/
55

66
a {
7-
color: #730E00;
7+
color: #730e00;
88
}
99

1010
.signatures li h4 {
11-
background: #390F39;
11+
background: #390f39;
1212
}

themes/brand.jquery.org/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ hr {
9898

9999
/* Links */
100100
a {
101-
color: #032A42;
101+
color: #032a42;
102102
}
103103

104104
/* Buttons */

themes/codeorigin.jquery.com/style.css

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

66
a,
77
.title {
8-
color: #B24926;
8+
color: #b24926;
99
}
1010

1111
#content a:hover {

themes/contribute.jquery.org/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ em.color {
3838
.example h3.ignore-example {
3939
background-color: #fff;
4040
margin:0 0 10px 0;
41-
padding: 0px;
42-
border-top-left-radius: 0px;
43-
border-top-right-radius: 0px;
41+
padding: 0;
42+
border-top-left-radius: 0;
43+
border-top-right-radius: 0;
4444
}
4545

4646
.example #banner-secondary {

themes/events.jquery.org/index.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php get_header(); ?>
22

3-
<div id="banner-secondary" class="large-banner">
4-
<div class="banner-text">
5-
<h1>jQuery is better with friends.</h1>
6-
<p>There are loads of events big and small.</p>
7-
</div>
8-
</div>
9-
103
<div class="content-full full-width twelve columns">
114
<div id="content">
5+
<div id="banner-secondary" class="large-banner">
6+
<div class="banner-text">
7+
<h1>jQuery is better with friends.</h1>
8+
<p>There are loads of events big and small.</p>
9+
</div>
10+
</div>
11+
1212
<?php if ( count( $events[ 'future' ] ) === 0 ) : ?>
1313
<p>
1414
Unfortunately there are no upcoming events right now.

themes/events.jquery.org/style.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Template: jquery
66
#banner-secondary.large-banner {
77
background-image: url("/resources/images/banner-events-bkg.jpg");
88
background-repeat: no-repeat;
9-
margin: -20px 0 20px;
109
padding: 85px 0;
1110
}
1211

@@ -21,7 +20,7 @@ Template: jquery
2120
width: 49%;
2221
margin-right: 2%;
2322
margin-bottom: 2%;
24-
padding:3% 0;
23+
padding: 3% 0;
2524
text-align: center;
2625
background-position: center center;
2726
background-repeat: no-repeat;
@@ -38,7 +37,6 @@ Template: jquery
3837
padding-bottom: 5%;
3938
padding-left: 2%;
4039
padding-right: 2%;
41-
4240
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.51);
4341
}
4442

@@ -110,8 +108,7 @@ a.past-conference-grid p {
110108
padding-right: 2%;
111109
}
112110

113-
#content a.past-conference-grid:hover
114-
{
115-
background-color: #bcbcbc;
116-
}
111+
#content a.past-conference-grid:hover {
112+
background-color: #bcbcbc;
113+
}
117114

themes/jquery.com/style.css

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Template: jquery
66

77
a,
88
.title {
9-
color: #B24926;
9+
color: #b24926;
1010
}
1111
#content a:hover {
1212
color: #333;
@@ -23,8 +23,8 @@ a,
2323
color: #b3b3b3;
2424
}
2525
#banner-secondary h3 {
26-
color: #7ACEF4;
27-
margin-bottom:0.5em;
26+
color: #7acef4;
27+
margin-bottom: 0.5em;
2828
}
2929

3030
#banner-secondary .features-box p {
@@ -40,13 +40,13 @@ a,
4040
overflow: hidden;
4141
}
4242
.lightweight-footprint .feature-box-image {
43-
background: url('i/feature-sprites.png') 0px 0px no-repeat;
43+
background: url('i/feature-sprites.png') 0 0 no-repeat;
4444
}
4545
.css3-compliant .feature-box-image{
46-
background: url('i/feature-sprites.png') -139px 0px no-repeat;
46+
background: url('i/feature-sprites.png') -139px 0 no-repeat;
4747
}
4848
.cross-browser .feature-box-image{
49-
background: url('i/feature-sprites.png') -278px 0px no-repeat;
49+
background: url('i/feature-sprites.png') -278px 0 no-repeat;
5050
transition: all 0.4s;
5151
position: relative;
5252
z-index: 10;
@@ -66,24 +66,24 @@ a,
6666
margin-top: 1em;
6767
}
6868
#banner-secondary .download-options a {
69-
display:block;
69+
display: block;
7070
}
7171
#banner-secondary .download-main .button {
7272
float: none;
73-
box-shadow: 0px 0px 20px rgba(209, 143, 79, 0.6);
73+
box-shadow: 0 0 20px rgba(209, 143, 79, 0.6);
7474
border-radius: 0;
7575
border: none;
7676
transition: all 1s;
7777
}
7878
#banner-secondary .download-main .button:hover {
79-
box-shadow: 0px 0px 25px rgba(209, 143, 79, 0.9);
79+
box-shadow: 0 0 25px rgba(209, 143, 79, 0.9);
8080
}
8181
#content #banner-secondary .download-main > a {
82-
display:block;
82+
display: block;
8383
padding: 0 0 .5em 0;
8484
font-size: 2em;
8585
width: 100%;
86-
text-align:center;
86+
text-align: center;
8787
text-decoration: none;
8888
line-height: 0.8em;
8989
}
@@ -92,13 +92,13 @@ a,
9292
font-size: 0.6em;
9393
}
9494
#content #banner-secondary .download-main > a span.download {
95-
background: url('i/download.png') 0px 0px;
95+
background: url('i/download.png') 0 0;
9696
width: 44px;
97-
height:37px;
97+
height: 37px;
9898
position: relative;
9999
top: 1em;
100-
display:inline-block;
101-
margin-right:0.5em;
100+
display: inline-block;
101+
margin-right: 0.5em;
102102
}
103103

104104
.resources {
@@ -166,7 +166,7 @@ a,
166166

167167
/* Browser Support */
168168

169-
#support-matrix {
169+
#content #support-matrix {
170170
width: 100%;
171171
margin: 0 auto 1em;
172172
}

0 commit comments

Comments
 (0)