Skip to content

Commit 8a630c1

Browse files
committed
First rough styles of the jQuery home page - feature images and corresponding css, as well as a base jquery-com theme
1 parent d25d8bd commit 8a630c1

File tree

2 files changed

+175
-0
lines changed

2 files changed

+175
-0
lines changed
23 KB
Loading

themes/jquery.com/style.css

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
/*
2+
Theme Name: jquery-com
3+
Template: jquery
4+
*/
5+
6+
7+
a,
8+
.title {
9+
color: #B24926;
10+
}
11+
12+
#content a:hover {
13+
color: #333;
14+
}
15+
16+
#banner-secondary {
17+
background: #222;
18+
}
19+
#banner-secondary .feature-bar {
20+
background: #111;
21+
}
22+
.feature-box {
23+
float:left;
24+
width: 20%;
25+
}
26+
.feature-bar .feature-box-image {
27+
width: 120px;
28+
height: 107px;
29+
overflow: hidden;
30+
}
31+
.lightweight-footprint .feature-box-image {
32+
background: url('i/feature-sprites.png') 0px 0px no-repeat;
33+
}
34+
.css3-compliant .feature-box-image{
35+
background: url('i/feature-sprites.png') -139px 0px no-repeat;
36+
}
37+
.cross-browser .feature-box-image{
38+
background: url('i/feature-sprites.png') -278px 0px no-repeat;
39+
}
40+
41+
42+
43+
#banner-secondary p.intro {
44+
padding: 0;
45+
}
46+
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%);
54+
float: right;
55+
width: 40%;
56+
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);
61+
}
62+
63+
#banner-secondary .download-box h2 {
64+
color: #71D1FF;
65+
}
66+
67+
#banner-secondary .download-box .button {
68+
float: none;
69+
display: block;
70+
margin-top: 15px;
71+
}
72+
73+
#banner-secondary .download-box p {
74+
margin: 15px 0 5px;
75+
}
76+
77+
#banner-secondary .download-option {
78+
width: 45%;
79+
float: left;
80+
font-size: 16px;
81+
}
82+
83+
#banner-secondary .download-legacy {
84+
float: right;
85+
}
86+
87+
#banner-secondary .download-option span {
88+
display: block;
89+
font-size: 14px;
90+
color: #71D1FF;
91+
}
92+
93+
#content .dev-links {
94+
float: right;
95+
width: 30%;
96+
margin: -15px -25px .5em 1em;
97+
padding: 1em;
98+
border: 1px solid #666;
99+
border-width: 0 0 1px 1px;
100+
border-radius: 0 0 0 5px;
101+
box-shadow: -2px 2px 10px -2px #666;
102+
}
103+
104+
#content .dev-links ul {
105+
margin: 0;
106+
}
107+
108+
#content .dev-links li {
109+
padding: 0;
110+
margin: .25em 0 .25em 1em;
111+
background-image: none;
112+
}
113+
114+
.demo-list {
115+
float: right;
116+
width: 25%;
117+
}
118+
119+
.demo-list h2 {
120+
font-weight: normal;
121+
margin-bottom: 0;
122+
}
123+
124+
#content .demo-list ul {
125+
width: 100%;
126+
border-top: 1px solid #ccc;
127+
margin: 0;
128+
}
129+
130+
#content .demo-list li {
131+
border-bottom: 1px solid #ccc;
132+
margin: 0;
133+
padding: 0;
134+
background: #eee;
135+
}
136+
137+
#content .demo-list .active {
138+
background: #fff;
139+
}
140+
141+
#content .demo-list a {
142+
text-decoration: none;
143+
display: block;
144+
font-weight: bold;
145+
font-size: 13px;
146+
color: #3f3f3f;
147+
text-shadow: 1px 1px #fff;
148+
padding: 2% 4%;
149+
}
150+
151+
.demo-frame {
152+
width: 70%;
153+
height: 350px;
154+
}
155+
156+
.view-source a {
157+
cursor: pointer;
158+
}
159+
160+
.view-source > div {
161+
overflow: hidden;
162+
display: none;
163+
}
164+
165+
@media all and (max-width: 600px) {
166+
#banner-secondary p.intro,
167+
#banner-secondary .download-box {
168+
float: none;
169+
width: auto;
170+
}
171+
172+
#banner-secondary .download-box {
173+
overflow: auto;
174+
}
175+
}

0 commit comments

Comments
 (0)