Skip to content

Commit 7a3d3cb

Browse files
committed
style download button and links, clean up styles and add support for smaller resolutions
1 parent 8a630c1 commit 7a3d3cb

File tree

2 files changed

+69
-47
lines changed

2 files changed

+69
-47
lines changed

themes/jquery.com/i/download.png

1.47 KB
Loading

themes/jquery.com/style.css

+69-47
Original file line numberDiff line numberDiff line change
@@ -8,86 +8,108 @@ a,
88
.title {
99
color: #B24926;
1010
}
11-
1211
#content a:hover {
1312
color: #333;
1413
}
1514

15+
1616
#banner-secondary {
17-
background: #222;
17+
background: #222;
18+
position: relative;
19+
}
20+
#banner-secondary a {
21+
color: #b3b3b3;
1822
}
19-
#banner-secondary .feature-bar {
20-
background: #111;
23+
#banner-secondary h3 {
24+
color: #7ACEF4;
25+
margin-bottom:0.5em;
26+
}
27+
#banner-secondary .features-box {
28+
width:60%;
29+
float: right;
2130
}
2231
.feature-box {
23-
float:left;
24-
width: 20%;
32+
float:left;
33+
width: 33%;
34+
text-align: center;
35+
padding: 0% 2%;
2536
}
26-
.feature-bar .feature-box-image {
27-
width: 120px;
28-
height: 107px;
29-
overflow: hidden;
37+
#banner-secondary .features-box p {
38+
font-size: .8em;
39+
line-height: 1em;
40+
padding: 0;
41+
}
42+
.features-box .feature-box-image {
43+
margin: 0 auto 1em auto;
44+
width: 120px;
45+
height: 107px;
46+
overflow: hidden;
3047
}
3148
.lightweight-footprint .feature-box-image {
32-
background: url('i/feature-sprites.png') 0px 0px no-repeat;
49+
background: url('i/feature-sprites.png') 0px 0px no-repeat;
3350
}
3451
.css3-compliant .feature-box-image{
35-
background: url('i/feature-sprites.png') -139px 0px no-repeat;
52+
background: url('i/feature-sprites.png') -139px 0px no-repeat;
3653
}
3754
.cross-browser .feature-box-image{
38-
background: url('i/feature-sprites.png') -278px 0px no-repeat;
55+
background: url('i/feature-sprites.png') -278px 0px no-repeat;
3956
}
4057

41-
42-
4358
#banner-secondary p.intro {
4459
padding: 0;
4560
}
4661

47-
#banner-secondary .download-box {
48-
border: 1px solid #aaa;
49-
background: #333;
50-
background: -moz-linear-gradient(left, #333 0%, #444 100%);
51-
background: -webkit-linear-gradient(left, #333 0%, #444 100%);
52-
background: -o-linear-gradient(left, #333 0%, #444 100%);
53-
background: linear-gradient(to right, #333 0%, #444 100%);
62+
#banner-secondary .downloads-box {
5463
float: right;
5564
width: 40%;
5665
text-align: center;
57-
font-size: 20px;
58-
padding: 10px;
59-
border-radius: 5px;
60-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
6166
}
6267

63-
#banner-secondary .download-box h2 {
68+
#banner-secondary .downloads-box h2 {
6469
color: #71D1FF;
6570
}
6671

67-
#banner-secondary .download-box .button {
72+
#banner-secondary .downloads-box .button {
6873
float: none;
6974
display: block;
7075
margin-top: 15px;
7176
}
77+
#banner-secondary .downloads-box span.download {
78+
background: url('i/download.png') 0px 0px;
79+
width: 44px;
80+
height:37px;
81+
position: relative;
82+
top: 1em;
83+
display:inline-block;
84+
margin-right:0.5em;
85+
}
7286

73-
#banner-secondary .download-box p {
87+
#banner-secondary .downloads-box p {
7488
margin: 15px 0 5px;
7589
}
7690

77-
#banner-secondary .download-option {
78-
width: 45%;
79-
float: left;
80-
font-size: 16px;
91+
#banner-secondary .download-main {
92+
height: 107px;
93+
width: 90%;
94+
margin-left:5%;
95+
margin-bottom:1em;
8196
}
82-
83-
#banner-secondary .download-legacy {
84-
float: right;
97+
#banner-secondary .download-main > a {
98+
background: #D18F4F;
99+
color: #FFF;
100+
display:block;
101+
padding: 0.1em;
102+
font-size: 2em;
103+
width: 100%;
104+
text-align:center;
105+
text-decoration: none;
85106
}
86107

87-
#banner-secondary .download-option span {
108+
109+
#banner-secondary .download-main > a span {
110+
margin-top: 0.2em;
88111
display: block;
89-
font-size: 14px;
90-
color: #71D1FF;
112+
font-size: 0.4em;
91113
}
92114

93115
#content .dev-links {
@@ -162,14 +184,14 @@ a,
162184
display: none;
163185
}
164186

165-
@media all and (max-width: 600px) {
166-
#banner-secondary p.intro,
167-
#banner-secondary .download-box {
168-
float: none;
169-
width: auto;
187+
@media all and (max-width: 820px) {
188+
#banner-secondary .downloads-box {
189+
float:none;
190+
width: 100%;
191+
margin-bottom: 1em;
170192
}
171-
172-
#banner-secondary .download-box {
173-
overflow: auto;
193+
#banner-secondary .features-box {
194+
float:none;
195+
width:100%;
174196
}
175197
}

0 commit comments

Comments
 (0)