Skip to content

Commit d25d8bd

Browse files
committed
contribute.jquery.org: Add markup conventions link to header, add styles for markup conventions page
1 parent 9b5e8fb commit d25d8bd

File tree

2 files changed

+60
-11
lines changed

2 files changed

+60
-11
lines changed

themes/contribute.jquery.org/style.css

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,63 @@ Theme Name: contribute-jquery-org
33
Template: jquery
44
*/
55

6-
iframe {
7-
border: 0;
8-
}
9-
106
a {
117
color: #065791;
128
}
139

14-
#home-features aside ul li {
15-
background: none;
16-
padding: 0;
10+
em.color {
11+
display: inline-block;
12+
color: #fff;
13+
padding: 1px 5px;
14+
}
15+
16+
.example {
17+
border: 1px solid #dadada;
18+
-webkit-border-radius: 3px;
19+
-moz-border-radius: 3px;
20+
border-radius: 3px;
21+
padding: 0 20px;
22+
margin-bottom: 30px;
1723
}
24+
25+
.example pre {
26+
clear: both;
27+
margin:0 -20px;
28+
-webkit-border-bottom-right-radius: 3px;
29+
-webkit-border-bottom-left-radius: 3px;
30+
-moz-border-radius-bottomright: 3px;
31+
-moz-border-radius-bottomleft: 3px;
32+
border-bottom-right-radius: 3px;
33+
border-bottom-left-radius: 3px;
34+
}
35+
36+
.example h3 {
37+
background-color: #f1f1f1;
38+
margin: 0 -20px 15px;
39+
padding: 20px;
40+
-webkit-border-top-left-radius: 3px;
41+
-webkit-border-top-right-radius: 3px;
42+
-moz-border-radius-topleft: 3px;
43+
-moz-border-radius-topright: 3px;
44+
border-top-left-radius: 3px;
45+
border-top-right-radius: 3px;
46+
}
47+
48+
.example h3.ignore-example {
49+
background-color: #fff;
50+
margin:0 0 10px 0;
51+
padding: 0px;
52+
-webkit-border-top-left-radius: 0px;
53+
-webkit-border-top-right-radius: 0px;
54+
-moz-border-radius-topleft: 0px;
55+
-moz-border-radius-topright: 0px;
56+
border-top-left-radius: 0px;
57+
border-top-right-radius: 0px;
58+
}
59+
60+
.example #banner-secondary {
61+
margin-left: -20px;
62+
margin-right: -20px;
63+
margin-top: -30px;
64+
}
65+

themes/jquery/menu-header.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ function menu_header_brand_jquery_org() {
9898

9999
function menu_header_contribute_jquery_org() {
100100
return array(
101-
'http://contribute.jquery.org/CLA/' => 'Contributor License Agreement',
102-
'http://contribute.jquery.org/style-guide/js' => 'JS Style Guide',
103-
'http://contribute.jquery.org/style-guide/html' => 'HTML Style Guide',
104-
'http://contribute.jquery.org/commits-and-pull-requests' => 'Commits & Pull Requests'
101+
'http://contribute.jquery.org/CLA/' => 'CLA',
102+
'http://contribute.jquery.org/style-guide/js/' => 'JS Style Guide',
103+
'http://contribute.jquery.org/style-guide/html/' => 'HTML Style Guide',
104+
'http://contribute.jquery.org/markup-conventions/' => 'Markup Conventions',
105+
'http://contribute.jquery.org/commits-and-pull-requests/' => 'Commits & Pull Requests'
105106
);
106107
}
107108

0 commit comments

Comments
 (0)